• Bug#264147: apt-cacher: Access to cache prohibited after update

    From Jonathan Oxer@1:229/2 to All on Thu Aug 12 08:40:11 2004
    From: [email protected]

    Hi Keywan,

    Package: apt-cacher
    Version: 0.8-4
    Severity: important

    After an update from 0.7-2 the access from the clients is denied

    Sorry about the very slow response to this bug report, my wife just had
    a baby last weekend and things have been rather hectic for me. I'm just starting to catch up on things.

    I think you've been caught by the new client authentication mechanism
    which allows you to specify a range of IP addresses that are allowed to
    use your cache. Any machines outside this range are denied (hence the
    403: Access Denied). The loopback address (127.0.0.1) is always
    explicitly allowed, so one way to test this would be to set your
    apt-cacher machine up to use itself as a cache and then try an update on
    it. That should work.

    The format of the 'allowed_hosts' entry you need to put in the config
    file is explained in 'man apt-cacher'.

    Please let me know if that was the problem so I can close this bug
    report. I'll also close #264149 anyway, since it appears to be a
    duplicate of this report.

    Cheers :-)

    Jonathan Oxer
    --
    The Debian Universe: Installing, managing and using Debian GNU/Linux http://www.debianuniverse.com/



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

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Keywan Najafi Tonekaboni@1:229/2 to All on Sat Aug 7 13:10:08 2004
    From: [email protected]

    Package: apt-cacher
    Version: 0.8-4
    Severity: important

    After an update from 0.7-2 the access from the clients is denied

    ------------------------------------------------------------------------------- venus:/home/gast# apt-get update
    Fehl http://sirius testing/main Packages
    403 Access to cache prohibited
    Ign http://sirius testing/main Release
    (...)
    Konnte http://sirius/apt-cacher/ftp.de.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
    nicht holen 403 Access to cache prohibited
    (...)
    E: Einige Indexdateien konnten nicht heruntergeladen werden, sie wurden ignoriert oder alte an ihrer Stelle benutzt.
    venus:/home/gast# -------------------------------------------------------------------------------

    Sorry, for the german error message, quick'n'dirty translation:
    Fehl == Error
    Konnte xyz nicht holen == Could not download/get xyz
    E: Einige... == Could not download some Index files, they will be
    ignored or older will be used...

    ------------------------------------------------------------------------------- venus:/home/gast# apt-get install hello
    Paketlisten werden gelesen... Fertig
    Abh�ngigkeitsbaum wird aufgebaut... Fertig
    Die folgenden NEUEN Pakete werden installiert:
    hello
    0 aktualisiert, 1 neu installiert, 0 zu entfernen und 44 nicht
    aktualisiert.
    Es m�ssen 48,2kB Archive geholt werden.
    Nach dem Auspacken werden 483kB Plattenplatz zus�tzlich benutzt.
    Fehl http://sirius testing/main hello 2.1.1-4
    403 Access to cache prohibited
    Konnte http://sirius/apt-cacher/ftp.de.debian.org/debian/pool/main/h/hello/hello_2.1.1-4_i386.deb
    nicht holen 403 Access to cache prohibited
    E: Konnte einige Archive nicht herunterladen, vielleicht ,,apt-get
    update" oder mit ,,--fix-missing" probieren?
    venus:/home/gast# -------------------------------------------------------------------------------

    Until "Fehl..." you see the normal apt-get output and the last line with
    "E:" is just the normal proposal, when a package is not reachable.


    When i downgrade to 0.7-2 everything is well instead of an slow "apt-get update" from the clients.

    An update or installation on the host where apt-cacher is installed isn't a problem.

    in /var/log/apt-cacher/*log there wasn't any error but in /var/log/apache2/error.log: ------------------------------------------------------------------------------- [Sat Aug 07 14:49:32 2004] [error] [client 192.168.1.2] Scalar value @allowed_hosts_parts[0] better written as $allowed_hosts_parts[0] at /usr/share/apt-cacher/apt-cacher.pl line 231.
    [Sat Aug 07 14:49:32 2004] [error] [client 192.168.1.2] Scalar value @allowed_hosts_parts[1] better written as $allowed_hosts_parts[1] at /usr/share/apt-cacher/apt-cacher.pl line 232. -------------------------------------------------------------------------------

    and /var/log/apache2/access.log ------------------------------------------------------------------------------- 192.168.1.2 - - [07/Aug/2004:14:51:57 +0200] "GET /apt-cacher/ftp.de.debian.org/debian/pool/main/h/hello/hello_2.1.1-4_i386.deb HTTP/1.1" 403 - "-" "Debian APT-HTTP/1.3" -------------------------------------------------------------------------------



    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.4.20-bf2.4
    Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

    Versions of packages apt-cacher depends on:
    ii apache2-mpm-prefork [apache2] 2.0.49-1 Traditional model for Apache2
    ii bzip2 1.0.2-1 A high-quality block-sorting file ii perl 5.8.4-2 Larry Wall's Practical Extraction ii wget 1.9.1-4 retrieves files from the web

    -- no debconf information


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

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)