缺少Unicorn/Nginx进程,套接字已打开 [英] Unicorn/Nginx process missing, socket open
问题描述
我正在尝试使用Capistrano部署代码,并且在deploy:start
或deploy:stop
上失败,因为Unicorn进程已被杀死.但是,如果尝试cap deploy:start
,则会收到stderr声明为Address already in use - /tmp/my_app.socket
.这将如何发生?我如何摆脱这个混乱局面?
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?
推荐答案
仍然不确定这种情况如何发生,但是以下解决方案似乎有效:
Still not sure how this happens, but the following solution seems to work:
lsof /tmp/my_app.socket
-列出pids
kill -9 pid
-(用列出的其中之一替换"pid")
kill -9 pid
- (replace 'pid' with one of those listed)
然后从本地终端cap deploy:start
.
这篇关于缺少Unicorn/Nginx进程,套接字已打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!