From owner-freebsd-questions@freebsd.org Wed Apr 14 15:10:29 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2A1705DCB41 for ; Wed, 14 Apr 2021 15:10:29 +0000 (UTC) (envelope-from o1e9.cherkasov@yandex.com) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FL5WS0QgWz3N9m for ; Wed, 14 Apr 2021 15:10:27 +0000 (UTC) (envelope-from o1e9.cherkasov@yandex.com) Received: from iva5-234a6f14a091.qloud-c.yandex.net (iva5-234a6f14a091.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:e87:0:640:234a:6f14]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 59B0311A0940 for ; Wed, 14 Apr 2021 18:10:23 +0300 (MSK) Received: from iva5-057a0d1fbbd8.qloud-c.yandex.net (iva5-057a0d1fbbd8.qloud-c.yandex.net [2a02:6b8:c0c:7f1c:0:640:57a:d1f]) by iva5-234a6f14a091.qloud-c.yandex.net (mxback/Yandex) with ESMTP id wCvMaWrBRF-ANJqPstW; Wed, 14 Apr 2021 18:10:23 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1618413023; bh=6RbkyHUDR9UVJjUMIA/JFwCvqb1QK+96wEY8Nv3F/Cc=; h=In-Reply-To:From:Date:References:To:Subject:Message-ID:Reply-To; b=qcv66lbN0Z3DSs1vmXrkYNlam2VJ5e9dl4T8ykxNB6ESr/YJseYYligkzkfYdLCl3 A26Tti3e+u08KUn8pl0/tEhmqx+fCAMOjVom27nK6ciH9ITtI98Rap/ssLbJQBMzVh ar3KhJQrzEDeBzsEviAYcu2DubdAJ2F+taXAw8Iw= Received: by iva5-057a0d1fbbd8.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id gtPQtDazbp-AMKuFrZQ; Wed, 14 Apr 2021 18:10:22 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Reply-To: o1e9@member.fsf.org Subject: Re: Portsnap - Metadata is Corrupt To: freebsd-questions@freebsd.org References: <18416542-1031-43D6-9124-826F3D534D64@valar.uk.net> From: Oleg Cherkasov Message-ID: Date: Wed, 14 Apr 2021 17:10:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <18416542-1031-43D6-9124-826F3D534D64@valar.uk.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FL5WS0QgWz3N9m X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.com header.s=mail header.b=qcv66lbN; dmarc=pass (policy=none) header.from=yandex.com; spf=pass (mx1.freebsd.org: domain of o1e9.cherkasov@yandex.com designates 2a02:6b8:0:801:2::109 as permitted sender) smtp.mailfrom=o1e9.cherkasov@yandex.com X-Spamd-Result: default: False [-4.10 / 15.00]; HAS_REPLYTO(0.00)[o1e9@member.fsf.org]; FREEMAIL_FROM(0.00)[yandex.com]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0::/52]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yandex.com:+]; DMARC_POLICY_ALLOW(-0.50)[yandex.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a02:6b8:0:801:2::109:from]; FREEMAIL_ENVFROM(0.00)[yandex.com]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a02:6b8:0:801:2::109:from]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yandex.com:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a02:6b8:0:801:2::109:from:127.0.2.255]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2021 15:10:29 -0000 On 14.04.2021 16:53, Pete Long wrote: > 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. 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 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.