Django admin backend 'Operational Error' attempt to write a readonly database

后端 未结 1 837
醉话见心
醉话见心 2021-01-23 20:54

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

相关标签:
1条回答
  • 2021-01-23 21:36

    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.

    0 讨论(0)
提交回复
热议问题