Troubleshooting¶
Where to find the log files¶
All the logs are centralized into one single directory /var/log/cdr-stats/
cdr-stats.log : All the logger events from Django
cdr-stats-db.log : This contains all the Database queries performed by the UI
gunicorn_cdr_stats.log : All the logger events from Gunicorn
djcelery_error.log : This contains celery activity
djcelerybeat_error.log : This contains celerybeat activity
Run in debug mode¶
Make sure services are stopped first:
$ /etc/init.d/supervisor stop
Then run in debug mode:
$ workon cdr-stats
$ cd /usr/share/cdrstats/
$ python manage.py celeryd -EB --loglevel=DEBUG
Celerymon¶
Running the monitor :
Start celery with the –events option on, so celery sends events for celerymon to capture:
$ workon cdr-stats
$ cd /usr/share/cdrstats/
$ python manage.py celeryd -E
Run the monitor server:
$ workon cdr-stats
$ cd /usr/share/cdrstats/
$ python manage.py celerymon
However, in production the monitor is best run in the background as a daemon:
$ workon cdr-stats
$ cd /usr/share/cdrstats/
$ python manage.py celerymon --detach
For a complete listing of the command line arguments available, with a short description, use the help command:
$ workon cdr-stats
$ cd /usr/share/cdrstats/
$ python manage.py help celerymon
Visit the webserver celerymon stats by going to: http://localhost:8989