Internal Server Error with Sinatra

405 views
Skip to first unread message

Richard

unread,
Oct 5, 2009, 1:21:27 PM10/5/09
to Phusion Passenger Discussions
Hello,

I am unsure if this is a Rack, Passenger, or Sinatra error:

I have installed Apache, Passenger and Sinatra on CentOS 5.3 on top of
Ruby 1.9.1 using the newest gems. If I try running a Sinatra
application through passenger, I get an "Internal Server Error"
showing in my browser.

The logs at /var/log/httpd/error_log shows:
IOError - closed stream:127.0.0.1 - - [05/Oct/2009 09:03:07] "GET / "
500 30 0.0005

If I run a pure Rack (no Sinatra) application, it works without error.
Also, if I run the config.ru file directly via rackup, it works fine,
too.

The Sinatra app is purely a:
get "/" { "hello world!" }
application.

Is there a location that would show me what errors within Sinatra
could be causing the above IOError?

Any help is appreciated -- thanks!

Jakub

unread,
Oct 5, 2009, 6:18:26 PM10/5/09
to Phusion Passenger Discussions
I'm getting same error on Passenger 2.2.4 and 2.2.5 with nginx 0.7.62,
and Sinatra 0.9.4.
My system is Snow Leopard 10.6.1. What is your Richard?

So far I wasn't able to figure out a solution there.

Richard

unread,
Oct 5, 2009, 11:14:19 PM10/5/09
to Phusion Passenger Discussions
Hello!

I found that it looks to be a ruby bug in 1.9.1-243. Is that the
version you are running?

I found these threads:
http://code.google.com/p/phusion-passenger/issues/detail?id=345
http://groups.google.com/group/rack-devel/browse_thread/thread/a2aab3a4720f34c4

If it's the same issue, it looks to be fixed next version and previous
versions. I reverted to p129 of ruby and it does work for me.
Hopefully that helps you, too.

Jakub

unread,
Oct 7, 2009, 1:17:04 AM10/7/09
to Phusion Passenger Discussions
Thanks Richard! Indeed reverting to p129 from p243 did the trick.

On Oct 6, 5:14 am, Richard <rphi...@san.rr.com> wrote:
> Hello!
>
> I found that it looks to be a ruby bug in 1.9.1-243. Is that the
> version you are running?
>
> I found these threads:http://code.google.com/p/phusion-passenger/issues/detail?id=345http://groups.google.com/group/rack-devel/browse_thread/thread/a2aab3...
Reply all
Reply to author
Forward
0 new messages