gunicorn ERROR (abnormal termination)

耗尽温柔 提交于 2019-12-05 18:24:46
Brian Tompsett - 汤莱恩

(The question was answered by the OP in a question edit. Converted to a community wiki answer. See Question with no answers, but issue solved in the comments (or extended in chat) )

The OP wrote:

Solved the issue (I think)

as per the info in this link https://stackoverflow.com/a/19256794/2049067 , I added the project to the python path

export PYTHONPATH=:/my/path

then ran the gunicorn command again:

gunicorn_django --pythonpath . ce.settings -w 4 --bind             127.0.0.1:9000 --debug --log-level debug

and gunicorn is up and running, and the site is accessible, I exited the ssh and everything is (seemingly) still working. I should also add that before I set the pythonpath I changed the ownerwhip on the gunicorn log:

sudo chown -R www-data:www-data gunicorn.log

Though I dont know if that helped

& seeing how the application has been running for years I dont know how the project was removed from the pythonpath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!