Skip to main content

Monitoring and Troubleshooting

Monitoring Background Tasks

  • In Django Admin: Go to Django Celery Results → Task Results to see all completed, failed, and pending tasks.
  • Via Flower (local dev): Run celery -A proenergia flower --address=127.0.0.1 --port=5555 and access http://localhost:5555.

Admin Troubleshooting

IssueCause & Resolution
VectorFile stuck in ProcessingCelery worker is not running. Restart: sudo systemctl restart proenergia-celery
VectorFile / ScenarioFile shows ErrorOpen the record and read the Error Message. Common causes: unsupported CRS, corrupt file, or CSV missing the id column.
filter_fields fails: Missing a required keyEach entry must have all three keys: label, description, column.
summary_fields fails: columns key should be a listThe columns key must be a JSON array even for one column: ["MyColumn"]
summary_fields fails: invalid chartTypeValid values: bar, donut, stacked, column, area, highlight.
color_coding fails: invalid colorEach color must be a valid 3 or 6-digit hex code (e.g. #FF0000).
Frontend shows no features (blank map)The Scenario's ScenarioFile must be in Ready status. Check file processing.
Summary panel shows all zerosmetric_field_types may not be populated. It auto-populates on successful Scenario File import.
Admin login shows 403User exists but lacks Staff status. A Super Admin must enable it.
Model not visible on frontendData Model's is_public flag is False. Only superusers can see private models.