This question seems to have been asked many times but all the solutions I have checked haven\'t yet worked for me. I am running nginx
on a Ubuntu 14.04 server with
After all that hassle and 2+ hours of banging my head against a wall, the answer for the archives...
I was using gunicorn, I took a cookie cutter set up from Digital Ocean which made the user django. I thought it the cookie cutter approach would be a shortcut which was easy to modify and skipped the boring bits. It turns out in /etc/init/gunicorn.conf
setuid
and setgid
was set to the user django. My fault for not reading the documentation and assuming these meant little.
If you are having this problem either delete setuid
or setgid
or set them to www-data
.