Project

General

Profile

Actions

Bug #10417

closed

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

Added by Nicolas CHARLES over 7 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

Also available in: Atom PDF