From mikebannister at gmail.com Fri Jun 1 15:12:38 2007 From: mikebannister at gmail.com (Michael Bannister) Date: Fri, 1 Jun 2007 15:12:38 -0400 Subject: [Mongrel] LoadError on 'initializer' when starting Mongrel Message-ID: Hi all... When I start Mongrel I get a LoadError. I use the command > sudo mongrel_rails cluster::start -C /path/to/mongrel_cluster.yml and it says > Starting 2 Mongrel servers... but in the log I see this error: ** Starting Rails with production environment... /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- /usr/local/www/weposs/current/config/../vendor/rails/railties/lib/initializer (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/local/www/weposs/current/config/boot.rb:16 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/local/www/weposs/current/config/environment.rb:11 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' from /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:155:in `rails' ... 8 levels... from /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' from /var/lib/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 from /bin/mongrel_rails:18:in `load' from /bin/mongrel_rails:18 Any help you can offer in fixing this would be so appreciated! Thanks in advance. -Mike From wayneeseguin at gmail.com Fri Jun 1 17:23:07 2007 From: wayneeseguin at gmail.com (Wayne E. Seguin) Date: Fri, 1 Jun 2007 17:23:07 -0400 Subject: [Mongrel] LoadError on 'initializer' when starting Mongrel In-Reply-To: References: Message-ID: <9D30F988-9BA7-4EBD-A2B4-A24CD41BB473@gmail.com> On Jun 01, 2007, at 15:12 , Michael Bannister wrote: > Hi all... > > When I start Mongrel I get a LoadError. I use the command > >> sudo mongrel_rails cluster::start -C /path/to/mongrel_cluster.yml > > and it says > >> Starting 2 Mongrel servers... > > but in the log I see this error: > > ** Starting Rails with production environment... > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require': no such file to load -- > /usr/local/www/weposs/current/config/../vendor/rails/railties/lib/ > initializer > (LoadError) > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /usr/local/www/weposs/current/config/boot.rb:16 > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /usr/local/www/weposs/current/config/environment.rb:11 > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > rails.rb:155:in > `rails' > ... 8 levels... > from /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in > `run' > from /var/lib/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 243 > from /bin/mongrel_rails:18:in `load' > from /bin/mongrel_rails:18 > > Any help you can offer in fixing this would be so appreciated! Thanks > in advance. > > -Mike > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users It appears that you are missing a required file, most likely a gem. Be sure that the system has all the correct gems installed for your application. Also for more information start mongrel_rails with the -B flag to enable debugging. then check the directory mongrel creates within log for more information, also check the mongrel logs themselves. -- Wayne E. Seguin Sr. Systems Architect & Systems Admin wayneseguin at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070601/c3da5b26/attachment-0001.html From luislavena at gmail.com Sun Jun 3 11:36:32 2007 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 3 Jun 2007 12:36:32 -0300 Subject: [Mongrel] [ANN] - mongrel_service 0.3.2 Message-ID: <71166b3b0706030836p5a24add9l6f68a1c03a350146@mail.gmail.com> Hello Mongrel Users! This announce is for Windows users of Mongrel! ;-) I have uploaded a new gem solving a few issues with services. * Services didn't install on x64 versions of Windows (Server 2003, XP or Vista). * It should no longer depend on Ruby being installed in the PATH * It also allow you have Ruby or your application in any path, including ones with spaces (sorry about that!) :-P Also, I'll like to notice a few issues with current mysql (5.0.41 and 5.0.42 for Windows): http://rubyforge.org/pipermail/mongrel-users/2007-May/003612.html This describe a issue with current mysql driver that could block mongrel_service from being stopped correctly. Also could leave the child ruby process orphaned in the system, blocking the ports used for the service, so trying to start it again will fail. NOTE: This is not a mongrel_service issue, but mysql-specific. Regards and good weekend everybody! -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi From mikebannister at gmail.com Sun Jun 3 14:16:32 2007 From: mikebannister at gmail.com (Michael Bannister) Date: Sun, 3 Jun 2007 14:16:32 -0400 Subject: [Mongrel] mongrel cluster w/ apache Message-ID: hi all, i'm working on deploying my app w/ apache and a mongrel cluster. i've started by copying the instructions and code from the agile rails book and everything seems to be working fine but apache isn't forwarding my requests to mongrel the way i expect it should. there's nothing in the rewrite logs and nothing but 404 errors in the apache error logs. http://127.0.0.1:8000/railsaction/railsmethod ...loads up my app in mongrel so all is fine there. i'm thinking apache should have no problem when i browse to: http://elsewhere.thealarmlights.net:555/railsaction/railsmethod i get 404 errors... is there some special incantation necessary to make this work? the relevant parts of my apache config follow: BalancerMember http://127.0.0.1:8000 BalancerMember http://127.0.0.1:8001 ServerName thealarmlights.net DocumentRoot /usr/local/www/weposs/current/public Options FollowSymLinks AllowOverride None Order allow,deny Allow from all RewriteEngine On RewriteLog logs/weposs_rewrite_log RewriteLogLevel 9 # Check for maintenance file and redirect all requests RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] # Rewrite index to check for static RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] if anyone can help me sort this i'd appreciate it so much. i worked so hard to get this far (and learned a lot) but i'm stuck pretty bad at this point. thanks. -mike bannister From pberry at gmail.com Sun Jun 3 14:33:23 2007 From: pberry at gmail.com (Patrick Berry) Date: Sun, 3 Jun 2007 11:33:23 -0700 Subject: [Mongrel] mongrel cluster w/ apache In-Reply-To: References: Message-ID: Are named virtual hosts enabled in the main httpd.conf? On 6/3/07, Michael Bannister wrote: > > hi all, > > i'm working on deploying my app w/ apache and a mongrel cluster. i've > started by copying the instructions and code from the agile rails book > and everything seems to be working fine but apache isn't forwarding my > requests to mongrel the way i expect it should. there's nothing in the > rewrite logs and nothing but 404 errors in the apache error logs. > > http://127.0.0.1:8000/railsaction/railsmethod > > ...loads up my app in mongrel so all is fine there. i'm thinking > apache should have no problem when i browse to: > > http://elsewhere.thealarmlights.net:555/railsaction/railsmethod > > i get 404 errors... > > is there some special incantation necessary to make this work? > > the relevant parts of my apache config follow: > > > BalancerMember http://127.0.0.1:8000 > BalancerMember http://127.0.0.1:8001 > > > ServerName thealarmlights.net > DocumentRoot /usr/local/www/weposs/current/public > > Options FollowSymLinks > AllowOverride None > Order allow,deny > Allow from all > > RewriteEngine On > RewriteLog logs/weposs_rewrite_log > RewriteLogLevel 9 > # Check for maintenance file and redirect all requests > RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f > RewriteCond %{SCRIPT_FILENAME} !maintenance.html > RewriteRule ^.*$ /system/maintenance.html [L] > # Rewrite index to check for static > RewriteRule ^/$ /index.html [QSA] > # Rewrite to check for Rails cached page > RewriteRule ^([^.]+)$ $1.html [QSA] > # Redirect all non-static requests to cluster > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f > RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] > > > if anyone can help me sort this i'd appreciate it so much. i worked so > hard to get this far (and learned a lot) but i'm stuck pretty bad at > this point. > > thanks. > > -mike bannister > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070603/78a48905/attachment.html From mikebannister at gmail.com Sun Jun 3 14:38:59 2007 From: mikebannister at gmail.com (Michael Bannister) Date: Sun, 3 Jun 2007 14:38:59 -0400 Subject: [Mongrel] mongrel cluster w/ apache In-Reply-To: References: Message-ID: No, I don't have any in there. The apache conf is pretty much the default other than what I pasted. On 6/3/07, Patrick Berry wrote: > Are named virtual hosts enabled in the main httpd.conf? > > > On 6/3/07, Michael Bannister wrote: > > > > hi all, > > > > i'm working on deploying my app w/ apache and a mongrel cluster. i've > > started by copying the instructions and code from the agile rails book > > and everything seems to be working fine but apache isn't forwarding my > > requests to mongrel the way i expect it should. there's nothing in the > > rewrite logs and nothing but 404 errors in the apache error logs. > > > > http://127.0.0.1:8000/railsaction/railsmethod > > > > ...loads up my app in mongrel so all is fine there. i'm thinking > > apache should have no problem when i browse to: > > > > > http://elsewhere.thealarmlights.net:555/railsaction/railsmethod > > > > i get 404 errors... > > > > is there some special incantation necessary to make this work? > > > > the relevant parts of my apache config follow: > > > > > > BalancerMember http://127.0.0.1:8000 > > BalancerMember http://127.0.0.1:8001 > > > > > > ServerName thealarmlights.net > > DocumentRoot /usr/local/www/weposs/current/public > > > > Options FollowSymLinks > > AllowOverride None > > Order allow,deny > > Allow from all > > > > RewriteEngine On > > RewriteLog logs/weposs_rewrite_log > > RewriteLogLevel 9 > > # Check for maintenance file and redirect all requests > > RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html > -f > > RewriteCond %{SCRIPT_FILENAME} !maintenance.html > > RewriteRule ^.*$ /system/maintenance.html [L] > > # Rewrite index to check for static > > RewriteRule ^/$ /index.html [QSA] > > # Rewrite to check for Rails cached page > > RewriteRule ^([^.]+)$ $1.html [QSA] > > # Redirect all non-static requests to cluster > > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f > > RewriteRule ^/(.*)$ > balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] > > > > > > if anyone can help me sort this i'd appreciate it so much. i worked so > > hard to get this far (and learned a lot) but i'm stuck pretty bad at > > this point. > > > > thanks. > > > > -mike bannister > > _______________________________________________ > > 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 > From pberry at gmail.com Sun Jun 3 14:52:04 2007 From: pberry at gmail.com (Patrick Berry) Date: Sun, 3 Jun 2007 11:52:04 -0700 Subject: [Mongrel] mongrel cluster w/ apache In-Reply-To: References: Message-ID: Okay, your vhost config (specifically the *:555 part) depends on it being set. Definitely check out: http://httpd.apache.org/docs/2.2/vhosts/name-based.html On 6/3/07, Michael Bannister wrote: > > No, I don't have any in there. The apache conf is pretty much the > default other than what I pasted. > > On 6/3/07, Patrick Berry wrote: > > Are named virtual hosts enabled in the main httpd.conf? > > > > > > On 6/3/07, Michael Bannister wrote: > > > > > > hi all, > > > > > > i'm working on deploying my app w/ apache and a mongrel cluster. i've > > > started by copying the instructions and code from the agile rails book > > > and everything seems to be working fine but apache isn't forwarding my > > > requests to mongrel the way i expect it should. there's nothing in the > > > rewrite logs and nothing but 404 errors in the apache error logs. > > > > > > http://127.0.0.1:8000/railsaction/railsmethod > > > > > > ...loads up my app in mongrel so all is fine there. i'm thinking > > > apache should have no problem when i browse to: > > > > > > > > http://elsewhere.thealarmlights.net:555/railsaction/railsmethod > > > > > > i get 404 errors... > > > > > > is there some special incantation necessary to make this work? > > > > > > the relevant parts of my apache config follow: > > > > > > > > > BalancerMember http://127.0.0.1:8000 > > > BalancerMember http://127.0.0.1:8001 > > > > > > > > > ServerName thealarmlights.net > > > DocumentRoot /usr/local/www/weposs/current/public > > > > > > Options FollowSymLinks > > > AllowOverride None > > > Order allow,deny > > > Allow from all > > > > > > RewriteEngine On > > > RewriteLog logs/weposs_rewrite_log > > > RewriteLogLevel 9 > > > # Check for maintenance file and redirect all requests > > > RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html > > -f > > > RewriteCond %{SCRIPT_FILENAME} !maintenance.html > > > RewriteRule ^.*$ /system/maintenance.html [L] > > > # Rewrite index to check for static > > > RewriteRule ^/$ /index.html [QSA] > > > # Rewrite to check for Rails cached page > > > RewriteRule ^([^.]+)$ $1.html [QSA] > > > # Redirect all non-static requests to cluster > > > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f > > > RewriteRule ^/(.*)$ > > balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] > > > > > > > > > if anyone can help me sort this i'd appreciate it so much. i worked so > > > hard to get this far (and learned a lot) but i'm stuck pretty bad at > > > this point. > > > > > > thanks. > > > > > > -mike bannister > > > _______________________________________________ > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070603/8ab0a217/attachment.html From mikebannister at gmail.com Sun Jun 3 16:03:34 2007 From: mikebannister at gmail.com (Michael Bannister) Date: Sun, 3 Jun 2007 16:03:34 -0400 Subject: [Mongrel] mongrel cluster w/ apache In-Reply-To: References: Message-ID: cool, this seemed to help a lot. my requests are getting rewritten and if i don't type a controller name it loads the rails intro page. problem now is when i do specify a controller and action i my request is forbidden. the error log message looks like this: [Sun Jun 03 15:57:59 2007] [error] [client 70.198.82.115] client denied by server configuration: proxy:balancer://mongrel_cluster/controllername/actionname thanks so much for getting me this far...can you recommend what i need to do to get over this hump? thanks patrick peace, mike On 6/3/07, Patrick Berry wrote: > Okay, your vhost config (specifically the *:555 part) depends on it being > set. Definitely check out: > http://httpd.apache.org/docs/2.2/vhosts/name-based.html > > > > > On 6/3/07, Michael Bannister wrote: > > No, I don't have any in there. The apache conf is pretty much the > > default other than what I pasted. > > > > On 6/3/07, Patrick Berry wrote: > > > Are named virtual hosts enabled in the main httpd.conf? > > > > > > > > > On 6/3/07, Michael Bannister wrote: > > > > > > > > hi all, > > > > > > > > i'm working on deploying my app w/ apache and a mongrel cluster. i've > > > > started by copying the instructions and code from the agile rails book > > > > and everything seems to be working fine but apache isn't forwarding my > > > > requests to mongrel the way i expect it should. there's nothing in the > > > > rewrite logs and nothing but 404 errors in the apache error logs. > > > > > > > > http://127.0.0.1:8000/railsaction/railsmethod > > > > > > > > ...loads up my app in mongrel so all is fine there. i'm thinking > > > > apache should have no problem when i browse to: > > > > > > > > > > > > http://elsewhere.thealarmlights.net:555/railsaction/railsmethod > > > > > > > > i get 404 errors... > > > > > > > > is there some special incantation necessary to make this work? > > > > > > > > the relevant parts of my apache config follow: > > > > > > > > > > > > BalancerMember http://127.0.0.1:8000 > > > > BalancerMember http://127.0.0.1:8001 > > > > > > > > > > > > ServerName thealarmlights.net > > > > DocumentRoot /usr/local/www/weposs/current/public > > > > > > > > Options FollowSymLinks > > > > AllowOverride None > > > > Order allow,deny > > > > Allow from all > > > > > > > > RewriteEngine On > > > > RewriteLog logs/weposs_rewrite_log > > > > RewriteLogLevel 9 > > > > # Check for maintenance file and redirect all requests > > > > RewriteCond > %{DOCUMENT_ROOT}/system/maintenance.html > > > -f > > > > RewriteCond %{SCRIPT_FILENAME} !maintenance.html > > > > RewriteRule ^.*$ /system/maintenance.html [L] > > > > # Rewrite index to check for static > > > > RewriteRule ^/$ /index.html [QSA] > > > > # Rewrite to check for Rails cached page > > > > RewriteRule ^([^.]+)$ $1.html [QSA] > > > > # Redirect all non-static requests to cluster > > > > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} > !-f > > > > RewriteRule ^/(.*)$ > > > balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] > > > > > > > > > > > > if anyone can help me sort this i'd appreciate it so much. i worked so > > > > hard to get this far (and learned a lot) but i'm stuck pretty bad at > > > > this point. > > > > > > > > thanks. > > > > > > > > -mike bannister > > > > _______________________________________________ > > > > 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 > > > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > From pberry at gmail.com Sun Jun 3 16:39:41 2007 From: pberry at gmail.com (Patrick Berry) Date: Sun, 3 Jun 2007 13:39:41 -0700 Subject: [Mongrel] mongrel cluster w/ apache In-Reply-To: References: Message-ID: With the vhost thing cleared up, I would start with the "simple" apache config in the mongrel docs: http://mongrel.rubyforge.org/docs/apache.html Work up from there to the advanced. It should give you a much better understanding of what bits of the config are doing what. Pat On 6/3/07, Michael Bannister wrote: > > cool, this seemed to help a lot. my requests are getting rewritten and > if i don't type a controller name it loads the rails intro page. > problem now is when i do specify a controller and action i my request > is forbidden. the error log message looks like this: > > [Sun Jun 03 15:57:59 2007] [error] [client 70.198.82.115] client > denied by server configuration: > proxy:balancer://mongrel_cluster/controllername/actionname > > thanks so much for getting me this far...can you recommend what i need > to do to get over this hump? > > thanks patrick > > peace, > mike > > On 6/3/07, Patrick Berry wrote: > > Okay, your vhost config (specifically the *:555 part) depends on it > being > > set. Definitely check out: > > http://httpd.apache.org/docs/2.2/vhosts/name-based.html > > > > > > > > > > On 6/3/07, Michael Bannister wrote: > > > No, I don't have any in there. The apache conf is pretty much the > > > default other than what I pasted. > > > > > > On 6/3/07, Patrick Berry wrote: > > > > Are named virtual hosts enabled in the main httpd.conf? > > > > > > > > > > > > On 6/3/07, Michael Bannister wrote: > > > > > > > > > > hi all, > > > > > > > > > > i'm working on deploying my app w/ apache and a mongrel cluster. > i've > > > > > started by copying the instructions and code from the agile rails > book > > > > > and everything seems to be working fine but apache isn't > forwarding my > > > > > requests to mongrel the way i expect it should. there's nothing in > the > > > > > rewrite logs and nothing but 404 errors in the apache error logs. > > > > > > > > > > http://127.0.0.1:8000/railsaction/railsmethod > > > > > > > > > > ...loads up my app in mongrel so all is fine there. i'm thinking > > > > > apache should have no problem when i browse to: > > > > > > > > > > > > > > > > http://elsewhere.thealarmlights.net:555/railsaction/railsmethod > > > > > > > > > > i get 404 errors... > > > > > > > > > > is there some special incantation necessary to make this work? > > > > > > > > > > the relevant parts of my apache config follow: > > > > > > > > > > > > > > > BalancerMember http://127.0.0.1:8000 > > > > > BalancerMember http://127.0.0.1:8001 > > > > > > > > > > > > > > > ServerName thealarmlights.net > > > > > DocumentRoot /usr/local/www/weposs/current/public > > > > > > > > > > Options FollowSymLinks > > > > > AllowOverride None > > > > > Order allow,deny > > > > > Allow from all > > > > > > > > > > RewriteEngine On > > > > > RewriteLog logs/weposs_rewrite_log > > > > > RewriteLogLevel 9 > > > > > # Check for maintenance file and redirect all requests > > > > > RewriteCond > > %{DOCUMENT_ROOT}/system/maintenance.html > > > > -f > > > > > RewriteCond %{SCRIPT_FILENAME} !maintenance.html > > > > > RewriteRule ^.*$ /system/maintenance.html [L] > > > > > # Rewrite index to check for static > > > > > RewriteRule ^/$ /index.html [QSA] > > > > > # Rewrite to check for Rails cached page > > > > > RewriteRule ^([^.]+)$ $1.html [QSA] > > > > > # Redirect all non-static requests to cluster > > > > > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} > > !-f > > > > > RewriteRule ^/(.*)$ > > > > balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] > > > > > > > > > > > > > > > if anyone can help me sort this i'd appreciate it so much. i > worked so > > > > > hard to get this far (and learned a lot) but i'm stuck pretty bad > at > > > > > this point. > > > > > > > > > > thanks. > > > > > > > > > > -mike bannister > > > > > _______________________________________________ > > > > > 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 > > > > > > > > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070603/073241c5/attachment.html From craig at itpartners.co.nz Mon Jun 4 04:45:51 2007 From: craig at itpartners.co.nz (Craig Box) Date: Mon, 4 Jun 2007 20:45:51 +1200 Subject: [Mongrel] mongrel cluster w/ apache References: Message-ID: <961FDD8E38C3954F9FAD21DA1BBC2E431DF3@penfold.itpartners.co.nz> > [Sun Jun 03 15:57:59 2007] [error] [client 70.198.82.115] client > denied by server configuration: > proxy:balancer://mongrel_cluster/controllername/actionname Do you have something like Order allow,deny Allow from all set on your virtual host? If not, the default action for Apache tends to be to deny proxy access. Craig From scott.mcnab at gmail.com Mon Jun 4 09:01:54 2007 From: scott.mcnab at gmail.com (Scott McNab) Date: Mon, 4 Jun 2007 21:01:54 +0800 Subject: [Mongrel] Bug in Configurator.change_privilege? Message-ID: <4b06455b0706040601n324e3e75y4a73fc393086d9de@mail.gmail.com> Hello. I have discovered that mongrel does not correctly take on all the groups of the requested user/group combination. It seems that while the specified user and group is correctly activated, all the other groups that are associated with this user are not enabled and the group permissions remain the same as the caller (i.e. root). This problem (and solution) is discussed in the Ruby Forum: http://www.ruby-forum.com/topic/110492 It seems that Process.initgroups needs to be called in order for the user's group permissions to be properly activated. I have a fix that involves making a slight addition to mongrel-1.0.1/lib/mongrel/configurator.rb as follows: --- configurator.rb.orig 2007-05-28 04:22:11.000000000 -0400 +++ configurator.rb 2007-05-28 04:11:02.000000000 -0400 @@ -55,6 +55,11 @@ # Change privilege of the process to specified user and group. def change_privilege(user, group) begin + if group && user + log "Initialising groups for {#user}:{#group}." + Process.initgroups(user,Etc.getgrnam(group).gid) + end + if group log "Changing group to #{group}." Process::GID.change_privilege(Etc.getgrnam(group).gid) To confirm this is an appropriate fix, I took a look at the source for the linux coreutils 'su' command, which is very similar: /* Become the user and group(s) specified by PW. */ static void change_identity (const struct passwd *pw) { #ifdef HAVE_INITGROUPS errno = 0; if (initgroups (pw->pw_name, pw->pw_gid) == -1) error (EXIT_FAIL, errno, _("cannot set groups")); endgrent (); #endif if (setgid (pw->pw_gid)) error (EXIT_FAIL, errno, _("cannot set group id")); if (setuid (pw->pw_uid)) error (EXIT_FAIL, errno, _("cannot set user id")); } This patch seems to solve the problem for me - Can someone please review this for possible inclusion in the main mongrel source tree? Thanks, Scott From jesse at jesseclark.com Tue Jun 5 14:15:47 2007 From: jesse at jesseclark.com (Jesse Clark) Date: Tue, 05 Jun 2007 11:15:47 -0700 Subject: [Mongrel] uninitialized constant RailsHandler::Dispatcher Message-ID: <4665A853.5010607@jesseclark.com> Hello, I am running in to an error trying to run mongrel. The server starts but then trying to access any url in my application throws this error: calling Dispatcher.dispatch uninitialized constant RailsHandler::Dispatcher ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:477:in `const_missing' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:75:in `process' ... see full trace at: http://pastie.caboo.se/68007 If I force webrick the app works fine. When I google this error all I find is one instance of the same stack trace on a page in Japanese. I am using: mongrel (0.3.3) rails (1.2.3) Any help or suggestions would be much appreciated. Thanks, -Jesse From michael.dauria at gmail.com Tue Jun 5 16:47:21 2007 From: michael.dauria at gmail.com (Michael D'Auria) Date: Tue, 5 Jun 2007 16:47:21 -0400 Subject: [Mongrel] uninitialized constant RailsHandler::Dispatcher In-Reply-To: <4665A853.5010607@jesseclark.com> References: <4665A853.5010607@jesseclark.com> Message-ID: <1907e2ca0706051347k31d0ffe0lc0eb3b64a8750f98@mail.gmail.com> Jesse, You should upgrade to a newer version of Mongrel, you seem to have a very old version. - Michael On 6/5/07, Jesse Clark wrote: > > Hello, > > I am running in to an error trying to run mongrel. The server starts but > then trying to access any url in my application throws this error: > > calling Dispatcher.dispatch uninitialized constant > RailsHandler::Dispatcher > > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:477:in > `const_missing' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:75:in > `process' > ... > > see full trace at: http://pastie.caboo.se/68007 > > If I force webrick the app works fine. > > When I google this error all I find is one instance of the same stack > trace on a page in Japanese. > > I am using: > mongrel (0.3.3) > rails (1.2.3) > > Any help or suggestions would be much appreciated. > > Thanks, > -Jesse > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070605/abdd244a/attachment.html From chao at nextsmallthings.com Tue Jun 5 16:52:14 2007 From: chao at nextsmallthings.com (Chih Chao Lam) Date: Tue, 5 Jun 2007 13:52:14 -0700 Subject: [Mongrel] Mongrel/Apache mod_deflate question Message-ID: <446C6C27-7C33-4B29-9EC2-C4977BC42245@coolchaser.com> Hi Folks, We're moving from a single lighttpd-hosted Rails box to a Apache/ mongrel cluster. In lighttpd, mod_compress had a very nice feature: if there's a static file, it would compress it in a user-specified compress folder. If the file hasn't changed, it would just serve out the compress file; if the file has changed, it would recompress it and serve it out. Is there such a deployment option in Apache? Also, I read in the "best practices" Apache/mongrel doc of the use of mod_memcache and mod_cache. But I don't see it configuration scripts associated with it. Anyone using these modules care to comment? Is it possible to use mod_cache in association with mod_deflate to accomplish what mod_compress does in lighttpd? Thanks! chao From jesse at jesseclark.com Tue Jun 5 17:22:32 2007 From: jesse at jesseclark.com (Jesse Clark) Date: Tue, 05 Jun 2007 14:22:32 -0700 Subject: [Mongrel] uninitialized constant RailsHandler::Dispatcher In-Reply-To: <1907e2ca0706051347k31d0ffe0lc0eb3b64a8750f98@mail.gmail.com> References: <4665A853.5010607@jesseclark.com> <1907e2ca0706051347k31d0ffe0lc0eb3b64a8750f98@mail.gmail.com> Message-ID: <4665D418.2040102@jesseclark.com> Thanks, Michael. I was doing a fresh install of ruby & etc. and without thinking about it much I installed the latest version of ruby: 1.8.6; not noticing that the mongrel home page says right up top: "|You need Ruby 1.8.4 just like the gem says you do." I have installed 1.8.4 and reinstalled gems and now when I gem install mongrel I get the correct version. Pioneers get shot full of arrows... Thanks again, -Jesse |||||| | Michael D'Auria wrote: > Jesse, > > You should upgrade to a newer version of Mongrel, you seem to have a > very old version. > > - Michael > > > On 6/5/07, *Jesse Clark* > wrote: > > Hello, > > I am running in to an error trying to run mongrel. The server > starts but > then trying to access any url in my application throws this error: > > calling Dispatcher.dispatch uninitialized constant > RailsHandler::Dispatcher > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:477:in > `const_missing' > /usr/lib/ruby/gems/1.8/gems/mongrel- 0.3.3/bin/mongrel_rails:75:in > `process' > ... > > see full trace at: http://pastie.caboo.se/68007 > > If I force webrick the app works fine. > > When I google this error all I find is one instance of the same stack > trace on a page in Japanese. > > I am using: > mongrel (0.3.3) > rails (1.2.3) > > Any help or suggestions would be much appreciated. > > Thanks, > -Jesse > > > _______________________________________________ > 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 From shodson at gmail.com Tue Jun 5 19:19:46 2007 From: shodson at gmail.com (Scott Hodson) Date: Tue, 5 Jun 2007 16:19:46 -0700 Subject: [Mongrel] Mongrel/Apache mod_deflate question In-Reply-To: <446C6C27-7C33-4B29-9EC2-C4977BC42245@coolchaser.com> References: <446C6C27-7C33-4B29-9EC2-C4977BC42245@coolchaser.com> Message-ID: <3eb4ce590706051619t37a914c3w82a42bf72a1ac0e7@mail.gmail.com> You probably want mod_deflate http://httpd.apache.org/docs/2.0/mod/mod_deflate.html On 6/5/07, Chih Chao Lam wrote: > > Hi Folks, > > We're moving from a single lighttpd-hosted Rails box to a Apache/ > mongrel cluster. > > In lighttpd, mod_compress had a very nice feature: > if there's a static file, it would compress it in a user-specified > compress folder. If the file hasn't changed, it would just serve out > the compress file; if the file has changed, it would recompress it > and serve it out. > > Is there such a deployment option in Apache? > > Also, I read in the "best practices" Apache/mongrel doc mongrel.rubyforge.org/docs/apache.html> of the use of mod_memcache > and mod_cache. But I don't see it configuration scripts associated > with it. Anyone using these modules care to comment? Is it possible > to use mod_cache in association with mod_deflate to accomplish what > mod_compress does in lighttpd? > > Thanks! > chao > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070605/239dc85c/attachment.html From jackc at hylesanderson.edu Wed Jun 6 08:55:42 2007 From: jackc at hylesanderson.edu (Jack Christensen) Date: Wed, 06 Jun 2007 07:55:42 -0500 Subject: [Mongrel] uninitialized constant RailsHandler::Dispatcher In-Reply-To: <4665D418.2040102@jesseclark.com> References: <4665A853.5010607@jesseclark.com> <1907e2ca0706051347k31d0ffe0lc0eb3b64a8750f98@mail.gmail.com> <4665D418.2040102@jesseclark.com> Message-ID: <4666AECE.4060209@hylesanderson.edu> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070606/dfc79fed/attachment.html From jesse at jesseclark.com Wed Jun 6 11:47:14 2007 From: jesse at jesseclark.com (Jesse Clark) Date: Wed, 06 Jun 2007 08:47:14 -0700 Subject: [Mongrel] uninitialized constant RailsHandler::Dispatcher In-Reply-To: <4666AECE.4060209@hylesanderson.edu> References: <4665A853.5010607@jesseclark.com> <1907e2ca0706051347k31d0ffe0lc0eb3b64a8750f98@mail.gmail.com> <4665D418.2040102@jesseclark.com> <4666AECE.4060209@hylesanderson.edu> Message-ID: <4666D702.2070904@jesseclark.com> That is odd. 'gem query mongrel -remote' with 1.8.6 installed only listed mongrel 0.3.3 as the latest available version. When I reinstalled 1.8.4 the latest version of mongrel was then available to gem install. Jack Christensen wrote: > Jesse Clark wrote: >> Thanks, Michael. >> >> I was doing a fresh install of ruby & etc. and without thinking about it >> much I installed the latest version of ruby: 1.8.6; not noticing that >> the mongrel home page says right up top: "|You need Ruby 1.8.4 just like >> the gem says you do." >> >> I have installed 1.8.4 and reinstalled gems and now when I gem install >> mongrel I get the correct version. >> >> Pioneers get shot full of arrows... >> > > Hmm. I'm running Ruby 1.8.6 and gem installed mongrel 1.0.1 for me. > Been working fine for about a month... > > Jack >> Thanks again, >> -Jesse >> |||||| >> >> | >> Michael D'Auria wrote: >> >>> Jesse, >>> >>> You should upgrade to a newer version of Mongrel, you seem to have a >>> very old version. >>> >>> - Michael >>> >>> >>> On 6/5/07, *Jesse Clark* >> > wrote: >>> >>> Hello, >>> >>> I am running in to an error trying to run mongrel. The server >>> starts but >>> then trying to access any url in my application throws this error: >>> >>> calling Dispatcher.dispatch uninitialized constant >>> RailsHandler::Dispatcher >>> ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:477:in >>> `const_missing' >>> /usr/lib/ruby/gems/1.8/gems/mongrel- 0.3.3/bin/mongrel_rails:75:in >>> `process' >>> ... >>> >>> see full trace at: http://pastie.caboo.se/68007 >>> >>> If I force webrick the app works fine. >>> >>> When I google this error all I find is one instance of the same stack >>> trace on a page in Japanese. >>> >>> I am using: >>> mongrel (0.3.3) >>> rails (1.2.3) >>> >>> Any help or suggestions would be much appreciated. >>> >>> Thanks, >>> -Jesse >>> >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > Jack Christensen > jackc at hylesanderson.edu > ------------------------------------------------------------------------ > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users From elpelicano at gmail.com Sun Jun 10 13:40:14 2007 From: elpelicano at gmail.com (Arthur Pelicano) Date: Sun, 10 Jun 2007 19:40:14 +0200 Subject: [Mongrel] pb when posting to an action "render_text body, :status => 400" Message-ID: <4d3a31690706101040l777eacc6q37724cf3342d3aaa@mail.gmail.com> Hi, I'm trying to do a little openid-server in rails. I encounter a very strange problem for me, you can see all the story in the openid mailing-list : http://lists.openidenabled.com/pipermail/dev/2007-May/000666.html http://lists.openidenabled.com/pipermail/dev/2007-June/000700.html In short, the problem is : the server has to do a "render_text body, :status => 400" to respond to a post from a consumer. (this is from the openid server example) This is working fine with webrick, but not in mongrel 1.0.1 on osx where the consumer get : Net::HTTPBadResponse: wrong status line: "HTTP/1.1 0 " If someone wants to try, just make a rails app : rails test script/generate controller test index and in the test_controller define the action 'index' like that : class TestController < ApplicationController def index render_text "test", :status => 400 end end you can know test this with irb (supposing the server is running on port 3000) : require 'uri' require 'net/http' url = "http://localhost:3000/test" uri = URI.parse(url) http = Net::HTTP.new(uri.host, uri.port) resp = http.post(uri.request_uri,"test") => Net::HTTPBadResponse: wrong status line: "HTTP/1.1 0 " if you do the same with webrick it works : => # (I'm not sure webrick is right saying HTTP OK, when we asked to respond a 400 status, but it does not break the consumer client !) I didn't find anything on this problem on google. I'm a newbie in ruby and rails, and a total newbie with mongrel, so I hope this is not trivial. If it is, sorry for this mail ! Any help or suggestions would be much appreciated. Thanks, Arthur -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070610/cb247c14/attachment.html From chao at nextsmallthings.com Sun Jun 10 13:54:28 2007 From: chao at nextsmallthings.com (Chih Chao Lam) Date: Sun, 10 Jun 2007 10:54:28 -0700 Subject: [Mongrel] Mongrel/Apache mod_deflate question In-Reply-To: <3eb4ce590706051619t37a914c3w82a42bf72a1ac0e7@mail.gmail.com> References: <446C6C27-7C33-4B29-9EC2-C4977BC42245@coolchaser.com> <3eb4ce590706051619t37a914c3w82a42bf72a1ac0e7@mail.gmail.com> Message-ID: <023BBE7A-780E-4E39-90EF-0C346F23D959@coolchaser.com> Hi Scott, Thanks for the link. However, does mod_deflate cache the files it compresses? For static files, would it be compressing over and over, perhaps hundreds of times per second? Is there a way to avoid this? chao On Jun 5, 2007, at 4:19 PM, Scott Hodson wrote: > You probably want mod_deflate > > http://httpd.apache.org/docs/2.0/mod/mod_deflate.html > > > On 6/5/07, Chih Chao Lam wrote: > Hi Folks, > > We're moving from a single lighttpd-hosted Rails box to a Apache/ > mongrel cluster. > > In lighttpd, mod_compress had a very nice feature: > if there's a static file, it would compress it in a user-specified > compress folder. If the file hasn't changed, it would just serve out > the compress file; if the file has changed, it would recompress it > and serve it out. > > Is there such a deployment option in Apache? > > Also, I read in the "best practices" Apache/mongrel doc mongrel.rubyforge.org/docs/apache.html> of the use of mod_memcache > and mod_cache. But I don't see it configuration scripts associated > with it. Anyone using these modules care to comment? Is it possible > to use mod_cache in association with mod_deflate to accomplish what > mod_compress does in lighttpd? > > Thanks! > chao > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070610/d04e1bc7/attachment-0001.html From elpelicano at gmail.com Sun Jun 10 14:02:16 2007 From: elpelicano at gmail.com (Arthur Pelicano) Date: Sun, 10 Jun 2007 20:02:16 +0200 Subject: [Mongrel] pb when posting to an action "render_text body, :status => 400" (resolved) Message-ID: <4d3a31690706101102i2822f748n56df9e65e15d5e5d@mail.gmail.com> Sorry for my previous mail, If I do render :text => "test", :status => 400 instead of render_text "test", :status => 400 every one (ie. mongrel & webrick) are working fine ! Sorry. Arthur From noodlet at gmail.com Sun Jun 10 15:38:01 2007 From: noodlet at gmail.com (Vincent Bray) Date: Sun, 10 Jun 2007 20:38:01 +0100 Subject: [Mongrel] Mongrel/Apache mod_deflate question In-Reply-To: <023BBE7A-780E-4E39-90EF-0C346F23D959@coolchaser.com> References: <446C6C27-7C33-4B29-9EC2-C4977BC42245@coolchaser.com> <3eb4ce590706051619t37a914c3w82a42bf72a1ac0e7@mail.gmail.com> <023BBE7A-780E-4E39-90EF-0C346F23D959@coolchaser.com> Message-ID: <813716b60706101238r251c71d0y83db53006c9cab52@mail.gmail.com> On 10/06/07, Chih Chao Lam wrote: > Thanks for the link. However, does mod_deflate cache the files it > compresses? For static files, would it be compressing over and over, perhaps > hundreds of times per second? Is there a way to avoid this? mod_deflate doesn't save the compressed response to requests for static files. "the unix way" to do this would be to periodically run find/gzip instead and allow mod_mime & mod_negotiation to serve the gzipped alternative file (AddEncoding & Options MultiViews iirc). Alternatively, mod_cache will do the job too, as long as you tell apache what expiries (mod_expires) are valid for your static content. Doing the latter is good practice anyway as it'll offload some requests for clients that don't support compression. -- noodl From matt.mcknight at gmail.com Tue Jun 12 11:37:44 2007 From: matt.mcknight at gmail.com (Matthew McKnight) Date: Tue, 12 Jun 2007 11:37:44 -0400 Subject: [Mongrel] mongrel service security needs on Win2k3 Message-ID: Hello all, I have mongrel service 0.3.2 running on Win2003 64-bit, special thanks to Luis for getting that running. You are a great asset! I am trying to figure out exactly what rights are needed by the account that is running the service. It works if I give it a domain account with local admin privileges, but it doesn't work if I give it a domain account without local admin. I was tracing things and it looked like it was checking for access to the system32 directory and the ntdll.dll file. I gave the account modify access to system32, but no dice. No errors in the mongrel_service.log or servicefb.log. My security guy is wanting me to trace through the code to see what it's touching, he's not going to let the service account run with local admin privileges for long. For reference, I can run the thing under srvany.exe without local admin rights, and it runs just fine. But that solution is unacceptable because it doesn't kill the processes, making me do my own imitation of mongrel service and write down the process ids of the processes as they start up, so I know which service goes with which process when I try to have an orderly shutdown. I only have about 8 mongrels running on the server, but it's an 8 core beasty, so I am looking to add more once I get this straight. -- -Matt McKnight- www.lmnsolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070612/a2a8c3f5/attachment.html From luislavena at gmail.com Tue Jun 12 11:52:26 2007 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 12 Jun 2007 12:52:26 -0300 Subject: [Mongrel] mongrel service security needs on Win2k3 In-Reply-To: References: Message-ID: <71166b3b0706120852g49a97551hdf3ecc6f67f60349@mail.gmail.com> On 6/12/07, Matthew McKnight wrote: > Hello all, > > I have mongrel service 0.3.2 running on Win2003 64-bit, special thanks to > Luis for getting that running. You are a great asset! > Good to know its working ;-) > I am trying to figure out exactly what rights are needed by the account that > is running the service. It works if I give it a domain account with local > admin privileges, but it doesn't work if I give it a domain account without > local admin. I was tracing things and it looked like it was checking for > access to the system32 directory and the ntdll.dll file. I gave the account > modify access to system32, but no dice. No errors in the mongrel_service.log > or servicefb.log. > This is often called LUA Bug [1] > My security guy is wanting me to trace through the code to see what it's > touching, he's not going to let the service account run with local admin > privileges for long. > I will suggest you take a look at the link I just passed as reference ([1]) and also perform some testing with psexec [2] with -l option (privileges stripped mode). do "mongrel_rails start" in the new console window. If everything worked, then perform the same with "mongrel_service" in console mode, which will emulate running as service, perform the same actions, and log everything in expected log files (please, clear them first). I guess I'm starting to repeat my self too often on this topic, so something could be documented and added to DOCs (patches with this are welcome ;-) [3] and [4] are useful threads that contains information about tracking down the problem. > For reference, I can run the thing under srvany.exe without local admin > rights, and it runs just fine. But that solution is unacceptable because it > doesn't kill the processes, making me do my own imitation of mongrel service > and write down the process ids of the processes as they start up, so I know > which service goes with which process when I try to have an orderly > shutdown. I only have about 8 mongrels running on the server, but it's an 8 > core beasty, so I am looking to add more once I get this straight. > mongrel_service isn't doing anything out of usual, even getting information about their "host" process is safer inside Local Service account (not even admin). I know the srvany pain. That's why I created mongrel_service. Orphaned process are like FastCGI ones, which don't seems quite right, even on a Windows environment ;-) Hope this information helps, [1] http://blogs.msdn.com/aaron_margosis/archive/2006/02/06/525455.aspx [2] http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx [3] http://rubyforge.org/pipermail/mongrel-users/2007-March/003364.html [4] http://rubyforge.org/pipermail/mongrel-users/2007-February/003006.html -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi From streppa at gmail.com Tue Jun 12 16:25:09 2007 From: streppa at gmail.com (Scott Treppa) Date: Tue, 12 Jun 2007 16:25:09 -0400 Subject: [Mongrel] "Broken Pipe" FAQ solution a bust Message-ID: <6d86bb3e0706121325v7a481ba1hc82a8be7f971d5a6@mail.gmail.com> A bit about my environment. Fedora Core 6 httpd 2.2.2 ruby (compiled) 1.8.5 gem 0.9.4 rails 1.2.3 ruby/mysql C library 0.2.6 mysql 5.0.27 interactive_timeout = 28800 wait_timeout = 28800 mongrel 1.0.1 I've had this experience in other environments with different versions but this configuration is the most recent attempt I've made. I get the "Broken Pipe" error after several hours (28800 minutes most likely) of inactivity. I've added "ActiveRecord::Base.verification_timeout = 14400" to the end of my 'config/environment.rb' file to no avail. I've also attempted to set the timeout to a lower value, also to no avail. I've switched between Development and Production with no change. I'm not sure where to proceed. I can't imagine my configuration is so far off the wall that no else has encountered this. Any advice would be greatly appreciated! Scott From charles at nednieuws.com Wed Jun 13 17:17:12 2007 From: charles at nednieuws.com (Charles M. Gerungan) Date: Wed, 13 Jun 2007 23:17:12 +0200 Subject: [Mongrel] Apache proxy error with uploads only Message-ID: Is there a *searchable* archive for this mailing list? If not, I'm using Apache 2.2.3 and Mongrel 1.0.1 on FreeBSD 5.4- RELEASE-p22 #11. Google gave me the following solutions for uploads that result in a proxy error: SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 or KeepAlive Off in Apache's VirtualHost directive. Regrettably none of these work. Have any more suggestions been made on this list? In Apache's error log I see the following: proxy: error reading status line from remote server 127.0.0.1 proxy: Error reading from remote server returned by /admin/assets/create Thanks. -- Regards, Charles. From jeremy at hinegardner.org Wed Jun 13 23:08:51 2007 From: jeremy at hinegardner.org (Jeremy Hinegardner) Date: Wed, 13 Jun 2007 21:08:51 -0600 Subject: [Mongrel] Apache proxy error with uploads only In-Reply-To: References: Message-ID: <20070614030851.GB13095@hinegardner.org> On Wed, Jun 13, 2007 at 11:17:12PM +0200, Charles M. Gerungan wrote: > Is there a *searchable* archive for this mailing list? The archives are here http://rubyforge.org/pipermail/mongrel-users/ It seems to be fairly searchable with google using the site: operator. Unfortunately I have no information to assist with the proxy errors you are receiving. enjoy, -jeremy -- ======================================================================== Jeremy Hinegardner jeremy at hinegardner.org From craig at itpartners.co.nz Wed Jun 13 23:38:31 2007 From: craig at itpartners.co.nz (Craig Box) Date: Thu, 14 Jun 2007 15:38:31 +1200 Subject: [Mongrel] upload_progress with --prefix Message-ID: <961FDD8E38C3954F9FAD21DA1BBC2E432164@penfold.itpartners.co.nz> Hi, I think I may have found a bug: When starting Mongrel with --prefix, upload_progress doesn't work. When starting without, it does. Is this something I can possibly work around in the Rails code? The app uses url_for throughout. Regards Craig From seanmichaelbrown at gmail.com Thu Jun 14 22:53:07 2007 From: seanmichaelbrown at gmail.com (Sean Brown) Date: Thu, 14 Jun 2007 22:53:07 -0400 Subject: [Mongrel] mongrel cluster issues, plain old mongrel OK Message-ID: <1086fb5f0706141953x34ca6a8di70369925b1724450@mail.gmail.com> I just created a test rails app, and am having very wierd issues with mongrel cluster. Here's what I'm doing: rails test sudo chown -R mongrel:mongrel test cd test sudo mongrel_rails \ cluster::configure -e production \ -p 8000 -N 3 -a 127.0.0.1 --user mongrel \ --group mongrel It correctly writes the mongrel_cluster.yml file to the config directory. Now, if I: sudo mongrel_rails start -d Everything works like a charm. I can browse to the site on port 3000 and everything is both hunky and dory. However, if I : sudo mongrel_rails cluster::start It tells me it's starting 3 mongrels, but nothing happens. The mongrel log file shows this (apologies for the long listing): [limbach at larry log]$ cat mongrel.log ** Daemonized, any open files are closed. Look at log/mongrel.8000.pid and log/mongrel.log for info. ** Starting Mongrel listening at 127.0.0.1:8000 ** Changing group to mongrel. ** Changing user to mongrel. ** Starting Rails with production environment... /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- /home/limbach/www/test/config/environment (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:155:in `rails' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:112:in `cloaker_' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:138:in `call' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:138:in `listener' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:98:in `cloaker_' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:51:in `call' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:51:in `initialize' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:83:in `new' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:83:in `run' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 from /usr/local/bin/mongrel_rails:16:in `load' from /usr/local/bin/mongrel_rails:16 [snip] That pattern is repeated for each of the three mongrels In case it helps, here are the gems I've got installed: [limbach at larry log]$ gem list --local *** LOCAL GEMS *** actionmailer (1.3.3) Service layer for easy email delivery and testing. actionpack (1.13.3) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.3) Web service support for Action Pack. activerecord (1.15.3) Implements the ActiveRecord pattern for ORM. activesupport (1.4.2) Support and utility classes used by the Rails framework. cgi_multipart_eof_fix (2.1) Fix an exploitable bug in CGI multipart parsing which affects Ruby <= 1.8.5 when multipart boundary attribute contains a non-halting regular expression string. daemons (1.0.6) A toolkit to create and control daemons in different ways fastercsv (1.2.0) FasterCSV is CSV, but faster, smaller, and cleaner. fastthread (1.0) Optimized replacement for thread.rb primitives gem_plugin (0.2.2) A plugin system based only on rubygems that uses dependencies only mongrel (1.0.1) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps. mongrel_cluster (0.2.1) Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes. mysql (2.7) MySQL/Ruby provides the same functions for Ruby programs that the MySQL C API provides for C programs. rails (1.2.3) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.3) Ruby based make-like utility. sources (0.0.1) This package provides download sources for remote gem installation Thanks in advance for any help. Sean From seanmichaelbrown at gmail.com Fri Jun 15 13:58:59 2007 From: seanmichaelbrown at gmail.com (Sean Brown) Date: Fri, 15 Jun 2007 13:58:59 -0400 Subject: [Mongrel] mongrel cluster issues, plain old mongrel OK In-Reply-To: <75A4DCD2-DF59-4605-9F65-48DC1E8C0BD2@mac.com> References: <1086fb5f0706141953x34ca6a8di70369925b1724450@mail.gmail.com> <75A4DCD2-DF59-4605-9F65-48DC1E8C0BD2@mac.com> Message-ID: <1086fb5f0706151058u3e21e51cg7c73b9e61bb31825@mail.gmail.com> On 6/15/07, Jason Frankovitz wrote: > Blind guess: are you sure you have an environment.rb in config, and > that's it's readable? > Yep. It's there and readable by the mongrel user. [config]$ ls -l total 24 -rw-r--r-- 1 mongrel mongrel 1549 Jun 14 22:01 boot.rb -rw-r--r-- 1 mongrel mongrel 941 Jun 14 22:01 database.yml -rw-r--r-- 1 mongrel mongrel 2419 Jun 15 11:44 environment.rb drwxr-xr-x 2 mongrel mongrel 4096 Jun 14 22:01 environments -rw-r--r-- 1 root root 156 Jun 15 12:19 mongrel_cluster.yml -rw-r--r-- 1 mongrel mongrel 970 Jun 14 22:01 routes.rb > > > On Jun 14, 2007, at 7:53 PM, Sean Brown wrote: > > > I just created a test rails app, and am having very wierd issues with > > mongrel cluster. Here's what I'm doing: > > > > rails test > > sudo chown -R mongrel:mongrel test > > cd test > > sudo mongrel_rails \ > > cluster::configure -e production \ > > -p 8000 -N 3 -a 127.0.0.1 --user mongrel \ > > --group mongrel > > > > It correctly writes the mongrel_cluster.yml file to the config > > directory. Now, if I: > > > > sudo mongrel_rails start -d > > > > Everything works like a charm. I can browse to the site on port 3000 > > and everything is both hunky and dory. > > > > However, if I : > > > > sudo mongrel_rails cluster::start > > > > It tells me it's starting 3 mongrels, but nothing happens. The > > mongrel log file shows this (apologies for the long listing): > > > > [limbach at larry log]$ cat mongrel.log > > ** Daemonized, any open files are closed. Look at > > log/mongrel.8000.pid and log/mongrel.log for info. > > ** Starting Mongrel listening at 127.0.0.1:8000 > > ** Changing group to mongrel. > > ** Changing user to mongrel. > > ** Starting Rails with production environment... > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require': no such file to load -- > > /home/limbach/www/test/config/environment (LoadError) > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > > custom_require.rb:27:in > > `require' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/rails.rb:155:in > > `rails' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:112:in > > `cloaker_' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/configurator.rb:138:in > > `call' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/configurator.rb:138:in > > `listener' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:98:in > > `cloaker_' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/configurator.rb:51:in > > `call' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/configurator.rb:51:in > > `initialize' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:83:in > > `new' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:83:in > > `run' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ > > mongrel/command.rb:211:in > > `run' > > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ > > mongrel_rails:243 > > from /usr/local/bin/mongrel_rails:16:in `load' > > from /usr/local/bin/mongrel_rails:16 > > > > [snip] > > > > That pattern is repeated for each of the three mongrels > > > > In case it helps, here are the gems I've got installed: > > > > [limbach at larry log]$ gem list --local > > > > *** LOCAL GEMS *** > > > > actionmailer (1.3.3) > > Service layer for easy email delivery and testing. > > > > actionpack (1.13.3) > > Web-flow and rendering framework putting the VC in MVC. > > > > actionwebservice (1.2.3) > > Web service support for Action Pack. > > > > activerecord (1.15.3) > > Implements the ActiveRecord pattern for ORM. > > > > activesupport (1.4.2) > > Support and utility classes used by the Rails framework. > > > > cgi_multipart_eof_fix (2.1) > > Fix an exploitable bug in CGI multipart parsing which affects Ruby > > <= 1.8.5 when multipart boundary attribute contains a non-halting > > regular expression string. > > > > daemons (1.0.6) > > A toolkit to create and control daemons in different ways > > > > fastercsv (1.2.0) > > FasterCSV is CSV, but faster, smaller, and cleaner. > > > > fastthread (1.0) > > Optimized replacement for thread.rb primitives > > > > gem_plugin (0.2.2) > > A plugin system based only on rubygems that uses dependencies only > > > > mongrel (1.0.1) > > A small fast HTTP library and server that runs Rails, Camping, > > Nitro > > and Iowa apps. > > > > mongrel_cluster (0.2.1) > > Mongrel plugin that provides commands and Capistrano tasks for > > managing multiple Mongrel processes. > > > > mysql (2.7) > > MySQL/Ruby provides the same functions for Ruby programs that the > > MySQL C API provides for C programs. > > > > rails (1.2.3) > > Web-application framework with template engine, control-flow > > layer, > > and ORM. > > > > rake (0.7.3) > > Ruby based make-like utility. > > > > sources (0.0.1) > > This package provides download sources for remote gem installation > > > > > > > > Thanks in advance for any help. > > > > Sean > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > -- Sean Brown seanmichaelbrown at gmail.com From bakki.kudva at gmail.com Tue Jun 19 11:41:46 2007 From: bakki.kudva at gmail.com (Bakki Kudva) Date: Tue, 19 Jun 2007 11:41:46 -0400 Subject: [Mongrel] fastthread errors on Debian Etch Message-ID: Hi all, I am strangely getting errors on Debian Etch on a Intel server though I had done an identical install of mongrel-1.0.1 on an amd64 version of Etch. While building fastthreads I get: ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. ruby extconf.rb install mongrel creating Makefile make gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux -I. -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -c fastthread.c In file included from fastthread.c:12: /usr/lib/ruby/1.8/i486-linux/ruby.h:31:21: error: stdlib.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:35:21: error: string.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:45:19: error: stdio.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/ruby.h:67:20: error: alloca.h: No such file or directory In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7, from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11, from /usr/lib/ruby/1.8/i486-linux/ruby.h:87, from fastthread.c:12: /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:698, from fastthread.c:12: /usr/lib/ruby/1.8/i486-linux/missing.h:16:24: error: sys/time.h: No such file or directory /usr/lib/ruby/1.8/i486-linux/missing.h:25:25: error: sys/types.h: No such file or directory In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:699, from fastthread.c:12: /usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration specifiers or '...' before 'fd_set' /usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration specifiers or '...' before 'fd_set' /usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration specifiers or '...' before 'fd_set' /usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: 'struct timeval' declared inside parameter list /usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: its scope is only this definition or declaration, which is probably not what you want /usr/lib/ruby/1.8/i486-linux/intern.h:217: warning: 'struct timeval' declared inside parameter list /usr/lib/ruby/1.8/i486-linux/intern.h:447: warning: parameter names (without types) in function declaration In file included from fastthread.c:12: /usr/lib/ruby/1.8/i486-linux/ruby.h:708:21: error: pthread.h: No such file or directory In file included from fastthread.c:12: /usr/lib/ruby/1.8/i486-linux/ruby.h:710: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rb_nativethread_t' In file included from fastthread.c:13: /usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration specifiers or '...' before 'fd_set' /usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration specifiers or '...' before 'fd_set' /usr/lib/ruby/1.8/i486-linux/intern.h:216: error: expected declaration specifiers or '...' before 'fd_set' /usr/lib/ruby/1.8/i486-linux/intern.h:216: warning: 'struct timeval' declared inside parameter list /usr/lib/ruby/1.8/i486-linux/intern.h:216: error: conflicting types for 'rb_thread_select' /usr/lib/ruby/1.8/i486-linux/intern.h:216: error: previous declaration of 'rb_thread_select' was here /usr/lib/ruby/1.8/i486-linux/intern.h:217: warning: 'struct timeval' declared inside parameter list /usr/lib/ruby/1.8/i486-linux/intern.h:217: error: conflicting types for 'rb_thread_wait_for' /usr/lib/ruby/1.8/i486-linux/intern.h:217: error: previous declaration of 'rb_thread_wait_for' was here /usr/lib/ruby/1.8/i486-linux/intern.h:447: warning: parameter names (without types) in function declaration In file included from fastthread.c:14: /usr/lib/ruby/1.8/i486-linux/rubysig.h:15:19: error: errno.h: No such file or directory fastthread.c: In function 'wait_condvar': fastthread.c:626: warning: passing argument 1 of 'rb_ensure' from incompatible pointer type make: *** [fastthread.o] Error 1 I have ruby1.8-dev also installed. Which pkg do the .h files it's asking for come from? They aren't in the /usr/lib/ruby/1.8/i486-linux/. I have gcc4.1 installed. Thanks for your help. bakki From bakki.kudva at gmail.com Tue Jun 19 11:52:55 2007 From: bakki.kudva at gmail.com (Bakki Kudva) Date: Tue, 19 Jun 2007 11:52:55 -0400 Subject: [Mongrel] fastthread errors on Debian Etch In-Reply-To: References: Message-ID: Sorry folks, my bad! I forgot to install libc6. Every thing is peachy. Thanks, bakki On 6/19/07, Bakki Kudva wrote: > Hi all, > > I am strangely getting errors on Debian Etch on a Intel server though > I had done an identical install of mongrel-1.0.1 on an amd64 version > of Etch. > From jpinnix.alt at gmail.com Thu Jun 21 18:26:40 2007 From: jpinnix.alt at gmail.com (jeremy*pinnix) Date: Thu, 21 Jun 2007 17:26:40 -0500 Subject: [Mongrel] disappearing .pid files Message-ID: <11a908be0706211526t1735c42fm61a4048af041bd33@mail.gmail.com> Hello, I'm running mongrel_cluster and have been using it successfully for quite a while now. However, today I ran a "cap deploy" and started seeing the following error: !!! PID file /var/www/apps/jco/shared/log/mongrel.8013.pid does not exist. Not running? for each of the mongrels that should start up. I've googled for solutions but haven't found any explaination. How can this be rectified? Thanks, jeremy From dklamath at hotmail.com Fri Jun 22 04:04:58 2007 From: dklamath at hotmail.com (Dave C) Date: Fri, 22 Jun 2007 01:04:58 -0700 Subject: [Mongrel] disappearing .pid files In-Reply-To: <11a908be0706211526t1735c42fm61a4048af041bd33@mail.gmail.com> Message-ID: I ran into the same problem last week, however it was on a single instance of mongrel on a shared host through webfaction, not a cluster like you are on most likely on a dedicated server to boot. Our problem turned out to be an issue of having another rails application installed (even though it was not supposed to be) and when the server got rebooted the script started that rails app by default. Hope something here helps trigger some ideas for you. Dave ----Original Message Follows---- From: jeremy*pinnix Reply-To: mongrel-users at rubyforge.org To: Mongrel-users at rubyforge.org Subject: [Mongrel] disappearing .pid files Date: Thu, 21 Jun 2007 17:26:40 -0500 MIME-Version: 1.0 Received: from rubyforge.org ([205.234.109.18]) by bay0-mc11-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 21 Jun 2007 15:27:35 -0700 Received: from rubyforge.org (rubyforge.org [127.0.0.1])by rubyforge.org (Postfix) with ESMTP id 1523A5240C0D;Thu, 21 Jun 2007 18:27:35 -0400 (EDT) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181])by rubyforge.org (Postfix) with ESMTP id 7F19A5240B21for ; Thu, 21 Jun 2007 18:26:41 -0400 (EDT) Received: by wa-out-1112.google.com with SMTP id l24so523384waffor ; Thu, 21 Jun 2007 15:26:40 -0700 (PDT) Received: by 10.114.95.1 with SMTP id s1mr2201865wab.1182464800684;Thu, 21 Jun 2007 15:26:40 -0700 (PDT) Received: by 10.114.157.10 with HTTP; Thu, 21 Jun 2007 15:26:40 -0700 (PDT) X-Message-Info: LsUYwwHHNt0EcBwwqClCjkgKA+k2y79KE8t6zc82v/ze+pqzz6mnvbFt46lFXGqf X-Original-To: Mongrel-users at rubyforge.org Delivered-To: Mongrel-users at rubyforge.org X-BeenThere: mongrel-users at rubyforge.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: mongrel-users-bounces at rubyforge.org Return-Path: mongrel-users-bounces at rubyforge.org X-OriginalArrivalTime: 21 Jun 2007 22:27:35.0732 (UTC) FILETIME=[5E18D740:01C7B453] Hello, I'm running mongrel_cluster and have been using it successfully for quite a while now. However, today I ran a "cap deploy" and started seeing the following error: !!! PID file /var/www/apps/jco/shared/log/mongrel.8013.pid does not exist. Not running? for each of the mongrels that should start up. I've googled for solutions but haven't found any explaination. How can this be rectified? Thanks, jeremy _______________________________________________ Mongrel-users mailing list Mongrel-users at rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users From jpinnix.alt at gmail.com Fri Jun 22 09:59:44 2007 From: jpinnix.alt at gmail.com (jeremy*pinnix) Date: Fri, 22 Jun 2007 08:59:44 -0500 Subject: [Mongrel] disappearing .pid files In-Reply-To: References: <11a908be0706211526t1735c42fm61a4048af041bd33@mail.gmail.com> Message-ID: <11a908be0706220659o314e3261ga5cb57602404d801@mail.gmail.com> There is another app on the same server, but it has different ports... so I doubt that is the issue... On 6/22/07, Dave C wrote: > I ran into the same problem last week, however it was on a single instance > of mongrel on a shared host through webfaction, not a cluster like you are > on most likely on a dedicated server to boot. > > Our problem turned out to be an issue of having another rails application > installed (even though it was not supposed to be) and when the server got > rebooted the script started that rails app by default. > > Hope something here helps trigger some ideas for you. > > Dave > > ----Original Message Follows---- > From: jeremy*pinnix > Reply-To: mongrel-users at rubyforge.org > To: Mongrel-users at rubyforge.org > Subject: [Mongrel] disappearing .pid files > Date: Thu, 21 Jun 2007 17:26:40 -0500 > MIME-Version: 1.0 > Received: from rubyforge.org ([205.234.109.18]) by > bay0-mc11-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 21 > Jun 2007 15:27:35 -0700 > Received: from rubyforge.org (rubyforge.org [127.0.0.1])by rubyforge.org > (Postfix) with ESMTP id 1523A5240C0D;Thu, 21 Jun 2007 18:27:35 -0400 (EDT) > Received: from wa-out-1112.google.com (wa-out-1112.google.com > [209.85.146.181])by rubyforge.org (Postfix) with ESMTP id 7F19A5240B21for > ; Thu, 21 Jun 2007 18:26:41 -0400 (EDT) > Received: by wa-out-1112.google.com with SMTP id l24so523384waffor > ; Thu, 21 Jun 2007 15:26:40 -0700 (PDT) > Received: by 10.114.95.1 with SMTP id s1mr2201865wab.1182464800684;Thu, 21 > Jun 2007 15:26:40 -0700 (PDT) > Received: by 10.114.157.10 with HTTP; Thu, 21 Jun 2007 15:26:40 -0700 (PDT) > X-Message-Info: > LsUYwwHHNt0EcBwwqClCjkgKA+k2y79KE8t6zc82v/ze+pqzz6mnvbFt46lFXGqf > X-Original-To: Mongrel-users at rubyforge.org > Delivered-To: Mongrel-users at rubyforge.org > X-BeenThere: mongrel-users at rubyforge.org > X-Mailman-Version: 2.1.9 > Precedence: list > List-Id: > List-Unsubscribe: > , > List-Archive: > List-Post: > List-Help: > List-Subscribe: > , > Errors-To: mongrel-users-bounces at rubyforge.org > Return-Path: mongrel-users-bounces at rubyforge.org > X-OriginalArrivalTime: 21 Jun 2007 22:27:35.0732 (UTC) > FILETIME=[5E18D740:01C7B453] > > Hello, > > I'm running mongrel_cluster and have been using it successfully for > quite a while now. However, today I ran a "cap deploy" and started > seeing the following error: > > !!! PID file /var/www/apps/jco/shared/log/mongrel.8013.pid does not > exist. Not running? > > for each of the mongrels that should start up. > > I've googled for solutions but haven't found any explaination. > > How can this be rectified? > > Thanks, > jeremy > _______________________________________________ > 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 > From seanmichaelbrown at gmail.com Fri Jun 22 10:14:50 2007 From: seanmichaelbrown at gmail.com (Sean Brown) Date: Fri, 22 Jun 2007 10:14:50 -0400 Subject: [Mongrel] Mongrel_cluster and rails app in a subdirectory Message-ID: <1086fb5f0706220714s7c6ae1eo850f5d94ed4a65b4@mail.gmail.com> Info: Apache 2.2 mongrel 1.0.1 mongrel_cluster 0.2.1 I've had everything working with a bunch of applications like this when the the rails app is the document root, but a client just asked to move the app to a subdirectory, leaving he rest of their site alone. However, I can't seem to get it to work. Let's make the assumption that the Apache document root for the site is in /www/htdocs, and the Rails root is /www/ror_root. Further lets say the client wants the application to be found at http://mysite.com/railsapp. This is what I have in the mongrel_cluster.yml --- user: mongrel cwd: /www/ror_root port: "8008" environment: production group: mongrel address: 127.0.0.1 pid_file: log/mongrel.pid servers: 2 prefix: /railsapp Here's what I have in the apache config: ServerAdmin me at mysite.com DocumentRoot /www/htdocs ServerName mysite.com Options Indexes FollowSymLinks AllowOverride AuthConfig Limit Order allow,deny Allow from all Options FollowSymLinks AllowOverride AuthConfig Limit Order allow,deny Allow from all RewriteEngine On RewriteLog /www/logs/rewrite.log ProxyPass /railsapp/ balancer://railsapp ProxyPass /railsapp balancer://railsapp ProxyPassReverse /railsapp/ balancer://railsapp ProxyPreserveHost On BalancerMember http://127.0.0.1:8008 BalancerMember http://127.0.0.1:8009 Anyone see anything wrong? -- Sean From seanmichaelbrown at gmail.com Fri Jun 22 14:47:46 2007 From: seanmichaelbrown at gmail.com (Sean Brown) Date: Fri, 22 Jun 2007 14:47:46 -0400 Subject: [Mongrel] mongrel cluster prefix question Message-ID: <1086fb5f0706221147w50d9837cl9a5dd96fc8b317ea@mail.gmail.com> Is there a way to have the mongrel_cluster prefix option be case insensitive? Right now if I have a cluster with prefix: /myapp in the mongrel_cluster.yml file, it works fine when someone types in http://mysites.com/myapp. But, if someone types into their browser: http://mysites.com/MyApp They get a 404. Can the prefix be case-insensitive? -- Sean From dklamath at hotmail.com Fri Jun 22 14:59:24 2007 From: dklamath at hotmail.com (Dave C) Date: Fri, 22 Jun 2007 11:59:24 -0700 Subject: [Mongrel] disappearing .pid files In-Reply-To: <11a908be0706220659o314e3261ga5cb57602404d801@mail.gmail.com> Message-ID: Don't assume that, on ours the apps have different ports as well. ----Original Message Follows---- From: jeremy*pinnix Reply-To: mongrel-users at rubyforge.org To: mongrel-users at rubyforge.org Subject: Re: [Mongrel] disappearing .pid files Date: Fri, 22 Jun 2007 08:59:44 -0500 MIME-Version: 1.0 Received: from rubyforge.org ([205.234.109.18]) by bay0-mc6-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 22 Jun 2007 07:00:47 -0700 Received: from rubyforge.org (rubyforge.org [127.0.0.1])by rubyforge.org (Postfix) with ESMTP id 8C77F5240D96;Fri, 22 Jun 2007 10:00:46 -0400 (EDT) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183])by rubyforge.org (Postfix) with ESMTP id 1B6045240991for ; Fri, 22 Jun 2007 09:59:44 -0400 (EDT) Received: by wa-out-1112.google.com with SMTP id l24so765823waffor ; Fri, 22 Jun 2007 06:59:44 -0700 (PDT) Received: by 10.114.173.15 with SMTP id v15mr3011420wae.1182520784334;Fri, 22 Jun 2007 06:59:44 -0700 (PDT) Received: by 10.114.157.10 with HTTP; Fri, 22 Jun 2007 06:59:44 -0700 (PDT) X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK+ZzoV09lDsZmbz8QigGIQtU5Yvr3lK0P X-Original-To: mongrel-users at rubyforge.org Delivered-To: mongrel-users at rubyforge.org References: <11a908be0706211526t1735c42fm61a4048af041bd33 at mail.gmail.com> X-BeenThere: mongrel-users at rubyforge.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: mongrel-users-bounces at rubyforge.org Return-Path: mongrel-users-bounces at rubyforge.org X-OriginalArrivalTime: 22 Jun 2007 14:00:47.0278 (UTC) FILETIME=[BBA8BCE0:01C7B4D5] There is another app on the same server, but it has different ports... so I doubt that is the issue... On 6/22/07, Dave C wrote: > I ran into the same problem last week, however it was on a single instance > of mongrel on a shared host through webfaction, not a cluster like you are > on most likely on a dedicated server to boot. > > Our problem turned out to be an issue of having another rails application > installed (even though it was not supposed to be) and when the server got > rebooted the script started that rails app by default. > > Hope something here helps trigger some ideas for you. > > Dave > > ----Original Message Follows---- > From: jeremy*pinnix > Reply-To: mongrel-users at rubyforge.org > To: Mongrel-users at rubyforge.org > Subject: [Mongrel] disappearing .pid files > Date: Thu, 21 Jun 2007 17:26:40 -0500 > MIME-Version: 1.0 > Received: from rubyforge.org ([205.234.109.18]) by > bay0-mc11-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 21 > Jun 2007 15:27:35 -0700 > Received: from rubyforge.org (rubyforge.org [127.0.0.1])by rubyforge.org > (Postfix) with ESMTP id 1523A5240C0D;Thu, 21 Jun 2007 18:27:35 -0400 (EDT) > Received: from wa-out-1112.google.com (wa-out-1112.google.com > [209.85.146.181])by rubyforge.org (Postfix) with ESMTP id 7F19A5240B21for > ; Thu, 21 Jun 2007 18:26:41 -0400 (EDT) > Received: by wa-out-1112.google.com with SMTP id l24so523384waffor > ; Thu, 21 Jun 2007 15:26:40 -0700 (PDT) > Received: by 10.114.95.1 with SMTP id s1mr2201865wab.1182464800684;Thu, 21 > Jun 2007 15:26:40 -0700 (PDT) > Received: by 10.114.157.10 with HTTP; Thu, 21 Jun 2007 15:26:40 -0700 (PDT) > X-Message-Info: > LsUYwwHHNt0EcBwwqClCjkgKA+k2y79KE8t6zc82v/ze+pqzz6mnvbFt46lFXGqf > X-Original-To: Mongrel-users at rubyforge.org > Delivered-To: Mongrel-users at rubyforge.org > X-BeenThere: mongrel-users at rubyforge.org > X-Mailman-Version: 2.1.9 > Precedence: list > List-Id: > List-Unsubscribe: > , > List-Archive: > List-Post: > List-Help: > List-Subscribe: > , > Errors-To: mongrel-users-bounces at rubyforge.org > Return-Path: mongrel-users-bounces at rubyforge.org > X-OriginalArrivalTime: 21 Jun 2007 22:27:35.0732 (UTC) > FILETIME=[5E18D740:01C7B453] > > Hello, > > I'm running mongrel_cluster and have been using it successfully for > quite a while now. However, today I ran a "cap deploy" and started > seeing the following error: > > !!! PID file /var/www/apps/jco/shared/log/mongrel.8013.pid does not > exist. Not running? > > for each of the mongrels that should start up. > > I've googled for solutions but haven't found any explaination. > > How can this be rectified? > > Thanks, > jeremy > _______________________________________________ > 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 From zaydana at gmail.com Sat Jun 23 05:24:23 2007 From: zaydana at gmail.com (James Nelson) Date: Sat, 23 Jun 2007 17:24:23 +0800 Subject: [Mongrel] mongrel_upload_progress and nginx Message-ID: <6e69c7930706230224y2eb1668ev5205e81bb1ff7a63@mail.gmail.com> G'day I'm just wondering if anybody knows of a way to get mongrel_upload_progress working with nginx? I've had a fair bit of a look around but havn't been able to come up with anything, yet. -- - James -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070623/307656f3/attachment.html From mail at flydown.org Sat Jun 23 05:42:45 2007 From: mail at flydown.org (Michele) Date: Sat, 23 Jun 2007 11:42:45 +0200 Subject: [Mongrel] mongrel_upload_progress and nginx In-Reply-To: <6e69c7930706230224y2eb1668ev5205e81bb1ff7a63@mail.gmail.com> References: <6e69c7930706230224y2eb1668ev5205e81bb1ff7a63@mail.gmail.com> Message-ID: Hi James, I had the same issue, but after a bit of looking around I realized Nginx caches the whole request before passing it to mongrel, so we're out of luck. We'll have to wait until streaming is implemented for proxied requests. Cheers, - MF -- Michele Finotto http://finotto.org/ http://blog.wonsys.net/ http://16bugs.com/ http://pagety.com/ Vote for me as BusinessWeek's Best Europe's Young Entrepreneur: http://tinyurl.com/2bzzwh On Jun 23, 2007, at 11:24 , James Nelson wrote: > G'day > > I'm just wondering if anybody knows of a way to get > mongrel_upload_progress working with nginx? I've had a fair bit of > a look around but havn't been able to come up with anything, yet. > > -- > - James From zaydana at gmail.com Sat Jun 23 05:52:27 2007 From: zaydana at gmail.com (James Nelson) Date: Sat, 23 Jun 2007 17:52:27 +0800 Subject: [Mongrel] mongrel_upload_progress and nginx In-Reply-To: References: <6e69c7930706230224y2eb1668ev5205e81bb1ff7a63@mail.gmail.com> Message-ID: <6e69c7930706230252k46a4534j2d730e00b2c3329e@mail.gmail.com> Ah well. Is there a page or something with details on when something like that is going to happen? On 6/23/07, Michele wrote: > > Hi James, > > I had the same issue, but after a bit of looking around I realized > Nginx caches the whole request before passing it to mongrel, so we're > out of luck. > We'll have to wait until streaming is implemented for proxied requests. > > Cheers, > - MF > > -- > Michele Finotto > http://finotto.org/ > http://blog.wonsys.net/ > http://16bugs.com/ > http://pagety.com/ > > Vote for me as BusinessWeek's Best Europe's Young Entrepreneur: > http://tinyurl.com/2bzzwh > > On Jun 23, 2007, at 11:24 , James Nelson wrote: > > > G'day > > > > I'm just wondering if anybody knows of a way to get > > mongrel_upload_progress working with nginx? I've had a fair bit of > > a look around but havn't been able to come up with anything, yet. > > > > -- > > - James > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -- - James -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070623/6a71ace4/attachment.html From mail at flydown.org Sat Jun 23 06:00:52 2007 From: mail at flydown.org (Michele) Date: Sat, 23 Jun 2007 12:00:52 +0200 Subject: [Mongrel] mongrel_upload_progress and nginx In-Reply-To: <6e69c7930706230252k46a4534j2d730e00b2c3329e@mail.gmail.com> References: <6e69c7930706230224y2eb1668ev5205e81bb1ff7a63@mail.gmail.com> <6e69c7930706230252k46a4534j2d730e00b2c3329e@mail.gmail.com> Message-ID: James, On Jun 23, 2007, at 11:52 , James Nelson wrote: > Ah well. Is there a page or something with details on when > something like that is going to happen? Not sure, but here's the answer from the Wiki: http://wiki.codemongers.com/NginxFaq#proxy_buffering -- MF -- Michele Finotto http://finotto.org/ http://blog.wonsys.net/ http://16bugs.com/ http://pagety.com/ Vote for me as BusinessWeek's Best Europe's Young Entrepreneur: http://tinyurl.com/2bzzwh` From snacktime at gmail.com Sun Jun 24 16:14:28 2007 From: snacktime at gmail.com (snacktime) Date: Sun, 24 Jun 2007 13:14:28 -0700 Subject: [Mongrel] Mongrel under opensolars with SMF Message-ID: <1f060c4c0706241314k7298b774l416292cca7676ea1@mail.gmail.com> Thought I'd drop a note about my experience with running mongrel directly under the solaris service management framework. So far I'm very impressed. SMF is the solaris replacement for the init system. It's tied much more closely to the OS and for instance doesn't use pid files. I've found you can completely eliminate mongrel cluster, and for that matter the normal monitoring system like monit. Another nice feature is that solaris lets you easily give start/stop privileges to non root users, so no need to use sudo when restarting mongrel via capistrano. Chris From mark.james.lists at gmail.com Tue Jun 26 00:29:48 2007 From: mark.james.lists at gmail.com (Mark James Adams) Date: Tue, 26 Jun 2007 13:29:48 +0900 Subject: [Mongrel] Mongrel under opensolars with SMF In-Reply-To: <1f060c4c0706241314k7298b774l416292cca7676ea1@mail.gmail.com> References: <1f060c4c0706241314k7298b774l416292cca7676ea1@mail.gmail.com> Message-ID: What are you using as the exec_method? Are you just stringing mongrel_rails start -p PORT together for each mongrel instance that you are running (changing the port number for each instance)?. On 6/25/07, snacktime wrote: > Thought I'd drop a note about my experience with running mongrel > directly under the solaris service management framework. So far I'm > very impressed. SMF is the solaris replacement for the init system. > It's tied much more closely to the OS and for instance doesn't use pid > files. I've found you can completely eliminate mongrel cluster, and > for that matter the normal monitoring system like monit. Another nice > feature is that solaris lets you easily give start/stop privileges to > non root users, so no need to use sudo when restarting mongrel via > capistrano. -- Mark James Adams From wayneeseguin at gmail.com Tue Jun 26 08:44:41 2007 From: wayneeseguin at gmail.com (Wayne E. Seguin) Date: Tue, 26 Jun 2007 08:44:41 -0400 Subject: [Mongrel] Mongrel under opensolars with SMF In-Reply-To: References: <1f060c4c0706241314k7298b774l416292cca7676ea1@mail.gmail.com> Message-ID: <7B9AACC0-C887-4017-8356-9027372FADB6@gmail.com> On Jun 26, 2007, at 00:29 , Mark James Adams wrote: > What are you using as the exec_method? Are you just stringing > mongrel_rails start -p PORT together for each mongrel instance that > you are running (changing the port number for each instance)?. > > On 6/25/07, snacktime wrote: >> Thought I'd drop a note about my experience with running mongrel >> directly under the solaris service management framework. So far I'm >> very impressed. SMF is the solaris replacement for the init system. >> It's tied much more closely to the OS and for instance doesn't use >> pid >> files. I've found you can completely eliminate mongrel cluster, and >> for that matter the normal monitoring system like monit. Another >> nice >> feature is that solaris lets you easily give start/stop privileges to >> non root users, so no need to use sudo when restarting mongrel via >> capistrano. Snacktime, Yes please do include details on your implementation as I am curious if Solaris is a viable option. Thanks! -- Wayne E. Seguin Sr. Systems Architect & Systems Admin wayneseguin at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070626/ff0e27d4/attachment.html From snacktime at gmail.com Tue Jun 26 13:09:24 2007 From: snacktime at gmail.com (snacktime) Date: Tue, 26 Jun 2007 10:09:24 -0700 Subject: [Mongrel] Mongrel under opensolars with SMF In-Reply-To: References: <1f060c4c0706241314k7298b774l416292cca7676ea1@mail.gmail.com> Message-ID: <1f060c4c0706261009o7aac3325o70e0a120c87dbf32@mail.gmail.com> I create a single service with an instance for each mongrel. The start exec_method calls a shell script that first deletes the pid file if it exists then runs mongrel directly with all the options as arguments, no config file. Right now we are just using :kill in the stop exec_method. Note the property group for the authorizations in the service section. This is what is used to allow a specific non root user to control this service via svcadm in conjunction with an entry in /etc/user_attr. So far it's working pretty well but we still need to make some adjustments, like telling the system to back off a bit and send a notification if mongrel won't start, setting resource limits, etc.. /etc/user_attr: www::::auths=solaris.smf.manage.mongrel Sample config with one instance: svc-mongrel: #!/sbin/sh . /lib/svc/share/smf_include.sh PORT=$1 ENVIRONMENT=staging CWD=/opt/local/www/rails/$ENVIRONMENT/current LOGFILE=/opt/local/www/rails/$ENVIRONMENT/shared/log/mongrel_$PORT.log PIDFILE=/opt/local/www/rails/$ENVIRONMENT/shared/pids/mongrel_$PORT.pid DOCROOT=$CWD/public IP=10.1.1.4 USER=mongrel GROUP=www /bin/rm -f $PIDFILE /opt/csw/bin/mongrel_rails start -d -e $ENVIRONMENT -p $PORT -a $IP -l $LOGFILE -r $DOCROOT -c $CWD --user $USER --group $GROUP -P $PIDFILE From beingthexemplarylists at gmail.com Tue Jun 26 19:01:30 2007 From: beingthexemplarylists at gmail.com (aaron smith) Date: Tue, 26 Jun 2007 19:01:30 -0400 Subject: [Mongrel] mongrel not daemonizing for me.. Message-ID: Hey All, I'm setting up some mongrel servers.. can't get it to daemonize. here is my configurator block:: config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do #debug('/gateway.rb',[:access,:threads]) listener :port => OPTIONS[:port] do uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processors]) end run.join if OPTIONS[:daemon] daemonize end end Any ideas? Also I was looking in the mongrel source and see that in the daemonize method your calling Daemon.daemonize. Is that depending on some library? I don't see it anywhere in the ruby docs. I did find this: http://grub.ath.cx/daemonize/ and install it but that didn't seem to help. thanks Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070626/b7d2099d/attachment.html From ezmobius at gmail.com Tue Jun 26 19:09:49 2007 From: ezmobius at gmail.com (Ezra Zygmuntowicz) Date: Tue, 26 Jun 2007 16:09:49 -0700 Subject: [Mongrel] mongrel not daemonizing for me.. In-Reply-To: References: Message-ID: On Jun 26, 2007, at 4:01 PM, aaron smith wrote: > Hey All, > > I'm setting up some mongrel servers.. can't get it to daemonize. > > here is my configurator block:: > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > #debug('/gateway.rb',[:access,:threads]) > listener :port => OPTIONS[:port] do > uri("/gateway.rb", :handler => > RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processors]) > end > run.join > if OPTIONS[:daemon] > daemonize > end > end > > Any ideas? Also I was looking in the mongrel source and see that in > the daemonize method your calling Daemon.daemonize. Is that > depending on some library? I don't see it anywhere in the ruby > docs. I did find this: http://grub.ath.cx/daemonize/ and install > it but that didn't seem to help. > > thanks > Aaron > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do #debug('/gateway.rb',[:access,:threads]) listener :port => OPTIONS[:port] do uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processors]) end if OPTIONS[:daemon] daemonize end end config.run.join You were doing run.join before you daemonized so the daemoinize code never gets called. Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) From beingthexemplarylists at gmail.com Tue Jun 26 19:17:24 2007 From: beingthexemplarylists at gmail.com (aaron smith) Date: Tue, 26 Jun 2007 19:17:24 -0400 Subject: [Mongrel] mongrel not daemonizing for me.. In-Reply-To: References: Message-ID: On 6/26/07, Ezra Zygmuntowicz wrote: > > > On Jun 26, 2007, at 4:01 PM, aaron smith wrote: > > > Hey All, > > > > I'm setting up some mongrel servers.. can't get it to daemonize. > > > > here is my configurator block:: > > > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > > #debug('/gateway.rb',[:access,:threads]) > > listener :port => OPTIONS[:port] do > > uri("/gateway.rb", :handler => > > RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processors]) > > end > > run.join > > if OPTIONS[:daemon] > > daemonize > > end > > end > > > > Any ideas? Also I was looking in the mongrel source and see that in > > the daemonize method your calling Daemon.daemonize. Is that > > depending on some library? I don't see it anywhere in the ruby > > docs. I did find this: http://grub.ath.cx/daemonize/ and install > > it but that didn't seem to help. > > > > thanks > > Aaron > > > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > #debug('/gateway.rb',[:access,:threads]) > listener :port => OPTIONS[:port] do > uri("/gateway.rb", :handler => > RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processors]) > end > if OPTIONS[:daemon] > daemonize > end > end > > config.run.join > > You were doing run.join before you daemonized so the daemoinize > code > never gets called. > > Cheers- > -- Ezra Zygmuntowicz > -- Lead Rails Evangelist > -- ez at engineyard.com > -- Engine Yard, Serious Rails Hosting > -- (866) 518-YARD (9273) > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > Thanks that almost got it.. couple more things: here is the new configurator: config = Mongrel::Configurator.new(:host => OPTIONS[:ip], :log_file => '../../rubyamf_core/logs/mongrel.log') do #debug('/gateway.rb',[:access,:threads]) listener :port => OPTIONS[:port] do uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processors]) end end if OPTIONS[:daemon] config.daemonize end config.run.join ----That outputs these errors.. /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:182:in `join': can't convert nil into String (TypeError) from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:182:in `daemonize' Any ideas on that one? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070626/6f661ee5/attachment.html From beingthexemplarylists at gmail.com Tue Jun 26 19:20:02 2007 From: beingthexemplarylists at gmail.com (aaron smith) Date: Tue, 26 Jun 2007 19:20:02 -0400 Subject: [Mongrel] mongrel not daemonizing for me.. In-Reply-To: References: Message-ID: On 6/26/07, aaron smith wrote: > > > On 6/26/07, Ezra Zygmuntowicz wrote: > > > > > > On Jun 26, 2007, at 4:01 PM, aaron smith wrote: > > > > > Hey All, > > > > > > I'm setting up some mongrel servers.. can't get it to daemonize. > > > > > > here is my configurator block:: > > > > > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > > > #debug('/gateway.rb',[:access,:threads]) > > > listener :port => OPTIONS[:port] do > > > uri("/gateway.rb", :handler => > > > RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processors]) > > > end > > > run.join > > > if OPTIONS[:daemon] > > > daemonize > > > end > > > end > > > > > > Any ideas? Also I was looking in the mongrel source and see that in > > > the daemonize method your calling Daemon.daemonize. Is that > > > depending on some library? I don't see it anywhere in the ruby > > > docs. I did find this: http://grub.ath.cx/daemonize/ and install > > > it but that didn't seem to help. > > > > > > thanks > > > Aaron > > > > > > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > > #debug('/gateway.rb',[:access, :threads]) > > listener :port => OPTIONS[:port] do > > uri("/gateway.rb", :handler => > > RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processors]) > > end > > if OPTIONS[:daemon] > > daemonize > > end > > end > > > > config.run.join > > > > You were doing run.join before you daemonized so the daemoinize > > code > > never gets called. > > > > Cheers- > > -- Ezra Zygmuntowicz > > -- Lead Rails Evangelist > > -- ez at engineyard.com > > -- Engine Yard, Serious Rails Hosting > > -- (866) 518-YARD (9273) > > > > > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > > > Thanks that almost got it.. couple more things: > > > here is the new configurator: > > > config = Mongrel:: Configurator.new(:host => OPTIONS[:ip], :log_file => > '../../rubyamf_core/logs/mongrel.log') do > #debug('/gateway.rb',[:access,:threads]) > listener :port => OPTIONS[:port] do > uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, > :num_processors => OPTIONS[:processors]) > end > end > > if OPTIONS[:daemon] > config.daemonize > end > > config.run.join > > ----That outputs these errors.. > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/configurator.rb:182:in `join': can't convert nil into String > (TypeError) > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:182:in > `daemonize' > > > > > Any ideas on that one? > Wait it was because I had set :log_file there.. I took that out now I get these:: /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:181:in `daemonize': undefined method `[]' for nil:NilClass (NoMethodError) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070626/4ba72534/attachment.html From beingthexemplarylists at gmail.com Tue Jun 26 19:34:29 2007 From: beingthexemplarylists at gmail.com (aaron smith) Date: Tue, 26 Jun 2007 19:34:29 -0400 Subject: [Mongrel] mongrel not daemonizing for me.. In-Reply-To: References: Message-ID: Ok here is my latest configurator block.. config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do #debug('/gateway.rb',[:access,:threads]) listener :port => OPTIONS[:port] do uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, :num_processors => OPTIONS[:processes]) end end if OPTIONS[:daemon] config.daemonize(:log_file => '../../rubyamf_core/logs/mongrel.log') end config.run.join I get one error: usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:182:in `join': can't convert nil into String (TypeError) Thanks everyone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070626/92062b20/attachment-0001.html From beingthexemplarylists at gmail.com Tue Jun 26 19:43:28 2007 From: beingthexemplarylists at gmail.com (aaron smith) Date: Tue, 26 Jun 2007 19:43:28 -0400 Subject: [Mongrel] mongrel not daemonizing for me.. In-Reply-To: References: Message-ID: On 6/26/07, aaron smith wrote: > > Ok here is my latest configurator block.. > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > #debug('/gateway.rb',[:access,:threads]) > listener :port => OPTIONS[:port] do > uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, > :num_processors => OPTIONS[:processes]) > end > end > > if OPTIONS[:daemon] > config.daemonize(:log_file => '../../rubyamf_core/logs/mongrel.log') > end > > config.run.join > > > > I get one error: > usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:182:in > `join': can't convert nil into String (TypeError) > > > Thanks everyone > Ok I got it daemonizing correctly with this config block config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do #debug('/gateway.rb',[:access,:threads]) listener :port => OPTIONS[:port] do uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new) end end if OPTIONS[:daemon] config.daemonize(:cwd => Dir.pwd, :log_file => '/rubyamf_core/logs/mongrel.log') end config.run.join Now my question is: why doesn't it run as expected with its daemonized.. if I run it without being daemonized it's fine.. but as soon as its daemonized it doesn't run as expected. Any ideas? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070626/f59c3128/attachment.html From eden at mojiti.com Tue Jun 26 22:16:42 2007 From: eden at mojiti.com (Eden Li) Date: Wed, 27 Jun 2007 10:16:42 +0800 Subject: [Mongrel] mongrel not daemonizing for me.. In-Reply-To: References: Message-ID: <1dd361e10706261916k2ab85475h6ca3b8385bdb7bf0@mail.gmail.com> If I read the docs correctly, after you call #daemonize, you can just exit the script. You don't need the `config.run.join` step. Maybe move that into an else clause after the OPTIONS[:daemon] check. BTW, where did you get RUBYAMF::MongrelServlet? On 6/27/07, aaron smith wrote: > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > > #debug('/gateway.rb',[:access,:threads]) > > listener :port => OPTIONS[:port] do > > uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, > :num_processors => OPTIONS[:processes]) > > end > > end > > > > if OPTIONS[:daemon] > > config.daemonize(:log_file => > '../../rubyamf_core/logs/mongrel.log') > > end > > > > config.run.join > > > > I get one error: > > > usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:182:in > `join': can't convert nil into String (TypeError) From michael.dauria at gmail.com Wed Jun 27 00:20:53 2007 From: michael.dauria at gmail.com (Michael D'Auria) Date: Wed, 27 Jun 2007 00:20:53 -0400 Subject: [Mongrel] mongrel not daemonizing for me.. In-Reply-To: <1dd361e10706261916k2ab85475h6ca3b8385bdb7bf0@mail.gmail.com> References: <1dd361e10706261916k2ab85475h6ca3b8385bdb7bf0@mail.gmail.com> Message-ID: <1907e2ca0706262120l6a3b0448p9617a9643e6b74fd@mail.gmail.com> Eden, That is from the rubyamf project: http://rubyamf.org/. It enables Actionscript objects to flow freely from within Ruby to Flash/Flex. The latest version has a Mongrel servlet. Prett cool if you ask me! - Michael On 6/26/07, Eden Li wrote: > > If I read the docs correctly, after you call #daemonize, you can just > exit the script. You don't need the `config.run.join` step. Maybe > move that into an else clause after the OPTIONS[:daemon] check. > > BTW, where did you get RUBYAMF::MongrelServlet? > > On 6/27/07, aaron smith wrote: > > > config = Mongrel::Configurator.new(:host => OPTIONS[:ip]) do > > > #debug('/gateway.rb',[:access,:threads]) > > > listener :port => OPTIONS[:port] do > > > uri("/gateway.rb", :handler => RUBYAMF::MongrelServlet.new, > > :num_processors => OPTIONS[:processes]) > > > end > > > end > > > > > > if OPTIONS[:daemon] > > > config.daemonize(:log_file => > > '../../rubyamf_core/logs/mongrel.log') > > > end > > > > > > config.run.join > > > > > > I get one error: > > > > > usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/configurator.rb:182:in > > `join': can't convert nil into String (TypeError) > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070627/d18a0d44/attachment.html From vasudevram at gmail.com Wed Jun 27 13:12:00 2007 From: vasudevram at gmail.com (Vasudev Ram) Date: Wed, 27 Jun 2007 22:42:00 +0530 Subject: [Mongrel] Q on cgi_multipart_eol_fix preqequisite for Mongrel on Win2K Message-ID: Hi list, I downloaded and tried to install Mongrel (latest stable version) from the -win32 gem. Platform is Win2K. It said it needed daemons so got and installed that. Then it said it needed cgi_multipart_eol_fix (I think that was the name, not at my machine now, can confirm later and repost if needed). Googled for that but couldn't find it. (Don't have net connectivitity for a while - problems with brain-dead ISPs where I live - so can't do remote gem installs with --include-dependencies- have to download the gem and its prerequisites manually and install them). Any ideas? Thanks Vasudev ========================== "1 person in 100 understand binary. The other 11 don't." Vasudev Ram http://www.dancingbison.com http://jugad.livejournal.com http://sourceforge.net/projects/xtopdf ========================== -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070627/8646386c/attachment.html From vasudevram at gmail.com Wed Jun 27 13:17:54 2007 From: vasudevram at gmail.com (Vasudev Ram) Date: Wed, 27 Jun 2007 22:47:54 +0530 Subject: [Mongrel] Q on cgi_multipart_eol_fix preqequisite for Mongrel on Win2K In-Reply-To: References: Message-ID: P.S. 3 points more: 1. Actually it is _eof_fix, sorry. 2. When I Googled earlier I *did* get some hits, but they all seemed to be for Gentoo packages referring to the fix. So didnt't try to check them out since I'm on Windows. 3. Googled again just now and saw this post: http://rubyforge.org/pipermail/mongrel-users/2007-February/002895.html but not sure if I can use the info it it as I'm not on the Net on my PC. - Vasudev On 6/27/07, Vasudev Ram wrote: > > > Hi list, > > I downloaded and tried to install Mongrel (latest stable version) from the > -win32 gem. Platform is Win2K. > It said it needed daemons so got and installed that. Then it said it > needed cgi_multipart_eol_fix (I think that was the name, not at my machine > now, can confirm later and repost if needed). Googled for that but couldn't > find it. > (Don't have net connectivitity for a while - problems with brain-dead ISPs > where I live - so can't do remote gem installs with --include-dependencies- > have to download the gem and its prerequisites manually and install them). > Any ideas? > > Thanks > Vasudev > ========================== > "1 person in 100 understand binary. The other 11 don't." > Vasudev Ram > http://www.dancingbison.com > http://jugad.livejournal.com > http://sourceforge.net/projects/xtopdf > ========================== > > -- ========================== "1 person in 100 understand binary. The other 11 don't." Vasudev Ram http://www.dancingbison.com http://jugad.livejournal.com http://sourceforge.net/projects/xtopdf ========================== -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070627/dfd45300/attachment.html From luislavena at gmail.com Wed Jun 27 13:24:32 2007 From: luislavena at gmail.com (Luis Lavena) Date: Wed, 27 Jun 2007 14:24:32 -0300 Subject: [Mongrel] Q on cgi_multipart_eol_fix preqequisite for Mongrel on Win2K In-Reply-To: References: Message-ID: <71166b3b0706271024l55833d3tc95668785afd5b34@mail.gmail.com> On 6/27/07, Vasudev Ram wrote: > > Hi list, > > I downloaded and tried to install Mongrel (latest stable version) from the > -win32 gem. Platform is Win2K. > It said it needed daemons so got and installed that. Wait a second: if It asked about daemons, is not win32 gem... is the ruby version. > Then it said it needed > cgi_multipart_eol_fix (I think that was the name, not at my machine now, can > confirm later and repost if needed). Googled for that but couldn't find it. cgi_multipart_eol_fix is available via rubygems too, are you doing a manual install? If so, then I will suggest use --ignore-dependencies in 'gem install': gem install "gem-name.gem" --ignore-dependencies > (Don't have net connectivitity for a while - problems with brain-dead ISPs > where I live - so can't do remote gem installs with --include-dependencies- > have to download the gem and its prerequisites manually and install them). > Any ideas? > Sorry, wrote the text before read the whole mail :-P mongrel-1.0.1-win32.gem cgi_multipart_eol_fix-0.2.1.gem (guess thats the version). mongrel_service-0.3.2-win32.gem (if you plan run mongrel as service). win32-service-0.5.2-win32.gem (if you need mongrel_service). Guess thats everything. -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi From evan at cloudbur.st Wed Jun 27 17:56:30 2007 From: evan at cloudbur.st (Evan Weaver) Date: Wed, 27 Jun 2007 17:56:30 -0400 Subject: [Mongrel] Q on cgi_multipart_eol_fix preqequisite for Mongrel on Win2K In-Reply-To: <71166b3b0706271024l55833d3tc95668785afd5b34@mail.gmail.com> References: <71166b3b0706271024l55833d3tc95668785afd5b34@mail.gmail.com> Message-ID: cgi_multipart_eof_fix is here: http://rubyforge.org/frs/?group_id=2835 if you need to download it manually. I've been maintaining it rather than the Mongrel team since after version 1.0. Evan On 6/27/07, Luis Lavena wrote: > On 6/27/07, Vasudev Ram wrote: > > > > Hi list, > > > > I downloaded and tried to install Mongrel (latest stable version) from the > > -win32 gem. Platform is Win2K. > > It said it needed daemons so got and installed that. > > Wait a second: > > if It asked about daemons, is not win32 gem... is the ruby version. > > > Then it said it needed > > cgi_multipart_eol_fix (I think that was the name, not at my machine now, can > > confirm later and repost if needed). Googled for that but couldn't find it. > > cgi_multipart_eol_fix is available via rubygems too, are you doing a > manual install? > > If so, then I will suggest use --ignore-dependencies in 'gem install': > > gem install "gem-name.gem" --ignore-dependencies > > > (Don't have net connectivitity for a while - problems with brain-dead ISPs > > where I live - so can't do remote gem installs with --include-dependencies- > > have to download the gem and its prerequisites manually and install them). > > Any ideas? > > > > Sorry, wrote the text before read the whole mail :-P > > mongrel-1.0.1-win32.gem > cgi_multipart_eol_fix-0.2.1.gem (guess thats the version). > mongrel_service-0.3.2-win32.gem (if you plan run mongrel as service). > win32-service-0.5.2-win32.gem (if you need mongrel_service). > > Guess thats everything. > > -- > Luis Lavena > Multimedia systems > - > Leaders are made, they are not born. They are made by hard effort, > which is the price which all of us must pay to achieve any goal that > is worthwhile. > Vince Lombardi > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -- Evan Weaver Cloudburst, LLC From zedshaw at zedshaw.com Wed Jun 27 19:16:59 2007 From: zedshaw at zedshaw.com (Zed A. Shaw) Date: Wed, 27 Jun 2007 19:16:59 -0400 Subject: [Mongrel] Q on cgi_multipart_eol_fix preqequisite for Mongrel on Win2K In-Reply-To: References: <71166b3b0706271024l55833d3tc95668785afd5b34@mail.gmail.com> Message-ID: <20070627191659.783f8f18.zedshaw@zedshaw.com> On Wed, 27 Jun 2007 17:56:30 -0400 "Evan Weaver" wrote: > cgi_multipart_eof_fix is here: http://rubyforge.org/frs/?group_id=2835 > if you need to download it manually. > > I've been maintaining it rather than the Mongrel team since after version 1.0. You want access to the Mongrel project so you can maintain it? Just gotta ask. -- Zed A. Shaw - Hate: http://savingtheinternetwithhate.com/ - Good: http://www.zedshaw.com/ - Evil: http://yearofevil.com/ From evan at cloudbur.st Wed Jun 27 21:52:32 2007 From: evan at cloudbur.st (Evan Weaver) Date: Wed, 27 Jun 2007 21:52:32 -0400 Subject: [Mongrel] Q on cgi_multipart_eol_fix preqequisite for Mongrel on Win2K In-Reply-To: <20070627191659.783f8f18.zedshaw@zedshaw.com> References: <71166b3b0706271024l55833d3tc95668785afd5b34@mail.gmail.com> <20070627191659.783f8f18.zedshaw@zedshaw.com> Message-ID: Na I just kind of put it up there, as a regular installable gem, since you hadn't.... didn't t