Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#32970 - [cups] not working anymore started with systemd

Attached to Project: Arch Linux
Opened by Dimytch (dimytch) - Wednesday, 05 December 2012, 08:50 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 28 December 2012, 10:36 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

CUPS not working anymore started with systemd
I can print one page after computer restart.

systemd Failed at step NAMESPACE spawning /usr/lib/colord/colord Operation not permitted

$ uname -a
Linux di 3.6.8-pf-di #1 SMP PREEMPT Fri Nov 9 04:49:15 EET 2012 x86_64 GNU/Linux

$ mount
/dev/root on / type xfs (rw,relatime,attr2,noquota)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=1988508k,nr_inodes=497127,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)

# pacman -Ss cups
extra/cups 1.6.1-6 [установлен]
The CUPS Printing System - daemon package
extra/cups-filters 1.0.25-1 [установлен]
OpenPrinting CUPS Filters
extra/cups-pdf 2.6.1-1 [установлен]
PDF printer for cups
extra/cups-pk-helper 0.2.4-1
A helper that makes system-config-printer use PolicyKit
extra/libcups 1.6.1-6 [установлен]
The CUPS Printing System - client libraries and headers
extra/pycups 1.9.62-1 [установлен]
Python CUPS Bindings
extra/system-config-printer-common 1.3.12-1 [установлен]
Pygtk CUPS Configuration
extra/system-config-printer-gnome 1.3.12-1
A CUPS printer configuration tool and status applet - GTK frontend
community/apcupsd 3.14.10-3 [установлен]
Power mangement and controlling most of APC's UPS models
community/splix 2.0.0-11 [установлен]
CUPS drivers for SPL (Samsung Printer Language) printers
multilib/lib32-libcups 1.6.1-1 [установлен]
The CUPS Printing System - client libraries (32-bit)
   cups-log (2.7 KiB)
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Friday, 28 December 2012, 10:36 GMT
Reason for closing:  Won't fix
Additional comments about closing:  the initial systemd issue is no more present. anything else please open a new report if still existant.
Comment by Dimytch (dimytch) - Thursday, 06 December 2012, 10:09 GMT
I`ve made cupsd working after recompiling it without systemd, avahi and colord dependencies and without systemd patch.
Comment by Andreas Radke (AndyRTR) - Thursday, 06 December 2012, 13:54 GMT
We would need the error.log with debug enabled to find the reason why it crashes.
Comment by phanisvara das (phani00) - Thursday, 06 December 2012, 15:23 GMT
while i can't print at all, not even after a fresh boot, i suspect i'm having the same problem as the OP. i've attached /var/log/cups/error_log, resulting from restarting cups.service & trying to print a test page (debugging output enabled).

the same printer / driver combo works when i print via openSUSE running in a virtualbox, which uses cups 1.5.3.
Comment by Andreas Radke (AndyRTR) - Thursday, 06 December 2012, 15:33 GMT
Is there anything in journaldctl -b or in dmesg? The error.log doesn't show anything spcial to me.

What does "systemctl status cups.service" tell?
Comment by phanisvara das (phani00) - Thursday, 06 December 2012, 15:46 GMT
i can't find errors in journalctl or dmesg:


[root@laptop phani]# systemctl status cups.service

cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled)
Active: active (running) since Thu, 2012-12-06 21:08:44 IST; 32s ago
Main PID: 3564 (cupsd)
CGroup: name=systemd:/system/cups.service
└─3564 /usr/sbin/cupsd -f

Dec 06 21:08:44 laptop systemd[1]: Starting CUPS Printing Service...
Dec 06 21:08:44 laptop systemd[1]: Started CUPS Printing Service.
Dec 06 21:08:44 laptop cupsd[3564]: Unknown directive DefaultAuthType on line 7.
[root@laptop phani]#


[root@laptop phani]# journalctl -b | grep cups

Dec 06 20:34:40 laptop cupsd[2861]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:37:09 laptop cupsd[2973]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:39:02 laptop cupsd[3058]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:39:26 laptop cupsd[3065]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:40:16 laptop cupsd[3065]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:40:30 laptop cupsd[3092]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:42:33 laptop cupsd[3167]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:44:17 laptop cupsd[3167]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:46:09 laptop cupsd[3167]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:46:42 laptop cupsd[3298]: Unknown directive DefaultAuthType on line 7.
Dec 06 20:48:23 laptop cupsd[3298]: Unknown directive DefaultAuthType on line 7.

[edit: tried replacing def. auth. type "Basic" with "Negotiate," same result.]

[edit 2:] cups access log claims the job printed successfully, but there's no sign of it arriving at the printer.]
Comment by Andreas Radke (AndyRTR) - Thursday, 06 December 2012, 17:37 GMT
Comment it out for testing. Though this seems to be an unrelated issue and something different. It's known upstream and will be fixed in the next release.

#DefaultAuthType Basic
Comment by phanisvara das (phani00) - Thursday, 06 December 2012, 18:02 GMT
tried that already and it doesn't make a difference. it's just a deprecated directive throwing this message.

Loading...