Univention Bugzilla – Bug 46525
CUPS daemon dies if printer share permissions are changed
Last modified: 2018-03-14 14:38:10 CET
Whenever you change the printer share permissions via Drucker configuration or even with the Computerraum options, the CUPS daemon dies. UCM 4.3.0 (SingleServer Master) root@master:~# systemctl status cups: cups.service - CUPS Scheduler Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2018-03-07 11:25:01 CET; 9min ago Docs: man:cupsd(8) Process: 9679 ExecStartPost=/usr/lib/univention-printserver/univention-cups-init (code=exited, status=0/SUCCESS) Process: 9678 ExecStart=/usr/sbin/cupsd -l (code=exited, status=1/FAILURE) Main PID: 9678 (code=exited, status=1/FAILURE) CPU: 679ms Mar 07 11:15:32 master systemd[1]: Starting CUPS Scheduler... Mar 07 11:15:32 master systemd[1]: Started CUPS Scheduler. Mar 07 11:25:01 master systemd[1]: cups.service: Main process exited, code=exited, status=1/FAILURE Mar 07 11:25:01 master systemd[1]: cups.service: Unit entered failed state. Mar 07 11:25:01 master systemd[1]: cups.service: Failed with result 'exit-code'. root@master:~# lpr -PPDFDrucker -U emma test.txt: lpr: Bad file descriptor Printing via Windows(10) client gives no feedback Workaround: If you restart the daemon manually it works again and the changed permissions are accepted
The "/etc/init.d/cups reload" in the listener cups-printers.py "kills" the cupsd (can be reproduced manually). Last thing cups says is: "Scheduler shutting down due to program error." I guess this is a upstream bug, no time right now for further investigations, just stop/start cups instead of reload in cups-printers.py univention-printserver 180f335930d9274a2f306135a85d929329da16d7 ucs-test bfb2dc84f24cf119360fcd7ef95799de117a2b6d 4a2fc6730f13e6de52b12c3582f10ae0c9c58bc1
Code review: OK Changelog: OK Tests: OK, works now.
Please check, if there is an easy solution to make "cups reload" working again. If there is no (simple) solution, I will implement stop/start via Bug 46591 as a first workaround. In this case, please create a new bugs against UCS 4.3-errata and UCS@school 4.3 for fixing the problem later.
Modified the upstream system service file. Instead if on-demand mode (-l) the normal daemon mode is used (-f). cups: 4.3-0-0-ucs/2.2.1-8/20_no-on-demand-systemd-service.quilt modified univention-printserver listener to use reload again (instead of stop/start)
OK, works. I've alos removed the changelog entry. [4.3-0 d782b9a210] Remvoed Changelog for Bug #46525
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".