Hi all I just spent the last few days trying to get FastCGI to work with rails to no avail. I tried with both the built-in Apache and v2. Previous to this I had Apache working with mod_ruby without any problems, albeit it was a little slow. After pulling my hair out with FastCGI, I decided to leave it for a while and use the Webrick server that comes with all Rails apps. To my shock, it was very responsive. I have upgraded to 0.9(someone did make a mention about speed improvements) and I was wondering if that made the difference. Also, I would like to know if the webrick server is sufficient for a production environment(please, don''t laugh. You''re interacting with a clueless idiot here). If not, have many other people gotten FastCGI working on MacOS X? In case anyone is interested, here is the output from my Apache error logs. I am running Ruby 1.8.1 from Fink, Rails from gem(latest), FastCGI compiled from latest sources and Ruby-fcgi bindings from gem also(I love gem). [Thu Jan 13 09:59:48 2005] [notice] Apache/1.3.33 (Darwin) mod_fastcgi/2.4.2 configured -- resuming normal operations [Thu Jan 13 09:59:48 2005] [notice] Accept mutex: flock (Default: flock) [Thu Jan 13 09:59:48 2005] [notice] FastCGI: process manager initialized (pid 1316) [Thu Jan 13 09:59:54 2005] [warn] FastCGI: (dynamic) server "/usr/local/arbiter/public/dispatch.fcgi" started (pid 1318) /sw/lib/ruby/site_ruby/1.8/powerpc-darwin/fcgi.bundle: [BUG] Bus Error ruby 1.8.1 (2003-12-25) [powerpc-darwin] [Thu Jan 13 09:59:56 2005] [warn] FastCGI: (dynamic) server "/usr/local/arbiter/public/dispatch.fcgi" (pid 1318) terminated due to uncaught signal ''6'' (Abort) [Thu Jan 13 09:59:59 2005] [warn] FastCGI: (dynamic) server "/usr/local/arbiter/public/dispatch.fcgi" restarted (pid 1322) [Thu Jan 13 10:00:00 2005] [warn] FastCGI: (dynamic) server "/usr/local/arbiter/public/dispatch.fcgi" started (pid 1323) [Thu Jan 13 10:00:03 2005] [warn] FastCGI: (dynamic) server "/usr/local/arbiter/public/dispatch.fcgi" started (pid 1326) /sw/lib/ruby/site_ruby/1.8/powerpc-darwin/fcgi.bundle: [BUG] Bus Error ruby 1.8.1 (2003-12-25) [powerpc-darwin] [Thu Jan 13 10:00:04 2005] [warn] FastCGI: (dynamic) server "/usr/local/arbiter/public/dispatch.fcgi" (pid 1322) terminated due to uncaught signal ''6'' (Abort) Regards Sven Schott _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
> In case anyone is interested, here is the output from my Apache error > logs. I am running Ruby 1.8.1 from Fink, Rails from gem(latest), > FastCGI compiled from latest sources and Ruby-fcgi bindings from gem > also(I love gem).WEBrick is fine if you only need to serve ~5 requests per second. Lots of smaller and internal apps fit that bill. Going above that, though, you really want fcgi. I''d start by installing Ruby 1.8.2. It includes a ton of bug fixes. Might fix your problem. -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://macromates.com/ -- TextMate: Code and markup editor (OS X) http://www.loudthinking.com/ -- Broadcasting Brain
Thanks for that. It is an internal application and I doubt that it will exceed more than 2rps. WEBrick is quite nice(not much in the way of configuration :) ) so I''ll stick with it for the time being. Again, thanks. Sven On 13/01/2005, at 1:14 PM, David Heinemeier Hansson wrote:>> In case anyone is interested, here is the output from my Apache error >> logs. I am running Ruby 1.8.1 from Fink, Rails from gem(latest), >> FastCGI compiled from latest sources and Ruby-fcgi bindings from gem >> also(I love gem). > > WEBrick is fine if you only need to serve ~5 requests per second. Lots > of smaller and internal apps fit that bill. Going above that, though, > you really want fcgi. > > I''d start by installing Ruby 1.8.2. It includes a ton of bug fixes. > Might fix your problem. > -- > David Heinemeier Hansson, > http://www.basecamphq.com/ -- Web-based Project Management > http://www.rubyonrails.org/ -- Web-application framework for Ruby > http://macromates.com/ -- TextMate: Code and markup editor (OS X) > http://www.loudthinking.com/ -- Broadcasting Brain > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Sven, Sorry to be so late (I was skiing this week. Thanks for asking, it was great ;) but have you read the FastCGI on OS X Howto (http://wiki.rubyonrails.com/rails/show/FastCGI%20on%20OS%20X)? It describes the process how I got it working on my PowerBook. Cheers, Jarkko On 13.1.2005, at 05:01, Sven Schott wrote:> Thanks for that. It is an internal application and I doubt that it > will exceed more than 2rps. WEBrick is quite nice(not much in the way > of configuration :) ) so I''ll stick with it for the time being. Again, > thanks. > > Sven > On 13/01/2005, at 1:14 PM, David Heinemeier Hansson wrote: > >>> In case anyone is interested, here is the output from my Apache >>> error logs. I am running Ruby 1.8.1 from Fink, Rails from >>> gem(latest), FastCGI compiled from latest sources and Ruby-fcgi >>> bindings from gem also(I love gem). >> >> WEBrick is fine if you only need to serve ~5 requests per second. >> Lots of smaller and internal apps fit that bill. Going above that, >> though, you really want fcgi. >> >> I''d start by installing Ruby 1.8.2. It includes a ton of bug fixes. >> Might fix your problem. >> -- >> David Heinemeier Hansson, >> http://www.basecamphq.com/ -- Web-based Project Management >> http://www.rubyonrails.org/ -- Web-application framework for Ruby >> http://macromates.com/ -- TextMate: Code and markup editor (OS >> X) >> http://www.loudthinking.com/ -- Broadcasting Brain >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Jarkko Laine http://jlaine.net http://odesign.fi _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Yep, that''s the one I used. : ) It was very helpful but I couldn''t get it to work. I think it might be my version of Ruby, as suggested by David, but I haven''t had the time to try it since WEBrick runs very quick with Rails 0.9, and at the moment the application is in development phase. But thank you very much for the reply. Sven On 17/01/2005, at 6:59 AM, Jarkko Laine wrote:> Sven, > > Sorry to be so late (I was skiing this week. Thanks for asking, it was > great ;) but have you read the FastCGI on OS X Howto > (http://wiki.rubyonrails.com/rails/show/FastCGI%20on%20OS%20X)? It > describes the process how I got it working on my PowerBook. > > Cheers, > Jarkko > > On 13.1.2005, at 05:01, Sven Schott wrote: > >> Thanks for that. It is an internal application and I doubt that it >> will exceed more than 2rps. WEBrick is quite nice(not much in the way >> of configuration :) ) so I''ll stick with it for the time being. >> Again, thanks. >> >> Sven >> On 13/01/2005, at 1:14 PM, David Heinemeier Hansson wrote: >> >>>> In case anyone is interested, here is the output from my Apache >>>> error logs. I am running Ruby 1.8.1 from Fink, Rails from >>>> gem(latest), FastCGI compiled from latest sources and Ruby-fcgi >>>> bindings from gem also(I love gem). >>> >>> WEBrick is fine if you only need to serve ~5 requests per second. >>> Lots of smaller and internal apps fit that bill. Going above that, >>> though, you really want fcgi. >>> >>> I''d start by installing Ruby 1.8.2. It includes a ton of bug fixes. >>> Might fix your problem. >>> -- >>> David Heinemeier Hansson, >>> http://www.basecamphq.com/ -- Web-based Project Management >>> http://www.rubyonrails.org/ -- Web-application framework for Ruby >>> http://macromates.com/ -- TextMate: Code and markup editor (OS >>> X) >>> http://www.loudthinking.com/ -- Broadcasting Brain >>> >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > -- > Jarkko Laine > http://jlaine.net > http://odesign.fi > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails