Just bumped to 0.11.0 (I''m getting better at it) and everything seems to still work. But lighttpd dies saying: rasputnik@eris:rails$ /home/rasputnik/rails/cnps/rails/public/dispatch.fcgi:3: uninitialized constant RAILS_ROOT (NameError) 2005-03-22 21:03:28: (mod_fastcgi.c.862) child exited (is this a FastCGI binary ?): 1 2005-03-22 21:03:28: (mod_fastcgi.c.1134) [ERROR]: spawning fcgi failed. 2005-03-22 21:03:28: (server.c.617) Configuration of plugins failed. Going down. Moving the logpath definition down (below the environment setup) sorts things - have I missed something, or spotted a bug? rasputnik@eris:rails$ svn diff Index: public/dispatch.fcgi ==================================================================--- public/dispatch.fcgi (revision 149) +++ public/dispatch.fcgi (working copy) @@ -1,6 +1,5 @@ #!/usr/local/bin/ruby18 -FASTCGI_CRASH_LOG_PATH = "#{RAILS_ROOT}/log/fastcgi.crash.log" def dispatcher_error(e, msg = "") error_message = "[#{Time.now}] Dispatcher failed to catch: #{e} (#{e.class})\n #{e.backtrace.join("\n ")}\n#{msg}" @@ -14,6 +13,8 @@ require ''dispatcher'' require ''fcgi'' + FASTCGI_CRASH_LOG_PATH = "#{RAILS_ROOT}/log/fastcgi.crash.log" + FCGI.each_cgi do |cgi| begin Dispatcher.dispatch(cgi) -- ''In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.'' -- The Guide Rasputin :: Jack of All Trades - Master of Nuns
I hit this too. On Tue, 22 Mar 2005 21:12:20 +0000, Dick Davies <rasputnik-ogHSZ3ARDZIOXkKaSkYkkl6hYfS7NtTn@public.gmane.org> wrote:> Just bumped to 0.11.0 (I''m getting better at it) and everything seems to still > work. But lighttpd dies saying: > > rasputnik@eris:rails$ /home/rasputnik/rails/cnps/rails/public/dispatch.fcgi:3: uninitialized constant RAILS_ROOT (NameError) > 2005-03-22 21:03:28: (mod_fastcgi.c.862) child exited (is this a FastCGI binary ?): 1 > 2005-03-22 21:03:28: (mod_fastcgi.c.1134) [ERROR]: spawning fcgi failed. > 2005-03-22 21:03:28: (server.c.617) Configuration of plugins failed. Going down. > > Moving the logpath definition down (below the environment setup) sorts > things - have I missed something, or spotted a bug? > > rasputnik@eris:rails$ svn diff > Index: public/dispatch.fcgi > ==================================================================> --- public/dispatch.fcgi (revision 149) > +++ public/dispatch.fcgi (working copy) > @@ -1,6 +1,5 @@ > #!/usr/local/bin/ruby18 > > -FASTCGI_CRASH_LOG_PATH = "#{RAILS_ROOT}/log/fastcgi.crash.log" > > def dispatcher_error(e, msg = "") > error_message = "[#{Time.now}] Dispatcher failed to catch: #{e} (#{e.class})\n #{e.backtrace.join("\n ")}\n#{msg}" > @@ -14,6 +13,8 @@ > require ''dispatcher'' > require ''fcgi'' > > + FASTCGI_CRASH_LOG_PATH = "#{RAILS_ROOT}/log/fastcgi.crash.log" > + > FCGI.each_cgi do |cgi| > begin > Dispatcher.dispatch(cgi) > > -- > ''In the beginning the Universe was created. This has made a lot of people > very angry and been widely regarded as a bad move.'' > -- The Guide > Rasputin :: Jack of All Trades - Master of Nuns > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- miles
Looks to me like everyone would have this problem, dispatch.fcgi is the main door into rails and nothings been setup at the time it runs. What baffles me is I can see commits to dispatch.fcgi since 0.11.0 shipped. Does that mean it''s not hitting everyone? "Screw it. I''ll raise a ticket." * Michael Champanis <michael-MXk1+JRFB8SsTnJN9+BGXg@public.gmane.org> [0326 08:26]:> I had the same problem, using Apache. I got "Rails application failed to > start" in my browser, and the logs > were filled with: > > "/dispatch.fcgi" has failed to remain running for 30 seconds given 3 > attempts, its restart interval has been backed off to 600 seconds" > > Then discovered the problem by: > > $ su - > $ su - apache > $ cd /rails_app/public > $ ./dispatch.fcgi > > ./dispatch.fcgi:3: uninitialized constant RAILS_ROOT (NameError) > > > Mike > > > > I hit this too. > > > > > > On Tue, 22 Mar 2005 21:12:20 +0000, Dick Davies > > <rasputnik-ogHSZ3ARDZIOXkKaSkYkkl6hYfS7NtTn@public.gmane.org> wrote: > > > Just bumped to 0.11.0 (I''m getting better at it) and everything seems to still > > > work. But lighttpd dies saying: > > > > > > rasputnik@eris:rails$ /home/rasputnik/rails/cnps/rails/public/dispatch.fcgi:3: uninitialized constant RAILS_ROOT (NameError) > > > 2005-03-22 21:03:28: (mod_fastcgi.c.862) child exited (is this a FastCGI binary ?): 1 > > > 2005-03-22 21:03:28: (mod_fastcgi.c.1134) [ERROR]: spawning fcgi failed. > > > 2005-03-22 21:03:28: (server.c.617) Configuration of plugins failed. Going down. > > > > > > Moving the logpath definition down (below the environment setup) sorts > > > things - have I missed something, or spotted a bug? > > > > > > rasputnik@eris:rails$ svn diff > > > Index: public/dispatch.fcgi > > > ==================================================================> > > --- public/dispatch.fcgi (revision 149) > > > +++ public/dispatch.fcgi (working copy) > > > @@ -1,6 +1,5 @@ > > > #!/usr/local/bin/ruby18 > > > > > > -FASTCGI_CRASH_LOG_PATH = "#{RAILS_ROOT}/log/fastcgi.crash.log" > > > > > > def dispatcher_error(e, msg = "") > > > error_message = "[#{Time.now}] Dispatcher failed to catch: #{e} (#{e.class})\n #{e.backtrace.join("\n ")}\n#{msg}" > > > @@ -14,6 +13,8 @@ > > > require ''dispatcher'' > > > require ''fcgi'' > > > > > > + FASTCGI_CRASH_LOG_PATH = "#{RAILS_ROOT}/log/fastcgi.crash.log" > > > + > > > FCGI.each_cgi do |cgi| > > > begin > > > Dispatcher.dispatch(cgi)-- ''My life, and by extension everyone else''s, is meaningless.'' -- Bender Rasputin :: Jack of All Trades - Master of Nuns
* Dick Davies <rasputnik-ogHSZ3ARDZIOXkKaSkYkkl6hYfS7NtTn@public.gmane.org> [0316 10:16]:> "Screw it. > I''ll raise a ticket."Just checked out HEAD and it''s been fixed. Tip of the Day: If clicking ''send'' doesn''t fix your problem, try raising a ticket....> > > > rasputnik@eris:rails$ /home/rasputnik/rails/cnps/rails/public/dispatch.fcgi:3: uninitialized constant RAILS_ROOT (NameError) > > > > 2005-03-22 21:03:28: (mod_fastcgi.c.862) child exited (is this a FastCGI binary ?): 1 > > > > 2005-03-22 21:03:28: (mod_fastcgi.c.1134) [ERROR]: spawning fcgi failed. > > > > 2005-03-22 21:03:28: (server.c.617) Configuration of plugins failed. Going down.-- ''Blackmail''s such an ugly word. I prefer extortion. The x makes it sound cool.'' -- Bender Rasputin :: Jack of All Trades - Master of Nuns
I had the same problem, using Apache. I got "Rails application failed to start" in my browser, and the logs were filled with: "/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds" Then discovered the problem by: $ su - $ su - apache $ cd /rails_app/public $ ./dispatch.fcgi ./dispatch.fcgi:3: uninitialized constant RAILS_ROOT (NameError) Mike> I hit this too. > > > On Tue, 22 Mar 2005 21:12:20 +0000, Dick Davies > <rasputnik-ogHSZ3ARDZIOXkKaSkYkkl6hYfS7NtTn@public.gmane.org> wrote: > > Just bumped to 0.11.0 (I''m getting better at it) and everything seems to still > > work. But lighttpd dies saying: > > > > rasputnik@eris:rails$ /home/rasputnik/rails/cnps/rails/public/dispatch.fcgi:3: uninitialized constant RAILS_ROOT (NameError) > > 2005-03-22 21:03:28: (mod_fastcgi.c.862) child exited (is this a FastCGI binary ?): 1 > > 2005-03-22 21:03:28: (mod_fastcgi.c.1134) [ERROR]: spawning fcgi failed. > > 2005-03-22 21:03:28: (server.c.617) Configuration of plugins failed. Going down. > > > > Moving the logpath definition down (below the environment setup) sorts > > things - have I missed something, or spotted a bug? > > > > rasputnik@eris:rails$ svn diff > > Index: public/dispatch.fcgi > > ==================================================================> > --- public/dispatch.fcgi (revision 149) > > +++ public/dispatch.fcgi (working copy) > > @@ -1,6 +1,5 @@ > > #!/usr/local/bin/ruby18 > > > > -FASTCGI_CRASH_LOG_PATH = "#{RAILS_ROOT}/log/fastcgi.crash.log" > > > > def dispatcher_error(e, msg = "") > > error_message = "[#{Time.now}] Dispatcher failed to catch: #{e} (#{e.class})\n #{e.backtrace.join("\n ")}\n#{msg}" > > @@ -14,6 +13,8 @@ > > require ''dispatcher'' > > require ''fcgi'' > > > > + FASTCGI_CRASH_LOG_PATH = "#{RAILS_ROOT}/log/fastcgi.crash.log" > > + > > FCGI.each_cgi do |cgi| > > begin > > Dispatcher.dispatch(cgi) > > > > -- > > ''In the beginning the Universe was created. This has made a lot of people > > very angry and been widely regarded as a bad move.'' > > -- The Guide > > Rasputin :: Jack of All Trades - Master of Nuns > > _______________________________________________ > > 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
> Looks to me like everyone would have this problem, dispatch.fcgi is > the main door into rails and nothings been setup at the time it runs. > > What baffles me is I can see commits to dispatch.fcgi since 0.11.0 > shipped. Does that mean it''s not hitting everyone?This is indeed a bug. It''s fixed in SVN/beta gems and will be part of the shortly forthcoming 0.11.1 release. -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://www.loudthinking.com/ -- Broadcasting Brain