Hi, I have just got Rails installed on my dedicated server - Fedora Linux, cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi 2.4.2 and latest stable Rails/Ruby. I have created a test application, which gives me the "Congratulations, you''ve put Ruby on Rails!" message. However, when I delete the index.html page and try to access the rails app itself, the browser hangs. In the http error log, I get: [Sat Aug 13 09:52:49 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sat Aug 13 09:51:44 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: incomplete headers (0 bytes) received from server "/home/notes/public_html/rails/dispatch.fcgi" [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: comm with (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) I have the application in /home/notes/testapp and a symlink set up at /home/notes/public_html/rails My public/.htaccess file is: # General Apache options AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI # Comments RewriteEngine On RewriteBase /rails/ RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] The dispatch.fcgi file is: require File.dirname(__FILE__) + "/../config/environment" require ''fcgi_handler'' require ''rubygems'' require_gem ''fcgi'' RailsFCGIHandler.process! If I comment out require ''fcgi_handler'' then I get: [Sat Aug 13 10:01:21 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sat Aug 13 10:01:21 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" (pid 21790) terminated by calling exit with status ''1'' from /home/notes/public_html/rails/dispatch.fcgi:21 from /home/notes/public_html/rails/dispatch.fcgi:21:in `require'' from /home/notes/public_html/rails/../config/environment.rb:48 from /home/notes/public_html/rails/../config/environment.rb:48:in `require'' [Sat Aug 13 10:01:21 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" restarted (pid 21790) [Sat Aug 13 10:01:21 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds Does anyone have any suggestions? -- Regards, David Mytton http://www.olate.co.uk
Was wondering if anyone has any ideas about this? It is annoying not being able to use Rails on my live server when I know it can be done! Regards, David Mytton http://www.olate.co.uk David Mytton wrote:> Hi, > > I have just got Rails installed on my dedicated server - Fedora Linux, > cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi 2.4.2 and latest stable > Rails/Ruby. > > I have created a test application, which gives me the "Congratulations, > you''ve put Ruby on Rails!" message. However, when I delete the > index.html page and try to access the rails app itself, the browser > hangs. In the http error log, I get: > > [Sat Aug 13 09:52:49 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sat Aug 13 09:51:44 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: > incomplete headers (0 bytes) received from server > "/home/notes/public_html/rails/dispatch.fcgi" > [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: comm > with (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" > aborted: (first read) idle timeout (30 sec) > > I have the application in /home/notes/testapp and a symlink set up at > /home/notes/public_html/rails > > My public/.htaccess file is: > > # General Apache options > AddHandler fastcgi-script .fcgi > AddHandler cgi-script .cgi > Options +FollowSymLinks +ExecCGI > # Comments > RewriteEngine On > RewriteBase /rails/ > RewriteRule ^$ index.html [QSA] > RewriteRule ^([^.]+)$ $1.html [QSA] > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] > > The dispatch.fcgi file is: > > require File.dirname(__FILE__) + "/../config/environment" > require ''fcgi_handler'' > require ''rubygems'' > require_gem ''fcgi'' > RailsFCGIHandler.process! > > If I comment out require ''fcgi_handler'' then I get: > > [Sat Aug 13 10:01:21 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sat Aug 13 10:01:21 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" (pid 21790) terminated by > calling exit with status ''1'' > from /home/notes/public_html/rails/dispatch.fcgi:21 > from /home/notes/public_html/rails/dispatch.fcgi:21:in `require'' > from /home/notes/public_html/rails/../config/environment.rb:48 > from /home/notes/public_html/rails/../config/environment.rb:48:in > `require'' > [Sat Aug 13 10:01:21 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" restarted (pid 21790) > [Sat Aug 13 10:01:21 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > > Does anyone have any suggestions?
I think its trying to help you fix your problem: calling exit with status ''1'' from /home/notes/public_html/rails/dispatch.fcgi:21 from /home/notes/public_html/rails/dispatch.fcgi:21:in `require'' from /home/notes/public_html/rails/../config/environment.rb:48 from /home/notes/public_html/rails/../config/environment.rb:48:in `require'' line 48 of environment: require ''rubygems'' unless File.directory?("#{RAILS_ROOT}/vendor/rails") Ben
Thanks for the reply. I commented out line 48 of environment and just get this error now: [Sun Aug 14 20:25:24 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:25:21 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:25:18 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:52 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:52 2005] [error] [client 212.159.106.74] FastCGI: incomplete headers (0 bytes) received from server "/home/notes/public_html/rails/dispatch.fcgi" [Sun Aug 14 20:24:52 2005] [error] [client 212.159.106.74] FastCGI: comm with (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) [Sun Aug 14 20:24:49 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:46 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:43 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:40 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:37 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:34 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:33 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sun Aug 14 20:24:33 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" (pid 28408) terminated by calling exit with status ''1'' Regards, David Mytton http://www.olate.co.uk BenJamin Prater wrote:> I think its trying to help you fix your problem: > > calling exit with status ''1'' > from /home/notes/public_html/rails/dispatch.fcgi:21 > from /home/notes/public_html/rails/dispatch.fcgi:21:in `require'' > from /home/notes/public_html/rails/../config/environment.rb:48 > from /home/notes/public_html/rails/../config/environment.rb:48:in > `require'' > > line 48 of environment: > require ''rubygems'' unless File.directory?("#{RAILS_ROOT}/vendor/rails") > > Ben
the answer was not to comment out important stuff in the script. the answer is you have to have rubygems installed, or have rails in the vendor directory of your project On 8/14/05, David Mytton <david-nkCc03+qR4SsTnJN9+BGXg@public.gmane.org> wrote:> Thanks for the reply. I commented out line 48 of environment and just > get this error now: > > [Sun Aug 14 20:25:24 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:25:21 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:25:18 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:52 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:52 2005] [error] [client 212.159.106.74] FastCGI: > incomplete headers (0 bytes) received from server > "/home/notes/public_html/rails/dispatch.fcgi" > [Sun Aug 14 20:24:52 2005] [error] [client 212.159.106.74] FastCGI: comm > with (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" > aborted: (first read) idle timeout (30 sec) > [Sun Aug 14 20:24:49 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:46 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:43 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:40 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:37 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:34 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:33 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain > running for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sun Aug 14 20:24:33 2005] [warn] FastCGI: (dynamic) server > "/home/notes/public_html/rails/dispatch.fcgi" (pid 28408) terminated by > calling exit with status ''1'' > > Regards, > > David Mytton > http://www.olate.co.uk > > > BenJamin Prater wrote: > > I think its trying to help you fix your problem: > > > > calling exit with status ''1'' > > from /home/notes/public_html/rails/dispatch.fcgi:21 > > from /home/notes/public_html/rails/dispatch.fcgi:21:in `require'' > > from /home/notes/public_html/rails/../config/environment.rb:48 > > from /home/notes/public_html/rails/../config/environment.rb:48:in > > `require'' > > > > line 48 of environment: > > require ''rubygems'' unless File.directory?("#{RAILS_ROOT}/vendor/rails") > > > > Ben > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Zachery Hostens <zacheryph-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hi, > the answer was not to comment out important stuff in the script. Ok, I have uncommented that line. > the answer is you have to have rubygems installed, or have rails in > the vendor directory of your project I followed the tutorial at http://wiki.rubyonrails.com/rails/print/HowtoInstallAndRunRubyOnRailsOnCpanel so I have Ruby Gems installed. I used it to install Rails (gem install rails) Regards, David Mytton http://www.olate.co.uk Zachery Hostens wrote:> the answer was not to comment out important stuff in the script. > > the answer is you have to have rubygems installed, or have rails in > the vendor directory of your project > > > On 8/14/05, David Mytton <david-nkCc03+qR4SsTnJN9+BGXg@public.gmane.org> wrote: > >>Thanks for the reply. I commented out line 48 of environment and just >>get this error now: >> >>[Sun Aug 14 20:25:24 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:25:21 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:25:18 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:52 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:52 2005] [error] [client 212.159.106.74] FastCGI: >>incomplete headers (0 bytes) received from server >>"/home/notes/public_html/rails/dispatch.fcgi" >>[Sun Aug 14 20:24:52 2005] [error] [client 212.159.106.74] FastCGI: comm >>with (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" >>aborted: (first read) idle timeout (30 sec) >>[Sun Aug 14 20:24:49 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:46 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:43 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:40 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:37 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:34 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:33 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" has failed to remain >>running for 30 seconds given 3 attempts, its restart interval has been >>backed off to 600 seconds >>[Sun Aug 14 20:24:33 2005] [warn] FastCGI: (dynamic) server >>"/home/notes/public_html/rails/dispatch.fcgi" (pid 28408) terminated by >>calling exit with status ''1'' >> >>Regards, >> >>David Mytton >>http://www.olate.co.uk >> >> >>BenJamin Prater wrote: >> >>>I think its trying to help you fix your problem: >>> >>>calling exit with status ''1'' >>> from /home/notes/public_html/rails/dispatch.fcgi:21 >>> from /home/notes/public_html/rails/dispatch.fcgi:21:in `require'' >>> from /home/notes/public_html/rails/../config/environment.rb:48 >>> from /home/notes/public_html/rails/../config/environment.rb:48:in >>>`require'' >>> >>>line 48 of environment: >>>require ''rubygems'' unless File.directory?("#{RAILS_ROOT}/vendor/rails") >>> >>>Ben >> >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> > > >