Matte Edens
2007-Feb-13 20:20 UTC
[Mongrel] mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
Hello all. I''ve recently installed the 0.2.2 pre-release of mongrel_cluster to try out the new --clean option. However, after installing, when I give a simple "mongrel_rails" command, the cluster::status command is not listed. The error I receive when I do try and run the full "mongrel_rails cluster::status" is... ERROR RUNNING ''cluster::status'': Plugin /cluster::status does not exist in category /commands I''m running a FreeBSD 6 VPS. here is the mongrel gem list. *** LOCAL GEMS *** mongrel (1.0.1) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps. mongrel_cluster (0.2.2, 0.2.1) Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes. I''ve rebooted the machine but to no avail. And I have confirmed that my /usr/local/bin/mongrel* commands are the current ones. Ideas? Thanx in advance matte - webmonkey matte at ruckuswireless.com
Patrick Berry
2007-Feb-13 21:44 UTC
[Mongrel] mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
On 2/13/07, Matte Edens <matte at ruckuswireless.com> wrote:> > Hello all. I''ve recently installed the 0.2.2 pre-release of > mongrel_cluster to try out the new --clean option. However, after > installing, when I give a simple "mongrel_rails" command, the > cluster::status command is not listed. The error I receive when I do > try and run the full "mongrel_rails cluster::status" is... > > ERROR RUNNING ''cluster::status'': Plugin /cluster::status does not exist > in category /commands > > I''m running a FreeBSD 6 VPS. here is the mongrel gem list. > > *** LOCAL GEMS *** > > mongrel (1.0.1) > A small fast HTTP library and server that runs Rails, Camping, Nitro > and Iowa apps. > > mongrel_cluster (0.2.2, 0.2.1) > Mongrel plugin that provides commands and Capistrano tasks for > managing multiple Mongrel processes. > > > I''ve rebooted the machine but to no avail. And I have confirmed that my > /usr/local/bin/mongrel* commands are the current ones. > > Ideas?Removing the 0.2.1 version of the gem worked for me. gem uninstall mongrel_cluster (it will prompt for which version you want to uninstall) Pat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070213/14e19ce8/attachment.html
Matte Edens
2007-Feb-13 22:59 UTC
[Mongrel] mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
Patrick Berry wrote:> On 2/13/07, *Matte Edens* <matte at ruckuswireless.com > <mailto:matte at ruckuswireless.com>> wrote: > > Hello all. I''ve recently installed the 0.2.2 pre-release of > mongrel_cluster to try out the new --clean option. However, after > installing, when I give a simple "mongrel_rails" command, the > cluster::status command is not listed. The error I receive when I do > try and run the full "mongrel_rails cluster::status" is... > > ERROR RUNNING ''cluster::status'': Plugin /cluster::status does not > exist > in category /commands > > I''m running a FreeBSD 6 VPS. here is the mongrel gem list. > > <snip> > > Ideas? > > > > Removing the 0.2.1 version of the gem worked for me. > > gem uninstall mongrel_cluster (it will prompt for which version you > want to uninstall) > > PatPerfect. Thanx Pat. I used a "gem cleanup mongrel_cluster" which worked as well but that''s more draconian since it removes ALL old instances instead of letting you pick and choose. Which is fine for me Doing that fixed the problem. Now, finding out I have to run the command from inside the directory of a running app (duh), I''m getting the following errors output... Checking 2 Mongrel servers... ps: cmd: keyword not found ps: no valid keywords; valid keywords: Lost dog: 8000 ps: cmd: keyword not found ps: no valid keywords; valid keywords: Lost dog: 8001 The following line from the "status" function is incorrect (for my system at least) ps_output = `ps -o cmd= -p #{pid}` Running that line from the command line with a valid pid file gives me this... $ ps -o cmd= -p 84086 ps: cmd: keyword not found ps: no valid keywords; valid keywords: %cpu %mem acflag acflg args blocked caught comm command cpu cputime emul etime f flags ignored inblk inblock jid jobc ktrace label lim lockname login logname lstart lwp majflt minflt msgrcv msgsnd mwchan ni nice nivcsw nlwp nsignals nsigs nswap nvcsw nwchan oublk oublock paddr pagein pcpu pending pgid pid pmem ppid pri re rgid rgroup rss rtprio ruid ruser sid sig sigcatch sigignore sigmask sl start stat state svgid svuid tdev time tpgid tsid tsiz tt tty ucomm uid upr uprocp user usrpri vsize vsz wchan xstat It works after changing the line to read... ps_output = `ps -o command -p #{pid}` I''m not successfully receiving... Checking 2 Mongrel servers... Found dog: 8000 Found dog: 8001 matte - webmonkey matte at ruckuswireless.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070213/181a79fe/attachment.html
Matte Edens
2007-Feb-13 23:44 UTC
[Mongrel] mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
Matte Edens wrote: <snip> oops. typing too fast. that line below should read... I''m _now_ succesfully receiving... matte> It works after changing the line to read... > > ps_output = `ps -o command -p #{pid}` > > I''m not successfully receiving... > > Checking 2 Mongrel servers... > Found dog: 8000 > Found dog: 8001 > > matte - webmonkey > matte at ruckuswireless.com-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070213/b6f36f65/attachment.html
Sunder Somasundaram
2007-Feb-14 00:20 UTC
[Mongrel] mongrel_cluster 0.2.2 - plugin cluster::status doesnot exist?
R -----Original Message----- From: Matte Edens <matte at ruckuswireless.com> Date: Tue, 13 Feb 2007 14:59:06 To:mongrel-users at rubyforge.org Subject: Re: [Mongrel] mongrel_cluster 0.2.2 - plugin cluster::status does not exist? Patrick Berry wrote: On 2/13/07, Matte Edens <matte at ruckuswireless.com> wrote: Hello all.??I''ve recently installed the 0.2.2 pre-release of mongrel_cluster to try out the new --clean option.??However, after installing, when I give a simple "mongrel_rails" command, the cluster::status command is not listed.??The error I receive when I do try and run the full "mongrel_rails cluster::status" is... ERROR RUNNING ''cluster::status'': Plugin /cluster::status does not exist in category /commands I''m running a FreeBSD 6 VPS.??here is the mongrel gem list. <snip> Ideas? Removing the 0.2.1 version of the gem worked for me. gem uninstall mongrel_cluster (it will prompt for which version you want to uninstall) Pat Perfect.? Thanx Pat.? I used a "gem cleanup mongrel_cluster" which worked as well but that''s more draconian since it removes ALL old instances instead of letting you pick and choose.? Which is fine for me Doing that fixed the problem.? Now, finding out I have to run the command from inside the directory of a running app (duh), I''m getting the following errors output... Checking 2 Mongrel servers... ps: cmd: keyword not found ps: no valid keywords; valid keywords: Lost dog: 8000 ps: cmd: keyword not found ps: no valid keywords; valid keywords: Lost dog: 8001 The following line from the "status" function is incorrect (for my system at least) ps_output = `ps -o cmd= -p #{pid}` Running that line from the command line with a valid pid file gives me this... $ ps -o cmd= -p 84086 ps: cmd: keyword not found ps: no valid keywords; valid keywords: %cpu %mem acflag acflg args blocked caught comm command cpu cputime emul etime f flags ignored inblk inblock jid jobc ktrace label lim lockname login logname lstart lwp majflt minflt msgrcv msgsnd mwchan ni nice nivcsw nlwp nsignals nsigs nswap nvcsw nwchan oublk oublock paddr pagein pcpu pending pgid pid pmem ppid pri re rgid rgroup rss rtprio ruid ruser sid sig sigcatch sigignore sigmask sl start stat state svgid svuid tdev time tpgid tsid tsiz tt tty ucomm uid upr uprocp user usrpri vsize vsz wchan xstat It works after changing the line to read... ps_output = `ps -o command -p #{pid}` I''m not successfully receiving... Checking 2 Mongrel servers... Found dog: 8000 Found dog: 8001 matte - webmonkey matte at ruckuswireless.com: <mailto:matte at ruckuswireless.com> _______________________________________________ Mongrel-users mailing list Mongrel-users at rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users
Bradley Taylor
2007-Feb-14 00:44 UTC
[Mongrel] mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
Hi Matte: Thanks for trying status out on a BSD system. The command below works on linux, but doesn''t return the same output: bradley at machctl:~$ ps -o cmd= -p 17145 bash bradley at machctl:~$ ps -o command -p 17145 COMMAND bash I''ll see if I can make that ps call a little less linux-specific. In the mean time, I''m open to suggestions/patches from someone who can test on both. Regards, Bradley> > It works after changing the line to read... > > ps_output = `ps -o command -p #{pid}` >
Bradley Taylor
2007-Feb-14 00:56 UTC
[Mongrel] mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
I''m an idiot and didn''t notice the missing ''=''. bradley at machctl:~$ ps -o command= -p 17145 bash bradley at machctl:~$ ps -o cmd= -p 17145 bash Matte, could you please verify the above on your FreeBSD server? Thanks, Bradley Bradley Taylor wrote:> Hi Matte: > > Thanks for trying status out on a BSD system. The command below works on > linux, but doesn''t return the same output: > > bradley at machctl:~$ ps -o cmd= -p 17145 > bash > > bradley at machctl:~$ ps -o command -p 17145 > COMMAND > bash > > I''ll see if I can make that ps call a little less linux-specific. In the > mean time, I''m open to suggestions/patches from someone who can test on > both. > > Regards, > Bradley > >> It works after changing the line to read... >> >> ps_output = `ps -o command -p #{pid}` >> > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users