From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 15:52:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 830A81065670 for ; Wed, 26 Mar 2008 15:52:53 +0000 (UTC) (envelope-from barry.byrne@wbtsystems.com) Received: from hermes.wbtsystems.com (hermes.wbtsystems.com [193.120.231.28]) by mx1.freebsd.org (Postfix) with ESMTP id 497128FC17 for ; Wed, 26 Mar 2008 15:52:53 +0000 (UTC) (envelope-from barry.byrne@wbtsystems.com) Received: from SUNYA (sunya.wbt.wbtsystems.com [10.12.1.197]) by hermes.wbtsystems.com (Postfix) with ESMTPA id 0E66EF7410; Wed, 26 Mar 2008 15:52:51 +0000 (GMT) From: "Barry Byrne" To: "'Elwell, Richard'" , References: Date: Wed, 26 Mar 2008 15:52:51 -0000 Message-ID: <00fe01c88f59$729cf750$c5010c0a@wbt.wbtsystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: thread-index: AciPT1GFTo2xdmlbRvG3+iVj+YkKLQAAAnsAAAJ5yeA= Cc: Subject: RE: portsnap fetch errors 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: Wed, 26 Mar 2008 15:52:53 -0000 > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Elwell, Richard > I get the following error when I run portsnap fetch: > Fetching 14248 new ports or files... /usr/sbin/portsnap: cannot open > d5742d6e9ca3b11450f23606ae6a16b391a12f4c7b2d4fc638513ce34f7c2c > 25.gz: No > such file or directory > > snapshot is corrupt. > A quick search led to a similar problem in the past: Richard, By any chance is your portsnap using a proxy server, possibly squid? If so this may get around the problem prior to running your portsnap. # sysctl net.inet.ip.portrange.randomized=0 You may want to check the value first, and reset it after the portsnap. Maybe something like this in your portsnap script. - barry -- snip -- RANDOMIZED=`sysctl -n net.inet.ip.portrange.randomized` portsnap fetch update # or portsnap cron update sysctl net.inet.ip.portrange.randomized=$RANDOMIZED -- snip --