[one-users] ozones-server problem

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Wed Feb 15 00:21:53 PST 2012


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