# ! Path to docroot not valid: public

**URL:** <https://www.ruby-forum.com/t/path-to-docroot-not-valid-public/130887>\
**Category:** Ruby\
**Created:** [March 4, 2008, 9:07am UTC](https://www.ruby-forum.com/t/path-to-docroot-not-valid-public/130887 "2008-03-04T09:07:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad\_Haseeb\_Kha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@Muhammad\_Haseeb\_Kha](https://www.ruby-forum.com/u/Muhammad_Haseeb_Kha)\
**Post date:** [March 4, 2008, 9:07am UTC](https://www.ruby-forum.com/t/path-to-docroot-not-valid-public/130887/1 "2008-03-04T09:07:27Z")

</div>

Hi All,

We are working on an application which is hosted on Slice.

The application was previously working fine but the host went down. So,  
the  
host was restarted and now Mongrel isn’t starting up.

I have tried the following commands by logging in as root. I am also  
posting  
the ERROR Messages:

# mongrel\_rails mongrel::start -l

/var/www/apps/application/shared/mongrel.log

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

# mongrel\_rails mongrel::start -l

/var/www/apps/application/shared/mongrel.log -P  
/var/www/apps/application/shared/mongrel.8005.pid

!!! Path to docroot not valid: public  
mongrel::start reported an error. Use mongrel\_rails mongrel::start -h to  
get  
help.

Then I tried changing the application.yml but no luck.

Following is the mongrel\_cluster.yml

cwd: /var/www/apps/application/current  
port: “8000”  
environment: production  
address: 127.0.0.1  
pid\_file: /var/www/apps/application/shared/mongrel.pid  
servers: 3

And I run the following command:

# mongrel\_rails mongrel::start -l

/var/www/apps/application/shared/mongrel.log -C  
/var/www/apps/application/shared/setup/mongrel\_cluster.yml

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

Please help me in figuring out the issue.

Thanks in advance.

Regards,

Haseeb Khan
