Thursday, April 24, 2008

Mongrel cluster restart issues...

hi,
Error : !!! Path to pid file not valid: tmp/pids/mongrel.8000.pid
mongrel::start reported an error. Use mongrel_rails
mongrel::start -h to get help.


Solution : jump into ur application directory
mine is
/var/www/MY_APP
go to config directory..
open your mongrel_cluster.yml file



check out for the log file path
log_file: log/mongrel.log

which is relative... mongrel cant find it... so change it to ...:

log_file: /var/www/MY_APP/log/mongrel.log

similarly, u l have to change the path for pid file

which ll be ... :
pid_file: tmp/pids/mongrel.pid

change it to ... :
pid_file: /var/www/MY_APP/tmp/pids/mongrel.pid

replace MY_APP with ur app name..
and u r done..

No comments: