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 >