Hello fellow humans.
I finally deployed my app after following the tutorial how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 but when i try to upload a file on the site as a user, i get server error (500). Wht do I have to do to remedy the problem as soon as possible??
will appreciate your assistance
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
@iknwosu3
Do you get any errors? If yes, is it from Nginx or Gunicorn? Show the last lines from the log. What’s the output of this?
@iknwosu3
Okay, change current log level to debug, by adding this parameter:
http://docs.gunicorn.org/en/stable/settings.html#loglevel
There’s something wrong with your upload-code or maybe you try save the uploaded file to a place where there’s no permissions, which somehow is crashing Gunicorn.
@iknwosu3
Change it do this:
Restart Gunicorn
sudo service gunicorn restart
Try to upload, so you get the error and then check/var/log/gunicorn.log
Hi @iknwosu3
Can you show the log both Gunicorn and Nginx?