Debugging Edxapp
Relevant Log Files
Log File Location | What's in it? |
|---|---|
/edx/var/log/supervisor/lms-stderr.log | Startup error messages and debug output from the running LMS django process |
/edx/var/log/supervisor/supervisord.log | Debug output from the supervisor task manager |
/edx/var/log/lms/edx.log | Request logs and errors from the LMS |
/edx/var/log/nginx/error.log | Errors from nginx proxy server that front-ends both the LMS and CMS. |
/edx/var/log/nginx/access.log | Access logs for all requests to the server. |
Configuration files
Configuration File Location | What's in it? | Format |
|---|---|---|
/edx/app/edxapp/lms.env.json | Most configuration parameters for the app. | JSON |
/edx/app/edxapp/lms.auth.json | Authentication parameters for the app | JSON |
/edx/app/supervisor/conf.d/lms.conf | Supervisor task manager configuration for apps | supervisor config |
/edx/app/supervisor/pre_supervisor_checks.py | Migration check commands | Python |
Steps
Look in log files for errors
Solve the problem
Profit!
Docker Devstack
Use convenient make commands to view logs for specific IDAs. More details in the readme https://github.com/edx/devstack
To see logs from containers running in detached mode, you can either use "Kitematic" (available from the "Docker for Mac" menu), or by running the following:
make logs
To view the logs of a specific service container run make <service>-logs. For example, to access the logs for Ecommerce, you can run:
make ecommerce-logs