Unicorn unable to write pid file

可紊 提交于 2019-12-02 20:42:39

Actually, the error message has already told you why:

directory for pid=/home/deploy/apps/shared/pids/unicorn.pid not writable

So, does the directory /home/deploy/apps/shared/pids exist? If not, you should call mkdir to create it.

Unicorn process is running in background(-d), type

ps aux | grep unicorn

and kill running unicorn process then start once again.

in capistrano 3; if we change roles to :all, then while deployment capistrano saying; WARN [SKIPPING] No Matching Host for ..... and after deployment all symlinks not working anymore. And if tmp/pids folder in symlink array, then unicorn can't find the tmp/pids folder and saying unicorn.pid is not writable.

So we must use; roles: %w{web app db} instead of roles :all.

Sample server line at production.rb;

server 'YOUR_SERVER_IP', user: 'YOUR_DEPLOY_USER', roles: %w{web app db}, ssh_options: { forward_agent: true }

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