Bug #16457
closedInventory fails with errors on CentOS/RHEL 8
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
Updated by Marius Rieck almost 5 years ago
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
################################################################################
Updated by Marius Rieck almost 5 years ago
- 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)
Updated by Jakob Overgaard almost 5 years ago
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.
Updated by Marius Rieck almost 5 years ago
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.
Updated by Alexis Mousset almost 5 years ago
- Assignee set to Alexis Mousset
- Target version set to 6.0.2
Updated by Alexis Mousset almost 5 years ago
- Target version changed from 6.0.2 to 5.0.16
Probably also happens on 5.0.
Updated by Alexis Mousset almost 5 years ago
- Status changed from New to In progress
Updated by Alexis Mousset almost 5 years ago
- 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
Updated by Alexis Mousset almost 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|1ac298abc448c374f26d47d2604b20b96b3ecd32.
Updated by Vincent MEMBRÉ almost 5 years ago
- Fix check changed from To do to Checked
Updated by Alexis Mousset almost 5 years ago
- 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
Updated by Alexis Mousset almost 5 years ago
- Has duplicate Bug #16523: Missing perl-Getopt-Long dependency for fusion on some CentOS8 systems added
Updated by Vincent MEMBRÉ almost 5 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.0.2 which was released today.