Projet

Général

Profil

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

Ajouté par Joël Cuissinat il y a environ 3 ans. Mis à jour il y a presque 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
16/04/2021
Echéance:
% réalisé:

100%

Restant à faire (heures):
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 ???


Demandes liées

Lié à Distribution EOLE - Scénario #31672: logrotate - Duplicate log entry declaration Terminé (Sprint) 22/02/2021 12/03/2021
Lié à Distribution EOLE - Tâche #17393: Génération de fichier logrotate en double Fermé 05/10/2016

Révisions associées

Révision 24401949 (diff)
Ajouté par Benjamin Bohard il y a environ 3 ans

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

Historique

#1 Mis à jour par Joël Cuissinat il y a environ 3 ans

#2 Mis à jour par Joël Cuissinat il y a environ 3 ans

  • Lié à Tâche #17393: Génération de fichier logrotate en double ajouté

#3 Mis à jour par Joël Cuissinat il y a environ 3 ans

  • Description mis à jour (diff)

#4 Mis à jour par Joël Cuissinat il y a environ 3 ans

  • Tâche parente mis à #31842

#5 Mis à jour par Emmanuel GARETTE il y a environ 3 ans

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Emmanuel GARETTE

#6 Mis à jour par Benjamin Bohard il y a environ 3 ans

  • Statut changé de En cours à Résolu
  • Assigné à changé de Emmanuel GARETTE à Gwenael Remond

#7 Mis à jour par Benjamin Bohard il y a environ 3 ans

  • Assigné à changé de Gwenael Remond à Benjamin Bohard

#8 Mis à jour par Emmanuel GARETTE il y a environ 3 ans

  • % réalisé changé de 0 à 100

#9 Mis à jour par Joël Cuissinat il y a presque 3 ans

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 Mis à jour par Joël Cuissinat il y a presque 3 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

Formats disponibles : Atom PDF