Tâche #32150
Scénario #31842: Diagnose: services en Erreur (Apache, Dhcp, Lsc, Sso, logrotate) après MajAuto Hebdo
/var/log/rsyslog/local/creoled/creoled.info.log (à nouveau ?) en double dans logrotate
Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Start date:
04/16/2021
Due date:
% Done:
100%
Remaining (hours):
0.0
Description
Constaté par le CD74 (logrotate toujours en erreur sur un Scribe 2.8.0 à jour).
Sur nos maquettes, si on redémarre logrotate, on reproduit l'erreur :
root@scribe:~# systemctl status logrotate ● logrotate.service - Rotate log files Loaded: loaded (/lib/systemd/system/logrotate.service; static; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2021-04-16 15:03:34 CEST; 15s ago TriggeredBy: ● logrotate.timer Docs: man:logrotate(8) man:logrotate.conf(5) Process: 32144 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE) Main PID: 32144 (code=exited, status=1/FAILURE) avril 16 15:03:34 scribe systemd[1]: Starting Rotate log files... avril 16 15:03:34 scribe logrotate[32144]: error: generated_local_rules:2 duplicate log entry for /var/log/rsyslog/local/creoled/creoled.info.log avril 16 15:03:34 scribe logrotate[32144]: error: found error in file generated_local_rules, skipping avril 16 15:03:34 scribe systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE avril 16 15:03:34 scribe systemd[1]: logrotate.service: Failed with result 'exit-code'. avril 16 15:03:34 scribe systemd[1]: Failed to start Rotate log files.
Et, en effet :
root@scribe:~# rgrep creole /etc/logrotate.* /etc/logrotate.d/generated_local_rules:/var/log/rsyslog/local/creoled/creoled.*.log /etc/logrotate.d/creole:/var/log/creole.log /etc/logrotate.d/creole:/var/log/rsyslog/local/creoled/*.log
Cela ressemble vaguement à #17393 ???
Related issues
Associated revisions
Ne pas conditionner la séléction des lignes à la présence de {
La commande sed n’affiche un résultat que si la substitution de { est
effective. En enlevant la substitution, comportement semblable à un
simple grep.
Ref #32150
History
#1 Updated by Joël Cuissinat over 2 years ago
- Related to Scénario #31672: logrotate - Duplicate log entry declaration added
#2 Updated by Joël Cuissinat over 2 years ago
- Related to Tâche #17393: Génération de fichier logrotate en double added
#3 Updated by Joël Cuissinat over 2 years ago
- Description updated (diff)
#4 Updated by Joël Cuissinat over 2 years ago
- Parent task set to #31842
#5 Updated by Emmanuel GARETTE over 2 years ago
- Status changed from Nouveau to En cours
- Assigned To set to Emmanuel GARETTE
#6 Updated by Benjamin Bohard over 2 years ago
- Status changed from En cours to Résolu
- Assigned To changed from Emmanuel GARETTE to Gwenael Remond
#7 Updated by Benjamin Bohard over 2 years ago
- Assigned To changed from Gwenael Remond to Benjamin Bohard
#8 Updated by Emmanuel GARETTE over 2 years ago
- % Done changed from 0 to 100
#9 Updated by Joël Cuissinat over 2 years ago
eole-common$ git branch -r --contains 24401949 origin/2.8.0/master origin/HEAD -> origin/master origin/dist/eole/2.8.0/master origin/dist/eole/2.8.1/master origin/master
Vérification Scribe 2.8.0 :
root@scribe:~# rgrep creole /etc/logrotate.* /etc/logrotate.d/creole:/var/log/creole.log /etc/logrotate.d/creole:/var/log/rsyslog/local/creoled/*.log
#10 Updated by Joël Cuissinat over 2 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) set to 0.0