On Monday 05 May 2014 17:43:45 Didier 'OdyX' Raboud wrote: > Le lundi, 5 mai 2014, 15.19:30 BogDan Vatra a écrit : > > > 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. > > Yay, thanks for the initial response. > > > > 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 > > Hmm. Can you attach the content of all files and symlinks in > /etc/systemd/system/cups.socket.d ? >
Check cups.socket.d.output.txt > Could you also attach the output of `systemctl show cups.socket` ? > Check systemctl_show_cups.socket_output.txt > Do you happen to have a specific IPv6 setup on this machine? Kernel > module unloaded or not built? > Yes, I disabled IPv6. # cat /etc/sysctl.d/disableipv6.conf net.ipv6.conf.all.disable_ipv6=1 It seems this is the reason why it doesn't work, I comment "ListenStream=[::1]:631" and it works fine. > > 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". :) > > Did you upgrade all your system to sid? No, I didn't upgrade to sid, I upgrade my existing sid installation. > What is the install status of > cups-browsed? > Is working. Thanks.
# ls -l /etc/systemd/system/cups.socket.d total 0 lrwxrwxrwx 1 root root 39 May 4 13:37 cupsd-listen.conf -> ../../../cups/cupsd-systemd-listen.conf # cat /etc/systemd/system/cups.socket.d/cupsd-listen.conf [Socket] # This file was generated by CUPS and _WILL_ be deleted or overwritten by it! # It has to be kept in sync with the Port and Listen stanzas in /etc/cups/cupsd.conf # It is by default symlinked as cups-listen.conf in the # /etc/systemd/system/cups.socket.d/ directory. Remove the symlink # and write your own file there if you don't want this. See systemd.socket(5). # Matches 'Listen localhost:631' from cupsd.conf ListenStream=127.0.0.1:631 ListenStream=[::1]:631
# systemctl show cups.socket Id=cups.socket Names=cups.socket Requires=sysinit.target -.mount RequiredBy=cups.service WantedBy=sockets.target Conflicts=shutdown.target Before=cups.service sockets.target shutdown.target After=sysinit.target -.mount Triggers=cups.service Description=CUPS Printing Service Sockets LoadState=loaded ActiveState=failed SubState=failed FragmentPath=/lib/systemd/system/cups.socket DropInPaths=/etc/systemd/system/cups.socket.d/cupsd-listen.conf UnitFileState=enabled InactiveExitTimestampMonotonic=0 ActiveEnterTimestampMonotonic=0 ActiveExitTimestampMonotonic=0 InactiveEnterTimestampMonotonic=0 CanStart=yes CanStop=yes CanReload=no CanIsolate=no StopWhenUnneeded=no RefuseManualStart=no RefuseManualStop=no AllowIsolate=no DefaultDependencies=yes OnFailureIsolate=no IgnoreOnIsolate=no IgnoreOnSnapshot=no NeedDaemonReload=no JobTimeoutUSec=0 ConditionTimestamp=Tue 2014-05-06 09:46:33 EEST ConditionTimestampMonotonic=9983749 ConditionResult=yes BindIPv6Only=ipv6-only Backlog=128 TimeoutUSec=1min 30s ControlPID=0 DirectoryMode=0755 SocketMode=0666 Accept=no KeepAlive=no Priority=-1 ReceiveBuffer=0 SendBuffer=0 IPTOS=-1 IPTTL=-1 PipeSize=0 FreeBind=no Transparent=no Broadcast=no PassCredentials=no PassSecurity=no ListenStream=/var/run/cups/cups.sock ListenStream=127.0.0.1:631 ListenStream=[::1]:631 Mark=-1 MaxConnections=64 NConnections=0 NAccepted=0 Result=resources UMask=0022 LimitCPU=18446744073709551615 LimitFSIZE=18446744073709551615 LimitDATA=18446744073709551615 LimitSTACK=18446744073709551615 LimitCORE=18446744073709551615 LimitRSS=18446744073709551615 LimitNOFILE=4096 LimitAS=18446744073709551615 LimitNPROC=127941 LimitMEMLOCK=65536 LimitLOCKS=18446744073709551615 LimitSIGPENDING=127941 LimitMSGQUEUE=819200 LimitNICE=0 LimitRTPRIO=0 LimitRTTIME=18446744073709551615 OOMScoreAdjust=0 Nice=0 IOScheduling=0 CPUSchedulingPolicy=0 CPUSchedulingPriority=0 TimerSlackNSec=50000 CPUSchedulingResetOnFork=no NonBlocking=no StandardInput=null StandardOutput=journal StandardError=inherit TTYReset=no TTYVHangup=no TTYVTDisallocate=no SyslogPriority=30 SyslogLevelPrefix=yes SecureBits=0 CapabilityBoundingSet=18446744073709551615 MountFlags=0 PrivateTmp=no PrivateNetwork=no SameProcessGroup=no ControlGroupModify=no ControlGroupPersistent=no IgnoreSIGPIPE=yes NoNewPrivileges=no KillMode=control-group KillSignal=15 SendSIGKILL=yes DefaultControlGroup=name=systemd:/system/cups.socket ControlGroups=cpu:/system/cups.socket name=systemd:/system/cups.socket