Hi folks,
on some LXC containers I get I/O errors for the logrotate
service (systemd):
root@il04:~# 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 Wed 2020-06-17 00:00:11 CEST; 15h
ago
Docs: man:logrotate(8)
man:logrotate.conf(5)
Process: 359762 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf
(code=exited, status=1/FAILURE)
Main PID: 359762 (code=exited, status=1/FAILURE)
Jun 17 00:00:00 il04.ac.aixigo.de systemd[1]: Starting Rotate log files...
Jun 17 00:00:11 il04.ac.aixigo.de logrotate[359762]: Failed to kill unit
rsyslog.service: Input/output error
Jun 17 00:00:11 il04.ac.aixigo.de logrotate[359762]: error: error running
non-shared postrotate script for /var/log/syslog of '/var/log/syslog
Jun 17 00:00:11 il04.ac.aixigo.de logrotate[359762]: '
Jun 17 00:00:11 il04.ac.aixigo.de systemd[1]: logrotate.service: Main process
exited, code=exited, status=1/FAILURE
Jun 17 00:00:11 il04.ac.aixigo.de systemd[1]: logrotate.service: Failed with
result 'exit-code'.
Jun 17 00:00:11 il04.ac.aixigo.de systemd[1]: Failed to start Rotate log files.
root@il04:~# ps -ef | grep rsyslog
root 146014 1 0 Jun08 ? 00:00:06 /usr/sbin/rsyslogd -n -iNONE
root 377934 377898 0 15:09 pts/7 00:00:00 grep rsyslog
root@il04:~# kill -HUP 146014
root@il04:~# echo $?
0
Host is Debian 10, LXC is version 4.0.2.
The client runs Debian 10 as well.
This doesn't happen on all LXC clients and hosts, but I haven't
detected a scheme yet. On my "real" hosts there are no I/O errors,
AFAICT.
Regards
Harri
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users