Welcome Guest | Login

mongrel::start reported an error

Hello,

I've got my app up and running in FastCGI and am trying to follow the instructions to switch to mongrel hosting http://www.hostingrails.com/forums/wiki_thread/19].

When I run

[~/myapp] mongrel_rails start -e production -p 4*** -d  

I get the following message:

!!! Path to log file not valid: log/mongrel.log
mongrel::start reported an error. Use mongrel_rails mongrel::start -h to get help.

I double-checked my port number and tried adding a mongrel.log file in my log directory (but when it didn't make a difference I deleted it).

Any ideas what's going wrong?

Thanks for your help!

2008-04-23 09:42 AM

If you are certain you are issuing the mongrel_rails command from your RAILS_ROOT (if not, this error is usually what you'd see) - then make sure the permissions of your RAILS_ROOT/log folder is chmod 755 and there is indeed a mongrel.log file there (if not, it should automatically create one anyway)

2008-04-23 01:03 PM

Turned out I accidentally moved the log file to the wrong directory. It's working now.

Thanks for the help -- I appreciate it.

2008-04-23 05:00 PM

Hi again,

So this worked for me last night after I moved the log folder back to its correct location and the occasional mongrel_rails restart was working all evening.

Now I just tried to restart mongrel and I got this error:

!!! PID file log/mongrel.pid does not exist.  Not running?
mongrel::restart reported an error. Use mongrel_rails mongrel::restart -h to get help.


I assume mongrel is running, as my site is working fine. I double-checked that the log folder is in the correct directory and that its permissions are 755. There is a /log/mongrel.log file, but its permissions are 666. Is that correct or is there some other problem?

2008-04-24 06:03 PM

Hi Niamh,

The error  " mongrel.pid does not exist. " will occur when you run mongrel restart command in the absence of log/mongrel.pid file. I have fixed the issue now.  

If you face this problem in future just issue a command
$ ps aux

Then note the mongrel's proc_id from the shown list
$ kill -9 <proc_id>

Then issue the command
$  mongrel_rails start -e production -p <port> -d


2008-04-24 08:07 PM

Hi Vinayan,

I'm having this problem again. I tried ps aux to find mongrel's proc_id, but I get the following message:

grep: aux: No such file or directory

2008-04-27 04:38 PM

Hi - Please try the command

[~]# ps

instead of "ps aux" . Let us know if you need any further assistance. Thank you

2008-04-27 06:51 PM

HostingRails Support
Thanks! That worked.

2008-04-27 10:16 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.