Unicorn/Nginx process missing, socket open

与世无争的帅哥 提交于 2020-01-01 05:35:09

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/10150245/unicorn-nginx-process-missing-socket-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!