Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2008 15:52:51 -0000
From:      "Barry Byrne" <barry.byrne@wbtsystems.com>
To:        "'Elwell, Richard'" <richard.elwell@icsalabs.com>, <freebsd-questions@freebsd.org>
Subject:   RE: portsnap fetch errors
Message-ID:  <00fe01c88f59$729cf750$c5010c0a@wbt.wbtsystems.com>
In-Reply-To: <BDCFD9B395C4234F98409E10C78B8418B89214@ASHEVS011.mcilink.com>
References:  <BDCFD9B395C4234F98409E10C78B8418B89214@ASHEVS011.mcilink.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> 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 -- 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00fe01c88f59$729cf750$c5010c0a>