skip to Main Content

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.

2

Answers


  1. 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>
    
    Login or Signup to reply.
  2. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search