kanotix.com

Nicht mehr aktuelle Beiträge - apt-proxy hängt?

doc2 - 17.07.2006, 20:18 Uhr
Titel: apt-proxy hängt?
Habe mir auf einem Testrechner gestern apt-proxy installiert und eingerichtet. Denke ich jedenfalls Smilie

Allerdings gibt es schon Probleme wenn ich die lokale sources.list dieses Rechners verändere so das sich apt-get mit dem Apt-Proxy verbinden soll. Dabei bleibt apt-get update quasi hängen.
Code:
apt-get update
Fehl http://localhost unstable Release.gpg
  Konnte nicht mit localhost:9999 verbinden (127.0.0.1). - connect (111 Verbindungsaufbau abgelehnt)
0% [Warte auf Kopfzeilen (header)

Der Log in /var/log/apt-proxy.log sieht so aus:
Code:
2006/07/17 21:08 CEST [-] Log opened.
2006/07/17 21:08 CEST [-] twistd 2.4.0 (/usr/bin/python 2.3.5) starting up
2006/07/17 21:08 CEST [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2006/07/17 21:08 CEST [-] Loading /usr/sbin/apt-proxy...
2006/07/17 21:08 CEST [-] /usr/lib/python2.3/site-packages/twisted/manhole/telnet.py:8: exceptions.DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated.  See twisted.conch.telnet for the current, supported API.
2006/07/17 21:08 CEST [-] WARNING: apt-proxy has not been tested under this version of twisted (2.4.0).
2006/07/17 21:08 CEST [-] WARNING: although it should work without problem.
2006/07/17 21:08 CEST [-] Loaded.
2006/07/17 21:08 CEST [-] apt_proxy.apt_proxy.Factory starting on 9999
2006/07/17 21:08 CEST [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0xb77263cc>
2006/07/17 21:08 CEST [-] set uid/gid 115/65534
2006/07/17 21:09 CEST [Channel,0,192.168.136.10] Traceback (most recent call last):
          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 1661, 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 1400, in process
            self.fetch()
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1479, in fetch
            d = self.check_cached()
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1571, in check_cached
            deferred.errback()
          File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 249, in errback
            fail = failure.Failure(fail)
          File "/usr/lib/python2.3/site-packages/twisted/python/failure.py", line 114, in __init__
            raise NoCurrentExceptionError()
        twisted.python.failure.NoCurrentExceptionError:

Irgendwie ergibt das für mich keinen Sinn.

BTW: Das System hat ca. 3 Tagen ein dist-upgrade bekommen und läuft sonst auch noch.
doc2 - 20.08.2006, 08:06 Uhr
Titel:
So, nach dem gestrigen dist-upgrade scheint der proxy zu funktionieren. Jedenfalls klappt das apt-get update an einen client soweit schon mal.

Allerdings habe ich noch ein Problem.
Ich habe in der /etc/apt/sources.list auch die Kanotixangabe auf den Proxy umgeleitet. Nun bleibt apt-get update aber wohl eben bei der Abfrage dieses Eintrages stehen. Nehme ich nämlich den Eintrag auf dem Client raus läuft apt-get update komplett durch.
Nun, du mußt bestimmt ein Backend hinzufügen dachte ich mir, also das noch nachgetragen, aber es klappt immer noch nicht. Was stimmt da noch nicht??
Code:
;; Backend servers, in order of preference
backends =
        http://ftp.us.debian.org/debian
        http://ftp.de.debian.org/debian
        http://ftp2.de.debian.org/debian
        ftp://ftp.uk.debian.org/debian

[kanotix]
;; Backends for the Kanotixfiles
backends = http://kanotix.com/files/debian      <----------

[security]
;; Debian security archive
backends =
        http://security.debian.org/debian-security
        http://ftp2.de.debian.org/debian-security

Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007