Can't get Sinatra to run on Ubuntu 9.04 - "block not specified"

3 views
Skip to first unread message

Nathan

unread,
Nov 22, 2009, 4:25:56 AM11/22/09
to sinatrarb
Hello everyone.

I've been pulling my hair our for about six hours now, and don't have
much left, so hopefully someone can help me :) I'm trying to deploy a
Sinatra app to Rackspace cloud which is running a Ubuntu 9.04
instance, and try as I might I can't get the simplest Sinatra app to
do anything at all (booted via "run My::Application" from config.ru)

Everything works fine on my workstation (Ubuntu 9.10) and my windows
machine at work, but the hosted instance is a no go. Any ideas would
be hugely appreciated, thanks.

I get this whenever I try to access a resource:

ArgumentError: block not supplied
/usr/lib/ruby/1.8/rack/builder.rb:22:in `instance_eval'
/usr/lib/ruby/1.8/rack/builder.rb:22:in `initialize'
/var/lib/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:886:in `new'
/var/lib/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:886:in `new'
/var/lib/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:879:in
`prototype'
/var/lib/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:898:in
`call'
/var/lib/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:943:in
`synchronize'
/var/lib/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:898:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lint.rb:47:in `_call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lint.rb:35:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/reloader.rb:43:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/showexceptions.rb:24:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/commonlogger.rb:20:in
`_call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/commonlogger.rb:13:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in
`process'
/usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:158:in `each'
/usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:285:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:285:in `new'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:268:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:268:in `new'
/usr/lib/ruby/1.8/mongrel.rb:268:in `run'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in
`run'
/usr/bin/rackup:154

Paul Walker

unread,
Nov 23, 2009, 4:51:59 AM11/23/09
to sina...@googlegroups.com
If you could include your config.ru and main file it calls, that would
probably be helpful ;-).
> --
>
> You received this message because you are subscribed to the Google
> Groups "sinatrarb" group.
> To post to this group, send email to sina...@googlegroups.com.
> To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/sinatrarb?hl=
> .
>
>

Reply all
Reply to author
Forward
0 new messages