Home > Net >  I've deleted my .sock file - Django, Nginx, Gunicorn
I've deleted my .sock file - Django, Nginx, Gunicorn

Time:01-03

When I was trying to pull from Git, I accidentally deleted the sock file. What am I supposed to do now? My websites showing "502 Bad Gateway" and nothing's working. I need help, fast.

Could you tell me what to do now?

EDIT: As this a new project with no data yet, I've just scrapped the server and spun another, done everything again, because nothing seems to work for me.

CodePudding user response:

If you are using systemd enable and start your service. If everything ok with service file it will create the .sock file again.

systemctl start <your service name>
systemctl enable <your service name>

CodePudding user response:

Just try to run this command it will create .sock file for you

sudo systemctl start gunicorn
sudo systemctl enable gunicorn

this will create your_project.sock file and then check the status by typing this command

sudo systemctl status gunicorn
  • Related