Bug#747073: [cups-daemon] Doesn't work with systemd
[..]
>
> I expect the cups maintainers are going to need more information here.
> Please look in the journal (or syslog) to see what went wrong, and quote
> it on the bug.
>
> Useful commands might include "journalctl", "less /var/log/syslog",
> "journalctl -xn", "systemctl -a status cups.service", "systemctl
> list-units".
Here we go:
journalctl:
....
mai 05 15:07:25 zmeu sudo[2830]: bogdan : TTY=pts/3 ; PWD=/home/bogdan ;
USER=root ; COMMAND=/bin/bash
mai 05 15:07:25 zmeu sudo[2830]: pam_unix(sudo:session): session opened for
user root by bogdan(uid=0)
mai 05 15:07:37 zmeu systemd[1]: Reloading.
mai 05 15:07:37 zmeu systemd[1]: Starting CUPS Printing Service Sockets.
mai 05 15:07:37 zmeu systemd[1]: cups.socket failed to listen on sockets:
Cannot assign requested address
mai 05 15:07:37 zmeu systemd[1]: Failed to listen on CUPS Printing Service
Sockets.
mai 05 15:07:37 zmeu systemd[1]: Dependency failed for CUPS Printing Service.
============================================
less /var/log/syslog:
......
May 5 15:07:37 zmeu systemd[1]: Reloading.
May 5 15:07:37 zmeu systemd[1]: Starting CUPS Printing Service Sockets.
May 5 15:07:37 zmeu systemd[1]: cups.socket failed to listen on sockets:
Cannot assign requested address
May 5 15:07:37 zmeu systemd[1]: Failed to listen on CUPS Printing Service
Sockets.
May 5 15:07:37 zmeu systemd[1]: Dependency failed for CUPS Printing Service.
============================================
journalctl -xn:
.....
May 05 15:07:25 zmeu sudo[2830]: bogdan : TTY=pts/3 ; PWD=/home/bogdan ;
USER=root ; COMMAND=/bin/bash
May 05 15:07:25 zmeu sudo[2830]: pam_unix(sudo:session): session opened for
user root by bogdan(uid=0)
May 05 15:07:37 zmeu systemd[1]: Reloading.
May 05 15:07:37 zmeu systemd[1]: Starting CUPS Printing Service Sockets.
-- Subject: Unit cups.socket has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cups.socket has begun starting up.
May 05 15:07:37 zmeu systemd[1]: cups.socket failed to listen on sockets:
Cannot assign requested address
May 05 15:07:37 zmeu systemd[1]: Failed to listen on CUPS Printing Service
Sockets.
-- Subject: Unit cups.socket has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation:
http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit cups.socket has failed.
--
-- The result is failed.
May 05 15:07:37 zmeu systemd[1]: Dependency failed for CUPS Printing Service.
-- Subject: Unit cups.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation:
http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit cups.service has failed.
--
-- The result is dependency.
============================================
systemctl -a status cups.service:
cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: inactive (dead)
Docs: man:cupsd(8)
man:cupsd.conf(5)
May 05 14:41:19 zmeu systemd[1]: Dependency failed for CUPS Printing Service.
May 05 14:41:39 zmeu systemd[1]: Dependency failed for CUPS Printing Service.
May 05 14:42:27 zmeu systemd[1]: Dependency failed for CUPS Printing Service.
May 05 14:45:33 zmeu systemd[1]: Dependency failed for CUPS Printing Service.
May 05 15:07:37 zmeu systemd[1]: Dependency failed for CUPS Printing Service.
============================================
systemctl list-units:
UNIT LOAD ACTIVE SUB
DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active
running Arbitrary Executable File Formats File System Automount Poi
sys-devices-pci0000:00-0000:00:16.3-tty-ttyS1.device loaded active
plugged Lynx Point KT Controller
sys-devices-pci0000:00-0000:00:19.0-net-eth0.device loaded active
plugged Ethernet Connection I217-LM
sys-devices-pci0000:00-0000:00:1b.0-sound-card0.device loaded active
plugged Lynx Point High Definition Audio Controller
sys-devices-pci0000...0:1c.1-0000:02:00.0-net-wlan0.device loaded active
plugged Centrino Advanced-N 6235 AGN
sys-devices-pci0000...1c.4-0000:05:00.1-sound-card1.device loaded active
plugged GK107 HDMI Audio Controller
sys-devices-pci0000...t0:0:0-0:0:0:0-block-sda-sda1.device loaded active
plugged WDC_WD20EZRX-00D8PB0
sys-devices-pci0000...t0:0:0-0:0:0:0-block-sda-sda2.device loaded active
plugged WDC_WD20EZRX-00D8PB0
sys-devices-pci0000...target0:0:0-0:0:0:0-block-sda.device loaded active
plugged WDC_WD20EZRX-00D8PB0
sys-devices-pci0000...t1:0:0-1:0:0:0-block-sdb-sdb1.device loaded active
plugged ST1000DM003-1CH162
sys-devices-pci0000...t1:0:0-1:0:0:0-block-sdb-sdb2.device loaded active
plugged ST1000DM003-1CH162
sys-devices-pci0000...t1:0:0-1:0:0:0-block-sdb-sdb3.device loaded active
plugged ST1000DM003-1CH162
sys-devices-pci0000...t1:0:0-1:0:0:0-block-sdb-sdb4.device loaded active
plugged ST1000DM003-1CH162
sys-devices-pci0000...t1:0:0-1:0:0:0-block-sdb-sdb5.device loaded active
plugged ST1000DM003-1CH162
sys-devices-pci0000...t1:0:0-1:0:0:0-block-sdb-sdb6.device loaded active
plugged ST1000DM003-1CH162
sys-devices-pci0000...t1:0:0-1:0:0:0-block-sdb-sdb7.device loaded active
plugged ST1000DM003-1CH162
sys-devices-pci0000...target1:0:0-1:0:0:0-block-sdb.device loaded active
plugged ST1000DM003-1CH162
sys-devices-pci0000...target3:0:0-3:0:0:0-block-sr0.device loaded active
plugged PLDS_DVD-RW_DH16ACSH
sys-devices-platform-serial8250-tty-ttyS2.device loaded active
plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device loaded active
plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-pnp0-00:0a-tty-ttyS0.device loaded active
plugged /sys/devices/pnp0/00:0a/tty/ttyS0
sys-devices-virtual-net-vmnet1.device loaded active
plugged /sys/devices/virtual/net/vmnet1
sys-devices-virtual-net-vmnet8.device loaded active
plugged /sys/devices/virtual/net/vmnet8
sys-module-fuse.device loaded active
plugged /sys/module/fuse
sys-subsystem-net-devices-eth0.device loaded active
plugged Ethernet Connection I217-LM
sys-subsystem-net-devices-vmnet1.device loaded active
plugged /sys/subsystem/net/devices/vmnet1
sys-subsystem-net-devices-vmnet8.device loaded active
plugged /sys/subsystem/net/devices/vmnet8
sys-subsystem-net-devices-wlan0.device loaded active
plugged Centrino Advanced-N 6235 AGN
-.mount loaded active
mounted /
dev-hugepages.mount loaded active
mounted Huge Pages File System
dev-mqueue.mount loaded active
mounted POSIX Message Queue File System
home.mount loaded active
mounted /home
mnt-sda1.mount loaded active
mounted /mnt/sda1
proc-sys-fs-binfmt_misc.mount loaded active
mounted Arbitrary Executable File Formats File System
run-lock.mount loaded active
mounted Lock Directory
run-user.mount loaded active
mounted User Runtime Directory
run-vmblock\x2dfuse.mount loaded active
mounted /run/vmblock-fuse
sys-fs-fuse-connections.mount loaded active
mounted FUSE Control File System
sys-kernel-debug.mount loaded active
mounted Debug File System
systemd-ask-password-console.path loaded active
waiting Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path loaded active
waiting Forward Password Requests to Wall Directory Watch
acpid.service loaded active
running ACPI event daemon
atd.service loaded active
running Deferred execution scheduler
avahi-daemon.service loaded active
running Avahi mDNS/DNS-SD Stack
binfmt-support.service loaded active
exited Enable support for additional executable binary formats
bitlbee.service loaded active
running LSB: Start and stop BitlBee IRC to other chat networks gate
bootlogs.service loaded active
exited LSB: Log file handling to be done during bootup.
console-kit-daemon.service loaded active
running Console Manager
console-kit-log-system-start.service loaded active
exited Console System Startup Logging
console-setup.service loaded active
exited LSB: Set console font and keymap
cron.service loaded active
running LSB: Regular background program processing daemon
dbus.service loaded active
running D-Bus System Message Bus
getty@tty1.service loaded active
running Getty on tty1
hdparm.service loaded active
exited LSB: Tune IDE hard disks
ifup@eth0.service loaded active
exited ifup for eth0
ifup@vmnet1.service loaded active
exited ifup for vmnet1
ifup@vmnet8.service loaded active
exited ifup for vmnet8
ifup@wlan0.service loaded active
exited ifup for wlan0
kbd.service loaded active
exited LSB: Prepare console
kdm.service loaded active
running LSB: X display manager for KDE
keyboard-setup.service loaded active
exited LSB: Set preliminary keymap
minissdpd.service loaded active
running LSB: keep memory of all UPnP devices that announced themsel
ModemManager.service loaded active
running Modem Manager
motd.service loaded active
exited LSB: Create dynamic part of /etc/motd
networking.service loaded active
exited LSB: Raise network interfaces.
NetworkManager.service loaded active
running Network Manager
nvidia-kernel.service loaded active
exited LSB: create NVIDIA device nodes
openvpn.service loaded active
exited LSB: Openvpn VPN service
qemu-system-x86.service loaded active
exited LSB: QEMU KVM module loading script
rc-local.service loaded active
exited /etc/rc.local Compatibility
rsyslog.service loaded active
running System Logging Service
saned.service loaded active
exited LSB: SANE network scanner server
ssh.service loaded active
running OpenBSD Secure Shell server
systemd-journald.service loaded active
running Journal Service
systemd-logind.service loaded active
running Login Service
systemd-modules-load.service loaded active
exited Load Kernel Modules
systemd-remount-fs.service loaded active
exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active
exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited
Create static device nodes in /dev
systemd-tmpfiles-setup.service loaded active exited
Recreate Volatile Files and Directories
systemd-udev-trigger.service loaded active
exited udev Coldplug all Devices
systemd-udevd.service loaded active
running udev Kernel Device Manager
systemd-user-sessions.service loaded active
exited Permit User Sessions
transmission-daemon.service loaded failed
failed Transmission BitTorrent Daemon
udev-finish.service loaded active exited
Copy rules generated while the root was ro
udisks2.service loaded active
running Disk Manager
upower.service loaded active
running Daemon for power management
vmamqpd.service loaded failed
failed LSB: This service starts and stops vmamqpd
vmware-USBArbitrator.service loaded active
running LSB: This services starts and stops the USB Arbitrator.
vmware.service loaded active
running LSB: This service starts and stops VMware services
acpid.socket loaded active
running ACPID Listen Socket
avahi-daemon.socket loaded active
listening Avahi mDNS/DNS-SD Stack Activation Socket
cups.socket loaded failed
failed CUPS Printing Service Sockets
dbus.socket loaded active
running D-Bus System Message Bus Socket
syslog.socket loaded active
running Syslog Socket
systemd-initctl.socket loaded active
listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket loaded active
running Journal Socket
systemd-shutdownd.socket loaded active
listening Delayed Shutdown Socket
systemd-udevd-control.socket loaded active
running udev Control Socket
systemd-udevd-kernel.socket loaded active
running udev Kernel Socket
dev-sdb6.swap loaded active
active /dev/sdb6
basic.target loaded active
active Basic System
cryptsetup.target loaded active
active Encrypted Volumes
getty.target loaded active
active Login Prompts
graphical.target loaded active
active Graphical Interface
local-fs-pre.target loaded active
active Local File Systems (Pre)
local-fs.target loaded active
active Local File Systems
multi-user.target loaded active
active Multi-User System
network.target loaded active
active Network
nss-lookup.target loaded active
active Host and Network Name Lookups
paths.target loaded active
active Paths
remote-fs-pre.target loaded active
active Remote File Systems (Pre)
remote-fs.target loaded active
active Remote File Systems
sockets.target loaded active
active Sockets
sound.target loaded active
active Sound Card
swap.target loaded active
active Swap
sysinit.target loaded active
active System Initialization
syslog.target loaded active
active Syslog
timers.target loaded active
active Timers
x-display-manager.target loaded active
active X11 Display Manager
systemd-tmpfiles-clean.timer loaded active
waiting Daily Cleanup of Temporary Directories
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
121 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
>cups works fine on my systemd laptop, so there must be some
> local
> state/configuration involved here, rather than a simple "doesn't work on
> systemd".
>
Well, cups worked perfectly for me before I SID replaced sysvinit with
systemd. Because I was sure that some people will say "it works for me", I
removed them, and I tried to install them again. The result is the same, so
for me is just a simple "doesn't work on systemd". :)
[...]
>
> (I am not a cups maintainer, I just saw this bug on apt-listbugs and
> thought I'd get start the process of getting enough information that the
> cups maintainers can do something about it.)
>
Thanks!
BogDan.
Reply to: