All Reports (22) Delete Upload 🔍 File Name Type Last Updated Uploaded by A1KES31-12 RCA 2 weeks ago Engineer Ridwan Bankole A1KES31-14 RCA 2 weeks ago Engineer Ridwan Bankole A1KES31-14 Physical Inspection 2 weeks ago Engineer Ridwan Bankole A1KES31-15 RCA 2 weeks ago Engineer Ridwan Bankole A1KES31-15 Physical Inspection 2 weeks ago Engineer Ridwan Bankole A1KES40-01 RCA 3 weeks ago Engineer Ridwan Bankole A1KES40-08 RCA 3 weeks ago Engineer Ridwan Bankole A1KES40-12 RCA 3 weeks ago Engineer Ridwan Bankole A1KWS15-01 RCA 3 weeks ago Engineer Ridwan Bankole A1KWS15-02 RCA 3 weeks ago Engineer Ridwan Bankole A1KWS15-13 RCA 1 day ago Engineer Ridwan Bankole A1LAS01-01 RCA 1 day ago Engineer Ridwan Bankole A1LAS01-02 RCA 1 day ago Engineer Ridwan Bankole A1NIS26-01 RCA 2 weeks ago Engineer Ridwan Bankole A1NIS26-02 RCA 2 weeks ago Engineer Ridwan Bankole A1NIS26-03 RCA 2 weeks ago Engineer Ridwan Bankole A1NIS26-04 RCA 2 weeks ago Engineer Ridwan Bankole A1NIS26-05 RCA 2 weeks ago Engineer Ridwan Bankole A1NIS26-06 RCA 2 weeks ago Engineer Ridwan Bankole A1NIS26-11 RCA 2 weeks ago Engineer Ridwan Bankole A1NIS26-16 RCA 2 weeks ago Engineer Ridwan Bankole A1NIS26-17 RCA 2 weeks ago Engineer Ridwan Bankole Operations Operations RunbookUseful commandsDjango checkspython manage.py check --settings=roads.settings.production python manage.py showmigrations --settings=roads.settings.productionStatic filespython manage.py collectstatic --noinput --settings=roads.settings.production ls -l /home/appleveil/ferma/staticfiles/website/css/style.css curl -I https://cpmsferma.com/static/website/css/style.cssServicessudo systemctl status gunicorn sudo systemctl restart gunicorn sudo systemctl status nginx sudo systemctl reload nginx sudo systemctl status celery sudo systemctl restart celeryLogsjournalctl -u gunicorn -n 200 --no-pager journalctl -u nginx -n 200 --no-pager journalctl -u celery -n 200 --no-pager tail -n 200 /home/appleveil/ferma/django-error.logTroubleshooting matrix1) Styling missing in productionChecks:Page source contains <link href="/static/website/css/style.css">staticfiles/website/css/style.css exists and non-zero size.curl -I returns non-zero content-length.Fixes:collectstaticrestart gunicornreload nginx2) staticfiles.W004 warningMessage: static dir in STATICFILES_DIRS does not exist.Action:ensure settings include only existing static dirs (already implemented in base settings).3) Celery tasks stuckChecks:Redis reachablecelery worker runningtask status endpoint stateActions:restart celeryverify REDIS_URLinspect worker logs for API rate limits/timeouts4) Map data not updatingChecks:segments_map_data endpoint responsesegment coordinates presentbackground refresh completed successfully5) 500 errors from viewsChecks:django-error.logrecent code changes in website/views.pymigrations applied for model changesDatabase operation cautionsAlways back up DB before destructive updates.For production schema changes:deploy coderun migrationsrestart servicesRollback strategy (minimum)keep previous release commit hashrevert to previous codererun collectstaticrestart gunicorn/celeryif migration caused issue, restore DB backup or apply reversible migrationSecurity operation checksEnsure production settings are used in production commands.Confirm HTTPS redirect and HSTS active.Review open endpoints and permission decorators periodically. Uploads Download template Select file (.xls, .xlsx, .csv) Begin Upload Uploading, please wait... Upload summary Download error CSV
Operations RunbookUseful commandsDjango checkspython manage.py check --settings=roads.settings.production python manage.py showmigrations --settings=roads.settings.productionStatic filespython manage.py collectstatic --noinput --settings=roads.settings.production ls -l /home/appleveil/ferma/staticfiles/website/css/style.css curl -I https://cpmsferma.com/static/website/css/style.cssServicessudo systemctl status gunicorn sudo systemctl restart gunicorn sudo systemctl status nginx sudo systemctl reload nginx sudo systemctl status celery sudo systemctl restart celeryLogsjournalctl -u gunicorn -n 200 --no-pager journalctl -u nginx -n 200 --no-pager journalctl -u celery -n 200 --no-pager tail -n 200 /home/appleveil/ferma/django-error.logTroubleshooting matrix1) Styling missing in productionChecks:Page source contains <link href="/static/website/css/style.css">staticfiles/website/css/style.css exists and non-zero size.curl -I returns non-zero content-length.Fixes:collectstaticrestart gunicornreload nginx2) staticfiles.W004 warningMessage: static dir in STATICFILES_DIRS does not exist.Action:ensure settings include only existing static dirs (already implemented in base settings).3) Celery tasks stuckChecks:Redis reachablecelery worker runningtask status endpoint stateActions:restart celeryverify REDIS_URLinspect worker logs for API rate limits/timeouts4) Map data not updatingChecks:segments_map_data endpoint responsesegment coordinates presentbackground refresh completed successfully5) 500 errors from viewsChecks:django-error.logrecent code changes in website/views.pymigrations applied for model changesDatabase operation cautionsAlways back up DB before destructive updates.For production schema changes:deploy coderun migrationsrestart servicesRollback strategy (minimum)keep previous release commit hashrevert to previous codererun collectstaticrestart gunicorn/celeryif migration caused issue, restore DB backup or apply reversible migrationSecurity operation checksEnsure production settings are used in production commands.Confirm HTTPS redirect and HSTS active.Review open endpoints and permission decorators periodically.