13

Internal Server Error – Django, Nginx, Gunicorn

 3 years ago
source link: https://snakeycode.wordpress.com/2020/09/28/internal-server-error-django-nginx-gunicorn/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Internal Server Error – Django, Nginx, Gunicorn

I am sure there are lots of ways to get “Internal Server Error” with Django, Nginx and Gunicorn. The following is the most tricky one I have encountered. No emails are sent. No Django logs. No nginx or gunicorn logs.

The log that solved it was: /var/log/syslog

The error was:

ValueError: The file 'dist/select_sources.css' could not be found with <pipeline.storage.PipelineCachedStorage object at 0x7f0b83beca00>.

When Django-pipeline cannot find a resource, it just gives up and returns an HTTP 500 code.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK