[Fixed]-Gunicorn: Can't connect to gunicorn.sock

11👍

According to the documentation (http://gunicorn-docs.readthedocs.org/en/latest/run.html), you should use: unix:$(PATH), meaning your command should read:

gunicorn myapp.wsgi:application --bind=unix:/webapps/myapp/run/gunicorn.sock

3👍

remove venv/run folder and then mkdir run without using sudo

👤Rambod

0👍

In my case the issue was in permissions of the sock file. I created new sock file in home directory of non-sudo user in non-sudo mode and reconfigured and it worked.

Leave a comment