[one-users] occi-server fails to start

Zeeshan Ali Shah zashah at pdc.kth.se
Wed Mar 16 08:48:21 PDT 2011


Hi Saint, tell us on list if the solve the issue for archive


Zeeshan
On 03/16/2011 04:42 PM, Daniel Molina wrote:
> Hi,
>
> There is a compatibility problem with last versions of sinatra and
> rack using ruby 1.8.7.
>
> You can fix this issue in two ways:
> 1. Upgrading ruby to 1.9
> 2. Downgrading rack version to 1.2.0:
> # gem uninstall rack
> Select gem to uninstall:
>   1. rack-1.0.0
>   2. rack-1.0.1
>   3. rack-1.2.1
>   4. All versions
>> 4
> # gem install rack --version '1.2.0'
> Successfully installed rack-1.2.0
> 1 gem installed
>
> Hope this helps
>
> On 16 March 2011 15:55, Gian Uberto Lauri<saint at eng.it>  wrote:
>> Host OS: CentOS 5.5
>> Environment: OpenNebula 2.0.1
>>
>> When I give the occi-server starts, the program fails and the  log contains:
>>
>> [root at church ~]# cat /var/log/one/occi-server.log
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.2/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.2/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.2/lib/rack/request.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.2/lib/rack/showexceptions.rb:3
>>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
>>          ... 7 levels...
>>         from /usr/lib/ruby/gems/1.8/gems/sinatra-1.2.0/lib/sinatra.rb:4
>>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
>>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
>>         from /usr/lib/one/ruby/cloud/occi/occi-server.rb:45
>>
>>
>> [root at itpsmenc039 ~]#  cat /var/log/one/occi-server.log
>> /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/request.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/showexceptions.rb:3
>>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
>>          ... 7 levels...
>>         from /usr/lib/ruby/gems/1.8/gems/sinatra-1.2.0/lib/sinatra.rb:4
>>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
>>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
>>         from /usr/lib/one/ruby/cloud/occi/occi-server.rb:45
>>
>> (church is an i386, itpsmenc039 an x86_64)
>>
>> How can I fix it ?
>>
>> Thank you in advance
>>
>> --
>> ing. Gian Uberto Lauri
>> Ricercatore / Reasearcher
>> Laboratorio Ricerca e Sviluppo / Research&  Development Lab.
>> Area Calcolo Distribuito / Distributed Computation Area
>>
>> GianUberto.Lauri at eng.it
>>
>> Engineering Ingegneria Informatica spa
>> Corso Stati Uniti 23/C, 35127 Padova (PD)
>>
>> Tel. +39-049.8283.571         | main(){printf(&unix["\021%six\012\0"],
>> Fax  +39-049.8283.569             |    (unix)["have"]+"fun"-0x60);}
>> Skype: gian.uberto.lauri          |          David Korn, AT&T Bell Labs
>> http://www.eng.it                         |          ioccc best One Liner, 1987
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>


-- 
Regards


Zeeshan Ali Shah
System Administrator
PDC-Center for High Performance Computing
KTH-Royal Institute of Technology, Sweden
+46 8 790 9115




More information about the Users mailing list