Programmer needs assistance,
Trying to get my application working with apache + mod_fastcgi
on windows. Others must have run into this problem:
------- Apache/log/error.log ---------
[Tue Jul 05 10:48:21 2005] [error] [client 127.0.0.1] (OS 109)The pipe has
been ended. : FastCGI: comm with server
"D:/rails/member/public/dispatch.fcgi" aborted: GetOverlappedResult()
failed
[Tue Jul 05 10:48:21 2005] [error] [client 127.0.0.1] FastCGI: incomplete
headers (0 bytes) received from server
"D:/rails/member/public/dispatch.fcgi"
-------- Steps I took to install apache -------
1. Installed xampp from apache friends. Apache/2.0.54 (Win32)
mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.0.4. http://www.apachefriends.org
<http://www.apachefriends.org/>
2. Edited my httpd.conf and set document root to <myrailsapp>/public
directory
3. Started apache, and verified I could access my rails application,
YAY! Works, but it''s SLOOW, need FAST!
4. Downloaded and installed "Ruby for Apache"
http://rubyforge.org/projects/rubyforapache
5. Verified mod_fastcgi.so was in my apache/modules directory
6. Edited my httpd.conf, and added the following lines:
LoadModule fastcgi_module modules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
</IfModule>
7. Ensured that the "LoadModule rewrite_module" was NOT commented out
in httpd.conf
8. Edited my .htaccess file and changed "RewriteRule ^(.*)$
dispatch.cgi [QSA,L]" to "RewriteRule ^(.*)$ dispatch.fcgi
[QSA,L]"
9. Opened dispatch.fcgi and made sure that my ruby executable was
targeted - "#!d:\ruby\bin\rubyw.exe"
With this config, I get the following message in my browser "Application
error Rails application failed to start properly" and the error listed
above. No text in my rails applications logs, not even any text in my
"fastcgi.crash.log"
Running Ruby 1.8.2 with Rails 0.12.1.1523
Others must have hit this problem before. Any advice, or steps for debug ?
-Gregg
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
Are you running the svn version of Rails? dispatch.fcgi from 0.12.1 doesn''t create fastcgi.crash.log file. "GetOverlappedResult() failed" means there is a bug in your script which caused the process to abort. Kent. On 7/5/05, Gregg Pollack <patched-i8bqrNpN1PPCXmymsgaQcQ@public.gmane.org> wrote:> > > > Programmer needs assistance, > > > > Trying to get my application working with apache + mod_fastcgi > on windows. Others must have run into this problem: > > > > ------- Apache/log/error.log --------- > > > > [Tue Jul 05 10:48:21 2005] [error] [client 127.0.0.1] (OS 109)The pipe has > been ended. : FastCGI: comm with server > "D:/rails/member/public/dispatch.fcgi" aborted: > GetOverlappedResult() failed > > [Tue Jul 05 10:48:21 2005] [error] [client 127.0.0.1] FastCGI: incomplete > headers (0 bytes) received from server > "D:/rails/member/public/dispatch.fcgi" > > > > -------- Steps I took to install apache ------- > > > > Installed xampp from apache friends. Apache/2.0.54 (Win32) mod_ssl/2.0.54 > OpenSSL/0.9.7g PHP/5.0.4. http://www.apachefriends.org > Edited my httpd.conf and set document root to <myrailsapp>/public directory > Started apache, and verified I could access my rails application, YAY! > Works, but it''s SLOOW, need FAST! > > > > Downloaded and installed "Ruby for Apache" > http://rubyforge.org/projects/rubyforapache > Verified mod_fastcgi.so was in my apache/modules directory > Edited my httpd.conf, and added the following lines: > > > > LoadModule fastcgi_module modules/mod_fastcgi.so > > <IfModule mod_fastcgi.c> > > AddHandler fastcgi-script .fcgi > > </IfModule> > > > > Ensured that the "LoadModule rewrite_module" was NOT commented out in > httpd.conf > Edited my .htaccess file and changed "RewriteRule ^(.*)$ dispatch.cgi > [QSA,L]" to "RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]" > Opened dispatch.fcgi and made sure that my ruby executable was targeted - > "#!d:\ruby\bin\rubyw.exe" > > > > With this config, I get the following message in my browser "Application > error Rails application failed to start properly" and the error listed > above. No text in my rails applications logs, not even any text in my > "fastcgi.crash.log" > > > > Running Ruby 1.8.2 with Rails 0.12.1.1523 > > > > Others must have hit this problem before. Any advice, or steps for debug ? > > > > -Gregg > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Try editing your fastcgi settings in apache. I used to get this error, then I found out refreshing the page ~ 8 times suddenly kicked it into action. Adding this line fixed it, somewhat. <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi FastCgiConfig -maxClassProcesses 3 -startDelay 30 </IfModule> On 7/5/05, Kent Sibilev <ksruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Are you running the svn version of Rails? dispatch.fcgi from 0.12.1 > doesn''t create fastcgi.crash.log file. "GetOverlappedResult() failed" > means there is a bug in your script which caused the process to abort. > > Kent. > > On 7/5/05, Gregg Pollack <patched-i8bqrNpN1PPCXmymsgaQcQ@public.gmane.org> wrote: > > > > > > > > Programmer needs assistance, > > > > > > > > Trying to get my application working with apache + mod_fastcgi > > on windows. Others must have run into this problem: > > > > > > > > ------- Apache/log/error.log --------- > > > > > > > > [Tue Jul 05 10:48:21 2005] [error] [client 127.0.0.1] (OS 109)The pipe has > > been ended. : FastCGI: comm with server > > "D:/rails/member/public/dispatch.fcgi" aborted: > > GetOverlappedResult() failed > > > > [Tue Jul 05 10:48:21 2005] [error] [client 127.0.0.1] FastCGI: incomplete > > headers (0 bytes) received from server > > "D:/rails/member/public/dispatch.fcgi" > > > > > > > > -------- Steps I took to install apache ------- > > > > > > > > Installed xampp from apache friends. Apache/2.0.54 (Win32) mod_ssl/2.0.54 > > OpenSSL/0.9.7g PHP/5.0.4. http://www.apachefriends.org > > Edited my httpd.conf and set document root to <myrailsapp>/public directory > > Started apache, and verified I could access my rails application, YAY! > > Works, but it''s SLOOW, need FAST! > > > > > > > > Downloaded and installed "Ruby for Apache" > > http://rubyforge.org/projects/rubyforapache > > Verified mod_fastcgi.so was in my apache/modules directory > > Edited my httpd.conf, and added the following lines: > > > > > > > > LoadModule fastcgi_module modules/mod_fastcgi.so > > > > <IfModule mod_fastcgi.c> > > > > AddHandler fastcgi-script .fcgi > > > > </IfModule> > > > > > > > > Ensured that the "LoadModule rewrite_module" was NOT commented out in > > httpd.conf > > Edited my .htaccess file and changed "RewriteRule ^(.*)$ dispatch.cgi > > [QSA,L]" to "RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]" > > Opened dispatch.fcgi and made sure that my ruby executable was targeted - > > "#!d:\ruby\bin\rubyw.exe" > > > > > > > > With this config, I get the following message in my browser "Application > > error Rails application failed to start properly" and the error listed > > above. No text in my rails applications logs, not even any text in my > > "fastcgi.crash.log" > > > > > > > > Running Ruby 1.8.2 with Rails 0.12.1.1523 > > > > > > > > Others must have hit this problem before. Any advice, or steps for debug ? > > > > > > > > -Gregg > > _______________________________________________ > > 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 >-- Kyle Neath kneath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://www.neathdesign.com