Project

General

Profile

Bug #10774

Updated by François ARMAND over 7 years ago

At fresh install, on a node, inventory is generated in the path "/var/rudder/${inventory_path}" (verbatim) and so is not found when the agent try to send it: generated.  
 <pre> 
 rudder       info: Executing 'no timeout' ... '/usr/bin/curl -L -k -1 -s -f --proxy '' -o "/var/rudder/cfengine-community/rudder-server-uuid.txt" https://192.168.41.2/uuid' 
 rudder       info: Completed execution of '/usr/bin/curl -L -k -1 -s -f --proxy '' -o "/var/rudder/cfengine-community/rudder-server-uuid.txt" https://192.168.41.2/uuid' 
 rudder       info: Created directory '/var/rudder/tmp/inventory/.' 
 rudder       info: Created directory '/var/rudder/reports/.' 
 rudder       info: Executing 'no timeout' ... '/opt/rudder/bin/run-inventory --local=${inventory_path}' 
   notice: Q: "...-inventory --lo": [info] FusionInventory instance: builtin 
 Q: "...-inventory --lo": [info] running task Inventory 
 Q: "...-inventory --lo": [info] Inventory saved in ${inventory_path} 
 Q: "...-inventory --lo": [error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Deploy" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473. 
 rudder       info: Last 4 quoted lines were generated by promiser '/opt/rudder/bin/run-inventory --local=${inventory_path}' 
 rudder       info: Completed execution of '/opt/rudder/bin/run-inventory --local=${inventory_path}' 
 </pre> 
 Cause is inventory_path is not defined, bevause class intial_promises is not in global scope. This was introduced in #10641 


 Running "rudder agent inventory" repaires the problem. 

Back