Project

General

Profile

Actions

Bug #19583

closed

Inventory fails because rudder-client fails because it needs /opt/rudder/etc/agent.conf

Added by Nicolas CHARLES over 3 years ago. Updated almost 3 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

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


Related issues 2 (0 open2 closed)

Related to Rudder - Architecture #19515: Add proxy and port configuration to https clientReleasedAlexis MoussetActions
Related to Rudder - Bug #19594: rudder agent run does not actually send the inventoryReleasedAlexis MoussetActions
Actions #1

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
Actions #2

Updated by Nicolas CHARLES over 3 years ago

Actions #3

Updated by Nicolas CHARLES over 3 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #4

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
Actions #5

Updated by Nicolas CHARLES over 3 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by François ARMAND over 3 years ago

  • Related to Bug #19594: rudder agent run does not actually send the inventory added
Actions #7

Updated by Vincent MEMBRÉ over 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.

Actions #8

Updated by Ishac Kigozi almost 3 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:~#

Actions

Also available in: Atom PDF