From lists at ruby-forum.com Tue Jul 1 15:28:31 2008 From: lists at ruby-forum.com (Clara Raubertas) Date: Tue, 1 Jul 2008 21:28:31 +0200 Subject: [Mongrel] Mongrel claims to be available, but the site isn't visible Message-ID: <0867ce8037241877bae90ff1a91b6d0f@ruby-forum.com> I'm trying to deploy a rails app for development on slicehost and I can't seem to get mongrel to work correctly. When I run mongrel_rails start I get: ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well. ** Mongrel 1.1.5 available at 0.0.0.0:3000 ** Use CTRL-C to stop. But when I visit http://mysite.com:3000, I get a page load error instead of the expected rails app. No errors show up in mongrel.log. I have no problem using my app in script/console or viewing the root of my domain (served by apache) -- but I just can't get the mongrel site to show up in the browser. Is there something I can do besides checking in the browser and looking at mongrel.log that will tell me if mongrel is running and/or having errors? Could this be port 3000 not being publicly accessible for some reason (and if so, how can I change this)? Any other reasons this might be happening? Thanks very much for any advice! -- Posted via http://www.ruby-forum.com/. From zedshaw at zedshaw.com Wed Jul 2 02:39:13 2008 From: zedshaw at zedshaw.com (Zed A. Shaw) Date: Wed, 2 Jul 2008 02:39:13 -0400 Subject: [Mongrel] Mongrel claims to be available, but the site isn't visible In-Reply-To: <0867ce8037241877bae90ff1a91b6d0f@ruby-forum.com> References: <0867ce8037241877bae90ff1a91b6d0f@ruby-forum.com> Message-ID: <20080702023913.f4592445.zedshaw@zedshaw.com> On Tue, 1 Jul 2008 21:28:31 +0200 Clara Raubertas wrote: > I'm trying to deploy a rails app for development on slicehost and I > can't seem to get mongrel to work correctly. When I run > ... > But when I visit http://mysite.com:3000, I get a page load error instead > of the expected rails app. You'll need to figure out what is preventing you from accessing it. If you follow the chain of potential causes from browser to Rails you get these linkages: 1) Browser->Network -- Can you connect to other sites? 2) Network->Network -- Can you connect to the remote computer with another protocol? 3) Network->Port 3000 -- Can you connect to port 3000 with something you know works listening on port 3000? (not mongrel) 4) Port 3000->Mongrel -- Does Mongrel receive the request? Try -B (debug). What about from localhost->localhost:3000? If you can do localhost->localhost, but not network->network then you have a firewall rule. 5) Mongrel -> Rails -- Is Rails receiving it and sending a reply? Check rails log. 6) Rails -> Database -- Is the database getting hit? Then follow the chain back. Tools that can help you: * lsof -i -P * wireshark * route -n * netstat * curl Let me know if you figure it out. -- A1S9-4A: R.I.P. 6/21/08 Zed A. Shaw From lists at ruby-forum.com Wed Jul 2 09:33:53 2008 From: lists at ruby-forum.com (Jags Rao) Date: Wed, 2 Jul 2008 15:33:53 +0200 Subject: [Mongrel] deleting pid files on ubuntu restart due to power down Message-ID: hi guys we are running a ubuntu machine as our demo server for serving Ruby on rails apps we are using mysql,nginx,mongrel for serving the sites. the problem is if for any reason the power fails out and comes back mysql and nginx get started fine but mongrel does not work due to some pid(mongrel.8000.pid mongrel.8001.pid mongrel.8002.pid) files existing in log folder. we then manually delete the files and start the cluster. is there anyway we can check during reboot of ubuntu server for any existing pid files in log folder and delete them and then start the mongrel cluster. thanks jags -- Posted via http://www.ruby-forum.com/. From hassan.schroeder at gmail.com Wed Jul 2 10:38:20 2008 From: hassan.schroeder at gmail.com (Hassan Schroeder) Date: Wed, 2 Jul 2008 07:38:20 -0700 Subject: [Mongrel] deleting pid files on ubuntu restart due to power down In-Reply-To: References: Message-ID: <4eedb92a0807020738i731ad70ew3d8008ba5515df14@mail.gmail.com> On Wed, Jul 2, 2008 at 6:33 AM, Jags Rao wrote: > the problem is if for any reason the power fails out and comes back sounds like the first thing to do is get a UPS :-) > mysql and nginx get started fine but mongrel does not work due to > some pid(mongrel.8000.pid mongrel.8001.pid mongrel.8002.pid) files > is there anyway we can check during reboot of ubuntu server for any > existing pid > files in log folder and delete them and then start the mongrel cluster. Of course -- look in /etc/init.d for examples of scripts that are run at boot time (and/or shutdown). Write your own and link it to the appropriate run-level (rc*.d) directory. FWIW, -- Hassan Schroeder ------------------------ hassan.schroeder at gmail.com From lists at ruby-forum.com Wed Jul 2 10:39:50 2008 From: lists at ruby-forum.com (Clara Raubertas) Date: Wed, 2 Jul 2008 16:39:50 +0200 Subject: [Mongrel] Mongrel claims to be available, but the site isn't visible In-Reply-To: <20080702023913.f4592445.zedshaw@zedshaw.com> References: <0867ce8037241877bae90ff1a91b6d0f@ruby-forum.com> <20080702023913.f4592445.zedshaw@zedshaw.com> Message-ID: <2e5fd658a9d35f5e80e32bb0b0c0c27a@ruby-forum.com> Thanks, great advice! As I kind of suspected it turned out to be a firewall setting making Network --> Port 3000 not accessible; it's fixed now. -- Posted via http://www.ruby-forum.com/. From rgo at aspgems.com Wed Jul 2 10:42:14 2008 From: rgo at aspgems.com (Rafael G.) Date: Wed, 02 Jul 2008 16:42:14 +0200 Subject: [Mongrel] deleting pid files on ubuntu restart due to power down In-Reply-To: References: Message-ID: <486B93C6.8020006@aspgems.com> New mongrel's versions has the parameter "--clean". It do the work :) Jags Rao escribi?: > hi guys > > we are running a ubuntu machine as our demo server for serving Ruby on > rails apps > we are using mysql,nginx,mongrel for serving the sites. > > the problem is if for any reason the power fails out and comes back > mysql and nginx get started fine but mongrel does not work due to > some pid(mongrel.8000.pid mongrel.8001.pid mongrel.8002.pid) files > existing in log folder. > > we then manually delete the files and start the cluster. > > is there anyway we can check during reboot of ubuntu server for any > existing pid > files in log folder and delete them and then start the mongrel cluster. > > thanks > jags > -- Rafael Garcia Ortega -------------- next part -------------- A non-text attachment was scrubbed... Name: rgo.vcf Type: text/x-vcard Size: 241 bytes Desc: not available URL: From bwillenator at gmail.com Wed Jul 2 11:09:43 2008 From: bwillenator at gmail.com (Brian Williams) Date: Wed, 2 Jul 2008 08:09:43 -0700 Subject: [Mongrel] deleting pid files on ubuntu restart due to power down In-Reply-To: <486B93C6.8020006@aspgems.com> References: <486B93C6.8020006@aspgems.com> Message-ID: <6f314be40807020809n34fc450clfa65f35581f61d96@mail.gmail.com> Ubuntu and debian mount /var/run/ directories using tmpfs, which means the /var/run directories are cleared out at boot time. That's why debian packages write out pid files into subdirectories of /var/run. You might be able to configure your mongrel so that the pid files are written under /var/run --Brian 2008/7/2 Rafael G. : > New mongrel's versions has the parameter "--clean". It do the work :) > > Jags Rao escribi?: > >> hi guys >> >> we are running a ubuntu machine as our demo server for serving Ruby on >> rails apps >> we are using mysql,nginx,mongrel for serving the sites. >> >> the problem is if for any reason the power fails out and comes back >> mysql and nginx get started fine but mongrel does not work due to >> some pid(mongrel.8000.pid mongrel.8001.pid mongrel.8002.pid) files >> existing in log folder. >> >> we then manually delete the files and start the cluster. >> >> is there anyway we can check during reboot of ubuntu server for any >> existing pid >> files in log folder and delete them and then start the mongrel cluster. >> >> thanks >> jags >> >> > > > -- > Rafael Garcia Ortega > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Jul 6 06:01:35 2008 From: lists at ruby-forum.com (Valery Visnakov) Date: Sun, 6 Jul 2008 12:01:35 +0200 Subject: [Mongrel] mongrel startup fails now: already initialized constant In-Reply-To: References: Message-ID: <739e4c25012d4fd95429d2ae55b714d9@ruby-forum.com> The problem is in missing gems. For me it was aws-s3, after 'gem install aws-s3' installation with all dependencies everything worked fine. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jul 7 19:51:38 2008 From: lists at ruby-forum.com (Justin To) Date: Tue, 8 Jul 2008 01:51:38 +0200 Subject: [Mongrel] Starting Mongrel as Windows service Message-ID: <485399ea5a28cdb200eaae6cf79d235f@ruby-forum.com> Hi, I'm very new to Mongrel and RoR. I found this command: $ mongrel_rails_service install -n blog -r c:\data\blog \ -p 4000 -e production But I'm not sure if I'm suppose to modify any of those commands. Or should I just press enter and leave it as is? Thanks! -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Tue Jul 8 03:27:11 2008 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 8 Jul 2008 09:27:11 +0200 Subject: [Mongrel] Starting Mongrel as Windows service In-Reply-To: <485399ea5a28cdb200eaae6cf79d235f@ruby-forum.com> References: <485399ea5a28cdb200eaae6cf79d235f@ruby-forum.com> Message-ID: <71166b3b0807080027o55107da9hd5b2d9b9de0da01c@mail.gmail.com> On Tue, Jul 8, 2008 at 1:51 AM, Justin To wrote: > Hi, I'm very new to Mongrel and RoR. > > I found this command: > > $ mongrel_rails_service install -n blog -r c:\data\blog \ > -p 4000 -e production > > But I'm not sure if I'm suppose to modify any of those > commands. Or should I just press enter and leave it as is? > Hello Justin. Dunno where you found those commands, but they are not up to date. This page contains more actual information: http://mongrel.rubyforge.org/wiki/Win32 1) To install a service, from the root of your rails application, do this: mongrel_rails service::install -N blog That will create a "blog" service that you can start or stop using net commands: net start blog net stop blog 2) To remove the service, only do this: mongrel_rails service:remove -N blog Notice the use of uppercase N, that changed some time ago due a clash of parameters between service and cluster. Now is N. > Thanks! HTH, -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From lists at ruby-forum.com Tue Jul 8 11:57:01 2008 From: lists at ruby-forum.com (Justin To) Date: Tue, 8 Jul 2008 17:57:01 +0200 Subject: [Mongrel] Starting Mongrel as Windows service In-Reply-To: <71166b3b0807080027o55107da9hd5b2d9b9de0da01c@mail.gmail.com> References: <485399ea5a28cdb200eaae6cf79d235f@ruby-forum.com> <71166b3b0807080027o55107da9hd5b2d9b9de0da01c@mail.gmail.com> Message-ID: <4586a0419fc448a7b16ddb7349df94cf@ruby-forum.com> Thanks for the help Luis. However, I was a little confused since you said I must use: mongrel_rails service::install -N blog while the link you gave me says: mongrel_rails service::install -N myapp \ -c c:\my\path\to\myapp -p 4000 -e production What do the extra parameters do? Thanks!! -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Tue Jul 8 12:34:38 2008 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 8 Jul 2008 18:34:38 +0200 Subject: [Mongrel] Starting Mongrel as Windows service In-Reply-To: <4586a0419fc448a7b16ddb7349df94cf@ruby-forum.com> References: <485399ea5a28cdb200eaae6cf79d235f@ruby-forum.com> <71166b3b0807080027o55107da9hd5b2d9b9de0da01c@mail.gmail.com> <4586a0419fc448a7b16ddb7349df94cf@ruby-forum.com> Message-ID: <71166b3b0807080934u1fc127a8s5b51bc8094dd8227@mail.gmail.com> On Tue, Jul 8, 2008 at 5:57 PM, Justin To wrote: > Thanks for the help Luis. > > However, I was a little confused since you said I must use: > > mongrel_rails service::install -N blog > > while the link you gave me says: > > mongrel_rails service::install -N myapp \ > -c c:\my\path\to\myapp -p 4000 -e production > > What do the extra parameters do? > you can check for yourself: mongrel_rails service::install -h that will give you a detailed list of what means each one. You can use the -c one if you want to install the service from outside your RAILS_ROOT. > Thanks!! You can look for the other ones: port and environment :-) HTH, -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From Jeff.Everett at pinnacol.com Tue Jul 8 15:44:20 2008 From: Jeff.Everett at pinnacol.com (Jeff Everett) Date: Tue, 08 Jul 2008 13:44:20 -0600 Subject: [Mongrel] Processing config files as ERB templates Message-ID: <48736F34.B059.0012.0@pinnacol.com> For various reasons it's very handy for us to process our mongrel cluster configuration files as ERB templates during start up. I found a post from a couple of years ago on this mailing list about possibly adding that feature. But nothing seemed to come of it. I'd like to submit a request for this feature to be added, but I can't figure out how to go about it. Is this list the right place? Do I open a Trac ticket? Submit a patch to someone? Any guidance on this would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Jul 9 18:42:06 2008 From: lists at ruby-forum.com (RR YY) Date: Thu, 10 Jul 2008 00:42:06 +0200 Subject: [Mongrel] Mongrel + apache 2.2 + proxy error In-Reply-To: <20080114033340.GA3342@sue.caltech.edu> References: <5729527e61082c10eb8e04e3615c2565@ruby-forum.com> <20080114033340.GA3342@sue.caltech.edu> Message-ID: <194949c3201dd2fcf2b0e153bb5053c5@ruby-forum.com> Cynthia Kiser wrote: > If your database is MySQL, check to see you have the C-based MySQL > driver - it is usually installed as a gem: 'gem install mysql' > Installing that seems to have cured my problems with my development > servers dying when left alone overnight. > > Quoting Bbq Plate : did any one resolve this? I am getting the same error - it happens to me after service is up for appox 30-60 mins. None of the following helped: #Fix for Apache bug 39499 SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 Mysql gem is installed too -- Posted via http://www.ruby-forum.com/. From todd.fisher at gmail.com Wed Jul 9 21:44:55 2008 From: todd.fisher at gmail.com (Todd Fisher) Date: Wed, 9 Jul 2008 21:44:55 -0400 Subject: [Mongrel] Processing config files as ERB templates In-Reply-To: <48736F34.B059.0012.0@pinnacol.com> References: <48736F34.B059.0012.0@pinnacol.com> Message-ID: You can use the -S option and instead of using erb, you can write a ruby script. Or if you have files you really need to use erb on you can execute the erb in your -S script. I think this would solve your problem... if I understand correctly... On Tue, Jul 8, 2008 at 3:44 PM, Jeff Everett wrote: > For various reasons it's very handy for us to process our mongrel cluster > configuration files as ERB templates during start up. I found a post from a > couple of years ago on this mailing list about possibly adding that feature. > But nothing seemed to come of it. > > I'd like to submit a request for this feature to be added, but I can't > figure out how to go about it. Is this list the right place? Do I open a > Trac ticket? Submit a patch to someone? > > Any guidance on this would be appreciated. > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > From rf at ufl.edu Sun Jul 13 19:03:54 2008 From: rf at ufl.edu (Randy Fischer) Date: Sun, 13 Jul 2008 19:03:54 -0400 Subject: [Mongrel] clients hang on large PUTs to Mongrel::HttpHandler-based web service In-Reply-To: References: <20080603201605.e2edb591.zedshaw@zedshaw.com> <20080604161829.892f35a8.zedshaw@zedshaw.com> Message-ID: Follow up to an old problem, finally solved, in case anyone else stumbles across the same problem. > I have a problem with a storage web service our group wrote using > Mongrel::HttpHandler We have a consistent problem when using > http PUT to this service when the data is larger than about 4 GB. Well, it turns out I could only repeat it consistently between two particular systems. There was some back and forth on this list, and I threw out the red herring that the http11_parser.c code used an unsigned int for the content size. Zed pointed out that particular variable was just dead code: > Instead you have this line in http_request.rb: > > content_length = @params[Const::CONTENT_LENGTH].to_i > > Now, that means it relies on Ruby's base integer type to store the > content length: Since @params[Const:CONTENT_LENGTH] is a string, ruby's to_i method can get it right, casting to a fixnum internally when necessary - integer overflow was not the issue. On Tue, Jun 3, 2008 at 8:30 PM, Michael D'Auria wrote: > Randy, > Are you sure this is an issue with the size of the input and not the amount > of time that the connection is left open? > Michael That turns out to be the correct answer, though I eliminated it (incorrectly) by using curl's limit-bandwidth option to get times greater than that exhibited by my 4GB transfers - those all worked. What was causing the problem was the lag between the end of the upload/request from the client, to the time when the server finally sent a response after processing the request (the processing time was entirely taken up with copying the upload as a temporary mongrel file to its permanent disk file location). Still, using tcpdump showed that the response was making it back to the client from the server intact and correctly. What was timing out was the firewall on the client system, which was using statefull packet filtering (iptables on an oldish redhat system). The dead time in the http request/response had exceeded the time to live for the state tables. Turning off the keep-state flag in the firewall rules allowed the transfer to complete. Now it's just a matter of tweaking the parameters so we can get keep-state working again. Thanks for all the help on this. -Randy Fischer -------------- next part -------------- An HTML attachment was scrubbed... URL: From ff at onebeat.com Sun Jul 13 21:00:54 2008 From: ff at onebeat.com (Farhad Farzaneh) Date: Sun, 13 Jul 2008 18:00:54 -0700 Subject: [Mongrel] Testing cluster setup Message-ID: <47bbe02f0807131800tfec4380r706b6e04dc0dee6a@mail.gmail.com> Hi all, I have 2 questions that are hopefully simple to answer: - I've set up Apache 2.2 w/ mongrel_cluster and the proxy balancer, consistent w/ the setup shown on various blogs, and it all seems to work ok. But how can I tell if Apache, and not mongrel, is in fact serving the static files as instructed, via a line such as the following in the apache configuration: RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] - Is there a way to have time-stamps in the mongrel log files? Many thanks, Farhad From tkw722 at gmail.com Sun Jul 13 23:03:46 2008 From: tkw722 at gmail.com (Timothy Wagner) Date: Sun, 13 Jul 2008 23:03:46 -0400 Subject: [Mongrel] Default Configuration of Mongrel Under script/server Message-ID: <9A58F4F1-0B86-4419-82EF-4B17B5359A39@gmail.com> Hey All, I was curious how I can control the default mongrel configuration when it is run through the use of 'script/server'. Is there a way to edit possibly a default .conf file? Any help would be greatly appreciated! Regards, Tim From jerrod at indierockmedia.com Sun Jul 13 22:08:30 2008 From: jerrod at indierockmedia.com (Jerrod Blavos) Date: Sun, 13 Jul 2008 22:08:30 -0400 Subject: [Mongrel] Testing cluster setup In-Reply-To: <47bbe02f0807131800tfec4380r706b6e04dc0dee6a@mail.gmail.com> References: <47bbe02f0807131800tfec4380r706b6e04dc0dee6a@mail.gmail.com> Message-ID: you can use curl -I http://www.google.com/intl/en_ALL/images/logo.gif (thats a capital i, not a lowercase L) and look for the server header -J On Jul 13, 2008, at 9:00 PM, Farhad Farzaneh wrote: > Hi all, > > I have 2 questions that are hopefully simple to answer: > > - I've set up Apache 2.2 w/ mongrel_cluster and the proxy balancer, > consistent w/ the setup shown on various blogs, and it all seems to > work ok. But how can I tell if Apache, and not mongrel, is in fact > serving the static files as instructed, via a line such as the > following in the apache configuration: > > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f > RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} > [P,QSA,L] > > - Is there a way to have time-stamps in the mongrel log files? > > Many thanks, > > Farhad > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users From ussballantyne at gmail.com Mon Jul 14 10:07:36 2008 From: ussballantyne at gmail.com (Scott Ballantyne) Date: Mon, 14 Jul 2008 22:07:36 +0800 Subject: [Mongrel] Default Configuration of Mongrel Under script/server In-Reply-To: <9A58F4F1-0B86-4419-82EF-4B17B5359A39@gmail.com> References: <9A58F4F1-0B86-4419-82EF-4B17B5359A39@gmail.com> Message-ID: <7cecbc6e0807140707m451f7a5fk11d6c0c0faab5ae5@mail.gmail.com> you can run the mongrel_rails command and then run tail, here are the options for mongrel_rails: b at B trunk |mongrel_rails start -h Usage: mongrel_rails [options] -e, --environment ENV Rails environment to run as -d, --daemonize Run daemonized in the background -p, --port PORT Which port to bind to -a, --address ADDR Address to bind to -l, --log FILE Where to write log messages -P, --pid FILE Where to write the PID -n, --num-processors INT Number of processors active before clients denied -o, --timeout TIME Time to wait (in seconds) before killing a stalled thread -t, --throttle TIME Time to pause (in hundredths of a second) between accepting clients -m, --mime PATH A YAML file that lists additional MIME types -c, --chdir PATH Change to dir before starting (will be expanded) -r, --root PATH Set the document root (default 'public') -B, --debug Enable debugging mode -C, --config PATH Use a config file -S, --script PATH Load the given file as an extra config script -G, --generate PATH Generate a config file for use with -C --user USER User to run as --group GROUP Group to run as --prefix PATH URL prefix for Rails app -h, --help Show this message --version Show version something like this: mongrel_rail start && tail -f log/development.log is like the script/server command... hope that helps... On Mon, Jul 14, 2008 at 11:03 AM, Timothy Wagner wrote: > Hey All, > > I was curious how I can control the default mongrel configuration when it > is run through the use of 'script/server'. Is there a way to edit possibly a > default .conf file? Any help would be greatly appreciated! > > Regards, > Tim > _______________________________________________ > 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 cremes.devlist at mac.com Thu Jul 17 09:25:50 2008 From: cremes.devlist at mac.com (Chuck Remes) Date: Thu, 17 Jul 2008 08:25:50 -0500 Subject: [Mongrel] clients hang on large PUTs to Mongrel::HttpHandler-based web service In-Reply-To: References: <20080603201605.e2edb591.zedshaw@zedshaw.com> <20080604161829.892f35a8.zedshaw@zedshaw.com> Message-ID: <8C5BADD5-A8D1-46A9-88DC-56591F4B0F71@mac.com> On Jul 13, 2008, at 6:03 PM, Randy Fischer wrote: > Follow up to an old problem, finally solved, in case anyone else > stumbles across the same problem. > > > I have a problem with a storage web service our group wrote using > > Mongrel::HttpHandler We have a consistent problem when using > > http PUT to this service when the data is larger than about 4 GB. I wrote a mongrel handler (and a small patch to mongrel) about a year ago that handled PUT a little more gracefully than the default. It prevented mongrel from blocking during the upload. Want me to send you the code? I imagine it's a tad out of date now, but the idea was sound. cr From zedshaw at zedshaw.com Fri Jul 18 04:31:33 2008 From: zedshaw at zedshaw.com (Zed A. Shaw) Date: Fri, 18 Jul 2008 01:31:33 -0700 Subject: [Mongrel] clients hang on large PUTs to Mongrel::HttpHandler-based web service In-Reply-To: References: <20080603201605.e2edb591.zedshaw@zedshaw.com> <20080604161829.892f35a8.zedshaw@zedshaw.com> Message-ID: <20080718013133.808cf5ef.zedshaw@zedshaw.com> On Sun, 13 Jul 2008 19:03:54 -0400 "Randy Fischer" wrote: > What was timing out was the firewall on the client system, which > was using statefull packet filtering (iptables on an oldish redhat > system). The dead time in the http request/response had > exceeded the time to live for the state tables. Turning off the > keep-state flag in the firewall rules allowed the transfer to > complete. Now it's just a matter of tweaking the parameters so > we can get keep-state working again. Ah, yes, classic mistake. People tend to think the client side just works, but things like firewalls, routers, those stupid anti virus programs, many times are more likely causes of trouble. Good job. -- A1S9-4A: R.I.P. 6/21/08 Zed A. Shaw From lists at ruby-forum.com Fri Jul 18 11:05:37 2008 From: lists at ruby-forum.com (Egoist Egoist555) Date: Fri, 18 Jul 2008 17:05:37 +0200 Subject: [Mongrel] Mongrel + apache 2.2 + proxy error In-Reply-To: <20080711035810.GX8137@inky.caltech.edu> References: <5729527e61082c10eb8e04e3615c2565@ruby-forum.com> <20080114033340.GA3342@sue.caltech.edu> <194949c3201dd2fcf2b0e153bb5053c5@ruby-forum.com> <20080711035810.GX8137@inky.caltech.edu> Message-ID: Cynthia Kiser wrote: > It isn't an explanation or even a fix - but setting up something that ????? ?????? sms
-- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jul 18 11:06:29 2008 From: lists at ruby-forum.com (Egoist Egoist555) Date: Fri, 18 Jul 2008 17:06:29 +0200 Subject: [Mongrel] Mongrel + apache 2.2 + proxy error In-Reply-To: <20080711035810.GX8137@inky.caltech.edu> References: <5729527e61082c10eb8e04e3615c2565@ruby-forum.com> <20080114033340.GA3342@sue.caltech.edu> <194949c3201dd2fcf2b0e153bb5053c5@ruby-forum.com> <20080711035810.GX8137@inky.caltech.edu> Message-ID: <0b4d65752aa6a06d281966059e47198c@ruby-forum.com> Cynthia Kiser wrote: > It isn't an explanation or even a fix - but setting up something that > monitors your web site by making an http request for a simple page - I > have a Rails controller with an action that just renders the text > "success" - will hide the issue. For example, nagios monitoring might > keep your servers running. If not, this is definitely not an > inactivity issue but something else that causes your mongrels to die. > > Quoting RR YY : http://gaffer.ru/index.html">?????? ????? ??????< -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Jul 18 11:08:54 2008 From: lists at ruby-forum.com (Egoist Egoist555) Date: Fri, 18 Jul 2008 17:08:54 +0200 Subject: [Mongrel] Mongrel + apache 2.2 + proxy error In-Reply-To: <0b4d65752aa6a06d281966059e47198c@ruby-forum.com> References: <5729527e61082c10eb8e04e3615c2565@ruby-forum.com> <20080114033340.GA3342@sue.caltech.edu> <194949c3201dd2fcf2b0e153bb5053c5@ruby-forum.com> <20080711035810.GX8137@inky.caltech.edu> <0b4d65752aa6a06d281966059e47198c@ruby-forum.com> Message-ID: <67a0a2d244ce1717949f410f51317e45@ruby-forum.com> Egoist Egoist555 wrote: > Cynthia Kiser wrote: >> It isn't an explanation or even a fix - but setting up something that >> monitors your web site by making an http request for a simple page - I >> have a Rails controller with an action that just renders the text >> "success" - will hide the issue. For example, nagios monitoring might >> keep your servers running. If not, this is definitely not an >> inactivity issue but something else that causes your mongrels to die. >> >> Quoting RR YY : > > http://gaffer.ru/index.html http://vnepravil.ru/index.html http://obaldel.ru/index.html http://risovka.ru/index.html http://dotpor.ru/index.html http://bezpontovie.ru/index.html http://vipsek.ru/index.html http://boomsa.ru/index.html http://titkiboo.ru/index.html http://goodeg.ru/index.html http://rubiseks.ru/index.html http://lubiseks.ru/index.html http://seksgun.ru/index.html -- Posted via http://www.ruby-forum.com/. From gregbclarke at gmail.com Fri Jul 18 22:44:42 2008 From: gregbclarke at gmail.com (Greg Clarke) Date: Sat, 19 Jul 2008 12:44:42 +1000 Subject: [Mongrel] Mongrel + apache 2.2 + proxy error In-Reply-To: <0b4d65752aa6a06d281966059e47198c@ruby-forum.com> References: <5729527e61082c10eb8e04e3615c2565@ruby-forum.com> <20080114033340.GA3342@sue.caltech.edu> <194949c3201dd2fcf2b0e153bb5053c5@ruby-forum.com> <20080711035810.GX8137@inky.caltech.edu> <0b4d65752aa6a06d281966059e47198c@ruby-forum.com> Message-ID: Could it be a firewall timing out a connection? You seem to be describing a heartbeat - which is exactly what we use to stop the firewall timing out the connection between our mongrels and the database. Greg On Sat, Jul 19, 2008 at 1:06 AM, Egoist Egoist555 wrote: > Cynthia Kiser wrote: > > It isn't an explanation or even a fix - but setting up something that > > monitors your web site by making an http request for a simple page - I > > have a Rails controller with an action that just renders the text > > "success" - will hide the issue. For example, nagios monitoring might > > keep your servers running. If not, this is definitely not an > > inactivity issue but something else that causes your mongrels to die. > > > > Quoting RR YY : > > http://gaffer.ru/index.html">?????? ????? ??????< > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Jul 22 22:04:58 2008 From: lists at ruby-forum.com (Rene Perrier) Date: Wed, 23 Jul 2008 04:04:58 +0200 Subject: [Mongrel] =?utf-8?q?ERROR_RUNNING_=27cluster=3A=3Aconfigure=27=3A?= =?utf-8?q?_Plugin_/cluster=3A=3Aconfigure=09does_not_exist_in_cate?= =?utf-8?q?gory_/comma?= In-Reply-To: <20071109172726.GF6740@malaprop.org> References: <20071109172726.GF6740@malaprop.org> Message-ID: <26dce11a935ff3e7e32c55bcb6ae05f2@ruby-forum.com> Same problem here. I have installed mongrel (1.1.5) and mongrel_cluster (1.0.5) and I can see both of them when I execute "gem list". And I also get the error message: "ERROR RUNNING 'cluster::configure': Plugin /cluster::configure does not exist in category /commands Use help command to get help" One additional piece of info: I have installed all my gems in a non-standard location because I have no sudo privileges (i.e. I installed my gems using the --install-dir option) -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jul 23 00:14:04 2008 From: lists at ruby-forum.com (Rene Perrier) Date: Wed, 23 Jul 2008 06:14:04 +0200 Subject: [Mongrel] =?utf-8?q?ERROR_RUNNING_=27cluster=3A=3Aconfigure=27=3A?= =?utf-8?q?_Plugin_/cluster=3A=3Aconfigure=09does_not_exist_in_cate?= =?utf-8?q?gory_/comma?= In-Reply-To: <26dce11a935ff3e7e32c55bcb6ae05f2@ruby-forum.com> References: <20071109172726.GF6740@malaprop.org> <26dce11a935ff3e7e32c55bcb6ae05f2@ruby-forum.com> Message-ID: <4c31f2effb83b933dcbe201b768e174c@ruby-forum.com> After sweating with irb and google, I found the problem (and a solution) See http://mongrel.rubyforge.org/ticket/22 This is a bug with gem_plugin and it appears that it will be fixed when mongrel 1.2 is released. In the mean time, I was able to solve my problem by setting my GEM_HOME environment variable to the location of my gems (same as GEM_PATH) Rene Perrier wrote: > Same problem here. > > I have installed mongrel (1.1.5) and mongrel_cluster (1.0.5) and I can > see both of them when I execute "gem list". And I also get the error > message: > "ERROR RUNNING 'cluster::configure': Plugin /cluster::configure does not > exist in category /commands > Use help command to get help" > > One additional piece of info: > I have installed all my gems in a non-standard location because I have > no sudo privileges (i.e. I installed my gems using the --install-dir > option) -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jul 23 09:45:27 2008 From: lists at ruby-forum.com (Ann Hu) Date: Wed, 23 Jul 2008 15:45:27 +0200 Subject: [Mongrel] wholesale and retail Message-ID: <23aa0bf2b12803b09426704353b39e34@ruby-forum.com> wholesale and retail Attachments: http://www.ruby-forum.com/attachment/2440/210220087201238433.jpg -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Jul 26 03:19:58 2008 From: lists at ruby-forum.com (Mersus Mersus) Date: Sat, 26 Jul 2008 09:19:58 +0200 Subject: [Mongrel] Mongrel on Ruby 1.8.6 w/ patchlevel 279 (Win) Message-ID: <4346e504c02dc762fdb231b055045317@ruby-forum.com> Hi, I can't install Mongrel on Ruby 1.8.6 (patchlevel 279), using Windows XP. My environment: C:\ruby18>gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.2.0 - RUBY VERSION: 1.8.6 (2008-07-17 patchlevel 279) [i386-mingw32] - INSTALLATION DIRECTORY: c:/ruby18/lib/ruby/gems/1.8 - RUBY EXECUTABLE: c:/ruby18/bin/ruby.exe - EXECUTABLE DIRECTORY: c:/ruby18/bin - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - c:/ruby18/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/ When I get Mongrel: C:\ruby18>gem install mongrel -include-dependencies Building native extensions. This could take a while... ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. c:/ruby18/bin/ruby.exe extconf.rb install mongrel -include-dependencies creating Makefile make 'make' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in C:/ruby18/nclude-dependencies/gems/fastthread -1.0.1 for inspection. Results logged to C:/ruby18/nclude-dependencies/gems/fastthread-1.0.1/ext/fastth read/gem_make.out Even dowloading an older version, i get the same error: C:\ruby18>gem install mongrel -v'=1.1.4' I made a 'manual' instalation (http://feeds.feedburner.com/~r/AkitaOnRails/~3/341683066/testing-the-new-one-click-ruby-installer-for-windows). Any help is welcome. -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Sat Jul 26 05:17:19 2008 From: luislavena at gmail.com (Luis Lavena) Date: Sat, 26 Jul 2008 11:17:19 +0200 Subject: [Mongrel] Mongrel on Ruby 1.8.6 w/ patchlevel 279 (Win) In-Reply-To: <4346e504c02dc762fdb231b055045317@ruby-forum.com> References: <4346e504c02dc762fdb231b055045317@ruby-forum.com> Message-ID: <71166b3b0807260217p1e3af887u6f70d8b671c7ef52@mail.gmail.com> On Sat, Jul 26, 2008 at 9:19 AM, Mersus Mersus wrote: > Hi, > I can't install Mongrel on Ruby 1.8.6 (patchlevel 279), using Windows > XP. > My environment: > > C:\ruby18>gem environment > RubyGems Environment: > - RUBYGEMS VERSION: 1.2.0 > - RUBY VERSION: 1.8.6 (2008-07-17 patchlevel 279) [i386-mingw32] > - INSTALLATION DIRECTORY: c:/ruby18/lib/ruby/gems/1.8 > - RUBY EXECUTABLE: c:/ruby18/bin/ruby.exe > - EXECUTABLE DIRECTORY: c:/ruby18/bin > - RUBYGEMS PLATFORMS: > - ruby > - x86-mingw32 > - GEM PATHS: > - c:/ruby18/lib/ruby/gems/1.8 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - REMOTE SOURCES: > - http://gems.rubyforge.org/ > > When I get Mongrel: > > C:\ruby18>gem install mongrel -include-dependencies > Building native extensions. This could take a while... > ERROR: Error installing mongrel: > ERROR: Failed to build gem native extension. > > c:/ruby18/bin/ruby.exe extconf.rb install mongrel -include-dependencies > creating Makefile > > make > 'make' is not recognized as an internal or external command, > operable program or batch file. > > Gem files will remain installed in > C:/ruby18/nclude-dependencies/gems/fastthread > -1.0.1 for inspection. > Results logged to > C:/ruby18/nclude-dependencies/gems/fastthread-1.0.1/ext/fastth > read/gem_make.out > > Even dowloading an older version, i get the same error: > C:\ruby18>gem install mongrel -v'=1.1.4' > > I made a 'manual' instalation > (http://feeds.feedburner.com/~r/AkitaOnRails/~3/341683066/testing-the-new-one-click-ruby-installer-for-windows). > Any help is welcome. Hey Mersus, thanks for trying the MinGW build of Ruby! Right now 1.1.x releases of Mongrel are not compatible with MinGW build, mostly becasue I forgot to backport the updated RUBY_PLATFORM regexp from 1.2 branch Also, you need the MinGW compiler around to be able to build the native extension of both mongrel and fastthread (being the last one a dependency of mongrel gem). I'll fix the RUBY_PLATFORM issues in 1.1 sourcecode. Thanks for reporting this back. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From luislavena at gmail.com Sun Jul 27 09:27:52 2008 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 27 Jul 2008 15:27:52 +0200 Subject: [Mongrel] Mongrel on Ruby 1.8.6 w/ patchlevel 279 (Win) In-Reply-To: <71166b3b0807260217p1e3af887u6f70d8b671c7ef52@mail.gmail.com> References: <4346e504c02dc762fdb231b055045317@ruby-forum.com> <71166b3b0807260217p1e3af887u6f70d8b671c7ef52@mail.gmail.com> Message-ID: <71166b3b0807270627p2fe6935dl37528433360d836a@mail.gmail.com> On Sat, Jul 26, 2008 at 11:17 AM, Luis Lavena wrote: > On Sat, Jul 26, 2008 at 9:19 AM, Mersus Mersus wrote: >... > > > Hey Mersus, thanks for trying the MinGW build of Ruby! > > Right now 1.1.x releases of Mongrel are not compatible with MinGW > build, mostly becasue I forgot to backport the updated RUBY_PLATFORM > regexp from 1.2 branch > > Also, you need the MinGW compiler around to be able to build the > native extension of both mongrel and fastthread (being the last one a > dependency of mongrel gem). > > I'll fix the RUBY_PLATFORM issues in 1.1 sourcecode. > > Thanks for reporting this back. Ok guys, I just fixed this issue and uploaded a signed gem for 1.1.5 x86-mingw32 platform. Will take a while until it spread to rubyforge mirrors. After that you will be able to do gem install mongrel and run your rails application with mongrel_rails. Regards, -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From reddvinylene at gmail.com Tue Jul 29 14:05:21 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Tue, 29 Jul 2008 20:05:21 +0200 Subject: [Mongrel] mongrel_cluster on FreeBSD Message-ID: hello, im attempting a mongrel_cluster + nginx + rails. i've just installed mongrel_cluster on my FreeBSD server, but there are no rc.d startup scripts so im not sure what to do.. this is how i plan to set up my mongrel cluster: - cd /usr/home/rv/myapp mongrel_rails cluster::configure -e production -p 5000 -N 3 -c /usr/home/rv/myapp -a 127.0.0.1 --user www --group www mongrel_rails cluster::start - and this is my nginx.conf user www www; worker_processes 5; events { worker_connections 1024; } pid /var/run/nginx.pid; http { sendfile on; upstream mongrel { server 127.0.0.1:5000; server 127.0.0.1:5001; server 127.0.0.1:5002; } server { listen 80; server_name myapp.com www.myapp.com; root /usr/home/rv/myapp/public; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; proxy_max_temp_file_size 0; if (-f $request_filename) { break; } if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } if (-f $request_filename.html) { rewrite (.*) $1.html break; } if (!-f $request_filename) { proxy_pass http://mongrel; break; } } error_page 500 502 503 504 /500.html; location = /500.html { root /usr/home/rv/myapp/public; } } } - i found this tutorial through google, but where's the actual script? http://rubyforge.org/pipermail/mongrel-users/2006-August/000921.html many thanks, redd From reddvinylene at gmail.com Tue Jul 29 14:11:03 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Tue, 29 Jul 2008 20:11:03 +0200 Subject: [Mongrel] mongrel_cluster on FreeBSD In-Reply-To: References: Message-ID: Turns out there's a FreeBSD port which takes care of all this, /usr/ports/www/rubygem-mongrel_cluster! Thanks! On Tue, Jul 29, 2008 at 8:05 PM, Redd Vinylene wrote: > hello, im attempting a mongrel_cluster + nginx + rails. > > i've just installed mongrel_cluster on my FreeBSD server, but there > are no rc.d startup scripts so im not sure what to do.. > > this is how i plan to set up my mongrel cluster: > > - > > cd /usr/home/rv/myapp > > mongrel_rails cluster::configure -e production -p 5000 -N 3 -c > /usr/home/rv/myapp -a 127.0.0.1 --user www --group www > > mongrel_rails cluster::start > > - > > and this is my nginx.conf > > user www www; > > worker_processes 5; > > events { worker_connections 1024; } > > pid /var/run/nginx.pid; > > http { > > sendfile on; > > upstream mongrel { > > server 127.0.0.1:5000; > > server 127.0.0.1:5001; > > server 127.0.0.1:5002; > > } > > server { > > listen 80; > > server_name myapp.com www.myapp.com; > > root /usr/home/rv/myapp/public; > > location / { > > proxy_set_header X-Real-IP $remote_addr; > > proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; > > proxy_set_header Host $http_host; > > proxy_redirect false; > > proxy_max_temp_file_size 0; > > if (-f $request_filename) { > > break; > > } > > if (-f $request_filename/index.html) { > > rewrite (.*) $1/index.html break; > > } > > if (-f $request_filename.html) { > > rewrite (.*) $1.html break; > > } > > if (!-f $request_filename) { > > proxy_pass http://mongrel; > > break; > > } > > } > > error_page 500 502 503 504 /500.html; > > location = /500.html { > > root /usr/home/rv/myapp/public; > > } > > } > > } > > - > > i found this tutorial through google, but where's the actual script? > > http://rubyforge.org/pipermail/mongrel-users/2006-August/000921.html > > many thanks, > redd >