Bug #16457
closed
Inventory fails with errors on CentOS/RHEL 8
Added by Marius Rieck almost 5 years ago.
Updated almost 5 years ago.
Description
Hello There,
I installed the 6.0.1 root server and agent on a CentOS 8 Server.
The Agent is not reporting any inventory data to the server.
The agent (on the root server) can't run the inventory, reporting the following errors:
# rudder agent inventory
Rudder agent 6.0.1.release
Node uuid: root
error: Finished command related to promiser '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/svtc-app-03-root.ocs' -- an error occurred, returned 2
Start execution with config [20191223-110551-d8a97744]
M| State Technique Component Key Message
E| error Inventory inventory Could not execute the inventory
error: Method 'fusionAgent' failed in some repairs
error: Method 'doInventory_always' failed in some repairs
info Rudder agent was run on a subset of policies - not all policies were checked
## Summary #####################################################################
1 components verified in 3 directives
=> 1 components in Enforce mode
-> 1 error
Execution time: 2.16s
################################################################################
I also attached the Debug output.
Greetings,
Marius Rieck
I Also get the same Inventory Errors on a RHEL8 server with only the 6.0.1 Agent installed:
rudder agent run
Rudder agent 6.0.1.release
Node uuid: 236f863a-ac22-41a6-ace5-1470cad38494
Start execution with config [0]
M| State Technique Component Key Message
E| compliant Common ncf Initialization Configuration library initialization was correct
E| compliant Common Security parameters The internal environment security is acceptable
E| compliant Common CRON Daemon Cron daemon status was correct
error: Finished command related to promiser '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/sppr-hs-01-236f863a-ac22-41a6-ace5-1470cad38494.ocs' -- an error occurred, returned 2
E| error Inventory inventory Could not execute the inventory
error: Method 'fusionAgent' failed in some repairs
E| compliant Inventory inventory Next inventory scheduled between 00:00 and 06:00
error: Method 'doInventory_always' failed in some repairs
error: Method 'doInventory' failed in some repairs
## Summary #####################################################################
5 components verified in 4 directives
=> 5 components in Enforce mode
-> 4 compliant
-> 1 error
Execution time: 0.79s
################################################################################
- Subject changed from Rudder Agent Inventory fails with errors on root-node (CentOS 8) to Rudder Agent Inventory fails with errors on (CentOS 8 and RHEL 8)
I had had the same issue. It was caused by missing Perl (Can't locate Memoize.pm in @INC (you may need to install the Memoize module) module.
"yum install perl" did the trick on my CentOS 8.
Jakob Overgaard wrote:
I had had the same issue. It was caused by missing Perl (Can't locate Memoize.pm in @INC (you may need to install the Memoize module) module.
"yum install perl" did the trick on my CentOS 8.
Thanks for the advice. This solved the error.
Maybe checking this dependency before installing the agent would be nice.
- Assignee set to Alexis Mousset
- Target version set to 6.0.2
- Description updated (diff)
- Target version changed from 6.0.2 to 5.0.16
Probably also happens on 5.0.
- Status changed from New to In progress
- Target version changed from 5.0.16 to 6.0.2
- Status changed from In progress to Pending technical review
- Assignee changed from Alexis Mousset to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/2179
- Status changed from Pending technical review to Pending release
- Fix check changed from To do to Checked
- Subject changed from Rudder Agent Inventory fails with errors on (CentOS 8 and RHEL 8) to Inventory fails with errors on CentOS/RHEL 8
- Name check changed from To do to Reviewed
- Has duplicate Bug #16523: Missing perl-Getopt-Long dependency for fusion on some CentOS8 systems added
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.0.2 which was released today.
Also available in: Atom
PDF