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.
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
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With