Discussion:
Portsnap - Metadata is Corrupt
Pete Long
2021-04-14 14:53:29 UTC
Permalink
Hi all,

Sorry if this is something you've recently discussed but I was wondering if
anyone else is seeing an issue with updating the ports tree using portsnap.

I'm on 12.2-RELEASE-p6 and would ideally like to update the ports so I can
install the latest SpamAssassin program. Apparently the one I have in my
ports now won't build due to a serious vulnerability.

Here's the command and output I use and see:

# portsnap auto
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Wed Apr 14 01:09:41 BST 2021:
0b344cd7869783c8d72504314f54f27b9ac6225ce21fae 88 MB 26 kBps 49m08s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Wed Apr 14 01:09:41 BST 2021 to Wed Apr 14 14:28:53 BST 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.


I should add that my connection to the FreeBSD servers is incredibly and
uncharacteristically slow at the moment. It could be at my end but generally
I'm getting almost the bandwidth for which I've subscribed.

Thanks.

Pete.
Oleg Cherkasov
2021-04-14 15:10:22 UTC
Permalink
Post by Pete Long
Hi all,
Sorry if this is something you've recently discussed but I was wondering if
anyone else is seeing an issue with updating the ports tree using portsnap.
I'm on 12.2-RELEASE-p6 and would ideally like to update the ports so I can
install the latest SpamAssassin program. Apparently the one I have in my
ports now won't build due to a serious vulnerability.
# portsnap auto
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
0b344cd7869783c8d72504314f54f27b9ac6225ce21fae 88 MB 26 kBps 49m08s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Wed Apr 14 01:09:41 BST 2021 to Wed Apr 14 14:28:53 BST 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.
The last time I had a similar issue the fix was to remove the content of
/var/db/portsnap/. In case you do not have any custom ports it is easy
to fix the problem. Make a copy of your customized ports and then merge
it after a successful update.
Post by Pete Long
I should add that my connection to the FreeBSD servers is incredibly and
uncharacteristically slow at the moment. It could be at my end but generally
I'm getting almost the bandwidth for which I've subscribed.
It seems there are complaints in the list regarding slow download using
freebsd-update. At the moment the update servers may be very popular due
to 13.0-RELEASE or you have another issue with your network.
Pete Long
2021-04-14 15:18:54 UTC
Permalink
[...]
Post by Oleg Cherkasov
The last time I had a similar issue the fix was to remove the content of
/var/db/portsnap/. In case you do not have any custom ports it is easy to
fix the problem. Make a copy of your customized ports and then merge it
after a successful update.
Post by Pete Long
I should add that my connection to the FreeBSD servers is incredibly and
uncharacteristically slow at the moment. It could be at my end but
generally I'm getting almost the bandwidth for which I've subscribed.
It seems there are complaints in the list regarding slow download using
freebsd-update. At the moment the update servers may be very popular due
to 13.0-RELEASE or you have another issue with your network.
Thanks for the quick response Oleg. I should've added that I've tried
removing the contents of /var/db/portsnap and reissued the portsnap auto
command; somewhat lacking in patience I didn't wait for it to finish as the
speed was dial-up-esque.

I'll give that another go and see what happens.

Thanks.

Pete.
Peter Boosten via freebsd-questions
2021-04-14 15:34:47 UTC
Permalink
Post by Pete Long
Thanks for the quick response Oleg. I should've added that I've tried
removing the contents of /var/db/portsnap and reissued the portsnap auto
command; somewhat lacking in patience I didn't wait for it to finish as the
speed was dial-up-esque.
I'll give that another go and see what happens.
You’re not the only one having this issue.

Peter


It never hurts to help
- Eek the Cat!






Peter


It never hurts to help
- Eek the Cat!
Pete Long
2021-04-14 16:14:15 UTC
Permalink
Post by Pete Long
[...]
Post by Oleg Cherkasov
The last time I had a similar issue the fix was to remove the content of
/var/db/portsnap/. In case you do not have any custom ports it is easy to
fix the problem. Make a copy of your customized ports and then merge it
after a successful update.
I'll give that another go and see what happens.
Another go was given and unfortunately this was the result:

# rm -Rf /var/db/portsnap/*
# date
Wed Apr 14 16:25:01 BST 2021
# portsnap auto
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching public key from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Wed Apr 14 01:09:41 BST 2021:
0b344cd7869783c8d72504314f54f27b9ac6225ce21fae 88 MB 44 kBps 34m18s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Wed Apr 14 01:09:41 BST 2021 to Wed Apr 14 16:04:04 BST 2021.
Fetching 5 metadata patches. done.
Applying metadata patches... done.
Fetching 5 metadata files... gunzip: (stdin): unexpected end of file
metadata is corrupt.
# date
Wed Apr 14 17:05:09 BST 2021

(I do solemly swear I issued the date command right after the last line of
output)

Pete.
John Levine
2021-04-14 15:24:22 UTC
Permalink
Post by Pete Long
Thanks for the quick response Oleg. I should've added that I've tried
removing the contents of /var/db/portsnap and reissued the portsnap auto
command; somewhat lacking in patience I didn't wait for it to finish as the
speed was dial-up-esque.
I'll give that another go and see what happens.
Freebsd recently moved its source archives to git, so you'll probably find
that gitup works better than portsnap to keep your sources up to date.
--
Regards,
John Levine, ***@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
Ed Maste
2021-04-14 18:20:44 UTC
Permalink
Post by Pete Long
Hi all,
Sorry if this is something you've recently discussed but I was wondering if
anyone else is seeing an issue with updating the ports tree using portsnap.
I believe that the portsnap servers are just overloaded after a few
days of missing updates following the git transition.

Loading...