[one-users] OCCI Server 0.3

florian.feldhaus at tu-dortmund.de florian.feldhaus at tu-dortmund.de
Thu Aug 25 02:49:27 PDT 2011


Ah, this is a problem between ruby and some operating systems. Some OS are case sensitive for ruby requires and others aren't. Unfortunately, I seem to have packaged the v0.3 packages with an OpenNebula folder containing uppercase letters. This is probably the cause of your problem. Please rename the folder lib/OpenNebula to lib/opennebula and tell me if this solved your problem.

Cheers,
Florian

Von: João Soares <joaosoares at ua.pt<mailto:joaosoares at ua.pt>>
Datum: Thu, 25 Aug 2011 10:25:08 +0100
An: Florian Feldhaus <florian.feldhaus at tu-dortmund.de<mailto:florian.feldhaus at tu-dortmund.de>>
Cc: <users at lists.opennebula.org<mailto:users at lists.opennebula.org>>
Betreff: RE: [one-users] OCCI Server 0.3


Hi,



Thanks. Indeed, starting passenger in the OGF OCCI folder solves that problem but another one comes up:



      You can stop Phusion Passenger Standalone by pressing Ctrl-C.

===============================================================================

D, [2011-08-25T11:19:04.125166 #31675] DEBUG -- : Configuration file contains the following parameters:

D, [2011-08-25T11:19:04.125270 #31675] DEBUG -- : {"BACKEND"=>"opennebula", "ONE_PASSWORD"=>"cc", "PORT"=>"3000", "TEMPLATE_LOCATION"=>"etc/occi_one_templates/", "ONE_XMLRPC"=>"http://localhost:2633/RPC2", "SERVER"=>"http://moon.cloud.pt/", "ONE_USER"=>"oneadmin", "LOG_LEVEL"=>"debug", "NOVNC_PATH"=>"public/novnc", "VNC_PROXY_BASE_PORT"=>"0", "ONE_IMAGE_TMP_DIR"=>"/tmp"}

D, [2011-08-25T11:19:04.125351 #31675] DEBUG -- : Mandatory parameter backend included in configuration file.

D, [2011-08-25T11:19:04.125397 #31675] DEBUG -- : Mandatory parameter server included in configuration file.

D, [2011-08-25T11:19:04.125440 #31675] DEBUG -- : Mandatory parameter port included in configuration file.

D, [2011-08-25T11:19:04.125480 #31675] DEBUG -- : All mandatory parameters are provided in config file

[ pid=31631 thr=-607706918 file=utils.rb:176 time=2011-08-25 11:19:04.133 ]: *** Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner (no such file to load -- opennebula/OpenNebula) (process 31631, thread #<Thread:0xb78e41b4>):

        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'

        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'

        from ./lib/occi/backend/OpenNebulaBackend.rb:24

        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'

        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'

        from ./lib/occi/occi-server.rb:124

        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'

        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'

        from config.ru:4

        from /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/builder.rb:51:in `instance_eval'

        from /var/lib/gems/1.8/gems/rack-1.3.2/lib/rack/builder.rb:51:in `initialize'

        from config.ru:1:in `new'

        from config.ru:1





And also when starting OCCI-SERVER the same error appears:

      oneadmin at moon:~/ogf-occi$ ./bin/occi-server start

Error executing /usr/lib/one/ruby/cloud/occi/occi-server.rb.



Cheers,

João







-----Original Message-----
From: users-bounces at lists.opennebula.org<mailto:users-bounces at lists.opennebula.org> [mailto:users-bounces at lists.opennebula.org] On Behalf Of florian.feldhaus at tu-dortmund.de<mailto:florian.feldhaus at tu-dortmund.de>
Sent: quarta-feira, 24 de Agosto de 2011 19:16
To: joao-m-soares at ptinovacao.pt<mailto:joao-m-soares at ptinovacao.pt>
Cc: users at lists.opennebula.org<mailto:users at lists.opennebula.org>
Subject: Re: [one-users] OCCI Server 0.3



Hi,



it looks like you successfully installed passenger. You should issue the

passenger command within the OGF OCCI folder. If you just start passenger,

it does not know, which files to serve and thus the error.



Please follow these steps (from the OGF OCCI Wiki):

3.) Download ogf-occi-0.3_beta2.tar.bz2 or ogf-occi-0.3_beta2.zip from

http://dev.opennebula.org/projects/ogf-occi/files

4.) Untar / unzip the file



5.) Change to the folder ogf-occi

6.) Change the configuration in etc/occi-server.conf

7.) Run the OCCI server with

passenger start



Cheers,

Florian



> I have been trying to install OGF OCCI v0.3, however I am also facing

>some problems.

> First the Passenger installationŠ

>

> I did:

> -          gem install passenger

> -          ./var/lib/gems/1.8/gems/passenger-3.0.8/bin/passenger start

> o   Passenger starts but:

> =============== Phusion Passenger Standalone web server started

>===============

> PID file: /var/lib/gems/1.8/gems/passenger-3.0.8/bin/passenger.3000.pid

> Log file: /var/lib/gems/1.8/gems/passenger-3.0.8/bin/passenger.3000.log

> Environment: development

> Accessible via: http://0.0.0.0:3000/

>

> You can stop Phusion Passenger Standalone by pressing Ctrl-C.

>

>==========================================================================

>=====

> 2011/08/24 17:38:33 [error] 369#0: *4

>"/var/lib/gems/1.8/gems/passenger-3.0.8/bin/public/index.html" is

>                                                                    : No

>such file or directory), client: 127.0.0.1, server: _, request: "HEAD /

>HTTP/1.1", host: "0.0.0.0"

>

> -          /var/lib/one/ogf-occi/bin/occi-server start

> o   And:

> Error executing /usr/lib/one/ruby/cloud/occi/occi-server.rb.

>

> Any suggestion?

>

> Cheers,

> João Soares



_______________________________________________

Users mailing list

Users at lists.opennebula.org<mailto:Users at lists.opennebula.org>

http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110825/875d15b3/attachment-0003.htm>


More information about the Users mailing list