Bug 46525 - CUPS daemon dies if printer share permissions are changed
CUPS daemon dies if printer share permissions are changed
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Printserver
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Felix Botner
Stefan Gohmann
: interim-4
Depends on:
Blocks: 46591
  Show dependency treegraph
 
Reported: 2018-03-07 11:38 CET by Ole Schwiegert
Modified: 2018-03-14 14:38 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.257
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Schwiegert univentionstaff 2018-03-07 11:38:44 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
Comment 1 Felix Botner univentionstaff 2018-03-07 16:51:54 CET
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
Comment 2 Stefan Gohmann univentionstaff 2018-03-08 16:06:40 CET
Code review: OK

Changelog: OK

Tests: OK, works now.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2018-03-12 14:10:23 CET
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.
Comment 4 Felix Botner univentionstaff 2018-03-12 17:57:18 CET
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)
Comment 5 Stefan Gohmann univentionstaff 2018-03-12 20:48:56 CET
OK, works. I've alos removed the changelog entry.

[4.3-0 d782b9a210] Remvoed Changelog for Bug #46525
Comment 6 Stefan Gohmann univentionstaff 2018-03-14 14:38:10 CET
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".