Arfon Smith
2008-May-19 21:47 UTC
[Mongrel] god - start command exited with non-zero code = 1
Hi, I''m trying to use god to monitor my mongrels. When they are running everything looks OK but when a mongrel process dies and god tries to restart it I get the following error: command exited with non-zero code = 1 The weird thing is that if I try use the exact same command as god is using but on the command line then the mongrel starts back up. I''ve seen this error reported a couple of times but no-one ever seems to get an answer! Does anyone have any ideas as to what might be going on?! Cheers arfon -- Posted via http://www.ruby-forum.com/.
Cynthia Kiser
2008-May-20 01:26 UTC
[Mongrel] god - start command exited with non-zero code = 1
Quoting Arfon Smith <lists at ruby-forum.com>:> The weird thing is that if I try use the exact same command as god is > using but on the command line then the mongrel starts back up.That smells like a difference in environment. Are you using full paths in your god script? Are there any other things that might need tweaking? For example, I have a Rails mongrel server that use Oracle as the database. To start it, I need to set $ORACLE_HOME, add some stuff to $PATH, and to $LD_LIBRARY_PATH. -- Cynthia Kiser
Arfon Smith
2008-May-20 08:41 UTC
[Mongrel] god - start command exited with non-zero code = 1
Hi, thanks for the help. I was already giving the full path to the mongrel_rails and god but the problem turned out to be that I wasn''t specifying the absolute path to my RAILS_ROOT so it couldn''t find the application! Cheers Arfon Cynthia Kiser wrote:> Quoting Arfon Smith <lists at ruby-forum.com>: >> The weird thing is that if I try use the exact same command as god is >> using but on the command line then the mongrel starts back up. > > That smells like a difference in environment. Are you using full paths > in your god script? Are there any other things that might need > tweaking? For example, I have a Rails mongrel server that use Oracle > as the database. To start it, I need to set $ORACLE_HOME, add some > stuff to $PATH, and to $LD_LIBRARY_PATH. > > -- > Cynthia Kiser-- Posted via http://www.ruby-forum.com/.