[Pkg-libvirt-maintainers] Bug#985277: "systemctl reload virtlogd" fails: Cannot disable close-on-exec flag on socket -1: Bad file descriptor

Trent W. Buck trentbuck at gmail.com
Mon Mar 15 11:30:07 GMT 2021


Package: libvirt-daemon
Version: 7.0.0-3
Severity: normal

I noticed virtlogd in "systemctl --state=failed".
It restarted OK, but failed to reload (see attached).
I haven't looked yet, but I'm guessing logrotate triggers reload each night?
No idea about the EBADF either, maybe a double-close problem.

The only remotely interesting thing I'm doing on this host is using ZFS and virtio-fs.
Otherwise it's a fairly standard Debian 11 install with a couple of Debian 11 guest VMs, all currently off.
I can provide more debugging if needed.
-------------- next part --------------
cyber at heavy:~$ sudo systemctl restart virtlogd
cyber at heavy:~$ sudo systemctl status virtlogd
? virtlogd.service - Virtual machine log manager
     Loaded: loaded (/lib/systemd/system/virtlogd.service; indirect; vendor preset: enabled)
     Active: active (running) since Mon 2021-03-15 22:23:47 AEDT; 2s ago
TriggeredBy: ? virtlogd-admin.socket
             ? virtlogd.socket
       Docs: man:virtlogd(8)
             https://libvirt.org
   Main PID: 584609 (virtlogd)
      Tasks: 1 (limit: 77101)
     Memory: 1.7M
        CPU: 15ms
     CGroup: /system.slice/virtlogd.service
             ??584609 /usr/sbin/virtlogd

Mar 15 22:23:47 heavy systemd[1]: Started Virtual machine log manager.
cyber at heavy:~$ sudo systemctl reload virtlogd
cyber at heavy:~$ sudo systemctl status virtlogd
? virtlogd.service - Virtual machine log manager
     Loaded: loaded (/lib/systemd/system/virtlogd.service; indirect; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2021-03-15 22:23:58 AEDT; 1s ago
TriggeredBy: ? virtlogd-admin.socket
             ? virtlogd.socket
       Docs: man:virtlogd(8)
             https://libvirt.org
    Process: 584609 ExecStart=/usr/sbin/virtlogd $VIRTLOGD_ARGS (code=exited, status=9)
    Process: 585122 ExecReload=/bin/kill -USR1 $MAINPID (code=exited, status=0/SUCCESS)
   Main PID: 584609 (code=exited, status=9)
        CPU: 21ms

Mar 15 22:23:47 heavy systemd[1]: Started Virtual machine log manager.
Mar 15 22:23:58 heavy systemd[1]: Reloading Virtual machine log manager.
Mar 15 22:23:58 heavy systemd[1]: Reloaded Virtual machine log manager.
Mar 15 22:23:58 heavy virtlogd[584609]: libvirt version: 7.0.0, package: 3 (Andrea Bolognani <eof at kiyuko.org> Fri, 26 Feb 2021 16:46:34 +0100)
Mar 15 22:23:58 heavy virtlogd[584609]: hostname: heavy
Mar 15 22:23:58 heavy virtlogd[584609]: Cannot disable close-on-exec flag on socket -1: Bad file descriptor
Mar 15 22:23:58 heavy systemd[1]: virtlogd.service: Main process exited, code=exited, status=9/n/a
Mar 15 22:23:58 heavy systemd[1]: virtlogd.service: Failed with result 'exit-code'.


More information about the Pkg-libvirt-maintainers mailing list