Bug#968049: Failed to kill unit rsyslog.service: Input/output error

Michael Biebl email at michaelbiebl.de
Fri Aug 7 12:55:53 BST 2020


Control: tags -1 + moreinfo unreproducible

Am 07.08.20 um 11:01 schrieb Harald Dunkel:
> Package: systemd
> Version: 241-7~deb10u4
> 
> logrotate.service dies with
> 
> ● logrotate.service - Rotate log files
>    Loaded: loaded (/lib/systemd/system/logrotate.service; static; vendor
> preset: enabled)
>    Active: activating (start) since Fri 2020-08-07 00:00:01 CEST; 346ms ago
>      Docs: man:logrotate(8)
>            man:logrotate.conf(5)
>  Main PID: 359518 (logrotate)
>     Tasks: 3 (limit: 618789)
>    Memory: 1.9M
>    CGroup: /system.slice/logrotate.service
>            └─359518 /usr/sbin/logrotate /etc/logrotate.conf
> 
> Aug 07 00:00:01 srvvm01.ac.aixigo.de systemd[1]: Starting Rotate log
> files...
> Aug 07 00:00:01 srvvm01.ac.aixigo.de logrotate[359518]: Failed to kill
> unit rsyslog.service: Input/output error
> Aug 07 00:00:01 srvvm01.ac.aixigo.de logrotate[359518]: error: error
> running non-shared postrotate script for /var/log/syslog of
> '/var/log/syslog
> Aug 07 00:00:01 srvvm01.ac.aixigo.de logrotate[359518]: '
> 
> 
> Looking closely this seems to be the part that is broken:
> 
> # systemctl kill -s HUP rsyslog.service
> Failed to kill unit rsyslog.service: Input/output error
> 
> 
> rsyslog *does* receive the HUP, as /var/log/messages seems to indicate:
> 
> Aug  7 10:48:53 srvvm01 rsyslogd:  [origin software="rsyslogd"
> swVersion="8.1901.0" x-pid="96" x-info="https://www.rsyslog.com"]
> rsyslogd was HUPed
> 
> 
> Apparently only systemd thinks that something went wrong, but
> this is sufficient to break log file rotation :-(.
> 
> This is highly important. The host in question is our EMail server.
> I have to move back to sysvinit, if logging and rotation don't work.
> 
> This is an LXC container. Host and container are both running Debian 10
> and systemd 241-7~deb10u4.


What's the output of logrotate -v /etc/logrotate.d/rsyslog




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200807/e408fba7/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list