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
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
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.
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.