FS#32984 - [cups] don`t work if "sharing printers" is on

Attached to Project: Arch Linux
Opened by Dimytch (dimytch) - Thursday, 06 December 2012, 11:38 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 18 December 2012, 15:40 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
rm -rf /etc/cups
pacman -Sy cups libcups
systemctl start cups
systemctl status cups
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled)
Active: active (running) since (null); 43s ago
Main PID: 10737 (cupsd)
CGroup: name=systemd:/system/cups.service
└─10737 /usr/sbin/cupsd -f

дек. 06 13:30:07 kserv systemd[1]: Starting CUPS Printing Service...
дек. 06 13:30:07 kserv systemd[1]: Started CUPS Printing Service.
дек. 06 13:30:07 kserv cupsd[10737]: Unknown directive DefaultAuthType on line 25.
дек. 06 13:30:46 kserv systemd[1]: Started CUPS Printing Service.

firefox http://localhost:631/
check "Share printers connected to this system"
check "Allow printing from the Internet"
cups crashes and do not restart

systemctl status cups
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled)
Active: failed (Result: core-dump) since (null); 11s ago
Process: 10737 ExecStart=/usr/sbin/cupsd -f (code=dumped, signal=ABRT)
CGroup: name=systemd:/system/cups.service

дек. 06 13:30:07 kserv systemd[1]: Starting CUPS Printing Service...
дек. 06 13:30:07 kserv systemd[1]: Started CUPS Printing Service.
дек. 06 13:30:07 kserv cupsd[10737]: Unknown directive DefaultAuthType on line 25.
дек. 06 13:30:46 kserv systemd[1]: Started CUPS Printing Service.
дек. 06 13:34:40 kserv cupsd[10737]: Unknown directive DefaultAuthType on line 9.
дек. 06 13:34:40 kserv cupsd[10737]: cupsd: client.c:757: avahi_client_get_host_name: Assertion `client' failed.
дек. 06 13:34:40 kserv systemd-coredump[10952]: Process 10737 (cupsd) dumped core.
дек. 06 13:34:40 kserv systemd[1]: cups.service: main process exited, code=dumped, status=6/ABRT
дек. 06 13:34:40 kserv systemd[1]: Unit cups.service entered failed state

Comment out DefaultAuthType in line 9 of /etc/cups/cupsd.conf
start service.
systemctl status cups
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled)
Active: failed (Result: core-dump) since (null); 1s ago
Process: 11000 ExecStart=/usr/sbin/cupsd -f (code=dumped, signal=ABRT)
CGroup: name=systemd:/system/cups.service

дек. 06 13:36:01 kserv systemd[1]: Started CUPS Printing Service.
дек. 06 13:36:01 kserv cupsd[11000]: cupsd: client.c:757: avahi_client_get_host_name: Assertion `client' failed.
дек. 06 13:36:01 kserv systemd-coredump[11002]: Process 11000 (cupsd) dumped core.
дек. 06 13:36:01 kserv systemd[1]: cups.service: main process exited, code=dumped, status=6/ABRT
дек. 06 13:36:01 kserv systemd[1]: Unit cups.service entered failed state

This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 18 December 2012, 15:40 GMT
Reason for closing:  Not a bug
Comment by Andreas Radke (AndyRTR) - Thursday, 06 December 2012, 13:46 GMT
Check the sharing directive and cups optional deps. I guess avahi is not enabled before cups comes up.

And there's a known upstream error in the default cupsd.conf with the sharing directive. Disable any sharing if not needed.
Comment by Jan de Groot (JGC) - Friday, 07 December 2012, 13:43 GMT
Cups is terminated by the Avahi client libraries because of an assertion. This is caused by not having avahi running.
Comment by Greg (dolby) - Friday, 07 December 2012, 18:25 GMT
...not a bug then?
Comment by Andreas Radke (AndyRTR) - Friday, 07 December 2012, 18:56 GMT
Let's wait if enabling avahi solves it.

Loading...