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

Tino Vazquez tinova at fdi.ucm.es
Mon Oct 5 04:07:05 PDT 2009


Hi Gary,

I've opened a ticket for the port issue [1]. The server should check
for the port availability and produce some intelligible information.

About the CentOS distribution it is in our plans to support it, in
fact we have been uploading some patches to the SVN (are you using the
latest code?) and it may be the case that our documentation is still
not updated, please bear in mind that the 1.4 version is still at its
beta stage.

We appreciate very much your feedback, we will use it to polish the
OCCI implementation.

Best regards,

-Tino

[1] http://redmine.opennebula.org/issues/156

--
Constantino Vázquez, Grid Technology Engineer/Researcher:
http://www.dsa-research.org/tinova
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



On Sat, Oct 3, 2009 at 10:59 PM, Gary Mazz <garymazzaferro at gmail.com> wrote:
> Hi,
>
> It turns out that I needed to reboot the box to get rid of a used socket
> 4567. It shouldn't happen.. I killed all running ruby processes and didn't
> see any from "thin". Now a new thread for the next issues...
>
> cheers,
> gary
>
>
>
> Hi,
>
> Well it turns ruby Ruby version 1.8.5 gets installed with centos 5.x
> which does not include the rdoc library. Rdoc is integrated into Ruby
> starting at 1.8.6. which may be a minimum version requirement.
>
> Moving though the onion, I'm past the point of rdoc and sqlite. This is
> my current holding point where it seems it can't initialize tcp. I have
> upgraded eventmachine with little difference. This is current error
> messages:
>
> /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
>
>
>  cheers
> gary
>
>
>
>
>
> 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



More information about the Users mailing list