Hi, I''m moving my application to production. There''s some cases where I get: Application error Rails application failed to start properly But the production log shows no problems: Rendering template within layouts/application Rendering users/create Completed in 0.69214 (1 reqs/sec) | Rendering: 0.00501 (0%) | DB: 0.02535 (3%) | 200 OK [http://myapp.com/users] In the environment.rb I have: config.log_level = :debug I''ve tried adding in the controller but got no log line added: logger.info( ''inside create'' ) The page that should be displayed has no tricks just plain html... Any hints to find what is wrong? It goes ok locally. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Roderick van Domburg
2008-Jul-04 14:28 UTC
Re: Production: no relevant logs to fix this problem
> I''m moving my application to production. > There''s some cases where I get: > > Application error > Rails application failed to start properly > > But the production log shows no problems:That''s probably your front-end web server (Apache?) serving up public/500.html. That can indicate that proxying to your Mongrel or WEBrick server isn''t set up properly. -- Roderick van Domburg http://www.nedforce.nl -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> That''s probably your front-end web server (Apache?) serving up > public/500.html. That can indicate that proxying to your Mongrel or > WEBrick server isn''t set up properly.Apache is used. The funny thing is that it happens only in some parts of the app. The previous one was in a view that was rendering a partial and I had to remove some parts. But since there is no logged info to check... Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Now it is solved. I checked the error logs in the Cpanel of the hosting provider I use. There was "malformed header from script. Bad header=planet: dispatch.cgi, referer:..." Googling around I found someone advicing to remove any "puts" in the controller. That planet you see in the bad header is actually a puts params[:answer] I took away the puts and now it goes ok. Cheers. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---