it seem to be there is something broken. i cant start cups Okt 25 16:30:14 TuX systemd[1]: Reached target System Initialization. Okt 25 16:30:14 TuX systemd[1]: Starting CUPS Scheduler. Okt 25 16:30:14 TuX systemd[1]: Started CUPS Scheduler. Okt 25 16:30:15 TuX systemd[1]: cups.socket failed to listen on sockets: Address already in use Okt 25 16:30:15 TuX systemd[1]: Failed to listen on CUPS Scheduler. Okt 25 16:30:15 TuX systemd[1]: Unit cups.socket entered failed state. Okt 25 16:30:15 TuX systemd[1]: Starting Daily Cleanup of Temporary Directories. Reproducible: Always Actual Results: # systemctl status cups ● cups.service - CUPS Scheduler Loaded: loaded (/usr/lib64 Portage 2.2.14 (python 3.4.2-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.17.1-gentoo-r1 x86_64) ================================================================= System uname: Linux-3.17.1-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2 KiB Mem: 24626992 total, 10047776 free KiB Swap: 25461756 total, 25461756 free Timestamp of tree: Sat, 25 Oct 2014 21:00:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p30 dev-java/java-config: 2.2.0 dev-lang/perl: 5.20.1-r2 dev-lang/python: 2.7.8, 3.3.5-r1, 3.4.2 dev-util/cmake: 3.0.2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.1 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 3.17 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo bitcoin steam-overlay bumblebee printer-drivers lokal ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=corei7 -O2 -pipe" DISTDIR="/mnt/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/mnt/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/mnt/portage"
but manually startung cups works # systemctl status cups ● cups.service - CUPS Scheduler Loaded: loaded (/usr/lib64/systemd/system/cups.service; enabled) Active: active (running) since So 2014-10-26 01:32:11 CEST; 3s ago Main PID: 31011 (cupsd) CGroup: /system.slice/cups.service └─31011 /usr/sbin/cupsd -l
*** This bug has been marked as a duplicate of bug 450282 ***
This is not a duplicate of bug #450282 - the security bug is about a misconfiguration resulting in cups listening on world wide :::631 instead of ::1:631 I cannot repdroduce. Please provide the following information: * Are there any files under /etc/system.d/system/cups.{service|socket} * If, both, cups.service and cups.socket are disabled. What is the output of $ netstat -tulpen
Created attachment 387414 [details] /etc/systemd/system/cups.socket i have added this in common way the cups service in systemd. so this asked file ofc does exist # systemctl disable cups Removed symlink /etc/systemd/system/printer.target.wants/cups.service. Removed symlink /etc/systemd/system/sockets.target.wants/cups.socket. Removed symlink /etc/systemd/system/multi-user.target.wants/cups.path.
Created attachment 387416 [details] /etc/systemd/system/printer.target.wants/cups.service
(In reply to tman from comment #5) > Created attachment 387416 [details] > /etc/systemd/system/printer.target.wants/cups.service # netstat -tulpen Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name udp 0 0 0.0.0.0:60278 0.0.0.0:* 107 10341 1814/systemd-timesy udp 0 0 0.0.0.0:68 0.0.0.0:* 0 8553 1878/dhclient udp 0 0 0.0.0.0:68 0.0.0.0:* 0 3735 1855/dhclient udp 0 0 0.0.0.0:1703 0.0.0.0:* 0 8546 1878/dhclient udp 0 0 0.0.0.0:38551 0.0.0.0:* 0 582 1855/dhclient udp6 0 0 :::15315 :::* 0 8547 1878/dhclient udp6 0 0 :::55881 :::* 0 583 1855/dhclient
Please remove /etc/systemd/system/cups.socket and reload the configuration via $ systemctl daemon-reload After that starting the socket should work $ systemctl start cups.socket I have no idea why you have installed above cups.socket file, but this is very likely not what you want. If you really want to have a cups service that listens world reachable on every interface, keep your cups.socket file under /etc/systemd/system/cups.socket but make sure to use the correct syntax. In order to override an option it has to be something like read .include /usr/lib/systemd/system/cups.socket [Socket] ListenStream= ListenStream=0.0.0.0:631
(In reply to Matthias Maier from comment #7) > Please remove > /etc/systemd/system/cups.socket > and reload the configuration via > $ systemctl daemon-reload after exercute this command to reaload daemond cups still not get start. # rm /etc/systemd/system/cups.socket # systemctl daemon-reload # systemctl status cups ● cups.service - CUPS Scheduler Loaded: loaded (/usr/lib64/systemd/system/cups.service; enabled) Active: inactive (dead) BUT starting cups manual works: # systemctl start cups # systemctl status cups ● cups.service - CUPS Scheduler Loaded: loaded (/usr/lib64/systemd/system/cups.service; enabled) Active: active (running) since So 2014-10-26 21:12:31 CET; 3s ago Main PID: 15770 (cupsd) CGroup: /system.slice/cups.service └─15770 /usr/sbin/cupsd -l Okt 26 21:12:31 TuX systemd[1]: Started CUPS Scheduler. > > After that starting the socket should work > $ systemctl start cups.socket > > I have no idea why you have installed above cups.socket file, but this is > very likely not what you want. > > If you really want to have a cups service that listens world reachable on > every interface, keep your cups.socket file under > /etc/systemd/system/cups.socket but make sure to use the correct syntax. In > order to override an option it has to be something like read > > .include /usr/lib/systemd/system/cups.socket > > [Socket] > ListenStream= > ListenStream=0.0.0.0:631 its not me who installed manually the cups.socket. systemd did it by it own. # systemctl enable cups Created symlink from /etc/systemd/system/printer.target.wants/cups.service to /usr/lib64/systemd/system/cups.service. Created symlink from /etc/systemd/system/sockets.target.wants/cups.socket to /usr/lib64/systemd/system/cups.socket. Created symlink from /etc/systemd/system/multi-user.target.wants/cups.path to /usr/lib64/systemd/system/cups.path.
Well, this is the correct behavior. After a $ systemctl enable cups and a restart, the only the socket is activated upon system start: tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 0 40520 1/systemd tcp6 0 0 ::1:631 :::* LISTEN 0 40519 1/systemd The cups.service itself is only started upon demand, e.g. after accessing localhost:631 cups.service should be active.
the problem is the cups dont get start after doing all this steps. only manually starting works :(