Bug #19583
closedInventory fails because rudder-client fails because it needs /opt/rudder/etc/agent.conf
Description
Inventory fails
E| compliant Common CRON Daemon CRON is correctly running E| repaired Common Compute inventory splay Scheduling rudder_run_inventory was repaired rudder info: Executing 'no timeout' ... '/opt/rudder/bin/rudder-client -e /uuid -- --output "/var/rudder/cfengine-community/rudder-server-uuid.txt"' error: Finished command related to promiser '/opt/rudder/bin/rudder-client -e /uuid -- --output "/var/rudder/cfengine-community/rudder-server-uuid.txt"' -- an error occurred, returned 2 notice: Q: "...der-client -e /": sed: can't read /opt/rudder/etc/agent.conf: No such file or directory rudder info: Last 1 quoted lines were generated by promiser '/opt/rudder/bin/rudder-client -e /uuid -- --output "/var/rudder/cfengine-community/rudder-server-uuid.txt"' rudder info: Completed execution of '/opt/rudder/bin/rudder-client -e /uuid -- --output "/var/rudder/cfengine-community/rudder-server-uuid.txt"' E| error Inventory inventory Could not retrieve the UUID of the policy server. Please check that the defined Policy Server exists, and that this Node IP address is in the Allowed Networks of its policy server.
error is
# /opt/rudder/bin/rudder-client -e /uuid -- --output "/var/rudder/cfengine-community/rudder-server-uuid.txt" sed: can't read /opt/rudder/etc/agent.conf: No such file or directory
but this file is not mandatory, nor created by the packaging
Updated by Nicolas CHARLES over 3 years ago
- Translation missing: en.field_tag_list set to Blocks 7.0-beta
- Description updated (diff)
- Category set to Agent
- Target version set to 7.0.0~beta1
Updated by Nicolas CHARLES over 3 years ago
- Related to Architecture #19515: Add proxy and port configuration to https client added
Updated by Nicolas CHARLES over 3 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES over 3 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-agent/pull/344
Updated by Nicolas CHARLES over 3 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-agent|ecb590be6d9781aabaa466b9a83089d25ce46407.
Updated by François ARMAND over 3 years ago
- Related to Bug #19594: rudder agent run does not actually send the inventory added
Updated by Vincent MEMBRÉ about 3 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.0.0~beta1 which was released today.
Updated by Ishac Kigozi over 2 years ago
Hello,
I am having a similar issues. How can I resolve the issues. All the nodes are getting this error.
ry was correct
error: Finished command related to promiser '/opt/rudder/bin/rudder-client e /uuid - --output "/var/rudder/cfengine-community/rudder-server-uuid.txt"' -- an error occurred, returned 22
E| error Inventory Inventory Could not retrieve the UUID of the policy server. Please check that the defined Policy Server exists, and that this Node IP address is in the Allowed Networks of its policy server.
E| compliant Inventory Inventory
root@vmwrupoc01prdal:~# dpkg -l | grep rudder
ii rudder-agent 7.0.1-ubuntu20.04 amd64 Configuration management and audit tool - agent
ii rudder-api-client 7.0.1-ubuntu20.04 amd64 Command line tools and python libraries to call Rudder
ii rudder-reports 7.0.1-ubuntu20.04 all Configuration management and audit tool - reports database
ii rudder-server-relay 7.0.1-ubuntu20.04 amd64 Configuration management and audit tool - Server relay package
ii rudder-server-root 7.0.1-ubuntu20.04 all Configuration management and audit tool - root server base package
ii rudder-webapp 7.0.1-ubuntu20.04 amd64 Configuration management and audit tool - webapp
root@vmwrupoc01prdal:~# cat /etc/apt/sources.list.d/rudder.list
deb http://repository.rudder.io/apt/7.0/ focal main
root@vmwrupoc01prdal:~#