502 Bad Gateteway when trying to access the website
I created a droplet using the Django image in the marketplace. I downloaded an existing django project with gitclone and changed the nginx configuration.
(All my static files is working) exemple : http://22.214.171.124/static/css/app.min.css
But, i tryied to change the gunicorn configuration, and when i restarted gunicorn and nginx (deamon-reload too) i have this error in my nginx log :
Failed(13: Permision denied) while connecting to upstream (referer to my css)
I don’t know how to view gunicorn logs.
The file i edited was /etc/systemd/system/guinicorn.service and i only renamed all django_project to my new folder name
I need help, thank you
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.×