Hi all, <br>I want to install and configure the OCCI server with Opennebula . I followed instructions in that wiki (<a href="http://dev.opennebula.org/projects/ogf-occi/wiki/Occi_04?version=2">http://dev.opennebula.org/projects/ogf-occi/wiki/Occi_04?version=2</a>)<br>
I succeed to start the passenger server, but after <span id="result_box" class="" lang="en"><span class="hps">errors appear and I can't</span><span class="hps"></span><span class="hps"></span><span class="hps"></span> <span class="hps">send</span> <span class="hps">Any</span> <span class="hps">request</span> <span class="hps">OCCI</span></span>!<br>
when I start Passenger I got these information :<br>---------<br>> /var/lib/gems/1.8/bin/passenger start<br>=============== Phusion Passenger Standalone web server started ===============<br>PID file: /home/ubuntu/tmp/pids/passenger.3000.pid<br>
Log file: /home/ubuntu/log/passenger.3000.log<br>Environment: development<br>Accessible via: <a href="http://0.0.0.0:3000/">http://0.0.0.0:3000/</a><br><br>You can stop Phusion Passenger Standalone by pressing Ctrl-C.<br>
===============================================================================<br>D, [2011-12-13T11:27:12.466240 #18098] DEBUG -- : Configuration file contains the following parameters:<br>D, [2011-12-13T11:27:12.466688 #18098] DEBUG -- : {"BACKEND"=>"opennebula", "ONE_PASSWORD"=>"oneadmin", "PORT"=>"3000", "TEMPLATE_LOCATION"=>"etc/occi_one_templates/", "ONE_XMLRPC"=>"<a href="http://localhost:2633/RPC2">http://localhost:2633/RPC2</a>", "SERVER"=>"<a href="http://localhost/">http://localhost/</a>", "ONE_USER"=>"oneadmin", "WEBINTERFACE"=>"enabled", "LOG_LEVEL"=>"debug", "NOVNC_PATH"=>"public/novnc", "VNC_PROXY_BASE_PORT"=>"0", "ONE_IMAGE_TMP_DIR"=>"/tmp"}<br>
D, [2011-12-13T11:27:12.466849 #18098] DEBUG -- : Mandatory parameter backend included in configuration file.<br>D, [2011-12-13T11:27:12.466963 #18098] DEBUG -- : Mandatory parameter server included in configuration file.<br>
D, [2011-12-13T11:27:12.467070 #18098] DEBUG -- : Mandatory parameter port included in configuration file.<br>D, [2011-12-13T11:27:12.467177 #18098] DEBUG -- : All mandatory parameters are provided in config file<br>D, [2011-12-13T11:27:12.558405 #18098] DEBUG -- : Initializing connection with OpenNebula<br>
D, [2011-12-13T11:27:12.587690 #18098] DEBUG -- : Get existing resources from backend<br>D, [2011-12-13T11:27:12.643118 #18098] DEBUG -- : ONE compute object: #<OpenNebula::VirtualMachine:0x7fe75bc974e0><br>D, [2011-12-13T11:27:12.675585 #18098] DEBUG -- : Registering method [start] of object [#<OCCI::Infrastructure::Compute:0x7fe75bbb85d8>] for action [#<OCCI::Core::Action:0x7fe75d763300>] (at index: -1)...<br>
D, [2011-12-13T11:27:12.675820 #18098] DEBUG -- : Registering method [stop] of object [#<OCCI::Infrastructure::Compute:0x7fe75bbb85d8>] for action [#<OCCI::Core::Action:0x7fe75d763030>] (at index: -1)...<br>D, [2011-12-13T11:27:12.675957 #18098] DEBUG -- : Registering method [restart] of object [#<OCCI::Infrastructure::Compute:0x7fe75bbb85d8>] for action [#<OCCI::Core::Action:0x7fe75d763738>] (at index: -1)...<br>
D, [2011-12-13T11:27:12.676094 #18098] DEBUG -- : Registering method [suspend] of object [#<OCCI::Infrastructure::Compute:0x7fe75bbb85d8>] for action [#<OCCI::Core::Action:0x7fe75d762b30>] (at index: -1)...<br>
D, [2011-12-13T11:27:12.676238 #18098] DEBUG -- : OCCI ID: 0ff1e264-520d-543a-87dd-181a491e667e<br>D, [2011-12-13T11:27:12.676420 #18098] DEBUG -- : Attributes definitions to check against: opennebula.vm.vnc_urlocci.compute.coresocci.core.titleocci.core.summaryopennebula.vm.bootocci.core.idocci.compute.memorylinksopennebula.vm.vcpuocci.compute.stateocci.compute.architectureocci.compute.hostnameocci.compute.speed<br>
D, [2011-12-13T11:27:12.676740 #18098] DEBUG -- : Mixins in entity #<OCCI::Core::Mixin:0x7fe75d7ccc10><br>D, [2011-12-13T11:27:12.676907 #18098] DEBUG -- : Searching context: compute<br>D, [2011-12-13T11:27:12.687178 #18098] DEBUG -- : NOVNC path: public/novnc<br>
D, [2011-12-13T11:27:12.689836 #18098] DEBUG -- : Graphics type: vnc<br>D, [2011-12-13T11:27:12.689961 #18098] DEBUG -- : VNC base port: 0<br>D, [2011-12-13T11:27:12.690166 #18098] DEBUG -- : VNC port: -1<br>D, [2011-12-13T11:27:12.690278 #18098] DEBUG -- : VNC host: node034<br>
D, [2011-12-13T11:27:12.691345 #18098] DEBUG -- : VNC URL: http://localhost:-1/vnc_auto.html?host=localhost&port=-1<br>D, [2011-12-13T11:27:12.697381 #18098] DEBUG -- : Image ID: 1<br>grep : option invalide -- '.'<br>
Usage: grep [OPTION]... MOTIF [FICHIER]...<br>Pour en savoir davantage, faites: « grep --help ».<br>public/novnc/utils/launch.sh: ligne 95: /home/ubuntu/public/novnc/utils/wsproxy.py: Permission non accordée<br>D, [2011-12-13T11:27:12.810690 #18098] DEBUG -- : Registering method [online] of object [#<OCCI::Infrastructure::Storage:0x7fe75bcc9a58>] for action [#<OCCI::Core::Action:0x7fe75d747330>] (at index: -1)...<br>
D, [2011-12-13T11:27:12.810968 #18098] DEBUG -- : Registering method [offline] of object [#<OCCI::Infrastructure::Storage:0x7fe75bcc9a58>] for action [#<OCCI::Core::Action:0x7fe75d747588>] (at index: -1)...<br>
D, [2011-12-13T11:27:12.811116 #18098] DEBUG -- : Registering method [backup] of object [#<OCCI::Infrastructure::Storage:0x7fe75bcc9a58>] for action [#<OCCI::Core::Action:0x7fe75d7478a8>] (at index: -1)...<br>
D, [2011-12-13T11:27:12.811253 #18098] DEBUG -- : Registering method [snapshot] of object [#<OCCI::Infrastructure::Storage:0x7fe75bcc9a58>] for action [#<OCCI::Core::Action:0x7fe75d747150>] (at index: -1)...<br>
D, [2011-12-13T11:27:12.811389 #18098] DEBUG -- : Registering method [resize] of object [#<OCCI::Infrastructure::Storage:0x7fe75bcc9a58>] for action [#<OCCI::Core::Action:0x7fe75d747218>] (at index: -1)...<br>
D, [2011-12-13T11:27:12.811666 #18098] DEBUG -- : OCCI ID: b04965e6-a9bb-591f-8f8a-1adcb2c8dc39<br>D, [2011-12-13T11:27:12.811836 #18098] DEBUG -- : Attributes definitions to check against: opennebula.image.fstypeopennebula.image.sourceopennebula.image.dev_prefixocci.core.titleocci.core.summaryopennebula.image.publicopennebula.image.busocci.storage.stateocci.core.idopennebula.image.pathopennebula.image.persistentlinksopennebula.image.typeocci.storage.size<br>
D, [2011-12-13T11:27:12.812020 #18098] DEBUG -- : Mixins in entity #<OCCI::Core::Mixin:0x7fe75d7f3158><br>D, [2011-12-13T11:27:12.812170 #18098] DEBUG -- : Searching context: storage<br>D, [2011-12-13T11:27:12.812628 #18098] DEBUG -- : OCCI ID: b04965e6-a9bb-591f-8f8a-1adcb2c8dc39<br>
D, [2011-12-13T11:27:12.812785 #18098] DEBUG -- : Attributes definitions to check against: occi.core.titleocci.core.sourceocci.core.targetocci.core.idocci.storagelink.stateocci.storagelink.mountpointocci.storagelink.deviceid<br>
D, [2011-12-13T11:27:12.812938 #18098] DEBUG -- : Mixins in entity <br>[ pid=18055 thr=70315865874860 file=utils.rb:176 time=2011-12-13 11:27:12.813 ]: *** Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (Location [/storage/b04965e6-a9bb-591f-8f8a-1adcb2c8dc39] already registered for object [#<OCCI::Infrastructure::StorageLink:0x7fe75bcc4f08>] (OCCI::LocationAlreadyRegisteredException)) (process 18055, thread #<Thread:0x7fe7606a4358>):<br>
        from ./lib/occi/rendering/http/LocationRegistry.rb:89:in `register'<br>        from ./lib/occi/backend/OpenNebula.rb:314:in `parse_links'<br>        from ./lib/occi/backend/OpenNebula.rb:290:in `each'<br>
        from ./lib/occi/backend/OpenNebula.rb:290:in `parse_links'<br>        from ./lib/occi/backend/OpenNebula.rb:282:in `parse_backend_object'<br>        from ./lib/occi/backend/OpenNebula.rb:189:in `register_all_objects'<br>
        from ./lib/opennebula/XMLUtils.rb:322:in `call'<br>        from ./lib/opennebula/XMLUtils.rb:322:in `each_element'<br>        from /usr/lib/ruby/1.8/rexml/element.rb:892:in `each'<br>        from /usr/lib/ruby/1.8/rexml/xpath.rb:53:in `each'<br>
        from /usr/lib/ruby/1.8/rexml/element.rb:892:in `each'<br>        from ./lib/opennebula/XMLUtils.rb:320:in `each_element'<br>        from ./lib/opennebula/Pool.rb:100:in `each'<br>        from ./lib/occi/backend/OpenNebula.rb:187:in `register_all_objects'<br>
        from ./lib/occi/backend/OpenNebula.rb:174:in `register_all_instances'<br>        from ./lib/occi/backend/OpenNebula.rb:57:in `register_existing_resources'<br>        from ./lib/occi/occi-server.rb:130<br>        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'<br>
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'<br>        from <a href="http://config.ru:4">config.ru:4</a><br>        from /var/lib/gems/1.8/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'<br>
        from /var/lib/gems/1.8/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'<br>        from config.ru:1:in `new'<br>        from <a href="http://config.ru:1">config.ru:1</a><br>[ pid=18053 thr=140505720248064 file=ext/nginx/HelperAgent.cpp:933 time=2011-12-13 11:27:12.923 ]: Uncaught exception in PassengerServer client thread:<br>
   exception: write() failed: Broken pipe (32)<br>   backtrace:<br>     in 'void Client::handleRequest(Passenger::FileDescriptor&)' (HelperAgent.cpp:828)<br>     in 'void Client::threadMain()' (HelperAgent.cpp:952)<br>
<br>public/novnc/utils/launch.sh: ligne 37 : echo: erreur d'écriture : Relais brisé (pipe)<br><br><br>Any suggestions!!<br>can you help Me!<br><br>Best Regards.<br clear="all"><br>-- <br>Salma REBAI<br>Ingénieur Informatique<br>

Mastère Réseaux et Systèmes Multimédia<br>Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie<br>Institut Télécom SudParis<br><a href="mailto:rebai.salma@gmail.com" target="_blank">rebai.salma@gmail.com</a><br>