From nobody Wed Jul 26 15:57:57 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 4R9z7r6wBqz4pDW7 for ; Wed, 26 Jul 2023 15:58:00 +0000 (UTC) (envelope-from marcnarc@gmail.com) Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R9z7r4Vcqz4FrL for ; Wed, 26 Jul 2023 15:58:00 +0000 (UTC) (envelope-from marcnarc@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ua1-x930.google.com with SMTP id a1e0cc1a2514c-78caeb69125so470241.3 for ; Wed, 26 Jul 2023 08:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690387079; x=1690991879; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=70bsPjraCJ3/PT/q+YQe2bS08FihMUV1gOxfNHAfkN8=; b=cegLPeoZDFDs/ZsgHrQGSm+EPjSWbev8wk+TybYBg2JSy4pzgI7gFb95COs+V76Ulv DAE7QKxhos6keZuXszkW/dsZvJbadOiKPHprR1iwzNoMqvXiRHq6+V8iLnhYwdEXbzLE oJ78/6VmU1m2/uGzGj5gPTBGR0VFbNZy7DzCMgbfT2ZQfu7+VuRQDNZAzk09yBsAZlBO QbW8jy2i0fluvpjZ6xc9bZKHLPWt1+RhyKgOtus8/YkEDwzeUsUIfzbJ0NLct7MD8d+A jG3UR9s6O9nWj0N6B5na5ls6TRacoqrsuBUlPxmuZlMn04UtklUILYDyl+XXaQhtvany 2Gnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690387079; x=1690991879; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=70bsPjraCJ3/PT/q+YQe2bS08FihMUV1gOxfNHAfkN8=; b=aZutDp5zJafLE/HqK4V9UyGkQ9hgBvb5OEC/IBIaHr3vnAuBUk4ta8DdSkKsw35D4B 4mNEmq1PnQYtv4AhIEvn2H9kdxY7ibEbmTA27jVvfFi3NXJ3U4PLd8xBTFQBdEshLS1v wS15q10sEs2U0p81XpU0g8c8vHAaKr9Lamws1onXgpjM9MPNowSdINqlZUymyQrUFjOM CzYULHc2NQQsZHY/3VynNgFpWUQj4RkHofuTHBs0XjT/qE3bJoIQXDL+O3pP/KjHllQJ ucS+pyDVa3PUAgpHJdM9fQC3+RUSIZ3mLs54WMDDvf5a5im3caY0It9qesBmd/m5QkYB DTng== X-Gm-Message-State: ABy/qLY5t18773GNVA/MhwfKZqOhYcqu/4Cqj+mVdlLs+yhFoBBDGcqN CXHiTT3YyebShdkN5KVq4A4= X-Google-Smtp-Source: APBJJlFbjBndT8VMgY8oHWETuKdDXYN3KB+3QcaFkIHOsoyGx5J4LWpmbPREQuGJnYosEyQWtDze1Q== X-Received: by 2002:a05:6102:e4d:b0:443:5d36:4a75 with SMTP id p13-20020a0561020e4d00b004435d364a75mr1677090vst.31.1690387079317; Wed, 26 Jul 2023 08:57:59 -0700 (PDT) Received: from [192.168.222.18] ([107.159.92.130]) by smtp.gmail.com with ESMTPSA id u16-20020a0cf1d0000000b0063cfc393c0csm2499452qvl.86.2023.07.26.08.57.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jul 2023 08:57:58 -0700 (PDT) Message-ID: <80c39b3e-9013-22c0-286d-a0ccd05dc21a@gmail.com> Date: Wed, 26 Jul 2023 11:57:57 -0400 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: fatal: unable to read Content-Language: en-US To: "Bjoern A. Zeeb" , git@freebsd.org References: From: Marc Branchaud In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4R9z7r4Vcqz4FrL X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated Does the .git/gc.log file contain more info (I suspect not)? 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. (Don't forget to remove .git/gc.log before trying to run "git gc" manually!) M. On 2023-07-25 20:21, Bjoern A. Zeeb wrote: > Hi, > > on one of my trees I am getting: > > --- 8< 8< 8< ----------------------------------------------------------- > % git fetch freebsd > Auto packing the repository in background for optimum performance. > See "git help gc" for manual housekeeping. > warning: The last gc run reported the following. Please correct the root > cause > and remove .git/gc.log > Automatic cleanup will not be performed until the file is removed. > > fatal: unable to read b9cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7 > fatal: failed to run repack > --- 8< 8< 8< ----------------------------------------------------------- > > I am not concerned about the background gc but the fatal error about the > hash displayed. > > I have no clue how to solve this, nor do I know what object that hash > is/was. > > Does anyone know how to "repair" this wihtout having to blow away the > local copy with all its development branches (which would be rather > painful)? > > /bz > From nobody Mon Jul 31 01:23:53 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 4RDgc22bglz4pfTQ for ; Mon, 31 Jul 2023 01:28:17 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (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 4RDgWC1HzZz4NCR for ; Mon, 31 Jul 2023 01:24:06 +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 2a01:4f8:13b:39f::9f:25 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 90A198D4A142; Mon, 31 Jul 2023 01:23:57 +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 5063E5C3A877; Mon, 31 Jul 2023 01:23:56 +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 e6m4OtO0NKBo; Mon, 31 Jul 2023 01:23:55 +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 14B245C3A876; Mon, 31 Jul 2023 01:23:54 +0000 (UTC) Date: Mon, 31 Jul 2023 01:23:53 +0000 (UTC) From: "Bjoern A. Zeeb" To: Warner Losh cc: git@freebsd.org Subject: Re: fatal: unable to read In-Reply-To: Message-ID: <904p9s0n-6641-7494-q259-515pp4q313q1@yvfgf.mnoonqbm.arg> References: 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.992]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25:c]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[git@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_VIA_SMTP_AUTH(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: 4RDgWC1HzZz4NCR X-Spamd-Bar: --- On Tue, 25 Jul 2023, Warner Losh wrote: > Have you tried cloning the repo? % git clone freebsd-src freebsd-src.x Cloning into 'freebsd-src.x'... done. Updating files: 100% (94839/94839), done. % Seems to run through without trouble like that. Are you suggesting that I might just change my .git/config on the new one to point in the right diretions again and use the cloned one (also re-establishing the worktrees)? /bz -- Bjoern A. Zeeb r15:7 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 From nobody Mon Jul 31 12:34:29 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 4RDyNs6k54z4q5dT for ; Mon, 31 Jul 2023 12:34:33 +0000 (UTC) (envelope-from marcnarc@gmail.com) Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RDyNm5B41z40Bf for ; Mon, 31 Jul 2023 12:34:32 +0000 (UTC) (envelope-from marcnarc@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-403cb525738so35221571cf.2 for ; Mon, 31 Jul 2023 05:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690806871; x=1691411671; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hga19ZZxvcnQzj5RZAAby36TLCEZoj/QYxqEyBor4UM=; b=osm6PrX43EifYrX7L0QTgcdnbtPM0TfS9RiiRN0ajltSdYRiPHopWRNu6o0bz47Q6N FcirhuiV5jhU3rF6UBDgmFROB/L0H2kZ1XgL2BwRaEUtoCNzpVXXqOqz/gyJQGqd3zaJ e899Ic9AVUfJT5tqtelmauBG7/PF4Bj+0ES6GeEV8LQQDRl9FO4lL6EzcUd1aiBPqRWP iALPTfIAsZSK1VmkmQZaTdWlub5SSwCP3ZFjLEcd4+JsUUTW1aMVd3ont7ts+dfdrYeI 0Xpo8U9L/aa9HlgxNxkOqRTZwpdFiJpmPZK+LlFK178gk60tUBM1WOBEnq2rDEAgwyXP t5cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690806871; x=1691411671; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hga19ZZxvcnQzj5RZAAby36TLCEZoj/QYxqEyBor4UM=; b=JRxq8kUMnWCk3kuzHZK2YXZnSSSbS72KrvVO7LAaxna3/VhiXHdYALFSaN4Hp/7y2K BvYSb0yOayHv0hiRV+rtbcdj3R+zexuIqPUFI45+FTUQoFyT87CdMBbsRzA7xTsuG0Nb UaKhPeBmA3CLxsYPFvMrGC114jl8tcehqo/gZr3pLa3CjNaCyk7oKw3LnVHoe3wRpWNk 8YPkFEfjAbcQfTzBkFZoxqqsyMbBGE9u76K7FOTdOXfbWqVIdg12xFfUNhBJJfYu6O8I 4m4M5v141ABtPFN6GkortXkHtYTl7wBujp880XpDKX7yLCNAH8Z3t/9p2hIyTYoX5klT WvzA== X-Gm-Message-State: ABy/qLZxX//sJi+hD/BnQ8IQPde3sBKhUnd3vfZniNO8OiMLM310tc6p eRgbiNl73tdexc2vPtfgzCCmeVg0rcMmzQ== X-Google-Smtp-Source: APBJJlHVtTQpcHhHEMTSKQ6K0n41iM53bN1HuqR63G1uTTp7buzgHwwMCbz7F1/MTDkufsRyWKcZug== X-Received: by 2002:a05:622a:3c7:b0:403:ecfe:2d88 with SMTP id k7-20020a05622a03c700b00403ecfe2d88mr14691526qtx.61.1690806871062; Mon, 31 Jul 2023 05:34:31 -0700 (PDT) Received: from [192.168.222.18] ([107.159.92.130]) by smtp.gmail.com with ESMTPSA id h10-20020ac85e0a000000b00406bf860430sm3453124qtx.11.2023.07.31.05.34.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Jul 2023 05:34:30 -0700 (PDT) Message-ID: <22663d4f-df74-e343-c182-64705ec59f5b@gmail.com> Date: Mon, 31 Jul 2023 08:34:29 -0400 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: fatal: unable to read Content-Language: en-US To: "Bjoern A. Zeeb" Cc: git@freebsd.org References: <80c39b3e-9013-22c0-286d-a0ccd05dc21a@gmail.com> From: Marc Branchaud In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4RDyNm5B41z40Bf X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On 2023-07-30 21:21, Bjoern A. Zeeb wrote: > > freebsd-src% find . \! -user bz > freebsd-src% ls -l .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7 > ls: .git/objects/b9/cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7: No such file > or directory So it seems like the cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7 object is really missing and not just inaccessible. (Note that Git also stores objects in .pack files -- see "git help pack-objects" -- but I'm figuring those files are also accessible.) To try to figure out what is referring to object cdc058e6eb1b3d8b5e29ad9b911d3da98f65a7, try running git fsck --name-objects --connectivity-only --no-dangling M. From nobody Wed Aug 2 21:43:09 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 4RGQTK6vnqzZpBT for ; Wed, 2 Aug 2023 21:43:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RGQT84LNbz3hX7 for ; Wed, 2 Aug 2023 21:43:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20221208.gappssmtp.com header.s=20221208 header.b=vVKSM5rm; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::536) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-522c9d388d2so250900a12.3 for ; Wed, 02 Aug 2023 14:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20221208.gappssmtp.com; s=20221208; t=1691012601; x=1691617401; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5TRILcr6DRC+UGH122iLi24EvO1C0D6YXtKwM++y6eI=; b=vVKSM5rmzu14n+catm3HDzRvwdlNeX/1ejxOz/vnlwZBjdIcaUXB9asfIZ6vq7nOcc yXM5r18GhGRl245k1Tik5tiXciqZPNR1YwhvLaJw5i4frJpAF5cHafEMx0mgdvemWCkD /PL6Ir0WtHuYXgQIejv+i9Yxuei3pdR5BMu+YGhWKDKYli7jEU8jIr5X5okyQnj+XQZJ rSWsLVORE6/aLSUUSwP0ANvhgM/kHvEMu0oSgwzkmdtHBJaRkXh15+NLcH7kRvIVtotv iWfavDkB1mSFoorkBLd9+7rz9JewRg+6HILqBr6iwRu3MZsoYPhYxKVG789zXzWuGXyg JM6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691012601; x=1691617401; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5TRILcr6DRC+UGH122iLi24EvO1C0D6YXtKwM++y6eI=; b=SP8Ql/yiEYUaprnii9ey+CSd0QUIfqXU8jKWwMJf1xoMr8NhsTYXPn4fak6YdNUbXL nb/hIbhShb7FF2ZKJ+0B+UQ3RRM7s7ov5mMk4gzXZTf21+g2SlJrXnmbxv3lVaRvvxQF Erl4osf7DoTRJmXiuFRCT1+Xj4sy7PUkpS0lQTUSqAHe+Jv3/35GMOlmfpJGtvNDchB7 Bhvq8AXuwtsrENEGlQog2q6F9JAyxwWIp9zLBpDq5kB8MS35mNUCef6ZgZfWDEQTBFtC fuGFtQABBLQXxSShMJ2vNNaXYIu3OW3k08nzrDtaf6UCF0KOzzgnaKeO6oCvqkNXdwqx f3nQ== X-Gm-Message-State: ABy/qLb3YDXKe1ymzvHskYXKizZIeAN8RvQ19f/JdcdE5c7SQ4khgDkk sG7TS49SKhJn2rqGUq3kimpfanWOOYT7ercNS6+GAQhkFfAQ+WVrjk4= X-Google-Smtp-Source: APBJJlHCVdJLBS8P1U0Z9B3lLDqDV5jhSny6q5v5/mEfVeiF21tzr+6fyz/dzL/KdgCOVNCJkcdC0ZJGyzu5ZhMUPkw= X-Received: by 2002:aa7:c991:0:b0:522:2aee:6832 with SMTP id c17-20020aa7c991000000b005222aee6832mr6105947edt.9.1691012601080; Wed, 02 Aug 2023 14:43:21 -0700 (PDT) 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 References: <904p9s0n-6641-7494-q259-515pp4q313q1@yvfgf.mnoonqbm.arg> In-Reply-To: <904p9s0n-6641-7494-q259-515pp4q313q1@yvfgf.mnoonqbm.arg> From: Warner Losh Date: Wed, 2 Aug 2023 15:43:09 -0600 Message-ID: Subject: Re: fatal: unable to read To: "Bjoern A. Zeeb" Cc: git@freebsd.org Content-Type: multipart/alternative; boundary="00000000000065fdec0601f78d5b" X-Rspamd-Queue-Id: 4RGQT84LNbz3hX7 X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20221208.gappssmtp.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[git@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::536:from]; DKIM_TRACE(0.00)[bsdimp-com.20221208.gappssmtp.com:+]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; PREVIOUSLY_DELIVERED(0.00)[git@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] --00000000000065fdec0601f78d5b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jul 30, 2023 at 7:23=E2=80=AFPM Bjoern A. Zeeb < bzeeb-lists@lists.zabbadoz.net> wrote: > On Tue, 25 Jul 2023, Warner Losh wrote: > > > Have you tried cloning the repo? > > % git clone freebsd-src freebsd-src.x > Cloning into 'freebsd-src.x'... > done. > Updating files: 100% (94839/94839), done. > % > > Seems to run through without trouble like that. Are you suggesting that > I might just change my .git/config on the new one to point in the right > diretions again and use the cloned one (also re-establishing the > worktrees)? > I'm saying that if Marc and you can't work out why things are bad, cloning should preserve all the branches and you won't lose any work. You could script recreating the work trees, though that's a lot of disk and gets tricky if you like to stash changes... Worst case, though, is you'd have to clone the upstream repo and the fetch branches one at a time until you found the one causing the error (well, you'd fetch the rest, but then you'd know the problem child at least). I suspect it's a dangling reference somewhere that didn't get GC'd quite right and that it's an edge case in cleanup, but fixing botched repos is way abov= e my pay grade. Good luck and hope it all works out. And if there's anything I can do to help further, please let me know. Warner --00000000000065fdec0601f78d5b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Jul 30, 2023 at 7:23=E2=80=AF= PM Bjoern A. Zeeb <bze= eb-lists@lists.zabbadoz.net> wrote:
On Tue, 25 Jul 2023, Warner Losh wrote:

> Have you tried cloning the repo?

% git clone freebsd-src freebsd-src.x
Cloning into 'freebsd-src.x'...
done.
Updating files: 100% (94839/94839), done.
%

Seems to run through without trouble like that.=C2=A0 Are you suggesting th= at
I might just change my .git/config on the new one to point in the right
diretions again and use the cloned one (also re-establishing the
worktrees)?

I'm saying that if Marc= and you can't work out why things are bad, cloning
should pr= eserve all the branches and you won't lose any work. You could
script recreating the work trees, though that's a lot of disk and get= s tricky
if you like to stash changes...

Worst case, though, is you'd have to clone the upstream repo and the f= etch
branches one at a time until=C2=A0you found the one causing = the error (well, you'd
fetch the rest, but then you'd kno= w the problem child at least).

I suspect it's = a dangling reference somewhere that didn't get GC'd quite right
and that it's an edge case in cleanup, but fixing botched repos = is way above
my pay grade.

Good luck and= hope it all works out. And if there's anything I can do to help
<= div>further, please let me know.

Warner
--00000000000065fdec0601f78d5b--