portsnap does not work without direct connection to the Internet

Victor Sudakov vas at mpeks.tomsk.su
Sun Feb 2 15:06:10 UTC 2014


Colleagues,

There seems to be a problem with portsnap when it has no direct
connection to the Internet. I have a box which has access to the
Internet only from one of its secondary IP addresses. What I end up
all the time with is a partial failure:

[root at fw ~] printenv | grep -i pro
[root at fw ~]
[root at fw ~] rm -rf /var/db/portsnap/ ; mkdir /var/db/portsnap/
K[root at fw ~] env FETCH_BIND_ADDRESS=217.29.84.225 portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found.
Fetching public key from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Sun Feb	2 07:10:44 NOVT 2014:
f9cbef275fa81aa3228301bef94aa55fc6f10335a454e0100% of	69 MB  224 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Sun Feb  2 07:10:44 NOVT 2014 to Sun Feb	2 21:43:49 NOVT 2014.
Fetching 4 metadata patches. done.
Applying metadata patches... done.
Fetching 4 metadata files...
/usr/sbin/portsnap: cannot open 41b17186d7b48c4c840e416dced7ccee5fe20e6fd67f5bcbbbdad3373ceb6fa7.gz: No such file or directory
metadata is corrupt.
[root at fw ~]


So it does download some things but not all things.  Can it be the
case that some parts of portsnap do not use fetch(1) to download
things?

There seems to be a related problem with freebsd-update, at least it
fails when HTTP_PROXY is configured with login and password, like 
"setenv HTTP_PROXY http://user:pass@my.proxy.ru:3128".



-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov at sibptus.tomsk.ru


More information about the freebsd-questions mailing list