i have an unbuntu server that i installed rails on using the free peepcode screencast on deprec. all is well unless the computer restarts. none of the apps come up on their own, and if i try to restart them with capistrano, it tells me that the old mongrel pids are still there and it cannot start. right now i am manually having to go to each app and run rake tmp:pids:clear and then restart the mongrel_cluster. how can i get capistrano to clear these automatically, and what are my options for starting apps when the server is rebooted and keeping them running? thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Josh Kieschnick wrote:> i have an unbuntu server that i installed rails on using the free > peepcode screencast on deprec. > > all is well unless the computer restarts. none of the apps come up on > their own, and if i try to restart them with capistrano, it tells me > that the old mongrel pids are still there and it cannot start. > > right now i am manually having to go to each app and run rake > tmp:pids:clear and then restart the mongrel_cluster. > > how can i get capistrano to clear these automatically, and what are my > options for starting apps when the server is rebooted and keeping them > running?I know next to nothing about Capistrano or linux, but I''m pretty sure you can achieve your goal without Capistrano. I know, super helpful right? Look on the bright side -- posts with at least one reply generally get more than posts with no replies. :) Also, this _might_ help: https://support.railsmachine.com/index.php?pg=kb.page&id=122 -- 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 -~----------~----~----~----~------~----~------~--~---
Well, I don''t use capistrano (although I really should start to) but I have ran into the same problem myself and I run several RoR sites with their own set of pid''s. I have a script that on a reboot starts them all up and my only way around it was to check if their were any PID fikes in the folder if their are to just remove them and start things up I also cross reference with ps to make sure it is not running but that is not really needed as mongrel is pretty good at not starting up if something is already running. Nes++ Sent from my iPhone On Apr 18, 2008, at 12:14 PM,f Josh <jjkiesch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > i have an unbuntu server that i installed rails on using the free > peepcode screencast on deprec. > > all is well unless the computer restarts. none of the apps come up on > their own, and if i try to restart them with capistrano, it tells me > that the old mongrel pids are still there and it cannot start. > > right now i am manually having to go to each app and run rake > tmp:pids:clear and then restart the mongrel_cluster. > > how can i get capistrano to clear these automatically, and what are my > options for starting apps when the server is rebooted and keeping them > running? > > thanks > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Josh Kieschnick wrote:> i have an unbuntu server that i installed rails on using the free > peepcode screencast on deprec. > > all is well unless the computer restarts. none of the apps come up on > their own, and if i try to restart them with capistrano, it tells me > that the old mongrel pids are still there and it cannot start. > > right now i am manually having to go to each app and run rake > tmp:pids:clear and then restart the mongrel_cluster. > > how can i get capistrano to clear these automatically, and what are my > options for starting apps when the server is rebooted and keeping them > running? > > thanksI imagine you have some scripts in /etc/init.d to bring the mongrels up? By restart do you mean "Crash" (no shutdown invoked), or an ordinary reboot (shutdown invoked)? I have the problem for the "crash" case, with scripts in /etc/init.d to bring up the mongrels. They do not get started, if the pid files are still there. Two possibilities mentioned on the web: At http://rails.loglibrary.com/archives/2007/01/02 eureka: awesome. so only remaining thing is setup a rc.d startup file that, when your machine reboots, finds .pid files and removes them. 01:56:31 zedas eureka: then you''re all set At http://rubyforge.org/pipermail/mongrel-users/2007-March/003371.html there is mention of "stale pid files" which might allow a "proper solution". (This problem might be something for the mongrel mailing list.) Stephan -- 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 -~----------~----~----~----~------~----~------~--~---
i found what i needed here http://paulgoscicki.com/archives/2008/03/mongrel_cluster-not-starting-after-hard-reboot/ just edited /etc/init.d/mongrel_cluster and added the --clean option and everything works great! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Josh Kieschnick wrote:> i found what i needed here > http://paulgoscicki.com/archives/2008/03/mongrel_cluster-not-starting-after-hard-reboot/ > > just edited /etc/init.d/mongrel_cluster and added the --clean option > and everything works great!Hey, thanks! Excellent. Stephan -- 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 -~----------~----~----~----~------~----~------~--~---
instead of usng capistrano at d start up.try usng mongrel-cluster as a startup On Fri, Apr 18, 2008 at 9:44 PM, Josh <jjkiesch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > i have an unbuntu server that i installed rails on using the free > peepcode screencast on deprec. > > all is well unless the computer restarts. none of the apps come up on > their own, and if i try to restart them with capistrano, it tells me > that the old mongrel pids are still there and it cannot start. > > right now i am manually having to go to each app and run rake > tmp:pids:clear and then restart the mongrel_cluster. > > how can i get capistrano to clear these automatically, and what are my > options for starting apps when the server is rebooted and keeping them > running? > > thanks > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---