[one-users] Sunstone ruby errors?

Daniel Molina dmolina at opennebula.org
Wed Mar 16 09:53:16 PDT 2011


Hi,

Would you mind to change the line 20 of the
$ONE_LOCATION/lib/ruby/sunstone/config.ru file to become
$: << ::File.dirname(__FILE__)
instead of
$: << File.dirname(__FILE__)

As you can see in your link the problem is ruby1.9/thin, I think this
problem is fixed in latest versions.

I have tested this environments and it works without any change:
ruby 1.8.7 (2010-01-10 patchlevel 249)
rack (1.2.0)
thin (1.2.7)

ruby 1.9.2p136 (2010-12-25 revision 30365)
rack (1.2.1)
thin (1.2.7)

Hope this helps.


On 15 March 2011 21:59, Whiffen, Richard
<Richard_Whiffen at cable.comcast.com> wrote:
> I've been unable to get sunstone to work. I was running the 1.85 version of
> ruby and was experiencing the same 'union' issue.  Daniel suggested to
> another list member try upgrading Ruby to a 1.9 or downgrading the rack
> release.  Downgrading didn't work, so I tried upgrading to 1.9.  I now get a
> different Ruby error:
> [oneadmin at io-kvm-ctrl-01 one]$ more /var/log/one/sunstone.log
> /usr/lib/one/sunstone/config.ru:20:in `block in <main>': undefined method
> `dirname' for Rack::File:Class (NoMethodError)
>         from
> /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in
> `instance_eval'
>         from
> /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in
> `initialize'
>         from /usr/lib/one/sunstone/config.ru:1:in `new'
>         from /usr/lib/one/sunstone/config.ru:1:in `<main>'
>         from
> /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:35:in
> `eval'
>         from
> /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:35:in
> `parse_file'
>         from
> /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/lib/rack/server.rb:162:in
> `app'
>         from
> /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/lib/rack/server.rb:248:in
> `wrapped_app'
>         from
> /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/lib/rack/server.rb:213:in
> `start'
>         from
> /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/lib/rack/server.rb:100:in
> `start'
>         from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.2/bin/rackup:4:in
> `<top (required)>'
>         from /usr/local/bin/rackup:19:in `load'
>         from /usr/local/bin/rackup:19:in `<main>'
> [oneadmin at io-kvm-ctrl-01 one]$ ruby --version
> ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]
> [oneadmin at io-kvm-ctrl-01 one]$
> Google turns up this, which points to 'thin'.
> https://github.com/documentcloud/cloud-crowd/issues/6
> I'm not much of a ruby guy, so anyone have any ideas how to get past this?
> Rich
> --
> Rich Whiffen
> richard_whiffen at cable.comcast.com
> AIM: richwhiffen
> Yahoo: richwhiffen
> Phone: 202-449-1312
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
Daniel Molina, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | dmolina at opennebula.org



More information about the Users mailing list