Hi everybody, after more than 18 hours trying to get Ruby Rails running, i ran into this problem that i cannot solve. I want to mention that with normal CGI the test app was running fine. FastCGI is making me problems. I receive in the browser: "Application error Rails application failed to start properly" and in apache2 log files i have: [Thu Aug 25 00:13:49 2005] [error] [client 192.168.0.19] FastCGI: comm with (dynamic) server "/files/Siteuri/colectii/public/dispatch.fcgi [Thu Aug 25 00:13:49 2005] [error] [client 192.168.0.19] FastCGI: incomplete headers (0 bytes) received from server "/files/sites/myapp/public/dispatch.fcgi" My dispatch.fcgi is : RailsFCGIHandler.process! ''/var/log/myapp_fcgi_crash.log'' require File.dirname(__FILE__) + "/../config/environment" require ''fcgi'' I tried also with and i had the same problem RailsFCGIHandler.process! ''/var/log/myapp_fcgi_crash.log'' require File.dirname(__FILE__) + "/../config/environment" require ''rubygems'' require_gem ''fcgi'' In httpd.conf i have: LoadModule fastcgi_module /usr/local/apache2/modules/mod_fastcgi.so LoadModule php4_module modules/libphp4.so AddHandler fastcgi-script .fcgi what am I missing? many many thanks! Adrian
This happens to me often and I fix it with:
rm /tmp/ruby_sess*
Hope this helps.
Also make sure your application is working with the built-in Webrick
server before trying to get it working with FastCGI.
Charles
Adrian wrote:
>Hi everybody,
>
>after more than 18 hours trying to get Ruby Rails running, i ran into this
>problem that i cannot solve. I want to mention that with normal CGI the test
app
>was running fine. FastCGI is making me problems.
>
>I receive in the browser:
>"Application error
>Rails application failed to start properly"
>
>and in apache2 log files i have:
>[Thu Aug 25 00:13:49 2005] [error] [client 192.168.0.19] FastCGI: comm with
>(dynamic) server "/files/Siteuri/colectii/public/dispatch.fcgi
>
>[Thu Aug 25 00:13:49 2005] [error] [client 192.168.0.19] FastCGI: incomplete
>headers (0 bytes) received from server
"/files/sites/myapp/public/dispatch.fcgi"
>
>My dispatch.fcgi is :
>
>RailsFCGIHandler.process! ''/var/log/myapp_fcgi_crash.log''
>require File.dirname(__FILE__) + "/../config/environment"
>require ''fcgi''
>
>
>I tried also with and i had the same problem
>
>RailsFCGIHandler.process! ''/var/log/myapp_fcgi_crash.log''
>require File.dirname(__FILE__) + "/../config/environment"
>require ''rubygems''
>require_gem ''fcgi''
>
>In httpd.conf i have:
>
>LoadModule fastcgi_module /usr/local/apache2/modules/mod_fastcgi.so
>LoadModule php4_module modules/libphp4.so
>AddHandler fastcgi-script .fcgi
>
>
>what am I missing?
>
>many many thanks!
>Adrian
>
>
>_______________________________________________
>Rails mailing list
>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
>
>