-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.2.0 failed to restart unicon due to incorrect pid file path #85
Comments
+1 |
2 similar comments
+1 |
+1 |
As I understand relative paths to pid file in config/unicorn.rb stopped working, now it works only with absolute path. |
In my case I'm receiving: * 2013-12-05 10:18:00 executing `unicorn:reload'
triggering before callbacks for `unicorn:reload'
/tmp/unicorn.rb20131205-11768-d8q40k:7:in `read': No such file or directory - config/unicorn/production.rb (Errno::ENOENT)
from /tmp/unicorn.rb20131205-11768-d8q40k:7:in `reload'
from /home/morman/.gem/ruby/1.9.3/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:75:in `instance_eval'
from /home/morman/.gem/ruby/1.9.3/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:75:in `reload'
from /home/morman/.gem/ruby/1.9.3/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:68:in `initialize'
from /home/morman/.gem/ruby/1.9.3/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:108:in `new'
from /home/morman/.gem/ruby/1.9.3/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:108:in `initialize'
from /home/morman/.gem/ruby/1.9.3/gems/unicorn-4.7.0/bin/unicorn:126:in `new'
from /home/morman/.gem/ruby/1.9.3/gems/unicorn-4.7.0/bin/unicorn:126:in `<top (required)>'
from /home/morman/.gem/ruby/1.9.3/bin/unicorn:23:in `load'
from /home/morman/.gem/ruby/1.9.3/bin/unicorn:23:in `<main>'
*** err :: failed to auto-detect pid from config/unicorn/production.rb
*** err :: falling back to default: /home/deploy/web/printbox/current/tmp/pids/unicorn.pid Even though |
Maybe the bug is related to my case. I set
From 0.2.0 I think:
|
@k2nr Sounds great! Would you please send us a pull request with that patch? If you could add/fix/identify relevant specs, that'd be excellent. |
@guangnan, @cschramm, @jnimety, @glebtv, @michalorman - it would help us a lot in fully understanding this issue if you could provide:
|
|
@k2nr, @sfsekaran - I already carefully considered server-side detection, tried to implement it, and then rejected it. So I'm not yet convinced this is the way to go. |
pid "/var/www/app_name/shared/pids/unicorn.pid" |
|
I had this error and fixed it setting the pid folder in my capistrano deploy file: |
@lecoueyl |
In fact, this is the default folder setting in capistrano-unicorn. |
I noticed that this gem failed to restart unicorn after I upgraded to v0.2.0, due to the missing of
app_path
.0.2.0
0.1.10
I'm using a multistage cap. Not sure if that's related.
It happens on
unicorn:stop
,restart
etc.The text was updated successfully, but these errors were encountered: