Confirmed on Ubuntu 26.04.1 LTS with Firefox and Thunderbird ESR (both
Flatpak).

The issue is not merely a cached printer list. After automatic log
rotation, both running Flatpak sandboxes retain the old CUPS socket.

Socket comparison using `stat`:

Host:            Device=28 Inode=4745
Firefox:         Device=28 Inode=3637
Thunderbird ESR: Device=28 Inode=3637

`/etc/logrotate.d/cups-daemon` executes:

invoke-rc.d --quiet cups restart > /dev/null

The `cups.socket` unit contains:

PartOf=cups.service
RemoveOnStop=on

The system journal confirms that logrotate triggers a complete CUPS
restart, replacing the socket and leaving running Flatpak applications
with the obsolete socket.

Furthermore, the proposed reload solution is currently unsupported by
the systemd unit:

systemctl show cups.service -p CanReload -p ExecReload
CanReload=no

Both configuration files are provided by the `cups-daemon` package.

Log rotation should not invalidate the CUPS socket used by running
applications.

Please give me a shout, if I should open a own Ticket for my Case.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2165964

Title:
  logrotate restarts cups (instead reloading it) and most programs fail
  to print (due to a cached printer list)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/2165964/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to