[Pkg-opennebula-devel] Bug#663065: opennebula: missing execute permissions for /usr/lib/one/ruby/cloud/occi/occi-server.rb

Martin Steigerwald ms at teamix.de
Thu Mar 8 10:28:09 UTC 2012

Package: opennebula
Version: 3.2.1-1
Severity: normal

Dear Maintainer,

execute permissions on occi-server.rb seems to be missing or the occi-server
shell start script needs to be adapted.

I report from my workstation instead of the opennebula server cause reportbug
is configured on my ws already.

oneadmin at opennebula:~$ occi-server start
Can not find /usr/lib/one/ruby/cloud/occi/occi-server.rb.

Looking in occi-server gives:

  if [ ! -x "$OCCI_SERVER" ]; then
    echo "Can not find $OCCI_SERVER."
    exit 1

But occi-server.rb is not executable:

opennebula:~# ls -l /usr/lib/one/ruby/cloud/occi/occi-server.rb
-rw-r--r-- 1 root root 9980 Feb 22 20:34 /usr/lib/one/ruby/cloud/occi/occi-server.rb

Thus I did:

opennebula:~# chmod a+x /usr/lib/one/ruby/cloud/occi/occi-server.rb

After that I get:

oneadmin at opennebula:~$ occi-server start
Error executing occi-server.
Check /var/log/one/occi-server.log for more information
oneadmin at opennebula:~$ less /var/log/one/occi-server.log
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- VirtualNetworkOCCI (LoadError)
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/one/ruby/cloud/occi/OCCIServer.rb:26
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/one/ruby/cloud/occi/occi-server.rb:56

But I will report this in a different bug report.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (450, 'unstable'), (110, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages opennebula depends on:
ii  libc6                             2.13-26
ii  libgcc1                           1:4.6.3-1
ii  libmysqlclient16                  5.1.58-1
ii  libsqlite3-0                      3.7.10-1
ii  libssl1.0.0                       1.0.0g-1
ii  libstdc++6                        4.6.3-1
ii  libxml2                           2.7.8.dfsg-7
ii  libxmlrpc-c++4                    <none>
ii  libxmlrpc-core-c3                 <none>
ii  opennebula-common                 3.2.1-1
ii  ruby                              4.8
ii  ruby-password [libpassword-ruby]  0.5.3-3
ii  ruby-sequel [libsequel-ruby]      3.33.0-1
ii  ruby1.8 [ruby]          
ii  rubygems                          1.8.15-1

Versions of packages opennebula recommends:
ii  libmysql-ruby                   2.8.2+gem2deb-1
ii  ruby-mysql [libmysql-ruby]      2.8.2+gem2deb-1
ii  ruby-sqlite3 [libsqlite3-ruby]  1.3.5-1

Versions of packages opennebula suggests:
ii  mysql-server                         <none>
ii  ruby-amazon-ec2 [libamazonec2-ruby]  0.9.17-2

More information about the Pkg-opennebula-devel mailing list