From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Frequent git repository corruptions Date: Wed, 26 Sep 2018 12:03:42 +0200 Message-ID: <87lg7ofudd.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g56fc-0004J0-O6 for help-guix@gnu.org; Wed, 26 Sep 2018 06:03:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g56fZ-0004Xn-Gj for help-guix@gnu.org; Wed, 26 Sep 2018 06:03:48 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:54633) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g56fZ-0004Wb-A1 for help-guix@gnu.org; Wed, 26 Sep 2018 06:03:45 -0400 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 27C4C1BF213 for ; Wed, 26 Sep 2018 10:03:43 +0000 (UTC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: "help-guix@gnu.org" --=-=-= Content-Type: text/plain Hi Guix! This might be unrelated to Guix but since I'm in the dark here, I figured I'd rather ask, maybe someone ran into a similar issue. For the past 2-4 weeks I've had at least 4 Git repositories that got corrupted for no apparent reason. Even a checkout that I had never touched. When it happens, errors show up on most git commands, usually `git diff` but sometimes also `git status`: --8<---------------cut here---------------start------------->8--- > git diff error: object file .git/objects/e0/1bd6c3c77309b13dab22f9e0de33576ede944f is empty fatal: unable to read e01bd6c3c77309b13dab22f9e0de33576ede944f --8<---------------cut here---------------end--------------->8--- A quick Internet search led me to realize there is little to do to recover the corrupted repository beside cloning it again. I haven't lost anything so far, knock on wood. My first thought was a hard drive issue. I have a NVMe SAMSUNG MZVLW256HEHP. I ran some smartmontools test, everything looks fine. But now that I think about it, I did not notice any other issue than within the .git folder, so maybe it's a... Git issue? Would it be possible that the Guix package of Git be the culprit? I run git 2.19.0 and a repo got corrupted just this morning. I use emacs-magit all the time. Not sure it's related considering that a repository I never edited also got corrupted. Anyone? -- Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlurWX4ACgkQm9z0l6S7 zH+8TQgAkpdSjFYkekMzGZoktRs37oXD1plplJ3kzX7wNF2ZEVno3epP/Sy5Qr7C r4sxv0Be1AWr/L586aCTZIWydHb2bLmWCR6gQCSTQGz93eMg5X5i6l7Y3gk4YM6f leNFaDk6sGwICz3plfXM3zsIoxTvqLXgQB2HkisT0d1IMixRnH5Vj7uGnIJShtKr Q9pVDkWLADwyF6gw36cU68dj0jgJaj9naj4Vkj96DiR2U/QOKfv4lc0HiM4pj6f+ UrDJMC15P8qgAiMF3I2xps0TbiYpD89vyMCrnC1pbACmecM7GEoUEAH4COuWFsCm bRD6rXR1TpJdvI57Z8639mUWB4CENg== =9vQ6 -----END PGP SIGNATURE----- --=-=-=--