Bug #12235
closedInventory failed on debian 9 on relay only
Description
I tried to upgrade from 4.1.x (10?) to 4.3.0 on a brand new relay server but inventory failed. The upgrade worked well on root server and agents.
Seems to be XML/TreePP module which is missing.
Version: 4.3.0~rc2~git201803160036-stretch0
Can't locate XML/TreePP.pm in @INC (you may need to install the XML::TreePP module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /var/rudder/cfengine-community/inputs/inventory/1.0/test-inventory.pl line 5.
BEGIN failed--compilation aborted at /var/rudder/cfengine-community/inputs/inventory/1.0/test-inventory.pl line 5.
Updated by Nicolas CHARLES over 6 years ago
Kind of the same issue with Centos7:
# /opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/server-root.ocs -debug [info] FusionInventory instance: builtin - Perl instance: system [debug] FusionInventory Agent (2.3.19) [debug] Configuration directory: /opt/rudder/etc/fusioninventory [debug] Data directory: /opt/rudder/share/fusioninventory [debug] Storage directory: /opt/rudder/var/fusioninventory [debug] Lib directory: /opt/rudder/share/fusioninventory/lib [debug] [target local0] Next server contact planned for Mon Mar 19 11:22:31 2018 [debug] Available tasks: [debug] - ESX: 2.2.2 [debug] - Inventory: 1.1 [debug] - Collect: 2.4.0 [debug] - WakeOnLan: 2.1 [debug] - NetDiscovery: 2.2.2 [debug] - NetInventory: 2.2.2 [debug] Planned tasks: [debug] - ESX: 2.2.2 [debug] - Inventory: 1.1 [debug] - Collect: 2.4.0 [debug] - WakeOnLan: 2.1 [debug] - NetDiscovery: 2.2.2 [debug] - NetInventory: 2.2.2 [debug] _runTarget [error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::ESX" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473. [error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Inventory" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473. [error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Collect" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473. [debug] WakeOnLan task not compatible with local target [debug] NetDiscovery task not compatible with local target [debug] NetInventory task not compatible with local target
Updated by Nicolas CHARLES over 6 years ago
On Centos7:
# perl -I/opt/rudder/lib/perl5 -I/opt/rudder/bin/fusioninventory-agent -e 'use FusionInventory::Agent::Task::Inventory' Can't locate Data/Dumper.pm in @INC (@INC contains: /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/rudder/lib/perl5/FusionInventory/Agent/Inventory.pm line 7. BEGIN failed--compilation aborted at /opt/rudder/lib/perl5/FusionInventory/Agent/Inventory.pm line 7. Compilation failed in require at /opt/rudder/lib/perl5/FusionInventory/Agent/Task/Inventory.pm line 12. BEGIN failed--compilation aborted at /opt/rudder/lib/perl5/FusionInventory/Agent/Task/Inventory.pm line 12. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.
Data/Dumper.pm is missing
But
locaroot@server:/home/vagrant# locate Dumper.pm /opt/rudder/lib/perl5/Module/Build/Dumper.pm /opt/rudder/lib/perl5/i386-linux-thread-multi/Data/Dumper.pm
it installed a 32 bit agent - so discarding this comment
Updated by Félix DALLIDET over 6 years ago
- Status changed from New to In progress
- Assignee set to Félix DALLIDET
Updated by Nicolas CHARLES over 6 years ago
- Related to Bug #12253: Missing perl module XML/TreePP.pm added
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.3.0~rc2 to 4.3.0~rc3
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.3.0~rc3 to 4.3.0
Updated by François ARMAND over 6 years ago
- Subject changed from Inventory failed on debian 9 to Inventory failed on debian 9 on relay only
Updated by François ARMAND over 6 years ago
- Translation missing: en.field_tag_list set to Blocking 4.3
Updated by François ARMAND over 6 years ago
- Status changed from In progress to Rejected
This is not present anymore. Most likely it was due to #12042. I'm closing it.
Updated by Alexis Mousset about 6 years ago
- Related to Bug #12599: Rudder agent 4.3 needs libxml-treepp-perl on debian added