Hi, I''ve been experimenting a lot with Ruby and Rails since I fell in love with them a few days back (I come from BASIC/Pascal->VB->ASP->PHP->.NET->PHP->Ruby! so you get the idea how deeply I fell!). However, given that the server was responding kinda slow (~4 seconds per request vs. the almost instantaneous response from other web apps), I decided to give FastCGI a try. So I followed all instructions I found. I have the module properly loaded in Apache (1.3 dll), httpd.conf configured, and the .htaccess modifyied accordingly. By the way, I''m running on Windows 2003 Std. Server + Apache 1.3 + Ruby 1.8.2 + Rails 0.13.1 on a PIV@2.8 Ghz/512 MB RAM. So, I load my previosly working Rails app, and I get a 500 error. No cgi error log is generated on the log folder, so I look in Apache''s. Here''s what I found (date/time removed for simplicity): [notice] FastCGI: process manager initialized [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 9928) [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10012) [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10092) [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10152) [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 9928) terminated with exit with status ''1'' [error] [client 192.168.0.62] (109)Ha terminado la canalización: FastCGI: comm with server "h:/inetpub/apache/atajo/public/dispatch.fcgi" aborted: GetOverlappedResult() failed [error] [client 192.168.0.62] FastCGI: incomplete headers (0 bytes) received from server "h:/inetpub/apache/atajo/public/dispatch.fcgi" [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10012) terminated with exit with status ''1'' [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10092) terminated with exit with status ''1'' [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10152) terminated with exit with status ''1'' [warn] FastCGI: (dynamic) server "h:/inetpub/apache/atajo/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds "Ha terminado la canalizacion:..." roughly means "Channeling has terminated:..." or maybe "Tunneling..." I don''t know. Any thoughts on what I could try to troubleshoot this behavior? Thanks in advance! - Ivan V.
I think my error-messages looked similar. Although I was running linux fedora core 3. In my case I had to fix the rights for fastcgi''s temporary folder. ------------------------------------------------------------------------ /*Ronny Hanssen*/ Ivan Vega wrote:> Hi, > > I''ve been experimenting a lot with Ruby and Rails since I fell in love > with them a few days back (I come from > BASIC/Pascal->VB->ASP->PHP->.NET->PHP->Ruby! so you get the idea how > deeply I fell!). > > However, given that the server was responding kinda slow (~4 seconds per > request vs. the almost instantaneous response from other web apps), I > decided to give FastCGI a try. > > So I followed all instructions I found. I have the module properly > loaded in Apache (1.3 dll), httpd.conf configured, and the .htaccess > modifyied accordingly. By the way, I''m running on Windows 2003 Std. > Server + Apache 1.3 + Ruby 1.8.2 + Rails 0.13.1 on a PIV@2.8 Ghz/512 MB > RAM. > > So, I load my previosly working Rails app, and I get a 500 error. No cgi > error log is generated on the log folder, so I look in Apache''s. Here''s > what I found (date/time removed for simplicity): > > [notice] FastCGI: process manager initialized > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 9928) > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10012) > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10092) > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10152) > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 9928) terminated > with exit with status ''1'' > [error] [client 192.168.0.62] (109)Ha terminado la canalización: > FastCGI: comm with server "h:/inetpub/apache/atajo/public/dispatch.fcgi" > aborted: GetOverlappedResult() failed > [error] [client 192.168.0.62] FastCGI: incomplete headers (0 bytes) > received from server "h:/inetpub/apache/atajo/public/dispatch.fcgi" > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10012) terminated > with exit with status ''1'' > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10092) terminated > with exit with status ''1'' > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10152) terminated > with exit with status ''1'' > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > > "Ha terminado la canalizacion:..." roughly means "Channeling has > terminated:..." or maybe "Tunneling..." I don''t know. > > Any thoughts on what I could try to troubleshoot this behavior? > > Thanks in advance! > > - Ivan V. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
I just did this on Windows not too long ago. I had some great help with it. The first problem I had was that I didn''t have the latest .htaccess and dispatch.fcgi files (my rails app was a few months old and much has changed.) Secondly, I also uninstalled RubyForApache and then reinstalled it. That seemed to fix my fastcgi problems. I did all of this on Apache 2, and here''s a decent guide for that: http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows Perhaps you''ll find something there that helps you. -Brian -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ronny Hanssen Sent: Wednesday, August 31, 2005 5:20 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Help with FastCGI please? Apache 500 errors I think my error-messages looked similar. Although I was running linux fedora core 3. In my case I had to fix the rights for fastcgi''s temporary folder. ------------------------------------------------------------------------ /*Ronny Hanssen*/ Ivan Vega wrote:> Hi, > > I''ve been experimenting a lot with Ruby and Rails since I fell in love > with them a few days back (I come from > BASIC/Pascal->VB->ASP->PHP->.NET->PHP->Ruby! so you get the idea how > deeply I fell!). > > However, given that the server was responding kinda slow (~4 seconds > per request vs. the almost instantaneous response from other web > apps), I decided to give FastCGI a try. > > So I followed all instructions I found. I have the module properly > loaded in Apache (1.3 dll), httpd.conf configured, and the .htaccess > modifyied accordingly. By the way, I''m running on Windows 2003 Std. > Server + Apache 1.3 + Ruby 1.8.2 + Rails 0.13.1 on a PIV@2.8 Ghz/512 > MB RAM. > > So, I load my previosly working Rails app, and I get a 500 error. No > cgi error log is generated on the log folder, so I look in Apache''s. > Here''s what I found (date/time removed for simplicity): > > [notice] FastCGI: process manager initialized > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 9928) > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10012) > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10092) > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10152) > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 9928) terminated > with exit with status ''1'' [error] [client 192.168.0.62] (109)Ha > terminado la canalización: > FastCGI: comm with server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" > aborted: GetOverlappedResult() failed > [error] [client 192.168.0.62] FastCGI: incomplete headers (0 bytes) > received from server "h:/inetpub/apache/atajo/public/dispatch.fcgi" > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10012) terminated > with exit with status ''1'' > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10092) terminated > with exit with status ''1'' > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10152) terminated > with exit with status ''1'' > [warn] FastCGI: (dynamic) server > "h:/inetpub/apache/atajo/public/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > > "Ha terminado la canalizacion:..." roughly means "Channeling has > terminated:..." or maybe "Tunneling..." I don''t know. > > Any thoughts on what I could try to troubleshoot this behavior? > > Thanks in advance! > > - Ivan V. > > _______________________________________________ > 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
Sweet! I was using Apache 1.3, but I don''t know if that was an issue... So I read the link you provided and meticulously followed the instructions, using Apache 2.0. Now Ruby is *really* on Rails! Thanks a lot! Hogan, Brian P. escribió:>I just did this on Windows not too long ago. I had some great help with it. The first problem I had was that I didn''t have the latest .htaccess and dispatch.fcgi files (my rails app was a few months old and much has changed.) > >Secondly, I also uninstalled RubyForApache and then reinstalled it. That seemed to fix my fastcgi problems. > >I did all of this on Apache 2, and here''s a decent guide for that: >http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows > >Perhaps you''ll find something there that helps you. > >-Brian > > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpI@public.gmane.orgbyonrails.org] On Behalf Of Ronny Hanssen >Sent: Wednesday, August 31, 2005 5:20 PM >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: Re: [Rails] Help with FastCGI please? Apache 500 errors > > >I think my error-messages looked similar. Although I was running linux fedora core 3. In my case I had to fix the rights for fastcgi''s temporary folder. > >------------------------------------------------------------------------ >/*Ronny Hanssen*/ > > >Ivan Vega wrote: > > >>Hi, >> >>I''ve been experimenting a lot with Ruby and Rails since I fell in love >>with them a few days back (I come from >>BASIC/Pascal->VB->ASP->PHP->.NET->PHP->Ruby! so you get the idea how >>deeply I fell!). >> >>However, given that the server was responding kinda slow (~4 seconds >>per request vs. the almost instantaneous response from other web >>apps), I decided to give FastCGI a try. >> >>So I followed all instructions I found. I have the module properly >>loaded in Apache (1.3 dll), httpd.conf configured, and the .htaccess >>modifyied accordingly. By the way, I''m running on Windows 2003 Std. >>Server + Apache 1.3 + Ruby 1.8.2 + Rails 0.13.1 on a PIV@2.8 Ghz/512 >>MB RAM. >> >>So, I load my previosly working Rails app, and I get a 500 error. No >>cgi error log is generated on the log folder, so I look in Apache''s. >>Here''s what I found (date/time removed for simplicity): >> >>[notice] FastCGI: process manager initialized >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 9928) >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10012) >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10092) >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" started (pid 10152) >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 9928) terminated >>with exit with status ''1'' [error] [client 192.168.0.62] (109)Ha >>terminado la canalización: >>FastCGI: comm with server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" >>aborted: GetOverlappedResult() failed >>[error] [client 192.168.0.62] FastCGI: incomplete headers (0 bytes) >>received from server "h:/inetpub/apache/atajo/public/dispatch.fcgi" >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10012) terminated >>with exit with status ''1'' >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10092) terminated >>with exit with status ''1'' >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" (pid 10152) terminated >>with exit with status ''1'' >>[warn] FastCGI: (dynamic) server >>"h:/inetpub/apache/atajo/public/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >> >>"Ha terminado la canalizacion:..." roughly means "Channeling has >>terminated:..." or maybe "Tunneling..." I don''t know. >> >>Any thoughts on what I could try to troubleshoot this behavior? >> >>Thanks in advance! >> >>- Ivan V. >> >>_______________________________________________ >>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 >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > >