Git error: object not found when running guix pull

  • Done
  • quality assurance status badge
Details
5 participants
  • Julien Lepiller
  • Ludovic Courtès
  • Mayeul Cantan
  • Mayeul Cantan
  • zimoun
Owner
unassigned
Submitted by
Mayeul Cantan
Severity
normal
M
M
Mayeul Cantan wrote on 22 Apr 2020 15:21
(address . bug-guix@gnu.org)
089adaa4-3bce-a353-adb4-5eb6862489cb@cantan.eu
Hello there,

I was running guix pull, when a short-cirguit in my power supply cable
turned my old laptop off.

Having fixed the hardware issue, I am left with the following software
problem when running `guix pull` on my user session:

Toggle quote (2 lines)
> guix pull: error: Git error: object not found - no match for id (aa78c596c9eaae946f779d8fa3c4125d08187648)

mbakke on #guix:matrix.org advised me to report here, I hope that's useful.

Meanwhile, I'd at least like the path of that git repository so that I
can try to fix things myself :)

Have a nice day, thank you for your time and software.

Mayeul Cantan
J
J
Julien Lepiller wrote on 22 Apr 2020 17:26
D3686C16-E5D0-42DC-9BF5-D17EB455282E@lepiller.eu
Le 22 avril 2020 09:21:38 GMT-04:00, Mayeul Cantan <oss+guix@mayeul.net> a écrit :
Toggle quote (21 lines)
>Hello there,
>
>I was running guix pull, when a short-cirguit in my power supply cable
>turned my old laptop off.
>
>Having fixed the hardware issue, I am left with the following software
>problem when running `guix pull` on my user session:
>
>> guix pull: error: Git error: object not found - no match for id
>(aa78c596c9eaae946f779d8fa3c4125d08187648)
>
>mbakke on #guix:matrix.org advised me to report here, I hope that's
>useful.
>
>Meanwhile, I'd at least like the path of that git repository so that I
>can try to fix things myself :)
>
>Have a nice day, thank you for your time and software.
>
>Mayeul Cantan

It should be somewhere in ~/.cache/guix
L
L
Ludovic Courtès wrote on 22 Apr 2020 23:07
(name . Mayeul Cantan)(address . oss+guix@mayeul.net)(address . 40769@debbugs.gnu.org)
87ftcvqlff.fsf@gnu.org
Hi Mayeul,

Mayeul Cantan <oss+guix@mayeul.net> skribis:

Toggle quote (8 lines)
> I was running guix pull, when a short-cirguit in my power supply cable
> turned my old laptop off.
>
> Having fixed the hardware issue, I am left with the following software
> problem when running `guix pull` on my user session:
>
>> guix pull: error: Git error: object not found - no match for id (aa78c596c9eaae946f779d8fa3c4125d08187648)

‘guix pull’ maintains Git clones under ~/.cache/guix/checkouts.
Probably the hardware issue led to a corrupt checkout there, hence the
error above. You fix that by running:

rm -rf ~/.cache/guix/checkouts

before running ‘guix pull’ again.

HTH!

Ludo’.
Z
Z
zimoun wrote on 23 Apr 2020 15:15
(name . Ludovic Courtès)(address . ludo@gnu.org)
CAJ3okZ2aLvbdGaDR5r7DGxUJ20ug89XqJhx0zje4Ex86J8PL6A@mail.gmail.com
Hi,

On Wed, 22 Apr 2020 at 23:08, Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (2 lines)
> ‘guix pull’ maintains Git clones under ~/.cache/guix/checkouts.

What is the naming scheme? Especially how is computed the hash of the
folder name?

And not relevant considering this bug: could the first commit after
the big overhaul (inferior) be tagged? i.e., all the commits "after"
this tag are reachable with say "guix time-machine".


Cheers,
simon
L
L
Ludovic Courtès wrote on 27 Apr 2020 14:55
control message for bug #40769
(address . control@debbugs.gnu.org)
87mu6xw0iz.fsf@gnu.org
tags 40769 notabug
close 40769
quit
M
M
Mayeul Cantan wrote on 17 May 2020 00:58
Re: bug#40769: Git error: object not found when running guix pull
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 40769@debbugs.gnu.org)
f3d033864a964b9ac5dffd3186005d7c@cantan.eu
Toggle quote (8 lines)
> ‘guix pull’ maintains Git clones under ~/.cache/guix/checkouts.
> Probably the hardware issue led to a corrupt checkout there, hence the
> error above. You fix that by running:
>
> rm -rf ~/.cache/guix/checkouts
>
> before running ‘guix pull’ again.

Hi Ludo,

Sory for not answering earlier. That helped me a lot! Thank you very
much.

Cheers,

Mayeul
M
M
Mayeul Cantan wrote on 17 May 2020 15:17
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 40769@debbugs.gnu.org)
0a70117a280d8a230bb9df58db3f3c70@mayeul.net
Toggle quote (9 lines)
> ‘guix pull’ maintains Git clones under ~/.cache/guix/checkouts.
> Probably the hardware issue led to a corrupt checkout there, hence the
> error above. You fix that by running:
>
> rm -rf ~/.cache/guix/checkouts
>
> before running ‘guix pull’ again.


Hi Ludo,

Sory for not answering earlier. That helped me a lot! Thank you very
much.

Cheers,

Mayeul
?
Your comment

This issue is archived.

To comment on this conversation send an email to 40769@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 40769
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch