Report this

What is the reason for this report?

Bad Request (400) after making supervisor restart

Posted on April 8, 2014

After restarting my django app: supervisorctl restart [process] I’ve got Bad Request(400) error when visiting my site. The app is under nginx with gunicorn and supervisor.

I remember to had the same problem some time ago and restarting supervisor from some specific folder on the server had helped. I’ve tried to restart supervisor from different locations, however it doesn’t help.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m having the same problem. With… DEBUG = True ALLOWED_HOSTS = [‘127.0.0.1’]

…the page displays. If I set DEBUG to False, I get the Bad Request(400) error.

It would be great if this could be clarified in the tutorial.

Could you provide some more information to help us figure out what might be happening here? Is there anything logged in /var/log/nginx/error.log <br> <br>If you launch it manually, is there any gunicorn error output to the command line? <br> <br>Thanks!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.