Package: apt-proxy
Version: 1.9.34
Severity: normal

Hi Chris,
I have just tested the last version (1.9.34) and I have a bug
with the http_proxy option :

~# /etc/init.d/apt-proxy start
Starting apt-proxy
Failed to load application: global name 're' is not defined
.

You forgot the import "re" in the file "apt_proxy_conf.py"


After having corrected that, I have two others problems :
* First, the backends FTP don't use the http_proxy to connect.

* Second (more complex), when you connect the backends HTTP
to proxy with the method reactor.connectTCP at line 476 in file
"fecthers.py", the parameter "port" is a string. So, the method
connectTCP consider the port parameter as a service name
instead of a tcp port number (and thus tries to resolve it).

The backtrace :

File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line
53, in callWithLogger
           return callWithContext({"system": lp}, func, *args, **kw)
         File "/usr/lib/python2.3/site-packages/twisted/python/log.py",
line 38, in callWithContext
           return context.call({ILogContext: newCtx}, func, *args, **kw)
         File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
line 59, in callWithContext
           return self.currentContext().callWithContext(ctx, func, *args, **kw)
         File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
line 37, in callWithContext
           return func(*args,**kw)
       --- <exception caught here> ---
         File 
"/usr/lib/python2.3/site-packages/twisted/internet/selectreactor.py",
line 139, in _doReadOrWrite
           why = getattr(selectable, method)()
         File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py",
line 348, in doRead
           return self.protocol.dataReceived(data)
         File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py",
line 232, in dataReceived
           why = self.lineReceived(line)
         File "/usr/lib/python2.3/site-packages/twisted/web/http.py",
line 1004, in lineReceived
           self.allContentReceived()
         File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py",
line 366, in allContentReceived
           http.HTTPChannel.allContentReceived(self)
         File "/usr/lib/python2.3/site-packages/twisted/web/http.py",
line 1045, in allContentReceived
           req.requestReceived(command, path, version)
         File "/usr/lib/python2.3/site-packages/twisted/web/http.py",
line 601, in requestReceived
           self.process()
         File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py",
line 274, in process
           self.cacheEntry.add_request(self)
         File "/usr/lib/python2.3/site-packages/apt_proxy/cache.py",
line 98, in add_request
           self.get()
         File "/usr/lib/python2.3/site-packages/apt_proxy/cache.py",
line 157, in get
           self.start_download()
         File "/usr/lib/python2.3/site-packages/apt_proxy/cache.py",
line 285, in start_download
           self.backend.start_download(self)
         File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py",
line 139, in start_download
           self.queue.addFile(entry)
         File "/usr/lib/python2.3/site-packages/apt_proxy/fetchers.py",
line 1093, in addFile
           q.addFile(cacheEntry)
         File "/usr/lib/python2.3/site-packages/apt_proxy/fetchers.py",
line 1006, in addFile
           self.startNextDownload()
         File "/usr/lib/python2.3/site-packages/apt_proxy/fetchers.py",
line 1043, in startNextDownload
           d = self.fetcher.start(self.activeFile)
         File "/usr/lib/python2.3/site-packages/apt_proxy/fetchers.py",
line 53, in start
           self.start_download()
         File "/usr/lib/python2.3/site-packages/apt_proxy/fetchers.py",
line 100, in start_download
           self.activateNextBackendServer(self.fetcher)
         File "/usr/lib/python2.3/site-packages/apt_proxy/fetchers.py",
line 73, in activateNextBackendServer
           self.connectToBackend()
         File "/usr/lib/python2.3/site-packages/apt_proxy/fetchers.py",
line 78, in connectToBackend
           d = self.fetcher.connect()
         File "/usr/lib/python2.3/site-packages/apt_proxy/fetchers.py",
line 476, in connect
           reactor.connectTCP(host, port, factory,
self.backendServer.backend.config.timeout)
         File "/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py",
line 392, in connectTCP
           c = tcp.Connector(host, port, factory, timeout, bindAddress, self)
         File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py",
line 835, in __init__
           raise error.ServiceNameUnknownError(string="%s (%r)" % (e, port))
       twisted.internet.error.ServiceNameUnknownError: Service name
given as port is unknown: service/proto not found ('8080').

Regards,
Thomas


-- System Information:
Debian Release: testing/unstable
 APT prefers testing
 APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-vserver-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt-proxy depends on:
ii  adduser                       3.95       Add and remove users and groups
ii  bzip2                         1.0.3-3    high-quality block-sorting file co
ii  debconf [debconf-2.0]         1.5.2      Debian configuration management sy
ii  logrotate                     3.7.1-3    Log rotation utility
ii  python                        2.3.5-11   An interactive high-level object-o
ii  python-apt                    0.6.19     Python interface to libapt-pkg
ii  python-central                0.5.4      register and build utility for Pyt
ii  python-twisted-web            0.6.0-1    An HTTP protocol implementation to

apt-proxy recommends no packages.

-- debconf information excluded


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to