[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#742668: cups: Fails to install because can't listen to sockets



Hello Didier, and thanks for your reply.

> Le mardi, 6 mai 2014, 14.23:41 Giuseppe Bilotta a écrit :
>> I've just come across this issue during a dist-upgrade. The situation
>> is the same as that of the original message: nothing is using port
>> 631 or the cups socket, but:
>
> Are you sure of that? Can you paste the output of the following command
> (run as root):
>         netstat -lnptu | grep 631

There is no output (running under sudo).

>> so cups-daemon, cups and cups-core-drivers fail to complete the
>> upgrade/configure.
>
> Do you have a specific ipv6 configuration (module unloaded or
> blacklisted?

The module is not blacklisted, but it's not loaded either (I'm not in
an IPv6-enabled network).

> Can you attach the content of all files and symlinks in
> /etc/systemd/system/cups.socket.d ?

There is only:

/etc/systemd/system/cups.socket.d/cupsd-listen.conf ->
../../../cups/cupsd-systemd-listen.conf

Contents:

[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
# Matches 'Port 631' from cupsd.conf
ListenStream=0.0.0.0:631
ListenStream=[::]:631


> Could you also attach the output of `systemctl show cups.socket` ?

Here it is:

---8<----

Id=cups.socket
Names=cups.socket
Requires=sysinit.target -.mount
RequiredBy=cups.service configure-printer@usb-003-005.service
WantedBy=sockets.target
Conflicts=shutdown.target
Before=cups.service sockets.target shutdown.target
configure-printer@usb-003-005.service
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=Wed 2014-05-07 19:32:51 CEST
ConditionTimestampMonotonic=496589287791
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
ListenStream=0.0.0.0:631
ListenStream=[::]: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=61379
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=61379
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

---8<----


Cheers,

-- 
Giuseppe "Oblomov" Bilotta


Reply to: