From owner-freebsd-questions@FreeBSD.ORG Fri May 15 15:14:26 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9F7B73AE for ; Fri, 15 May 2015 15:14:26 +0000 (UTC) Received: from homiemail-a79.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by mx1.freebsd.org (Postfix) with ESMTP id 79CDF18D6 for ; Fri, 15 May 2015 15:14:25 +0000 (UTC) Received: from homiemail-a79.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTP id CD83D7D4076; Fri, 15 May 2015 08:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ozzmosis.com; h=date:from :to:cc:subject:message-id:references:mime-version:content-type: in-reply-to; s=ozzmosis.com; bh=F4ck9NONTMnhtOzL/HvxJORJZjI=; b= YJ192nhvYXKWjNr0S+qdZ/v+2H+/NEXvSn0c/6h9lf3IzqRCOMfAvB2yDq+vU9pM A6y0lR2HThH387kZc5iae9vTPql/b7qd38km0ai3+GoE9omDBAGcG2uBnZ/CLcXl r31FP/vqFQciiyk/xInSSaE/MdYFEAzVU+mfdxICR5U= Received: from blizzard.ozzmosis.com (203-158-38-44.dyn.iinet.net.au [203.158.38.44]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: relay@ozzmosis.com) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTPSA id 904607D4074; Fri, 15 May 2015 08:14:19 -0700 (PDT) Received: by blizzard.ozzmosis.com (Postfix, from userid 1001) id 6358818D; Sat, 16 May 2015 01:14:17 +1000 (AEST) Date: Sat, 16 May 2015 01:14:17 +1000 From: andrew clarke To: Avinash Sonawane Cc: freebsd-questions@freebsd.org Subject: Re: portsnap fetch : "snapshot is corrupt" Message-ID: <20150515151417.GA84630@ozzmosis.com> References: <20150515013141.GB78765@ozzmosis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2015 15:14:26 -0000 On Fri 2015-05-15 19:18:20 UTC+0530, Avinash Sonawane (rootkea@gmail.com) wrote: > On Fri, May 15, 2015 at 7:01 AM, andrew clarke wrote: > > On Thu 2015-05-14 20:13:53 UTC+0530, Avinash Sonawane (rootkea@gmail.com) wrote: > > > >> Hello! > >> > >> I am using FreeBSD 10.1 RELEASE > >> > >> Whenever I try to fetch the portsnap it says "snapshot is corrupt". I > >> rmed `/var/db/portsnap/*` to start from fresh but then too when I > >> issue `portsnap fetch` it says the same. > >> > >> Here is the complete error message : http://pastebin.com/AiLn8QdE > >> > >> Anybody has any idea how do I get that missing gz? > > > > I've noticed this happen in the past on the odd occasion. I ruled out > > hardware error on my machine and put it down to some sort of > > corruption (or more likely syncronisation problem) with the snapshot > > server(s). If I waited a while (a few hours) then re-ran portsnap the > > errors went away. > > Same here. Now I can fetch the portsnap without any "sync" errors. > > But from browsing the web and from the mailing list archives I found > this same problem to be quite frequent and having the only apparent > solution "just to wait few hours" > > Is this specific issue is bound to happen? I mean it seems as if > community has adjusted with it. Is this "sync" issue is inherent in > portsnap design? I think the problem is more down to how the portsnap servers are synchronised, not portsnap itself. The person(s) responsible for the portsnap servers are probably aware of the issue but don't see a fix as very high priority. Or maybe the problem is difficult to replicate. There may be a PR on Bugzilla for it if you do a search. I probably see portsnap errors about once a year, running it a few times a day, and they do fix themselves, so it's not really a big deal. On the other hand it can cause the local sysadmin to wonder if the problem is on their system, which does cause unnecessary anxiety and time wastage. I've noticed the freebsd-update utility is similarly occasionally prone to oddball errors that can make you scratch your head a bit, but usually end up being mostly harmless. I think you were just unlucky, but if it really bothers you, you could switch to using SVN instead for ports tree updates, although I think there may be some caveats in doing that. (disk space?) Myself, I just stick with portsnap. (Actually, portsnap run from Poudriere.) > I am sorry but I am new to BSD world (Just completed a week!) so have > no idea how things work here. Welcome :-) > Thank you. > > Avinash Sonawane (RootKea) > PICT, Pune > http://rootkea.wordpress.com Regards Andrew