[one-users] After day of messing with ruby, occi-server is bombing out

Gary Mazz garymazzaferro at gmail.com
Fri Oct 2 23:03:43 PDT 2009


Hi,

I've been attempting to get the occi server running without success. I 
need a little help, since I'm not a ruby developer.

As a side note, the installation on centos, simply does not work well 
and the ruby dependencies required by the occi-server are not  fully 
integrated or installable in the operating system.   If you have gotten 
this to work on another linux  distribution cleanly, you should only 
recommend that distribution.

I have issues with both occi-server and occi-storage errors. They are 
listed below:

$ ./occi-storage
/usr/lib/ruby/1.8/rdoc/ri/ri_options.rb:53: uninitialized constant 
RI::Paths (NameError)
        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/1.8/rdoc/usage.rb:72
        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 ./occi-storage:82



This is the current error log from the occi-server.log

/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:565:in 
`start_tcp_server': no acceptor (RuntimeError)
    from 
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:565:in 
`start_server'
    from 
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/backends/tcp_server.rb:16:in 
`connect'
    from 
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/backends/base.rb:49:in 
`start'
    from 
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in 
`call'
    from 
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in 
`run_machine'
    from 
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in 
`run'
    from 
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/backends/base.rb:57:in 
`start'
    from 
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/server.rb:156:in `start'
    from 
/usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/thin.rb:14:in `run'
    from 
/usr/lib/ruby/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:866:in `run!'
    from /usr/lib/ruby/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/main.rb:34
    from /home/garym/one/lib/ruby/occi/OCCIServer.rb:434
######################################
       OCCI Server configuration       
######################################
---------8<---------------------
#<OCCIConfiguration:0xb7c9347c
 @conf=
  {"VM_TYPE"=>
    [{"NAME"=>"small", "TEMPLATE"=>"small.erb"},
     {"NAME"=>"medium", "TEMPLATE"=>"medium.erb"},
     {"NAME"=>"large", "TEMPLATE"=>"large.erb"}],
   "BRIDGE"=>"eth0",
   "USER"=>"garym",
   "DATABASE"=>"/home/garym/one/var/occi.db",
   "PORT"=>"4567",
   "SERVER"=>"cloud.exxia.com",
   "ONE_XMLRPC"=>"http://localhost:2633/RPC2",
   "FS_FORMAT"=>"ext3",
   "IMAGE_DIR"=>"/home/garym/",
   "PASSWORD"=>"xxxxxx"}>
------>8------------------------
######################################
      OCCI Available Instances Types   
######################################
---------8<---------------------
{"small"=>{"NAME"=>"small", "TEMPLATE"=>"small.erb"},
 "medium"=>{"NAME"=>"medium", "TEMPLATE"=>"medium.erb"},
 "large"=>{"NAME"=>"large", "TEMPLATE"=>"large.erb"}}
------>8------------------------
== Sinatra/0.9.4 has taken the stage on 4567 for development with backup 
from Thin
!! Ruby 1.8.5 is not secure please install cgi_multipart_eof_fix:
   gem install cgi_multipart_eof_fix
 >> Thin web server (v1.2.4 codename Flaming Astroboy)
 >> Maximum connections set to 1024
 >> Listening on cloud.exxia.com:4567, CTRL+C to stop




More information about the Users mailing list