Ehud Rosenberg
2007-May-08 21:06 UTC
[Mongrel] mongrel_cluster 1.0.1.1 does not create /var/run/mongrel_cluster
Hi everyone, I am going crazy over here! :) I just want to be able to use --clean with my mongrel_rails cluster::start command. I''ve upgraded to mongrel_cluster 1.0.1.1 and mongrel_rails 1.0.1. my config file is in /etc/mongrel_rails/config.yml and contains: --- log_file: log/mongrel.log port: 8000 pid_file: /var/run/mongrel_cluster/mongrel.pid servers: 2 address: 127.0.0.1 environment: production in the following post it says the init.rb script from mongrel_cluster should create the var/run directory itself, but it does not seem to do so ( I get the message: !!! Path to log file not valid: log/mongrel.8001.log mongrel::start reported an error. Use mongrel_rails mongrel::start -h to get help) Also, when I manually set the pid file dir to what it used to be (the log dir of my app) it does not clean it up and still give the old message that a PID already exists - i''m not sure if that''s because it''s not in /var/run as I have seen different comments on this. Any help would be appreciated... Thanks! Ehud. PS - I have also tried running mongrel_rails cluster::configure -C / etc/mongrel_rails/config.yml again but all it did was overwrite my file... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070509/472910b0/attachment.html
Ehud Rosenberg
2007-May-08 21:10 UTC
[Mongrel] mongrel_cluster 1.0.1.1 does not create /var/run/mongrel_cluster
Sorry for the quick double post, but the error message I pasted is wrong - It says the log directory is wrong (and it was) but after fixing it I get the message about the pid directory not valid: !!! Path to pid file not valid: /var/run/mongrel_cluster/mongrel.8001.pid I do not want to create this directory myself since I think something in my installation is wrong and the init.rb file is not run. On 5/9/07, Ehud Rosenberg <ehudros at gmail.com> wrote:> > Hi everyone, > I am going crazy over here! :) > I just want to be able to use --clean with my mongrel_rails > cluster::start command. > I''ve upgraded to mongrel_cluster 1.0.1.1 and mongrel_rails 1.0.1. > my config file is in /etc/mongrel_rails/config.yml > and contains: > --- > log_file: log/mongrel.log > port: 8000 > pid_file: /var/run/mongrel_cluster/mongrel.pid > servers: 2 > address: 127.0.0.1 > environment: production > > in the following post it says the init.rb script from mongrel_cluster > should create the var/run directory itself, but it does not seem to do > so ( I get the message: > !!! Path to log file not valid: log/mongrel.8001.log > mongrel::start reported an error. Use mongrel_rails mongrel::start -h > to get help) > > Also, when I manually set the pid file dir to what it used to be (the > log dir of my app) > it does not clean it up and still give the old message that a PID > already exists - i''m not sure if that''s because it''s not in /var/run > as I have seen different comments on this. > > Any help would be appreciated... > > Thanks! > Ehud. > > PS - I have also tried running mongrel_rails cluster::configure -C / > etc/mongrel_rails/config.yml again but all it did was overwrite my > file... > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070509/3b97fef5/attachment.html
Joey Geiger
2007-May-08 21:10 UTC
[Mongrel] mongrel_cluster 1.0.1.1 does not create /var/run/mongrel_cluster
I created a startup script that just creates the /var/run/mongrel_cluster on boot, since it''s removed every time you restart. On 5/8/07, Ehud Rosenberg <ehudros at gmail.com> wrote:> Hi everyone, > I am going crazy over here! :) > I just want to be able to use --clean with my mongrel_rails > cluster::start command. > I''ve upgraded to mongrel_cluster 1.0.1.1 and mongrel_rails 1.0.1. > my config file is in /etc/mongrel_rails/config.yml > and contains: > --- > log_file: log/mongrel.log > port: 8000 > pid_file: /var/run/mongrel_cluster/mongrel.pid > servers: 2 > address: 127.0.0.1 > environment: production > > in the following post it says the init.rb script from mongrel_cluster > should create the var/run directory itself, but it does not seem to do > so ( I get the message: > !!! Path to log file not valid: log/mongrel.8001.log > mongrel::start reported an error. Use mongrel_rails mongrel::start -h > to get help) > > Also, when I manually set the pid file dir to what it used to be (the > log dir of my app) > it does not clean it up and still give the old message that a PID > already exists - i''m not sure if that''s because it''s not in /var/run > as I have seen different comments on this. > > Any help would be appreciated... > > Thanks! > Ehud. > > PS - I have also tried running mongrel_rails cluster::configure -C / > etc/mongrel_rails/config.yml again but all it did was overwrite my > file... > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >
Sean Brown
2007-May-08 21:28 UTC
[Mongrel] mongrel_cluster 1.0.1.1 does not create /var/run/mongrel_cluster
On 5/8/07, Ehud Rosenberg <ehudros at gmail.com> wrote:> > in the following post it says the init.rb script from mongrel_cluster > should create the var/run directory itself, but it does not seem to do > so ( I get the message: > !!! Path to log file not valid: log/mongrel.8001.log > mongrel::start reported an error. Use mongrel_rails mongrel::start -h > to get help)Sounds like a ownership/permissions error. Make sure that whatever user you have running mongrel_cluster also has "write" permissions to the log directory of your Rails app. If you followed the instructions on the Mongrel site, that user would be "mongrel". -- Sean Brown
Bradley Taylor
2007-May-09 14:29 UTC
[Mongrel] mongrel_cluster 1.0.1.1 does not create /var/run/mongrel_cluster
The new init.d script already does this. Look in resources/mongrel_cluster in the gem directory. Bradley Joey Geiger wrote:> I created a startup script that just creates the > /var/run/mongrel_cluster on boot, since it''s removed every time you > restart. > > > On 5/8/07, Ehud Rosenberg <ehudros at gmail.com> wrote: >> Hi everyone, >> I am going crazy over here! :) >> I just want to be able to use --clean with my mongrel_rails >> cluster::start command. >> I''ve upgraded to mongrel_cluster 1.0.1.1 and mongrel_rails 1.0.1. >> my config file is in /etc/mongrel_rails/config.yml >> and contains: >> --- >> log_file: log/mongrel.log >> port: 8000 >> pid_file: /var/run/mongrel_cluster/mongrel.pid >> servers: 2 >> address: 127.0.0.1 >> environment: production >> >> in the following post it says the init.rb script from mongrel_cluster >> should create the var/run directory itself, but it does not seem to do >> so ( I get the message: >> !!! Path to log file not valid: log/mongrel.8001.log >> mongrel::start reported an error. Use mongrel_rails mongrel::start -h >> to get help) >> >> Also, when I manually set the pid file dir to what it used to be (the >> log dir of my app) >> it does not clean it up and still give the old message that a PID >> already exists - i''m not sure if that''s because it''s not in /var/run >> as I have seen different comments on this. >> >> Any help would be appreciated... >> >> Thanks! >> Ehud. >> >> PS - I have also tried running mongrel_rails cluster::configure -C / >> etc/mongrel_rails/config.yml again but all it did was overwrite my >> file... >> >> >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users >> > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
Joey Geiger
2007-May-09 17:06 UTC
[Mongrel] mongrel_cluster 1.0.1.1 does not create /var/run/mongrel_cluster
I had an issue with the /var/run/mongrel_cluster issue as I''m not starting the cluster via the init.d script anymore. I''m using monit to start up each of the mongrels by themselves. Due to that, I need to create that directory via it''s own init.d script so it exists before monit tries to start them up... kinda hacky, but it''s working for me now. On 5/9/07, Bradley Taylor <bradley at railsmachine.com> wrote:> The new init.d script already does this. Look in > resources/mongrel_cluster in the gem directory. > > Bradley > > Joey Geiger wrote: > > I created a startup script that just creates the > > /var/run/mongrel_cluster on boot, since it''s removed every time you > > restart. > > > > > > On 5/8/07, Ehud Rosenberg <ehudros at gmail.com> wrote: > >> Hi everyone, > >> I am going crazy over here! :) > >> I just want to be able to use --clean with my mongrel_rails > >> cluster::start command. > >> I''ve upgraded to mongrel_cluster 1.0.1.1 and mongrel_rails 1.0.1. > >> my config file is in /etc/mongrel_rails/config.yml > >> and contains: > >> --- > >> log_file: log/mongrel.log > >> port: 8000 > >> pid_file: /var/run/mongrel_cluster/mongrel.pid > >> servers: 2 > >> address: 127.0.0.1 > >> environment: production > >> > >> in the following post it says the init.rb script from mongrel_cluster > >> should create the var/run directory itself, but it does not seem to do > >> so ( I get the message: > >> !!! Path to log file not valid: log/mongrel.8001.log > >> mongrel::start reported an error. Use mongrel_rails mongrel::start -h > >> to get help) > >> > >> Also, when I manually set the pid file dir to what it used to be (the > >> log dir of my app) > >> it does not clean it up and still give the old message that a PID > >> already exists - i''m not sure if that''s because it''s not in /var/run > >> as I have seen different comments on this. > >> > >> Any help would be appreciated... > >> > >> Thanks! > >> Ehud. > >> > >> PS - I have also tried running mongrel_rails cluster::configure -C / > >> etc/mongrel_rails/config.yml again but all it did was overwrite my > >> file... > >> > >> > >> _______________________________________________ > >> Mongrel-users mailing list > >> Mongrel-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/mongrel-users > >> > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >
Reasonably Related Threads
- mongrel_rails start working mongrel_rails cluster::start not working
- problem restarting mongrel_cluster outside RAILS_ROOT - patch and other option
- Mongrel Cluster 1.0.1.1 Prerelease: Healing power of the pack!
- mongrel_rails not starting
- Not all mongrel starting (Errno:EEXIST)