缺少Unicorn/Nginx进程,套接字已打开 [英] Unicorn/Nginx process missing, socket open

查看:106
本文介绍了缺少Unicorn/Nginx进程,套接字已打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Capistrano部署代码,并且在deploy:startdeploy: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆