[one-users] ozones-server problem
Ruben Diez
rdiez at cesga.es
Wed Feb 15 01:13:08 PST 2012
Hi Rolandas
Thanks you for the answer.
You are basically right: Finally, seems to be a version conflict between
the rack stuff from gems and ranck stuff from system package.
This seems to fix it:
root at onesrv04:/usr/lib/ruby/1.8# pwd
/usr/lib/ruby/1.8
root at onesrv04:/usr/lib/ruby/1.8# mv rack rack.original
root at onesrv04:/usr/lib/ruby/1.8# mv rack.rb rack.rb.original
root at onesrv04:/usr/lib/ruby/1.8# ln -s
/var/lib/gems/1.8/gems/rack-1.4.0/lib/rack/ rack
root at onesrv04:/usr/lib/ruby/1.8# ln -s
/var/lib/gems/1.8/gems/rack-1.4.0/lib/rack.rb rack.rb
[....]
oneadmin at onesrv04:/usr/bin$ ozones-server start
Stale .lock detected. Erasing it.
ozones-server listening on 127.0.0.1:6121
Thanks a lot!!!!
Regards.
Rolandas Naujikas escribió:
> Hi,
>
> oZones server requires (probably) the newer rackup.
> I solved it by creating /usr/bin/rackup with
> --------------------------------------------
> #!/usr/bin/env ruby
> $: << "/var/lib/gems/1.8/gems/rack-1.4.0/lib"
> require "rack"
> Rack::Server.start
> --------------------------------------------
> Where /var/lib/gems/1.8/gems/rack-1.4.0 is the location of rack
> installation from ruby gems.
>
> Regards, Rolandas Naujikas
>
> On 2012-02-14 18:34, Ruben Diez wrote:
>
>> Hi:
>>
>> We are attempt to set up the ozones-server (OpenNebula 3.2.0 over Debian
>> 6.0.2)
>>
>> After follow the steps at
>> http://opennebula.org/documentation:rel3.2:ozonescfg
>>
>> We found this error:
>>
>> oneadmin at onesrv04:~$ ozones-server start
>> Stale .lock detected. Erasing it.
>> Error executing /srv/cloud/one/lib/ozones/config.ru, please check the
>> log /srv/cloud/one/var/ozones-server.log
>>
>> oneadmin at onesrv04:~$ cat /srv/cloud/one/var/ozones-server.log
>> /srv/cloud/one/bin/ozones-server: line 72: rackup: command not found
>>
>> So we do:
>>
>> root at onesrv04:/usr/bin# pwd
>> /usr/bin
>> root at onesrv04:/usr/bin# ln -s rackup1.8 rackup
>>
>> and attempt again:
>>
>> oneadmin at onesrv04:~$ ozones-server start
>> Stale .lock detected. Erasing it.
>> Error executing /srv/cloud/one/lib/ozones/config.ru, please check the
>> log /srv/cloud/one/var/ozones-server.log
>> oneadmin at onesrv04:~$ cat /srv/cloud/one/var/ozones-server.log
>> /usr/lib/ruby/1.8/rack/handler/thin.rb:1:in `require': no such file to
>> load -- thin (LoadError)
>> from /usr/lib/ruby/1.8/rack/handler/thin.rb:1
>> from /usr/lib/ruby/1.8/rack/handler.rb:17:in `const_get'
>> from /usr/lib/ruby/1.8/rack/handler.rb:17:in `get'
>> from /usr/lib/ruby/1.8/rack/handler.rb:17:in `each'
>> from /usr/lib/ruby/1.8/rack/handler.rb:17:in `get'
>> from /usr/lib/ruby/1.8/rack/server.rb:159:in `server'
>> from /usr/lib/ruby/1.8/rack/server.rb:155:in `start'
>> from /usr/lib/ruby/1.8/rack/server.rb:83:in `start'
>> from /usr/bin/rackup:4
>>
>>
>> So, edit the /usr/lib/ruby/1.8/rack/handler/thin.rb and change the line:
>> require "thin"
>>
>> by this one:
>> require "rack/handler/thin"
>>
>> and try again:
>>
>> oneadmin at onesrv04:~$ cat /srv/cloud/one/var/ozones-server.log
>> /usr/lib/ruby/1.8/rack/handler/thin.rb:10:in `run': uninitialized
>> constant Thin (NameError)
>> from /usr/lib/ruby/1.8/rack/server.rb:155:in `start'
>> from /usr/lib/ruby/1.8/rack/server.rb:83:in `start'
>> from /usr/bin/rackup:4
>>
>>
>> And we do not find a way to solve this... Any idea??
>>
>> Regards
>>
>>
>>
>>
>>
>>
>
>
More information about the Users
mailing list