Bug 46591 - (U@S) CUPS daemon dies if printer share permissions are changed
(U@S) CUPS daemon dies if printer share permissions are changed
Status: CLOSED WORKSFORME
Product: UCS@school
Classification: Unclassified
Component: Print services
UCS@school 4.3
Other Linux
: P5 normal (vote)
: UCS@school 4.3 v1
Assigned To: Sönke Schwardt-Krummrich
Daniel Tröder
:
Depends on: 46525
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-12 11:25 CET by Sönke Schwardt-Krummrich
Modified: 2018-03-14 13:11 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 Sönke Schwardt-Krummrich univentionstaff 2018-03-12 11:25:37 CET
In UCS the reload of cups has been replaced with stop/start. This has to be done in UCS@school too.

+++ This bug was initially created as a clone of Bug #46525 +++

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 Sönke Schwardt-Krummrich univentionstaff 2018-03-12 21:31:54 CET
Since bug 46525 now uses a different approach by reestablishing the old start behaviour of CUPS, there's no need to modify UCS@school.
→ WORKSFORME
Comment 2 Daniel Tröder univentionstaff 2018-03-13 15:53:45 CET
reload and restart work as expected.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2018-03-14 13:11:54 CET
UCS@school 4.3 v1 has been released.

https://docs.software-univention.de/release-notes-ucsschool-4.3v1-de.html

If this error occurs again, please clone this bug.