Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unicorn/Nginx process missing, socket open

I am trying to deploy code using Capistrano, and it fails on deploy:start or deploy:stop because the Unicorn process is already killed. However if I try to cap deploy:start, I get a stderr claiming that Address already in use - /tmp/my_app.socket. How would this happen, and how might I get out of this mess?

like image 730
Micah Alcorn Avatar asked Apr 14 '12 01:04

Micah Alcorn


1 Answers

Still not sure how this happens, but the following solution seems to work:

lsof /tmp/my_app.socket - lists the pids

kill -9 pid - (replace 'pid' with one of those listed)

Then cap deploy:start from the local terminal.

like image 104
Micah Alcorn Avatar answered Nov 15 '22 12:11

Micah Alcorn