Project

General

Profile

Bug #10417

Error in the cron job prevents purging expired files shared between nodes

Added by Nicolas CHARLES 6 months ago. Updated 6 months ago.

Status:
Released
Priority:
N/A
Category:
Relay server or API
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
0

Description

Sharedfiles are never cleaned, because of an error in the cleaning script:

 /opt/rudder/share/relay-api/cleanup.sh
+ BASEDIR=/var/rudder/shared-files
++ date +%s
+ date=1489505748
+ find /var/rudder/shared-files -type f -name '*.metadata'
+ read f d
+ xargs grep expires=
+ sed 's/^\(.*\).metadata:expires=/\1 /'
+ '[' 1489505748 -gt ']'
/opt/rudder/share/relay-api/cleanup.sh: line 10: [: 1489505748 : opérateur unaire attendu
+ read f d

Associated revisions

Revision 9a9ad9b1
Added by Nicolas CHARLES 6 months ago

Fixes #10417: sharedfiles are never cleaned

History

#1 Updated by Nicolas CHARLES 6 months ago

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

#2 Updated by Nicolas CHARLES 6 months 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-packages/pull/1291

#3 Updated by Nicolas CHARLES 6 months ago

  • Status changed from Pending technical review to Pending release

#4 Updated by Alexis MOUSSET 6 months ago

  • Subject changed from sharedfiles are never cleaned to Error in the cron job prevents purging expired files shared between nodes
  • Priority set to 0

#5 Updated by Benoît PECCATTE 6 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.0 which was released today.

Also available in: Atom PDF