From owner-freebsd-questions@FreeBSD.ORG Sat Aug 5 04:26:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E05816A4DD for ; Sat, 5 Aug 2006 04:26:34 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd4mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A842C43D5D for ; Sat, 5 Aug 2006 04:26:33 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd5mr8so.prod.shaw.ca (pd5mr8so-qfe3.prod.shaw.ca [10.0.141.184]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J3I00B6OC9CVR10@l-daemon> for freebsd-questions@freebsd.org; Fri, 04 Aug 2006 22:24:48 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca ([10.0.121.149]) by pd5mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J3I007R3C9CDO60@pd5mr8so.prod.shaw.ca> for freebsd-questions@freebsd.org; Fri, 04 Aug 2006 22:24:48 -0600 (MDT) Received: from hexahedron.daemonology.net ([24.82.18.31]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0J3I00LJFC9BDVI1@l-daemon> for freebsd-questions@freebsd.org; Fri, 04 Aug 2006 22:24:48 -0600 (MDT) Received: (qmail 42913 invoked from network); Sat, 05 Aug 2006 04:24:40 +0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; Sat, 05 Aug 2006 04:24:40 +0000 Date: Fri, 04 Aug 2006 21:24:39 -0700 From: Colin Percival In-reply-to: <000701c6b842$33ea1910$1f01a8c0@tosh> To: Gary Newcombe Message-id: <44D41D87.6080401@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.94.0.0 References: <000701c6b842$33ea1910$1f01a8c0@tosh> User-Agent: Thunderbird 1.5 (X11/20060416) Cc: freebsd-questions@freebsd.org Subject: Re: portsnap oddities X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2006 04:26:34 -0000 Gary Newcombe wrote: > Yes, nail on the head methinks. This server is behind a proxy and portsnap > works fine with it disabled. With combination of advproxy, havp and privoxy: > > [mesh:/var/db/portsnap]# l *[3d].gz > -rw-r--r-- 1 root wheel 64B 5 Aug 12:51 > ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166564e61666d059f1b8fd.gz > -rw-r--r-- 1 root wheel 64B 5 Aug 12:51 > ad3d51001a264245eab5894cece6c902d073841143e9ffc7ee8379948a44aae3.gz > > Without: > [...] > Fetching 2 patches... > [...] > done. > Applying patches... done. > Fetching 0 new ports or files... > done. > [mesh:/var/db/portsnap]# l *[3d].gz > -rw-r--r-- 1 root wheel 64B 5 Aug 13:32 > ad06d1f7b82db9ebcb496e7d48a754932622f1c8d6166564e61666d059f1b8fd.gz > -rw-r--r-- 1 root wheel 64B 5 Aug 13:32 > ad3d51001a264245eab5894cece6c902d073841143e9ffc7ee8379948a44aae3.gz > > So the files did seem to be intact initially anyway? Everything seems to be working fine now. You can delete those two files; they were left behind because I forgot to handle the case of 'file download failed, portsnap gets run again, and then patch download succeeds'. The correct versions of the files are stored in the /var/db/portsnap/files/ directory. > Just clearing the cache > for the proxy didn't seem to solve the problem btw. It's possible that your cache gets confused by pipelined HTTP. It wouldn't be the first time that has happened... Colin Percival