Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2021 20:19:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255029] portsnap fetch update corruption
Message-ID:  <bug-255029-7788-t6lgK8fFjq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255029-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255029-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255029

--- Comment #19 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
I had this happen after comment #16.

# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Wed Apr 14 17:11:13 JST 2021 to Thu Apr 15 00:35:58 JST 2021.
Fetching 5 metadata patches. done.
Applying metadata patches... done.
Fetching 5 metadata files... /usr/sbin/portsnap: cannot open
b1b1cb6ba5967e44b1ece8d63f7cb3d01b2c03fcf6691129dcb1cd5b8fe6024f.gz: No such
file or directory
metadata is corrupt.

However, repeated fetching revived it.

# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Wed Apr 14 17:11:13 JST 2021 to Thu Apr 15 00:35:58 JST 2021.
Fetching 5 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 48 patches.=20
(48/48) 100.00%  done.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
done.
Applying patches...=20
done.
Fetching 1 new ports or files... /usr/sbin/portsnap: cannot open
9297cc3ab6173c7a7a1afe8103ffc52616f7652a3200e2965c275d2b8c0915fe.gz: No such
file or directory
snapshot is corrupt.
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Wed Apr 14 17:11:13 JST 2021 to Thu Apr 15 00:35:58 JST 2021.
Fetching 0 metadata patches. done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 0 patches.=20
 done.=20
done.
Applying patches...=20
done.
Fetching 1 new ports or files... done.
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Latest snapshot on server matches what we already have.
No updates needed.

What I think is
/var/db/portsnap directory should not be removed more than once. If you can
successfully retrieve the first large snapshot, don't delete it again.
Pause and fetch until you get "No updates needed." by portsnap cron or sleep
`jot -r 1 180 360` ; portsnap fetch

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255029-7788-t6lgK8fFjq>