From nobody Mon Jul 31 01:21:41 2023 X-Original-To: git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RDgjb36ffz4pf2t for ; Mon, 31 Jul 2023 01:32:40 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RDgSf4GlMz4MRN for ; Mon, 31 Jul 2023 01:21:54 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net; dmarc=none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id AA6818D4A142; Mon, 31 Jul 2023 01:21:45 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id A68315C3A877; Mon, 31 Jul 2023 01:21:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id 9Fd8z1SIomn7; Mon, 31 Jul 2023 01:21:42 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 67D0D5C3A876; Mon, 31 Jul 2023 01:21:42 +0000 (UTC) Date: Mon, 31 Jul 2023 01:21:41 +0000 (UTC) From: "Bjoern A. Zeeb" To: Marc Branchaud cc: git@freebsd.org Subject: Re: fatal: unable to read In-Reply-To: <80c39b3e-9013-22c0-286d-a0ccd05dc21a@gmail.com> Message-ID: References: <80c39b3e-9013-22c0-286d-a0ccd05dc21a@gmail.com> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spamd-Result: default: False [-3.29 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.99)[-0.988]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[git@freebsd.org]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4RDgSf4GlMz4MRN X-Spamd-Bar: --- On Wed, 26 Jul 2023, Marc Branchaud wrote: Hi, > Does the .git/gc.log file contain more info (I suspect not)? fatal: unable to read b9cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7 fatal: failed to run repack > I've seen file ownership/permission problems if one sometimes runs git > commands as different users (particularly root and not-root) in the same > repo. > > So, first try to "chown -R me:mygroup ." at the top of your Git repo, to make > sure you own all the files, particularly the ones in .git/. > > I believe the gc operation is trying to read a file named > .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7 > (note the / after "b9"). > > If the chown doesn't fix things, take a look in .git/objects/b9/ and see > what's up with the files there. The b9 directory itself might also have bad > juju. freebsd-src% find . \! -user bz freebsd-src% ls -l .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7 ls: .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7: No such file or directory freebsd-src% ls -la .git/objects/b9 total 186 drwxr-xr-x 2 bz bz 21 Jun 26 09:17 . drwxr-xr-x 260 bz bz 260 Jul 26 00:22 .. -r--r--r-- 1 bz bz 365 Jan 18 2023 054fb1f0450b284b2e33b6dcf8a9b5b611371e -r--r--r-- 1 bz bz 20979 Sep 21 2022 1350e39aee2ce395263f19622fb48c3e84e904 -r--r--r-- 1 bz bz 53 Oct 17 2022 30c1e8d4aaaf2f08f21b45618d6dff00285eec -r--r--r-- 1 bz bz 479 Oct 17 2022 33183d37693a698d23f7c4fc74b8ca6f34b3cd -r--r--r-- 1 bz bz 4846 Oct 22 2022 372f97998495f907249ab314fc7b6caa5acf72 -r--r--r-- 1 bz bz 4477 Feb 17 23:42 67a3be2a4f2db8b67d0f020be3ce2681b09d5c -r--r--r-- 1 bz bz 367 Jun 26 09:17 72981ee4d7c649842f0d1577419bf0a63d5a44 -r--r--r-- 1 bz bz 76 Jan 12 2023 92c9340bf5edb01b18d7c13bc33eeaff40c18f -r--r--r-- 1 bz bz 4784 Oct 17 2022 9474a6e9d5b652fe5735f51c29140aacc2031e -r--r--r-- 1 bz bz 1434 Oct 22 2022 99f0fb4a36d81d5d23340fa98201739a046c8c -r--r--r-- 1 bz bz 1436 Sep 21 2022 9ae940c337cb46ed1d5fc8e52414c9153c4055 -r--r--r-- 1 bz bz 1094 Jan 18 2023 9d03a186937745ece9035f45f848ea1acf0aab -r--r--r-- 1 bz bz 439 Feb 17 21:20 a793d4d654e73672c75df4e9f935a41f65c701 -r--r--r-- 1 bz bz 1250 Feb 17 21:49 b4e371476259cb150d8c692eb492b32bc72ad4 -r--r--r-- 1 bz bz 266 Apr 2 22:25 bb1adc09948d081873493d4ed2504dd5833b78 -r--r--r-- 1 bz bz 259 Jun 26 09:14 d2448463f2e6d4a2cd5d14514fa530e6f92d64 -r--r--r-- 1 bz bz 360 Sep 25 2022 ed8076b54d71cf3903733888238d69e01776e4 -r--r--r-- 1 bz bz 2433 Sep 21 2022 ef6575c99a2d2e889a84853c97a2572c7e8f11 -r--r--r-- 1 bz bz 1437 Sep 21 2022 fb98f6f4e70fe292d7c84a11eebbcbe62c20e4 freebsd-src% find . -name "*cdc058*" freebsd-src% Not sure what to make out of all that... -- Bjoern A. Zeeb r15:7