We're sorry, but something went wrong (REE + Nginx + Phusion Passenger)

2,050 views
Skip to first unread message

Avinash Singh

unread,
Mar 9, 2011, 5:25:16 PM3/9/11
to phusion-...@googlegroups.com
Hi,

I need to get a deployment server ready but facing weird problem with Passenger/Nginx. Things are working fine with WEBrick. I followed the official installation guide, configured things the way the installer suggested me to do but whenever I try to access the URL, it shows (with every page):

We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.

Please help! You can see the installed gems and ruby version by visiting the WEBrick url linked above.

Hongli Lai

unread,
Mar 9, 2011, 5:31:29 PM3/9/11
to phusion-...@googlegroups.com, Avinash Singh

Look in the application log file and the web server error log file to
see what went wrong.

Always do this when you encounter an error. Details are logged and not
shown through the browser.

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Avinash Singh

unread,
Mar 9, 2011, 5:54:55 PM3/9/11
to phusion-...@googlegroups.com, Avinash Singh
Thanks a lot for your reply!

I checked the logs in sample_app/log directory for a freshly generated Rails app. Nothing is being logged. WEBrick works fine even in this area. 

Hongli Lai

unread,
Mar 9, 2011, 6:21:14 PM3/9/11
to phusion-...@googlegroups.com, Avinash Singh

Also check you web server error log.

Sent from my Android phone.

Op 9 mrt. 2011 23:55 schreef "Avinash Singh" <whm...@gmail.com> het volgende:

> Thanks a lot for your reply!
>
> I checked the logs in sample_app/log directory for a freshly generated Rails
> app. Nothing is being logged. WEBrick works fine even in this area.
>
> --
> You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
> To post to this group, send email to phusion-...@googlegroups.com.
> To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.
>

Avinash Singh

unread,
Mar 10, 2011, 1:47:59 AM3/10/11
to phusion-...@googlegroups.com, Avinash Singh
In the access.log, I see this:

 [10/Mar/2011:07:45:28 +0100] "GET /rails/info/properties HTTP/1.1" 500 728

What might be causing this? The error.log doesn't seem to have anything related to the problem but I don't know much about Nginx/Phusion. What should I specifically look for in the log file?

Thanks!

Hongli Lai

unread,
Mar 10, 2011, 4:31:16 AM3/10/11
to phusion-...@googlegroups.com, Avinash Singh

You clicked on the "About environment" link on the default Rails
index.html file. This link only works in development mode and is
disabled in production for security reasons. Phusion Passenger
defaults to production mode.

Avinash Singh

unread,
Mar 16, 2011, 1:50:12 PM3/16/11
to phusion-...@googlegroups.com, Avinash Singh
Hi!

Apologizes for the delay in my reply. And thanks a lot for telling me that Passenger defaults to production mode. 

I successfully deployed a Rails application on one server with Passenger + Nginx but got annoyed with Nginx when I tried to deploy another Rails app on a different server. For some reason, it (Nginx) has serious problem with file permissions. After an hour of searching and scratching my head, I realized that you need to change file permissions of too many parent directories to solve that annoying file permission errors. Solution? I simply installed the Apache 2 module for Passenger and everything worked as expected. 

So I think instead of trying Nginx, I stay with Apache 2 -- something that I've used ever since I started developing dynamic websites. 
Reply all
Reply to author
Forward
0 new messages