From luislavena at gmail.com Wed Mar 2 20:24:24 2011 From: luislavena at gmail.com (Luis Lavena) Date: Wed, 2 Mar 2011 22:24:24 -0300 Subject: [Mongrel] mongrel/mongrel_rails windows question In-Reply-To: <6cd065a4f502d35ebfddf11d1e4ea63f@ruby-forum.com> References: <6cd065a4f502d35ebfddf11d1e4ea63f@ruby-forum.com> Message-ID: On Fri, Feb 25, 2011 at 7:23 PM, Russ Erickson wrote: > Hello! > Hello Russ! Sorry for the long delay in the reply. > I'm just wondering if anyone has any recommendations for running > mongrel/mongrel_service under Windows (Client requires Windows Server > 2008, SQL Server 2008, IIS7, no budget for a *nix box of any kind). ?I > have a working setup, but wondering if anyone has any further insight. > > Current working setup: > > Ruby 1.87 (via rubyinstaller.org) > Rail 2.3.11 > mongrel 1.1.15 (mingw32) > mongrel_service 0.4.0 > With the requirement of using Rails 2.3.11 or even going to Rails 3, I will recommend avoid mongrel in this case. There are some reports of multiple cookies issues that haven't been addressed due the inability to reproduce them or provide concrete test cases. I've suggested someone port mongrel_service to provide the same support for Thin, which could be pretty trivial, but noone stepped up. With that you should be able to setup multiple services in different ports and then make the service dependent on IIS or TCPIP service so the automatic startup do not affect. Another point, completely unrelated to mongrel and mongrel_service is ensure your server have Ruby executable in the DEP exclude list. More details at this entry of RubyInstaller troubleshooting: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#dep_segfault > I'll be looking at using the ARR features of IIS7 to do some load > balancing between a few instances of mongrel running on different ports > on the same box. > Sounds good, I've done the same approach in the past. > I have read a lot of posts from people discussing troubles in getting > Ruby 1.92 for windows working with mongrel 1.1.20pre and > mongrel_service. ?Does anyone have a working setup of this and is it > worth fighting for? > 1.9.2 has some startup performance issues on Windows. starting a Rails application can take way longer than 1.8.7, but then request performance on production mode is good and pretty much up-par Linux in this area. But, mongrel 1.2.0.pre is another story. I've mentioned the cookie issue above, which could be problematic. Again, sorry for the long delay in my reply and hope these answers help you out. -- 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 Fri Mar 4 04:37:08 2011 From: lists at ruby-forum.com (Francesco R.) Date: Fri, 04 Mar 2011 10:37:08 +0100 Subject: [Mongrel] Apache22+mod_proxy+mongrel+ssl In-Reply-To: <8D2745F3-7BA8-42E1-A5D4-B0A0E770EC4F@identry.com> References: <8D2745F3-7BA8-42E1-A5D4-B0A0E770EC4F@identry.com> Message-ID: <091e18bd86be7415b5a4c89d9de9401f@ruby-forum.com> For me this solution wasn't working. I dunno if it is a change from Rails3 or not, but the method checking for ssl requests expects a different request header: def ssl? @env['HTTPS'] == 'on' || @env['HTTP_X_FORWARDED_PROTO'] == 'https' end I modified my proxy config to set the correct header (this is the resulting line) # Set header to indentify https requests for Mongrel RequestHeader set HTTP_X_FORWARDED_PROTO "https" After this, everything was working. This is how my config looks in the end: Include sites-available/common/my_site ... Include sites-available/common/my_site SSLProxyEngine on # The values for these three checks are already like this by default # Just know that they can be used for more complicated configs # SSLProxyCheckPeerCN off # SSLProxyCheckPeerExpire off # SSLProxyVerify none # Set header to indentify https requests for Mongrel RequestHeader set HTTP_X_FORWARDED_PROTO "https" SSLEngine on # Server Certificate SSLCertificateFile /etc/apache2/ssl/my_certificate.crt # Server Private Key SSLCertificateKeyFile /etc/apache2/ssl/my_private.key ... othere SSL settings ... # Content of sites-available/common/my_site ServerName my_site ServerAlias my_site *.my_site DocumentRoot /path/to/public/folder/of/my/app AllowOverride all Options -MultiViews # Review this if you need more restrictive access Order Allow,Deny Allow from all Deny from none # Even for https, we redirect to http # We already set HTTP_X_FORWARDED_PROTO to https in the 443 virtual host ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ ProxyPreserveHost on I hope this helps other people too! -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Mar 10 02:32:54 2011 From: lists at ruby-forum.com (abhishek m.) Date: Thu, 10 Mar 2011 08:32:54 +0100 Subject: [Mongrel] Rows go missing when seen through APACHE but through Mongrail, works fine. Message-ID: Hi, In my site, I have implemented a functionality where we can fetch upto 100000 rows and display all of it at one shot on the GUI, through Java interface. Now, when I start my client through mongrail ( ./script/server -e production ), I can see all the rows that get fetched from the DB. However, through Apache, some of the rows go missing at random ( the number of rows that go missing is random ). Also, in the Java Console, I see the exception "Java.lang.IllegalStateException: No Match Found", which again is random ( I mean rows go missing with or without this exception on the screen ). I am using IE-7. Also, I found the missing rows, but we can see them on the GUI, if the count of rows to be shown on GUI is less ( say around 100 ), but the issue of missing rows through apache is being seen only if the count of rows to be shown on GUI is 1000 or more. Please suggest, its kinda urgent. Regards Abhishek -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Mar 23 02:53:41 2011 From: lists at ruby-forum.com (Anita G.) Date: Wed, 23 Mar 2011 07:53:41 +0100 Subject: [Mongrel] Mongrel service In-Reply-To: References: <000a01cb5a52$57352570$059f7050$@prodispace.co.za> <001501cb5a5b$2603ad10$720b0730$@prodispace.co.za> <001601cb5a60$308bf530$91a3df90$@prodispace.co.za> Message-ID: <8fb35365856b525bcca2cb72b5fffe6e@ruby-forum.com> Luis Lavena wrote in post #943008: >> Basically, it seems that there just isn't any way at all of running mongrel >> as a service with Rails 3. Could you confirm this? >> > > Correct. Noone has worked on fix that. > -- > Luis Lavena Is this still correct? thanks, Anita -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Wed Mar 23 07:05:59 2011 From: luislavena at gmail.com (Luis Lavena) Date: Wed, 23 Mar 2011 08:05:59 -0300 Subject: [Mongrel] Mongrel service In-Reply-To: <8fb35365856b525bcca2cb72b5fffe6e@ruby-forum.com> References: <000a01cb5a52$57352570$059f7050$@prodispace.co.za> <001501cb5a5b$2603ad10$720b0730$@prodispace.co.za> <001601cb5a60$308bf530$91a3df90$@prodispace.co.za> <8fb35365856b525bcca2cb72b5fffe6e@ruby-forum.com> Message-ID: Yes, still correct. Sent from mobile. On Mar 23, 2011 4:57 AM, "Anita G." wrote: > Luis Lavena wrote in post #943008: > >>> Basically, it seems that there just isn't any way at all of running mongrel >>> as a service with Rails 3. Could you confirm this? >>> >> >> Correct. Noone has worked on fix that. >> -- >> Luis Lavena > > Is this still correct? > > thanks, Anita > > -- > 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: