We're sorry, but something went wrong. - with Rails, Apache, Passenger

Michael Stark picture Michael Stark · May 9, 2012 · Viewed 67.8k times · Source

I have Rails 3.2.3 with Apache and Passenger.

I have a project working in development mode. When I switch the project to production mode (Passenger standard) it gives me an HTTP Error 500:

We're sorry, but something went wrong.

This happens even with WEBrick. Can somebody help me?

Edit:

My production environment file: http://pastebin.com/ZAudSzkc

Answer

dennis picture dennis · May 9, 2012

Make sure you have ran $ bundle install. If this doesn't succeed, go to your production environment and connect to your server using ssh and $ tail -f log/production.log in your current production app.

This will generate an output which might show an error.

If this doesn't show an error in the log/ directory do $ ls -la if there are any passenger.error files open the latest and check for errors there.

Hope this helped you out!


In addition to log/production.log, you should also look at the web server error log, typically /var/log/apache2/error.log or /var/log/nginx/error.log. Some errors are written there instead. More information can be found in the Troubleshooting section of the Passenger manual: