Hello,
I receive daily an email from Cron:
/etc/cron.daily/logrotate:
Failed to kill unit rsyslog.service: Input/output error
error: error running non-shared postrotate script for /var/log/syslog of '/var/log/syslog'
run-parts: /etc/cron.daily/logrotate exited with return code 1
I have seen other forum posts on similar problems, e.g. Logrotate error, but these errors are different.
So I tried to trace the error:
/etc/cron.daily/logrotate
ends by calling /usr/sbin/logrotate /etc/logrotate.conf
/etc/logrotate.conf
has include /etc/logrotate.d
which calls, among others /etc/logrotate.d/rsyslog
in which you find
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
(I manually restarted rsyslog to see if that worked, it did, and then ran:)
$ sudo /usr/lib/rsyslog/rsyslog-rotate
returns with
Failed to kill unit rsyslog.service: Input/output error
So that is where the error happens.
$ sudo service rsyslog status
shows
Failed to dump process list, ignoring: Input/output error
* rsyslog.service - System Logging Service
Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-05-08 10:15:22 UTC; 20s ago
Docs: man:rsyslogd(8)
http://www.rsyslog.com/doc/
Main PID: 8367 (rsyslogd)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/rsyslog.service
May 08 10:15:22 staging systemd[1]: Starting System Logging Service...
May 08 10:15:22 staging systemd[8367]: Failed to attach 8367 to compat systemd cgroup /system.slice/rsyslog.service: No such file or directory
May 08 10:15:22 staging rsyslogd[8367]: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.32.0]
May 08 10:15:22 staging rsyslogd[8367]: rsyslogd's groupid changed to 102
May 08 10:15:22 staging systemd[1]: Started System Logging Service.
May 08 10:15:22 staging rsyslogd[8367]: rsyslogd's userid changed to 100
May 08 10:15:22 staging rsyslogd[8367]: [origin software="rsyslogd" swVersion="8.32.0" x-pid="8367" x-info="http://www.rsyslog.com"] start
May 08 10:15:36 staging rsyslogd[8367]: [origin software="rsyslogd" swVersion="8.32.0" x-pid="8367" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
So, why do I get Failed to dump process list, ignoring: Input/output error
? Where can I look for more messages?
Thanks!