Project

General

Profile

Anomalie #5798

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

Added by Pierre-Louis Bonicoli 5 months ago. Updated 5 months ago.

Status:
Résolu
Priority:
Normale
Category:
Task
Target version:
Start date:
02/28/2022
Due date:
% Done:

100%

Estimated time:
Spent time:
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.

History

#1

Updated by Pierre-Louis Bonicoli 5 months ago

  • Status changed from Nouveau to En cours de traitement
#2

Updated by Pierre-Louis Bonicoli 5 months ago

  • Status changed from En cours de traitement to Résolu
  • % Done changed from 0 to 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.

Also available in: Atom PDF