From lists at ruby-forum.com Mon Mar 1 08:47:52 2010 From: lists at ruby-forum.com (Hudarsono Hudarsono) Date: Mon, 1 Mar 2010 14:47:52 +0100 Subject: [Mongrel] Mongrel cluster processes not starting In-Reply-To: <71166b3b1002280225t59c8521fo69d67fee7e58c42a@mail.gmail.com> References: <2fec85160811212323v70bd3167q100904932cfc8b70@mail.gmail.com> <71166b3b0811240800j3a0f41f0ub2beb0b5235b7119@mail.gmail.com> <71166b3b1002280225t59c8521fo69d67fee7e58c42a@mail.gmail.com> Message-ID: <0e4b9a6bf0939b1070fec16a41c1e0c4@ruby-forum.com> Luis Lavena wrote: > On Sun, Feb 28, 2010 at 11:17 AM, Hudarsono Hudarsono > wrote: >> I exactly have the same problem. It happens with ubuntu 8 and also got >> the same problem with debian 5. >> >> When just run one mongrel, it works, but when use cluster, got that >> problem. Any idea? >> >> I use ruby 1.8.7, rails 2.3.5 and mongrel cluster 1.0.5 >> > > I'm not aware of any issue with mongrel_cluster and 1.8.7, but there > could be. > > What are the contents of your mongrel_cluster configuration file? > > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup?ry Hi, sorry, it was my fault. I was not setup the permission correctly. When checking on mongrel log, got permission denied error. but everythings seems ok after correct that stuff. Thanks. -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Sun Mar 7 08:43:20 2010 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 7 Mar 2010 14:43:20 +0100 Subject: [Mongrel] [ANN] mongrel_service 0.4.beta3 Released Message-ID: <71166b3b1003070543t2cf8f08bl9d5ac585c94a2119@mail.gmail.com> mongrel_service version 0.4.beta3 has been released! * This plugin offer native win32 services for rails. This replace mongrel_rails_service. Since this is a pre-release gem, you can install it with: gem install mongrel_service --prerelease If no bug is found, expect an final release in the upcoming days. Please submit bug reports here: http://github.com/fauna/mongrel_service/issues Thank you. Changes: ### 0.4.beta3 / 2010-03-07 * Bugfixes: * Enable the service display name to contain spaces [sinclair] * Use a regex for more realible determination of service existance [sinclair] Closes GH-1 -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Wed Mar 24 02:56:01 2010 From: lists at ruby-forum.com (T_ S_) Date: Wed, 24 Mar 2010 07:56:01 +0100 Subject: [Mongrel] Mongrel_rails can't find memcache-client Message-ID: <2b83b50d03577012d5a21238a6b526fe@ruby-forum.com> I added memcache-client to our app: config.gem "memcache-client", :version => "1.8.1" According to "gem list" the gem is there: memcache-client (1.8.1) If I run our app with "script/server" everything works just fine but when I try to run it with "mongrel_rails start" it stops with error: no such file to load -- memcache-client So is there something different how mongrel_rails looks up gems? What is so special about this gem as the other gems work just fine? -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Wed Mar 24 05:50:00 2010 From: luislavena at gmail.com (Luis Lavena) Date: Wed, 24 Mar 2010 10:50:00 +0100 Subject: [Mongrel] Mongrel_rails can't find memcache-client In-Reply-To: <2b83b50d03577012d5a21238a6b526fe@ruby-forum.com> References: <2b83b50d03577012d5a21238a6b526fe@ruby-forum.com> Message-ID: <71166b3b1003240250t658165edle295347ef9bbafad@mail.gmail.com> On Wed, Mar 24, 2010 at 7:56 AM, T_ S_ wrote: > I added memcache-client to our app: > config.gem "memcache-client", :version => "1.8.1" > > According to "gem list" the gem is there: > memcache-client (1.8.1) > > If I run our app with "script/server" everything works just fine but > when I try to run it with "mongrel_rails start" it stops with error: > no such file to load -- memcache-client > > So is there something different how mongrel_rails looks up gems? What is > so special about this gem as the other gems work just fine? When you start mongrel_rails, you're doing without daemonize, correct? There is no configuration file that indicates mongrel should change user or group when running, correct? It might be that the memcache-client gem is not installed system wide. I've used mongrel_rails, combined with memcache-client and memcached in a bundler configuration and worked without issues, so the problem might be something else. Can you build an exact pastie/gist of the output you're receiving? (or can replicate with a simple rails app?) Thank you -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From frikazojd at freemail.hu Wed Mar 24 15:16:47 2010 From: frikazojd at freemail.hu (=?ISO-8859-2?Q?Nagy_Tam=E1s?=) Date: Wed, 24 Mar 2010 20:16:47 +0100 (CET) Subject: [Mongrel] VirtualHost like in the Apache-PHP world Message-ID: How to make virtual hosts in mongrel? ::how to serve example1.tld, example2.tld, .. exampleN.tld's different ruby apps? thanks in advence frikazojd. ________________________________________________________
?jdons?g! Meg?rkezett a RIGHT GUARD f?rfi test?pol?si term?kcsal?d! Most 25% kedvezm?nnyel! Ak?r 48 ?r?s hat?sos v?delem a testszag ellen!
-------------- next part -------------- An HTML attachment was scrubbed... URL: From rochkind at jhu.edu Wed Mar 24 15:34:19 2010 From: rochkind at jhu.edu (Jonathan Rochkind) Date: Wed, 24 Mar 2010 15:34:19 -0400 Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: References: Message-ID: <4BAA693B.9040702@jhu.edu> You do it all in Apache. Typical way to deploy mongrel is fronted with an Apache reverse proxy. You need to set up everything in Apache, and have the right requests proxied to the right mongrel. It's all about apache, no config in Mongrel. You may also want to consider mod_rails/passenger instead of mongrel, it seems to be more popular these days for Rails deployment, and you may find it easier to set up the way you want. Jonathan Nagy Tam?s wrote: > How to make virtual hosts in mongrel? > > ::how to serve example1.tld, example2.tld, .. exampleN.tld's different ruby apps? > > thanks in advence > frikazojd. > > > ________________________________________________________ > ?jdons?g! Meg?rkezett a RIGHT GUARD f?rfi test?pol?si term?kcsal?d! Most 25% kedvezm?nnyel! Ak?r 48 ?r?s hat?sos v?delem a testszag ellen! > > From frikazojd at freemail.hu Wed Mar 24 18:01:41 2010 From: frikazojd at freemail.hu (=?ISO-8859-2?Q?Nagy_Tam=E1s?=) Date: Wed, 24 Mar 2010 23:01:41 +0100 (CET) Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: <4BAA693B.9040702@jhu.edu> Message-ID: Thank you, Jonathan! but i'd like to try out Mongrel..so, I set the apache with mod_proxy.. i think it should forward the request to mongrel, localhost:3000.. but how will the mongrel figure out where are the ruby apps? it will get a request for example.tld or example6.tld and example4.tld at the same time.. .. ?? Jonathan Rochkind ?rta: >You do it all in Apache. Typical way to deploy mongrel is fronted with >an Apache reverse proxy. You need to set up everything in Apache, and >have the right requests proxied to the right mongrel. It's all about >apache, no config in Mongrel. > >You may also want to consider mod_rails/passenger instead of mongrel, it >seems to be more popular these days for Rails deployment, and you may >find it easier to set up the way you want. > >Jonathan > ________________________________________________________
?jdons?g! Meg?rkezett a RIGHT GUARD f?rfi test?pol?si term?kcsal?d! Most 25% kedvezm?nnyel! Ak?r 48 ?r?s hat?sos v?delem a testszag ellen!
-------------- next part -------------- An HTML attachment was scrubbed... URL: From hassan.schroeder at gmail.com Wed Mar 24 18:13:38 2010 From: hassan.schroeder at gmail.com (Hassan Schroeder) Date: Wed, 24 Mar 2010 15:13:38 -0700 Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: References: <4BAA693B.9040702@jhu.edu> Message-ID: <4eedb92a1003241513n42b50e30g183db904fea35d6d@mail.gmail.com> 2010/3/24 Nagy Tam?s : > but i'd like to try out Mongrel.. > so, I set the apache with mod_proxy.. i think it should forward the request > to mongrel, localhost:3000.. but how will the mongrel figure out where are > the ruby apps? it will get a request for example.tld or example6.tld and > example4.tld at the same time.. .. ?? You need to have at least one mongrel instance per domain, and set up your httpd proxy accordingly. -- Hassan Schroeder ------------------------ hassan.schroeder at gmail.com twitter: @hassan From jftucker at gmail.com Thu Mar 25 04:29:35 2010 From: jftucker at gmail.com (James Tucker) Date: Thu, 25 Mar 2010 08:29:35 +0000 Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: <4eedb92a1003241513n42b50e30g183db904fea35d6d@mail.gmail.com> References: <4BAA693B.9040702@jhu.edu> <4eedb92a1003241513n42b50e30g183db904fea35d6d@mail.gmail.com> Message-ID: On 24 Mar 2010, at 22:13, Hassan Schroeder wrote: > 2010/3/24 Nagy Tam?s : > >> but i'd like to try out Mongrel.. >> so, I set the apache with mod_proxy.. i think it should forward the request >> to mongrel, localhost:3000.. but how will the mongrel figure out where are >> the ruby apps? it will get a request for example.tld or example6.tld and >> example4.tld at the same time.. .. ?? > > You need to have at least one mongrel instance per domain, and set > up your httpd proxy accordingly. Actually, you can use rack to do it: map "http://domain1/" do run App1 end map "http://domain2/" do run App2 end Then specify multiple vhost aliases in the apache proxy configuration > > -- > Hassan Schroeder ------------------------ hassan.schroeder at gmail.com > twitter: @hassan > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3679 bytes Desc: not available URL: From frikazojd at freemail.hu Thu Mar 25 10:34:15 2010 From: frikazojd at freemail.hu (=?ISO-8859-2?Q?Nagy_Tam=E1s?=) Date: Thu, 25 Mar 2010 15:34:15 +0100 (CET) Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: Message-ID: Thank you Hassan, James! So i will need one mongrel per domain. I think I can't carry out this because I have a thousands of domains. I think i will try the rack-thing James mentioned. I assume i can't run individual ruby script files but whole apps, one app for one domain. ooohh so hard.. :) ________________________________________________________
?jdons?g! Meg?rkezett a RIGHT GUARD f?rfi test?pol?si term?kcsal?d! Most 25% kedvezm?nnyel! Ak?r 48 ?r?s hat?sos v?delem a testszag ellen!
-------------- next part -------------- An HTML attachment was scrubbed... URL: From jftucker at gmail.com Thu Mar 25 11:29:59 2010 From: jftucker at gmail.com (James Tucker) Date: Thu, 25 Mar 2010 15:29:59 +0000 Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: References: Message-ID: <1C3B0B0B-6DF9-400E-B93C-D8CF17B7D15B@gmail.com> On 25 Mar 2010, at 14:34, Nagy Tam?s wrote: > Thank you Hassan, James! > > So i will need one mongrel per domain. I think I can't carry out this because I have a thousands of domains. That sounds like a recipe for out of memory errors and cross-application errors taking down the whole set at the same time. It also sounds like it's better suited to passenger. > I think i will try the rack-thing James mentioned. I assume i can't run individual ruby script files but whole apps, one app for one domain. You can load whatever you like, and run anything that responds to #call, in the standard rack manner. What you won't be able to do, is load different versions of dependencies into the same process and expect to be bug free. > ooohh so hard.. :) > > > ________________________________________________________ > ?jdons?g! Meg?rkezett a RIGHT GUARD f?rfi test?pol?si term?kcsal?d! Most 25% kedvezm?nnyel! Ak?r 48 ?r?s hat?sos v?delem a testszag ellen! _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rochkind at jhu.edu Thu Mar 25 10:52:40 2010 From: rochkind at jhu.edu (Jonathan Rochkind) Date: Thu, 25 Mar 2010 10:52:40 -0400 Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: References: Message-ID: <4BAB78B8.6050201@jhu.edu> Do you want a seperate app per domain, or do you want one app handling multiple domains? If you want a seperate app per domain, I think you'd need a mongrel per domain too, I don't see any other way to do it. If you want one app that handles multiple domains, than it's up to you to write an app that can do that, and it's not a mongrel issue. Jonathan Nagy Tam?s wrote: > Thank you Hassan, James! > > So i will need one mongrel per domain. I think I can't carry out this because I have a thousands of domains. > > I think i will try the rack-thing James mentioned. I assume i can't run individual ruby script files but whole apps, one app for one domain. > > ooohh so hard.. :) > > > ________________________________________________________ > ?jdons?g! Meg?rkezett a RIGHT GUARD f?rfi test?pol?si term?kcsal?d! Most 25% kedvezm?nnyel! Ak?r 48 ?r?s hat?sos v?delem a testszag ellen! > > From jftucker at gmail.com Thu Mar 25 17:04:38 2010 From: jftucker at gmail.com (James Tucker) Date: Thu, 25 Mar 2010 21:04:38 +0000 Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: <4BAB78B8.6050201@jhu.edu> References: <4BAB78B8.6050201@jhu.edu> Message-ID: <123A6B73-AD6F-4277-84B2-7009BD66E358@gmail.com> On 25 Mar 2010, at 14:52, Jonathan Rochkind wrote: > Do you want a seperate app per domain, or do you want one app handling multiple domains? > > If you want a seperate app per domain, I think you'd need a mongrel per domain too, I don't see any other way to do it. map "http://domain1.com/" do run App1.new end map "http://domain2.com/" do run App2.new end I see a way to do it. > > If you want one app that handles multiple domains, than it's up to you to write an app that can do that, and it's not a mongrel issue. > > Jonathan > > Nagy Tam?s wrote: >> Thank you Hassan, James! >> >> So i will need one mongrel per domain. I think I can't carry out this because I have a thousands of domains. >> >> I think i will try the rack-thing James mentioned. I assume i can't run individual ruby script files but whole apps, one app for one domain. >> >> ooohh so hard.. :) >> >> >> ________________________________________________________ >> ?jdons?g! Meg?rkezett a RIGHT GUARD f?rfi test?pol?si term?kcsal?d! Most 25% kedvezm?nnyel! Ak?r 48 ?r?s hat?sos v?delem a testszag ellen! >> >> > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users From hassan.schroeder at gmail.com Thu Mar 25 17:43:32 2010 From: hassan.schroeder at gmail.com (Hassan Schroeder) Date: Thu, 25 Mar 2010 14:43:32 -0700 Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: <123A6B73-AD6F-4277-84B2-7009BD66E358@gmail.com> References: <4BAB78B8.6050201@jhu.edu> <123A6B73-AD6F-4277-84B2-7009BD66E358@gmail.com> Message-ID: <4eedb92a1003251443l55d165ey520c2ad77ce4f174@mail.gmail.com> On Thu, Mar 25, 2010 at 2:04 PM, James Tucker wrote: > map "http://domain1.com/" do > ?run App1.new > end > > map "http://domain2.com/" do > ?run App2.new > end > > I see a way to do it. OK, I've never used Rack as a standalone entity; how exactly does this work in a Rails context? Say, I have a directory structure like /webapps/app1 /webapps/app2 where both app1 and app2 are Rails apps. Where does the above code go, and what exactly would I be invoking? -- Hassan Schroeder ------------------------ hassan.schroeder at gmail.com twitter: @hassan From frikazojd at freemail.hu Fri Mar 26 05:00:53 2010 From: frikazojd at freemail.hu (=?ISO-8859-2?Q?Nagy_Tam=E1s?=) Date: Fri, 26 Mar 2010 10:00:53 +0100 (CET) Subject: [Mongrel] VirtualHost like in the Apache-PHP world In-Reply-To: <4eedb92a1003251443l55d165ey520c2ad77ce4f174@mail.gmail.com> Message-ID: Ok, then it will be Rack. anyway, i want to use the whole ruby as php: example.tld/rubyscript1.rbexample.tld/rubyscript2.rbexample2.tld/rubyappexample2.tld/rubyapp/rubyscript.rb where also works any Rails app.. ________________________________________________________
?jdons?g! Meg?rkezett a RIGHT GUARD f?rfi test?pol?si term?kcsal?d! Most 25% kedvezm?nnyel! Ak?r 48 ?r?s hat?sos v?delem a testszag ellen!
-------------- next part -------------- An HTML attachment was scrubbed... URL: