Hi all, I am having problems with FCGI and Apache2 on windows. The error I often receive is 500 error code response with logs listed down. I successfully use Webrick server and CGI (very slow). I had configured apache as is described in these document: http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows. Any suggestions? Logs:> Errno::E232 (The pipe is being closed.): > > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/cgi_process.rb:178:in > `flush'' > > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/cgi_process.rb:178:in > `out'' > C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in > `dispatch'' > > C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in > `process_request'' > > C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in > `process!'' > > C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in > `each_cgi'' > C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'' > C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'' > > C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in > `process!'' > > C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:in > `process!'' > D:/rdocs/test/public/dispatch.fcgi:24FastCGI crashlog is full of:> [09/Jan/2006:10:12:20 :: 952] Ignoring unsupported signal USR1. > [09/Jan/2006:10:12:20 :: 952] Ignoring unsupported signal USR2. > [09/Jan/2006:10:12:20 :: 952] Ignoring unsupported signal HUP.-- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab: http://source.mihelac.org
I am running into the same sort of intermittent errors. Wondering if there could be a but in the active record gem mysql adaptor with a dual CPU machine. Is your machine a dual? If I repeatedly reload a page that does no database access, it never fails. However, the moment I do foo = MyTable.find(:first), I can get it to fail pretty quickly. I have tried using both MySQL 4.1 and MySQL5 Actually, though, in addition to FCGI not working the way you describe, I also see crashes with WebBrick on this machine. It never crashes on my development machine (Mac). Unfortunately, I have to deploy on windows. Ray Bojan Mihelac wrote:> Hi all, > I am having problems with FCGI and Apache2 on windows. > The error I often receive is 500 error code response with logs listed > down. I successfully use Webrick server and CGI (very slow). I had-- Posted via http://www.ruby-forum.com/.
Bojan Mihelac
2006-Jan-26 12:16 UTC
[Rails] Re: FCGI and Apache2 on win performance problem
Ray, no it is not dual machine and I didn''t have any problems when used Apache CGI or WebRick. best, Bojan Ray Fix wrote:> I am running into the same sort of intermittent errors. Wondering if > there could be a but in the active record gem mysql adaptor with a dual > CPU machine. Is your machine a dual? > > If I repeatedly reload a page that does no database access, it never > fails. However, the moment I do foo = MyTable.find(:first), I can get > it to fail pretty quickly. I have tried using both MySQL 4.1 and MySQL5 > > Actually, though, in addition to FCGI not working the way you describe, > I also see crashes with WebBrick on this machine. It never crashes on > my development machine (Mac). Unfortunately, I have to deploy on > windows. > > Ray > > Bojan Mihelac wrote: > >> Hi all, >> I am having problems with FCGI and Apache2 on windows. >> The error I often receive is 500 error code response with logs listed >> down. I successfully use Webrick server and CGI (very slow). I had >> > >-- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab: http://source.mihelac.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060126/ae432833/attachment.html
A fix for a WEBrick concurrency issue was just checked into the trunk. http://dev.rubyonrails.org/changeset/3454 This is probably worse on a dual CPU machine. Doesn''t affect FCGI though. -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Ray Fix Sent: Sunday, January 22, 2006 6:01 AM To: rails@lists.rubyonrails.org Subject: [Rails] Re: FCGI and Apache2 on win performance problem I am running into the same sort of intermittent errors. Wondering if there could be a but in the active record gem mysql adaptor with a dual CPU machine. Is your machine a dual? If I repeatedly reload a page that does no database access, it never fails. However, the moment I do foo = MyTable.find(:first), I can get it to fail pretty quickly. I have tried using both MySQL 4.1 and MySQL5 Actually, though, in addition to FCGI not working the way you describe, I also see crashes with WebBrick on this machine. It never crashes on my development machine (Mac). Unfortunately, I have to deploy on windows. Ray Bojan Mihelac wrote:> Hi all, > I am having problems with FCGI and Apache2 on windows. > The error I often receive is 500 error code response with logs listed > down. I successfully use Webrick server and CGI (very slow). I had-- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails