[one-users] sunstone-server problem

Daniel Molina dmolina at opennebula.org
Wed Mar 2 05:11:57 PST 2011


Hi,

The SunStone server was tested with ruby 1.8.7 and ruby 1.9 but there
is a compatibility problem between rack 1.2.1 and the last Sinatra
version using ruby 1.8.7. There are two options to fix this problem:

1. Downgrade rack:
# gem uninstall rack
and
# gem install rack --version '1.2.0'

or

2. Upgrade ruby to 1.9

Hope this helps.

On 2 March 2011 13:21, Héctor Sanjuán <hsanjuan at opennebula.org> wrote:
> El 02/03/11 13:12, Ruben Diez escribió:
>> Hi:
>>
>> The sunstone-server don't work for us....
>>
>> This is the sunstone.log file contents:
>>
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/server.rb:228: warning:
>> parenthesize argument(s) for future version
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138:in `union':
>> can't convert Array into String (TypeError)
>>        from /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `gem_original_require'
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `require'
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/content_length.rb:1
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `gem_original_require'
>>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `require'
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/thin.rb:2
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler.rb:17:in
>> `const_get'
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler.rb:17:in `get'
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler.rb:17:in `each'
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler.rb:17:in `get'
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/server.rb:217:in `server'
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/server.rb:213:in `start'
>>        from
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/server.rb:100:in `start'
>>        from /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/bin/rackup:4
>>        from /usr/bin/rackup:19:in `load'
>>        from /usr/bin/rackup:19
>>
>>
>> Any ideas???
>>
>
> It seems you are using gems for ruby 1.8, Sunstone works with 1.9.2. Can
> you try upgrading ruby to this version and see if the problem persists?
>
> --
> Héctor Sanjuan
> OpenNebula.org
> _______________________________________________
> 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