Project

General

Profile

Actions

action #62309

closed

logrotate fails on QA-Power8-4-kvm (and powerqaworker-qam-1) with "error: destination /var/log/messages-20200118.xz already exists, skipping rotation"

Added by okurz over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2020-01-19
Due date:
2020-04-14
% Done:

0%

Estimated time:

Description

> sudo systemctl status logrotate
● logrotate.service - Rotate log files
   Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2020-01-19 00:00:00 CET; 22h ago
     Docs: man:logrotate(8)
           man:logrotate.conf(5)
  Process: 48560 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE)
 Main PID: 48560 (code=exited, status=1/FAILURE)

Jan 19 00:00:00 QA-Power8-4-kvm systemd[1]: Starting Rotate log files...
Jan 19 00:00:00 QA-Power8-4-kvm logrotate[48560]: error: destination /var/log/messages-20200118.xz already exists, skipping rotation
Jan 19 00:00:00 QA-Power8-4-kvm systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Jan 19 00:00:00 QA-Power8-4-kvm systemd[1]: Failed to start Rotate log files.
Jan 19 00:00:00 QA-Power8-4-kvm systemd[1]: logrotate.service: Unit entered failed state.
Jan 19 00:00:00 QA-Power8-4-kvm systemd[1]: logrotate.service: Failed with result 'exit-code'.

Related issues 1 (0 open1 closed)

Copied from openQA Infrastructure - action #62306: osd logrotate fails sporadically on "error opening /var/log/salt/master: Permission denied", only at 00:00, i.e. midnight every day.Resolvedokurz2020-01-192020-04-14

Actions
Actions

Also available in: Atom PDF