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

Quoting Arfon S. [email protected]:

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 K.

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 K. wrote:

Quoting Arfon S. [email protected]:

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 K.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs