Skip to content

Proper testing process for an Internal Server Error #142

@seamustuohy

Description

@seamustuohy

We need a write up the proper testing process for an Internal Server Error.
It should be put on http://openinternet.github.io/copilot/developer/2016/01/09/troubleshooting.html

The short version of the debugging process for getting accurate logs of server errors is as follows.
By doing the following the Copilot process should throw an exception in that process which one can use to track down the actual error their device is seeing. The 500 error is a very general status code that says that "something" is wrong with the server, the output from that command should show me what exactly is wrong.

Add the following line to the top of /home/www/copilot/instance/config.py

DEBUG = True

Then to stop copilot like so:

supervisorctl stop copilot

Then to run it from the command line so you get the error that is causing it.

cd /home/www/copilot
gunicorn --log-level debug run:app -b localhost:8000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions