Projet

Général

Profil

Actions

Anomalie #5798

fermé

[admin.cluster.april.org] logrotate.service is failed

Ajouté par Pierre-Louis Bonicoli il y a plus de 2 ans. Mis à jour il y a plus de 2 ans.

Statut:
Résolu
Priorité:
Normale
Catégorie:
Task
Version cible:
Début:
28/02/2022
Echéance:
% réalisé:

100%

Temps estimé:
Temps passé:
Difficulté:
2 Facile

Description

$ systemctl --failed
  UNIT              LOAD   ACTIVE SUB    DESCRIPTION
● logrotate.service loaded failed failed Rotate log files
$ systemctl status logrotate.service
● logrotate.service - Rotate log files
     Loaded: loaded (/lib/systemd/system/logrotate.service; static)
     Active: failed (Result: exit-code) since Mon 2022-02-28 00:01:21 CET; 1h 26min ago
TriggeredBy: ● logrotate.timer
       Docs: man:logrotate(8)
             man:logrotate.conf(5)
    Process: 122084 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE)
   Main PID: 122084 (code=exited, status=1/FAILURE)
        CPU: 536ms

Feb 28 00:00:00 admin systemd[1]: Starting Rotate log files...
Feb 28 00:00:03 admin logrotate[122084]: error: iptraf-ng:2 duplicate log entry for /var/log/iptraf/*.log
Feb 28 00:00:03 admin logrotate[122084]: error: found error in file iptraf-ng, skipping
Feb 28 00:01:21 admin systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Feb 28 00:01:21 admin systemd[1]: logrotate.service: Failed with result 'exit-code'.
Feb 28 00:01:21 admin systemd[1]: Failed to start Rotate log files.

Mis à jour par Pierre-Louis Bonicoli il y a plus de 2 ans

  • Statut changé de Nouveau à En cours de traitement

Mis à jour par Pierre-Louis Bonicoli il y a plus de 2 ans

  • Statut changé de En cours de traitement à Résolu
  • % réalisé changé de 0 à 100

Both iptraf (buster) and iptraf-ng (bullseye) packages were installed.
Resolution: remove obsolete packages were purged (gcc-8-base, openssh-blacklist, openssh-blacklist-extra, multiarch-support, lynx-cur, iptraf, libxtables10, libreadline5, libmpfr4, liblvm2cmd2.02, liblogging-stdlog0, libgdbm3, libffi6, libcryptsetup4, heirloom-mailx, gcc-4.9-base, libreadline7)

I kept the following packages:

apt policy vim-icinga2 libnagios-plugin-perl
vim-icinga2:
  Installed: 2.13.2-1.buster
  Candidate: 2.13.2-1.buster
  Version table:
 *** 2.13.2-1.buster 100
        100 /var/lib/dpkg/status
     2.12.3-1 500
        500 http://ftp.fr.debian.org/debian bullseye/main amd64 Packages
libnagios-plugin-perl:
  Installed: 0.36-1
  Candidate: 0.36-1
  Version table:
 *** 0.36-1 100
        100 /var/lib/dpkg/status

There is no error in logrotate.service status.

Actions

Formats disponibles : Atom PDF