Project

General

Profile

Bug #14257

"/var/rudder/inventories: no such dir" error message on first run

Added by Félix DALLIDET 10 months ago. Updated 9 months ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

On a ubuntu18_04 at first run I have this message which pops-out:

Rudder agent 5.0.6~rc1~git201901300235-bionic0
Node uuid: ec7578a6-2228-408e-af38-584dab280104
Start execution with config [0]

M| State         Technique                 Component                 Key                Message
E| repaired      Common                    ncf Initialization                           Configuration library initialization was repaired
E| repaired      Common                    Security parameters                          Some internal security parameters were adjusted
E| n/a           Common                    Process checking                             Rudder agent proccesses check is done by the rudder-agent cron job
E| compliant     Common                    CRON Daemon                                  Cron daemon status was correct
   error: Failed to chdir into '/var/rudder/inventories'. (chdir: 'No such file or directory')
E| compliant     Inventory                 inventory                                    The inventory has been successfully sent
E| compliant     Inventory                 inventory                                    Next inventory scheduled between 00:00 and 06:00
E| compliant     Common                    Binaries update                              The agent binaries in /var/rudder/cfengine-community/bin are up to date

## Summary #####################################################################
7 components verified in 4 directives
   => 7 components in Enforce mode
      -> 4 compliant
      -> 2 repaired
      -> 1 not-applicable
Execution time: 5.80s
################################################################################

After the first run, everything is fine, but having an error message at first run is always sad.
Creating the inventories folder at installation could avoid this.


Related issues

Related to Rudder - Bug #14348: Error message when installing rudder-agent on rpm based systems due to missing directory '/var/rudder/inventories'ReleasedActions

Associated revisions

Revision 061e8679 (diff)
Added by Félix DALLIDET 10 months ago

Fixes #14257: Error message after agent install in 5.0

History

#1

Updated by Félix DALLIDET 10 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
#2

Updated by Félix DALLIDET 10 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1796
#3

Updated by Félix DALLIDET 9 months ago

  • Status changed from Pending technical review to Pending release
#4

Updated by Nicolas CHARLES 9 months ago

happened on centos 7 while installing rudder-agent 5.1

#5

Updated by Nicolas CHARLES 9 months ago

  • Related to Bug #14348: Error message when installing rudder-agent on rpm based systems due to missing directory '/var/rudder/inventories' added
#6

Updated by François ARMAND 9 months ago

  • Subject changed from Error message after agent install in 5.0 to "/var/rudder/inventories: no such dir" error message on first run
#7

Updated by François ARMAND 9 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.20, 4.3.10 and 5.0.7 which were released today.

Also available in: Atom PDF