James Roth
2006-Sep-09 17:55 UTC
Couldn''t find any pid ... matching ''dispatch.[0-9]*.pid''
I have Capistrano working great on about 6 projects, but for a couple I end up getting a message like this at the end: Couldn''t find any pid file in ''/u/apps/project/current/tmp/pids'' matching ''dispatch.[0-9]*.pid'' I end up SSHing in to restart Apache, but I''d rather not have to. Any ideas? I''m sure its probably trivial... perhaps Capistrano isn''t correctly setup or some files/directories are missing. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
James Roth
2006-Sep-09 19:06 UTC
Re: Couldn''t find any pid ... matching ''dispatch.[0-9]*.pid''
James Roth wrote:> I have Capistrano working great on about 6 projects, but for a couple I > end up getting a message like this at the end: > > Couldn''t find any pid file in ''/u/apps/project/current/tmp/pids'' > matching ''dispatch.[0-9]*.pid'' > > I end up SSHing in to restart Apache, but I''d rather not have to. Any > ideas? I''m sure its probably trivial... perhaps Capistrano isn''t > correctly setup or some files/directories are missing.It seems the problem is that repear.rb in Edge rails is a bit different than that of the current Gems. The Edge Rails version is looking in tmp/pids for pid files, but there is nothing there. The Gem version simply looks for the correct dispatch.fcgi process, and finds it. How do I get around this? What changes/assumptions are being made in the current EdgeRails that I should be aware of? Any comment is appriciated. Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
James Roth
2006-Sep-09 19:15 UTC
Re: Couldn''t find any pid ... matching ''dispatch.[0-9]*.pid''
from the Railties CHANGELOG: * Added pid file usage to script/process/spawner and script/process/reaper along with a directive in default config/lighttpd.conf file to record the pid. They will all save their pid file in tmp/pids [DHH] ...now to figure out to how to get Apache 1.3/mod_fcgi to record the PIDs for each process. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Bill Lipa
2007-Mar-15 21:53 UTC
Re: Couldn''t find any pid ... matching ''dispatch.[0-9]*.pid''
Try overriding the restart task by adding the following to deploy.rb: desc "restart override" task :restart, :roles => :app do run "killall -9 ruby" end You may need to change the command depending on your hosting provider - the above works for dreamhost. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---