From lists at ruby-forum.com Mon Feb 8 01:19:33 2010 From: lists at ruby-forum.com (Daniel Spring) Date: Mon, 8 Feb 2010 07:19:33 +0100 Subject: [Mongrel] Mongrel Hanging (Apache, mod_proxy, Mongrel Cluster, Rails) In-Reply-To: <197623f00906290828p447cb6c7t509b286de9725e56@mail.gmail.com> References: <197623f00906290828p447cb6c7t509b286de9725e56@mail.gmail.com> Message-ID: <726edf761e57b25a465a9d8fe228fc5f@ruby-forum.com> Hi, Justin. Were you ever able to get this resolved? I'm currently experiencing the same behavior you describe in your post. Any help is much appreciated. -- Posted via http://www.ruby-forum.com/. From serty2 at gmail.com Mon Feb 8 09:06:41 2010 From: serty2 at gmail.com (serty2 serty2) Date: Mon, 8 Feb 2010 10:06:41 -0400 Subject: [Mongrel] Mongrel Hanging (Apache, mod_proxy, Mongrel Cluster, Rails) In-Reply-To: <726edf761e57b25a465a9d8fe228fc5f@ruby-forum.com> References: <197623f00906290828p447cb6c7t509b286de9725e56@mail.gmail.com> <726edf761e57b25a465a9d8fe228fc5f@ruby-forum.com> Message-ID: Hi Daniel, I had the same issue recently and detailled it here : http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/a53e75680a98f014/81dfbf8cbb0e7c69?lnk=raot In my case, as in Justin's IIRC , the firewall between the mongrel and the database caused the connection to drop after some time. Hope this was helpful Damien 2010/2/8 Daniel Spring > Hi, Justin. Were you ever able to get this resolved? I'm currently > experiencing the same behavior you describe in your post. Any help is > much appreciated. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Feb 8 21:03:04 2010 From: lists at ruby-forum.com (Sig Dx) Date: Tue, 9 Feb 2010 03:03:04 +0100 Subject: [Mongrel] Mongrel_service folder has different name Message-ID: <0f5c9003cf8f98b6c526008a80d4a3c4@ruby-forum.com> Hello guys, I'm trying to run a Rails up using Mongrel on a Windows machine. In the same machine I have already installed (successfully) an other Rails app that uses Mongrel as well. I din that almost 2 years ago so I don't remember exactly what I did but I guess I have followed the same steps. Now when I try to start Mongrel C:\rails_apps\freshmintapp>mongrel_rails start -e production -p 5001 I get the error below: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.4-x86-mswin32/lib/mongrel_service/init.rb (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:134:in `load' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:235:in `each' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:235:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:112:in `load' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:278 from c:/ruby/bin/mongrel_rails:16:in `load' from c:/ruby/bin/mongrel_rails:16 The first thing I did was to check out the presence of init.rb and I discovered that the folder mongrel_service-0.3.4-x86-mswin32 doesn't exist or better it has a different name: mongrel_service-0.3.4-i386-mswin32. Anyone have an idea why this is happening? How can I solve it? Thanks -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Feb 8 21:06:35 2010 From: lists at ruby-forum.com (Sig Dx) Date: Tue, 9 Feb 2010 03:06:35 +0100 Subject: [Mongrel] Mongrel_service folder has different name In-Reply-To: <0f5c9003cf8f98b6c526008a80d4a3c4@ruby-forum.com> References: <0f5c9003cf8f98b6c526008a80d4a3c4@ruby-forum.com> Message-ID: <33a4d01965d06c182d02f1b9c2cf82a0@ruby-forum.com> I forgot to mention the running app uses Rails 2.0.2 and the one I'm trying to run Rails 2.3.4 -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Tue Feb 9 05:24:58 2010 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 9 Feb 2010 11:24:58 +0100 Subject: [Mongrel] Mongrel_service folder has different name In-Reply-To: <0f5c9003cf8f98b6c526008a80d4a3c4@ruby-forum.com> References: <0f5c9003cf8f98b6c526008a80d4a3c4@ruby-forum.com> Message-ID: <71166b3b1002090224v763d0192y1a7f0fdc6626b6b5@mail.gmail.com> On Tue, Feb 9, 2010 at 3:03 AM, Sig Dx wrote: > Hello guys, > I'm trying to run a Rails up using Mongrel on a Windows machine. > In the same machine I have already installed (successfully) an other > Rails app that uses Mongrel as well. I din that almost 2 years ago so I > don't remember exactly what I did but I guess I have followed the same > steps. > > Now when I try to start Mongrel > > C:\rails_apps\freshmintapp>mongrel_rails start -e production -p 5001 > > I get the error below: > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require': no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.4-x86-mswin32/lib/mongrel_service/init.rb > (LoadError) > ? ? ? ?from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > ? ? ? ?from > c:/ruby/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:134:in > `load' > ? ? ? ?from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:235:in `each' > ? ? ? ?from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:235:in `each' > ? ? ? ?from > c:/ruby/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:112:in > `load' > ? ? ? ?from > c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:278 > ? ? ? ?from c:/ruby/bin/mongrel_rails:16:in `load' > ? ? ? ?from c:/ruby/bin/mongrel_rails:16 > > > The first thing I did was to check out the presence of init.rb and I > discovered that the folder mongrel_service-0.3.4-x86-mswin32 doesn't > exist or better it has a different name: > mongrel_service-0.3.4-i386-mswin32. > > > Anyone have an idea why this is happening? ?How can I solve it? > > Could be a bug from mongrel_service and one of its dependencies. Please remove the gem and try install it again. Also, verify you have latest gem_plugin gem installed. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Tue Feb 9 16:58:02 2010 From: lists at ruby-forum.com (Sig Dx) Date: Tue, 9 Feb 2010 22:58:02 +0100 Subject: [Mongrel] Mongrel_service folder has different name In-Reply-To: <71166b3b1002090224v763d0192y1a7f0fdc6626b6b5@mail.gmail.com> References: <0f5c9003cf8f98b6c526008a80d4a3c4@ruby-forum.com> <71166b3b1002090224v763d0192y1a7f0fdc6626b6b5@mail.gmail.com> Message-ID: <7eb8047ab6404b6ffa74e7b31b7d2b17@ruby-forum.com> Thanks but I don't want to mess up with the working application so I have simple duplicate the folder and renamed it and both apps work. It's not the best solution but works. Have a good 1! -- Posted via http://www.ruby-forum.com/. From thomas.allen at litsoftinc.com Wed Feb 17 09:36:39 2010 From: thomas.allen at litsoftinc.com (Thomas Allen) Date: Wed, 17 Feb 2010 09:36:39 -0500 Subject: [Mongrel] Some Ajax requests hang Message-ID: I have a Rails 2.2.2 site that is running on four mongrels, balanced via Apache and mod_balancer. This architecture has worked very efficiently in the past, but I'm now observing requests hanging almost indefinitely with a newer version of the site. I haven't yet been able to pin this on anything in particular, as the nature of the requests is fairly similar between the two site versions. More importantly, I don't know how to investigate the trouble further, which is why I'm writing to this list. On a given site, a particular request seems to be able to completely tie up a Mongrel. It doesn't take long before all four are tied up, rendering the site essentially unusable. Here is an example of an action which I've confirmed does this. "extjs" is a convenience function that with the provided args below simple does a render :json. This action is requested with the POST method and a single param: class DocumentController def family if params[:id] doc = Document.find(params[:id]) if doc extjs :family => doc.family else extjs :success => false end else extjs :success => false end end end class Document def family Document.all(:conditions => { :parent_id => self.parent_id }) end end The model method returns at most fewer than ten documents, and for the majority documents only the document itself, so I don't see anything that would tie up the server. The document lookup itself is very efficient and is used elsewhere with no problems. Is there anything about this action that suggests it would cause the behavior I've observed? Thanks, Thomas Allen From Dave.Walton at jax.org Wed Feb 24 12:57:36 2010 From: Dave.Walton at jax.org (Dave Walton) Date: Wed, 24 Feb 2010 12:57:36 -0500 Subject: [Mongrel] Upgraded to Ruby 1.9.1 and Mongrel now fails Message-ID: We recently upgraded to ruby 1.9.1 (in order to get new functions in the Math module). We've reinstalled Mongrel with it, and even gone so far to make some modifications to the compile (based on a post I found on one of the forums). Mongrel now fails when we try to launch it: mongrel_rails cluster::start With the message: ERROR RUNNING 'cluster::start': Plugin /cluster::start does not exist in category /commands Use help command to get help Has anyone seen this error? Is there a known fix? I saw a posting from a couple years ago about need to a: Gem cleanup mongrel_cluster ...but that doesn't appear to have made any difference. Any suggestions would be greatly appreciated. Thanks, Dave From lists at ruby-forum.com Thu Feb 25 10:31:50 2010 From: lists at ruby-forum.com (Yann Typedef) Date: Thu, 25 Feb 2010 16:31:50 +0100 Subject: [Mongrel] [problem] mongrel_cluster and rack 1.0.1 Message-ID: Hi ! I'm trying to run redmine 0.9.2 (it requires rack 1.0.1) with a mongrel_cluster. If I run ruby script/server webrick -e production -p 3000, everything is ok, redmine runs. But if I try with mongrel with appropriate conf (mongrel_cluster.yml is a link to /etc/mongrel_cluster/redmine.yml), I run into some problems : $cat /etc/mongrel_cluster/redmine.yml --- group: nginx user: mongrel log_file: /var/log/mongrel.log address: 127.0.0.1 port: "8000" cwd: /var/www/redmine environment: production pid_file: /home/mongrel/pids/mongrel.pid servers: 2 $mongrel_cluster_ctl start -c /etc/mongrel_cluster -v Starting all mongrel_clusters... mongrel_rails cluster::start -C redmine.yml -v starting port 8000 mongrel_rails start -d -e production -a 127.0.0.1 -c /var/www/redmine --user mongrel --group nginx -p 8000 -P /home/mongrel/pids/mongrel.8000.pid -l /var/log/mongrel.8000.log starting port 8001 mongrel_rails start -d -e production -a 127.0.0.1 -c /var/www/redmine --user mongrel --group nginx -p 8001 -P /home/mongrel/pids/mongrel.8001.pid -l /var/log/mongrel.8001.log $mongrel_cluster_ctl status Checking all mongrel_clusters... mongrel_rails cluster::status -C redmine.yml missing pid_file: /home/mongrel/pids/mongrel.8000.pid missing mongrel_rails: port 8000 missing pid_file: /home/mongrel/pids/mongrel.8001.pid missing mongrel_rails: port 8001 $cat /var/log/mongrel.8000.log * Daemonized, any open files are closed. Look at /home/mongrel/pids/mongrel.8000.pid and /var/log/mongrel.8000.log for info. * Starting Mongrel listening at 127.0.0.1:8000 * Initiating groups for "mongrel":"nginx". * Changing group to "nginx". * Changing user to "mongrel". * Starting Rails with production environment... /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:271:in `require_frameworks': can't activate rack (= 1.0.0, runtime) for [], already activated rack-1.0.1 for [] (RuntimeError) from /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:134:in `process' from /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `send' from /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `run' from /var/www/redmine/config/environment.rb:20 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 from /usr/bin/mongrel_rails:19:in `load' from /usr/bin/mongrel_rails:19 $gem list actionmailer (2.3.5, 2.3.3, 2.2.2) actionpack (2.3.5, 2.3.3, 2.2.2) activerecord (2.3.5, 2.3.3, 2.2.2) activeresource (2.3.5, 2.3.3, 2.2.2) activesupport (2.3.5, 2.3.3, 2.2.2) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) echoe (4.2) fastthread (1.0.7) gem_plugin (0.2.3) highline (1.5.2) json (1.2.0) mongrel (1.1.5) mongrel_cluster (1.0.5) net-sftp (2.0.1) net-ssh (2.0.6) postgres (0.7.9.2008.01.28) postgres-pr (0.6.3) rack (1.1.0, 1.0.1, 1.0.0) rails (2.3.5, 2.3.3, 2.2.2) rake (0.8.7, 0.8.3) rmagick (2.12.2, 2.8.0) rubyforge (2.0.3) sqlite3-ruby (1.2.5) $ruby --version ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-linux] if I try http://127.0.0.1:8000, I get an 'unable to connect'. I don't know if mongrel_cluster is running ok, I think not from what the logs says. Is it because mongrel requires rack 1.0.0 and redmine require 1.0.1 ? If yes, how can I fix this ? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Feb 27 22:29:52 2010 From: lists at ruby-forum.com (Hudarsono Hudarsono) Date: Sun, 28 Feb 2010 04:29:52 +0100 Subject: [Mongrel] strage mongrel cluster Message-ID: <0ec2ed68b71a071b94b00721bf77cf32@ruby-forum.com> Hi,will appreciate any advice from ruby guru : I found strange behavior on mongrel cluster. Below are my installation details : #ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] #rails -v Rails 2.3.5 I use mongrel cluster 1.0.5 on Debian lenny (5.0). Also got the same problem in ubuntu 8 LTS, with similar config. when running just mongrel , it works properly. But when I tried to use mongrel cluster, when I run : #sudo mongrel_rails cluster::configure -e production -p 8000 -N 3 -c /home/public_html/redmine -a 0.0.0.1 --user www-data --group www-data #sudo mongrel_rails cluster::start starting port 8000 starting port 8001 starting port 8002 No error messages. Then I checked with netstat -tap, there were no mongrel listening on 800x. and check with px aux | grep mongrel, also nothing. seems that there were no mongrel process running. Any help? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sun Feb 28 05:17:36 2010 From: lists at ruby-forum.com (Hudarsono Hudarsono) Date: Sun, 28 Feb 2010 11:17:36 +0100 Subject: [Mongrel] Mongrel cluster processes not starting In-Reply-To: <71166b3b0811240800j3a0f41f0ub2beb0b5235b7119@mail.gmail.com> References: <2fec85160811212323v70bd3167q100904932cfc8b70@mail.gmail.com> <71166b3b0811240800j3a0f41f0ub2beb0b5235b7119@mail.gmail.com> Message-ID: I exactly have the same problem. It happens with ubuntu 8 and also got the same problem with debian 5. When just run one mongrel, it works, but when use cluster, got that problem. Any idea? I use ruby 1.8.7, rails 2.3.5 and mongrel cluster 1.0.5 Luis Lavena wrote: > On Sat, Nov 22, 2008 at 5:23 AM, Richard McIntyre > wrote: >> starting port 8002 >> >> these, I have even tried it at 777 but I get the same results. >> >> If I add dummy pids to the directory it notices they are there and >> gives me errors on start up so it is recognizing this directory, but >> not bothering to add the pids or start up... >> >> Somebody help! >> > > Did you tried to start just one mongrel? > > mongrel_rails start > > and check if your application is not failing for other reasons. > > -- > Luis Lavena > AREA 17 > - > Human beings, who are almost unique in having the ability to learn from > the experience of others, are also remarkable for their apparent > disinclination to do so. > Douglas Adams -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Sun Feb 28 05:25:53 2010 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 28 Feb 2010 11:25:53 +0100 Subject: [Mongrel] Mongrel cluster processes not starting In-Reply-To: References: <2fec85160811212323v70bd3167q100904932cfc8b70@mail.gmail.com> <71166b3b0811240800j3a0f41f0ub2beb0b5235b7119@mail.gmail.com> Message-ID: <71166b3b1002280225t59c8521fo69d67fee7e58c42a@mail.gmail.com> On Sun, Feb 28, 2010 at 11:17 AM, Hudarsono Hudarsono wrote: > I exactly have the same problem. It happens with ubuntu 8 and also got > the same problem with debian 5. > > When just run one mongrel, it works, but when use cluster, got that > problem. Any idea? > > I use ruby 1.8.7, rails 2.3.5 and mongrel cluster 1.0.5 > I'm not aware of any issue with mongrel_cluster and 1.8.7, but there could be. What are the contents of your mongrel_cluster configuration file? -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From luislavena at gmail.com Sun Feb 28 07:05:05 2010 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 28 Feb 2010 13:05:05 +0100 Subject: [Mongrel] Upgraded to Ruby 1.9.1 and Mongrel now fails In-Reply-To: References: Message-ID: <71166b3b1002280405k9dd6af9pff7981e9bf9cf376@mail.gmail.com> On Wed, Feb 24, 2010 at 6:57 PM, Dave Walton wrote: > We recently upgraded to ruby 1.9.1 (in order to get new functions in the > Math module). ?We've reinstalled Mongrel with it, and even gone so far to > make some modifications to the compile (based on a post I found on one of > the forums). > > Mongrel now fails when we try to launch it: > mongrel_rails cluster::start > > With the message: > ERROR RUNNING 'cluster::start': Plugin /cluster::start does not exist in > category /commands > Use help command to get help > > Has anyone seen this error? ?Is there a known fix? ?I saw a posting from a > couple years ago about need to a: > Gem cleanup mongrel_cluster > Has you installed mongrel_cluster gem? I'm not aware that mongrel_cluster is compatible with Ruby 1.9.1 -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry