metadata corrupt ?!

okey, i saw somepost with problem portsnaping inside of jail
i fix this
editing
/etc/make.conf

adding

Code:
PORTSDIR=/var/ports


with my /etc/make.conf as:

Code:
WRKDIRPREFIX=           /var/ports
DISTDIR=                /var/ports/distfiles
PACKAGES=               /var/ports/packages
INDEXDIR=               /var/ports

sorry 4 bump. But searching for my problem, i fix for myself, and how not see reply for the jail portsnap, i put it for someone in futher problem.
 
I try to portsnap fetch FreeBSD 7.4 for several days now and I get always error at metadata files
Code:
... "cannot open... no such file or directory... metadata is corrupt"

I do always delete /var/db/portsnap, and as I have noticed, the hash for the missing file is not always the same.

Any ideas?
 
Hi all. I also give error
Code:
mamuka# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... none found.
Fetching snapshot tag from portsnap.FreeBSD.org... done.
Fetching snapshot metadata... done.
Updating from Wed Dec 14 11:03:14 PETT 2011 to Thu Dec 15 10:16:49 PETT 2011.
Fetching 4 metadata patches. done.
Applying metadata patches... done.
Fetching 4 metadata files... /usr/sbin/portsnap: cannot open 18ecdb55c6c56d64bef878dad4732c82c290ec1188c0c262269a4b24e0df8268.gz: No such file or directory
metadata is corrupt.
There are multiple reason for this problem. Many people advice to remove /var/db/portsnap directory, but this is not decision, if you are using proxy. In my case, I've got this error when run portsnap via proxy. And I find solution on http://forum.sysadmins.su/index.php?showtopic=20449. The problem will occur if you set http_proxy variable instead of setting both HTTP_PROXY and HTTP_PROXY_AUTH. You could see it with run
Code:
portsnap --debug fetch
this is place with error
Code:
Applying metadata patches... done.
Fetching 4 metadata files...
/usr/libexec/phttpget portsnap.FreeBSD.org f/18ecdb55c6c56d64bef878dad4732c82c290ec1188c0c262269a4b24e0df8268.gz
 f/bbe749ca16b778d8be945f3e7bfc4f18017bb76cd5fe1d53e4def53dcac239a5dff0679bcce77c24abc7746fa0d9c1643c8.gz
 f/ee040d95aadd43543ea8cc011f48597e8382e437987a8d168be03ca41ab2589f.gz
phttpget: [B]host = hz, port = strongpassword@192.168.1.25:3128[/B]: servname not supported for ai_socktype
/usr/sbin/portsnap: cannot open 18ecdb55c6c56d64bef878dad4732c82c290ec1188c0c262269a4b24e0df8268.gz: No such file or directory
metadata is corrupt.


and in the part of source code of phttpget
Code:
env_HTTP_PROXY = getenv("HTTP_PROXY");
		if (env_HTTP_PROXY == NULL)
				env_HTTP_PROXY = getenv("http_proxy");
		if (env_HTTP_PROXY != NULL) {
				if (strncmp(env_HTTP_PROXY, "http://", 7) == 0)
						env_HTTP_PROXY += 7;
				p = strchr(env_HTTP_PROXY, '/');
				if (p != NULL)
						*p = 0;
				p = strchr(env_HTTP_PROXY, ':');
				if (p != NULL) {
						*p = 0;
						proxyport = p + 1;
				} else
						proxyport = "3128";
		}

sorry for my english and big thanx to Drunky from forum.sysadmins.su
 
Back
Top