# Nginx + passenger FAILSAFE dispatch error

**URL:** <https://www.ruby-forum.com/t/nginx-passenger-failsafe-dispatch-error/171772>\
**Category:** Deployment\
**Created:** [July 8, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/nginx-passenger-failsafe-dispatch-error/171772 "2009-07-08T23:23:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpjolicoeur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a183cd/32.png) [@cpjolicoeur](https://www.ruby-forum.com/u/cpjolicoeur)\
**Post date:** [July 8, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/nginx-passenger-failsafe-dispatch-error/171772/1 "2009-07-08T23:23:56Z")

</div>

I’m having a very strange issue with a freshly deployed Rails app on a  
staging server. Up until this point all development has been done  
locally. I just setup the staging server and pushed the code to the  
staging server today, and have been getting strange errors that I can’t  
seem to track down.

My server is a debian Lenny box and I’m using nginx + phusion passenger  
to run my Rails app.

Some pages load fine, and others will throw a 500 server error. For  
instance, browsing through product categories work fine but trying to  
view a specific item (i.e. [http://staging.krislind.com/items/4001](http://staging.krislind.com/items/4001)) will  
through the following error into my staging.log output.

[http://pastie.org/539236](http://pastie.org/539236)

If I try to login, I get the same error on all page actions. Which  
leads me to believe that the issue might be related to user sessions???  
but I’m not sure. Just for note, I’m using the Authlogic plugin for  
authentication.

I really have no idea what is happening or what error is actually being  
thrown as the log doesn’t give much useful info in the stack trace. It  
seems like the dispatcher might be having some kind of error? I really  
can’t tell.

Any help would be greatly appreciated.
