/usr/share/squid-deb-proxy-client/apt-avahi-discover crashing

Bug #1422162 reported by Hadmut Danisch
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
squid-deb-proxy (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Hi,

since recent upgrade /usr/share/squid-deb-proxy-client/apt-avahi-discover crashes (= uncaught exception):

# /usr/share/squid-deb-proxy-client/apt-avahi-discover
Traceback (most recent call last):
  File "/usr/share/squid-deb-proxy-client/apt-avahi-discover", line 126, in <module>
    address = get_proxy_host_port_from_avahi()
  File "/usr/share/squid-deb-proxy-client/apt-avahi-discover", line 109, in get_proxy_host_port_from_avahi
    hosts.append(AptAvahiClient(addr))
  File "/usr/share/squid-deb-proxy-client/apt-avahi-discover", line 44, in __init__
    self.connect( (addr[0], addr[1], 0, 0) )
  File "/usr/lib/python2.7/asyncore.py", line 356, in connect
    raise socket.error(err, errorcode[err])
socket.error: [Errno 101] ENETUNREACH

Reason: There's a problem with the avahi daemon running on the machine with squid proxy server. It always advertises an official IPv6 address, but its firewall allows a fe80:: address only, i.e. it advertieses an IPv6 address where the Port of the proxy is not available. While this is definitely a problem and misconfiguration of the proxy server, apt-avahi-discover should not crash, but simply not report that proxy server as found.

regards

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: squid-deb-proxy-client 0.8.6
ProcVersionSignature: Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13
Uname: Linux 3.13.0-45-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Feb 15 19:43:15 2015
PackageArchitecture: all
SourcePackage: squid-deb-proxy
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hadmut Danisch (hadmut) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in squid-deb-proxy (Ubuntu):
status: New → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

I have a similar problem with a host when n2n is running. Apparently, the proxy server (apt-cacher-ng in my case) is being advertised via avahi but probing the IP:port combination of the n2n interface shows the port as closed. This is 100% reproducible.

Changed in squid-deb-proxy (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.