Bug #4023

Debian Jessie ruby errors

Added by Derek Cordeiro about 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:10/04/2015
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Documentation
Target version:Release 4.14.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.14

Description

Hi

The ruby library package seems to be missing components.
- oneflow complains about treetop, availabile in debian repo, installed
- oneflow complains about parse-cron. Installed via gem
- oneflow still fails to start with error below

FINAL ERROR ============
root@derouter:/var/log/one# cat oneflow.error
/usr/lib/one/oneflow/lib/models/role.rb:21:in `<top (required)>': undefined method `version' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/one/oneflow/lib/models.rb:26:in `<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/one/oneflow/oneflow-server.rb:49:in `<main>'


Related issues

Related to Bug #4032: Check if treetop version check is working Closed 10/07/2015

Associated revisions

Revision 35851705
Added by Carlos Martín about 3 years ago

Bug #4023 #4032: Make treetop version check compatible with package installation

The code was using a gem command that was not available when
treetop has been installed via packages

Revision 01d177b1
Added by Carlos Martín about 3 years ago

Bug #4023 #4032: Make treetop version check compatible with package installation

The code was using a gem command that was not available when
treetop has been installed via packages

(cherry picked from commit 35851705c1ec31af0ccbaccb680ddcb17f5895ad)

History

#1 Updated by Derek Cordeiro about 3 years ago

I was able to resolve my issue by installing an updated treetop gem. Not sure if this affects the instructions for Ubuntu, but /usr/share/one/install_gems isn't present in the howto.

#2 Updated by Ruben S. Montero about 3 years ago

  • Target version set to Release 4.14.2

#3 Updated by Daniel Molina about 3 years ago

  • Related to Bug #4032: Check if treetop version check is working added

#4 Updated by Carlos Martín about 3 years ago

  • Category set to Documentation
  • Status changed from Pending to New

The treetop version comparison was done using a method that only works if the gem was installed with rubygems, and not from packages.
That should be fixed in the repo now.

I'm moving this ticked to the documentation category to double check where install_gems is missing.

#5 Updated by Ignacio M. Llorente about 3 years ago

  • Assignee set to Javi Fontan

#6 Updated by Javi Fontan almost 3 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Added information in the platform notes.

Also available in: Atom PDF