# God - start command exited with non-zero code = 1

**URL:** <https://www.ruby-forum.com/t/god-start-command-exited-with-non-zero-code-1/138067>\
**Category:** Mongrel\
**Created:** [May 19, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/god-start-command-exited-with-non-zero-code-1/138067 "2008-05-19T23:47:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arfon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@arfon](https://www.ruby-forum.com/u/arfon)\
**Post date:** [May 19, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/god-start-command-exited-with-non-zero-code-1/138067/1 "2008-05-19T23:47:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![arfon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@arfon](https://www.ruby-forum.com/u/arfon)\
**Post date:** [May 20, 2008, 3:27am UTC](https://www.ruby-forum.com/t/god-start-command-exited-with-non-zero-code-1/138067/2 "2008-05-20T03:27:04Z")

</div>

Quoting Arfon S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

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

---

<div class="post-metadata">

**Author:** ![arfon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@arfon](https://www.ruby-forum.com/u/arfon)\
**Post date:** [May 20, 2008, 10:41am UTC](https://www.ruby-forum.com/t/god-start-command-exited-with-non-zero-code-1/138067/3 "2008-05-20T10:41:02Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > 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.
