Bug #705

Sunstone: no such file to load -- HostMonitor.rb (LoadError)

Added by Patrice Lachance about 10 years ago. Updated about 10 years ago.

Status:ClosedStart date:07/02/2011
Priority:NormalDue date:
Assignee:Hector Sanjuan% Done:

100%

Category:Sunstone
Target version:Release 3.0
Resolution:fixed Pull request:
Affected Versions:

Description

Hi

If not run from$ONE_LOCATION/lib/sunstone/share/OneMonitor, "sunstone-server start" gives an error message about monitoring daemon

  1. sunstone-server start
    sunstone-server listening on 127.0.0.1:9869
    Error launching monitoring daemon
    OneMonitor monitoring tool launched

=> Message in $ONE_LOCATION/var/onemonitor.log:
/srv/cloud/one30/lib/sunstone/share/OneMonitor/runOneMonitor.rb:19:in `require': no such file to load -- HostMonitor.rb (LoadError)
from /srv/cloud/one30/lib/sunstone/share/OneMonitor/runOneMonitor.rb:19

Associated revisions

Revision 8e41d7f1
Added by Hector Sanjuan about 10 years ago

Bug #705: Add OneMonitor folder to require search path in launch script (needed by ruby > 1.9)

History

#1 Updated by Stéphane Angot about 10 years ago

Hi,

As a workaround, one can modify ruby environment variable to allow ruby to search in the right place.

e.g. on gentoo : export RUBYLIB=$RUBYLIB:$ONE_LOCATION/lib/sunstone/share/OneMonitor

#2 Updated by Hector Sanjuan about 10 years ago

  • Resolution set to fixed

Hi,

Own's directory was not added to the require path in the runOneMonitor.rb script. It should be fixed now in master.

#3 Updated by Stéphane Angot about 10 years ago

Works for me

#4 Updated by Hector Sanjuan about 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

For me too. Will close the issue

Also available in: Atom PDF