Project

General

Profile

Actions

Bug #10417

closed

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

Added by Nicolas CHARLES almost 8 years ago. Updated over 7 years ago.

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

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

Actions #1

Updated by Nicolas CHARLES almost 8 years ago

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

Updated by Nicolas CHARLES almost 8 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-packages/pull/1291
Actions #3

Updated by Nicolas CHARLES almost 8 years ago

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

Updated by Alexis Mousset over 7 years 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
Actions #5

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF