Portal Home > Knowledgebase > Articles Database > ruby fails


ruby fails




Posted by Calibaba, 03-06-2008, 10:08 AM
I tried to install my rails application. However it does not work properly (the rails welcome screen's "About your application environment" link gives a "Application error Rails application failed to start properly" message), and the error log shows plenty of FastCGI warnings and fcg incomplete header errors: [Thu Mar 6 07:44:20 2008] [warn] FastCGI: (dynamic) server "/home/user/public_html/dir/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Mar 6 07:39:47 2008] [error] [client 91.120.172.159] FastCGI: incomplete headers (0 bytes) received from server "/home/user/public_html/dir/public/dispatch.fcgi" [Thu Mar 6 07:39:47 2008] [warn] FastCGI: (dynamic) server "/home/user/public_html/dir/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Mar 6 07:39:47 2008] [error] [client 91.120.172.159] FastCGI: comm with (dynamic) server "/home/user/public_html/dir/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) I have cpanel 11 / centos 5 / php w/ suexec

Posted by Calibaba, 03-06-2008, 02:52 PM
More details from domlogs [Thu Mar 6 12:54:18 2008] [warn] FastCGI: (dynamic) server "/home/user/public_html/dir/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds Attached Thumbnails   Last edited by Calibaba; 03-06-2008 at 03:05 PM.

Posted by Calibaba, 03-06-2008, 04:23 PM

Posted by Adam-AEC, 03-06-2008, 06:27 PM
Does the /home/user/public_html/dir/config folder exist? - Is there a file titled environment.rb within it? - What are the permissions on this file? - Who owns this folder and it's parent folder?

Posted by Calibaba, 03-06-2008, 06:50 PM

Posted by Adam-AEC, 03-06-2008, 07:49 PM
What is line 21 of dispatch.fcgi ? Does it look like this? Sounds like there is a permission problem of some sort. I proxy everything through Mongrel (avoiding FCGI) so I'm not 100% sure.

Posted by Calibaba, 03-06-2008, 07:58 PM
There is no line 21. This is the entire file #!/usr/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired require "dispatcher" ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) Dispatcher.dispatch

Posted by Calibaba, 03-07-2008, 11:02 AM
Can someone please help me out here? Application error Rails application failed to start properly"

Posted by Adam-AEC, 03-07-2008, 06:40 PM
If you are still having problems, drop me a PM or add me to MSN and I'll login to your machine and take a look for you.

Posted by Calibaba, 03-07-2008, 07:35 PM
Thanks, but no thanks. I don't just hand out access to anyone.

Posted by Biju, 03-07-2008, 08:19 PM
Well you asked for help right. I would say hire a system admin and he would do the job right for you. Need to done by you, check out for online manuals it would take time to get resorted but would be a good learning.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
seeksadmin (Views: 689)


Language: