unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Fixing git permissions after sudo guix pull
@ 2024-09-01 12:15 John
  2024-09-01 12:51 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 3+ messages in thread
From: John @ 2024-09-01 12:15 UTC (permalink / raw)
  To: help-guix

Hi,

I ran "sudo guix pull" without thinking it through. Now when I run the command without sudo it gives me the error below. I assume I need to fix the ownership of a git repo does anybody know where that might be?

guix pull: error Git error: incorrect data check

Also no amount of --debug or --verbose give much more info is there a better way to see what guix is doing?

Thanks

John


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fixing git permissions after sudo guix pull
  2024-09-01 12:15 Fixing git permissions after sudo guix pull John
@ 2024-09-01 12:51 ` Tobias Geerinckx-Rice
  2024-09-01 14:07   ` John via
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2024-09-01 12:51 UTC (permalink / raw)
  To: help-guix, John

Hi John,

I thought that any modern 'guix pull' would protect[0] itself from accidental sudoage.  Perhaps the check's a little naive.  Or there's some subtler effect of using sudo...

How confident are you that the ownership is incorrect?  The only "incorrect data check" error string I could find was in zlib, which would point to pack file corruption more than incorrect ownership.

Guix's git checkouts are stashed in ~/.cache/guix/checkouts.  As the name implies you can safely delete it or even the entire 'guix' directory, at the expense of subsequent downloads & computation.

You could also rename it for later investigation, but I'm unable to volunteer for that myself.  Don't feel obliged.

[0]: https://git.savannah.gnu.org/cgit/guix.git/commit/guix/scripts/pull.scm?id=7c52cad0464175370c44bd4695e4c01a62b8268f


Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fixing git permissions after sudo guix pull
  2024-09-01 12:51 ` Tobias Geerinckx-Rice
@ 2024-09-01 14:07   ` John via
  0 siblings, 0 replies; 3+ messages in thread
From: John via @ 2024-09-01 14:07 UTC (permalink / raw)
  Cc: help-guix

Hi Tobias,

Moving .cache/guix out the way seems to have fixed things. There was nothing in there that was not owned by me so the sudo was a bit of a red herring. Doing a git fsck on the old cache dir does show a broken pack file as you suggested so it's something getting corrupted which is slightly more worrying. Not sure there is any way to track down when that happened.


As a side note. Running "sudo guix pull" does not bail out with the error in the patch you showed so I'm not sure if there is something else going on there.

Thanks for your help

John

1 Sept 2024 13:51:50 Tobias Geerinckx-Rice <me@tobias.gr>:

> Hi John,
> 
> I thought that any modern 'guix pull' would protect[0] itself from accidental sudoage.  Perhaps the check's a little naive.  Or there's some subtler effect of using sudo...
> 
> How confident are you that the ownership is incorrect?  The only "incorrect data check" error string I could find was in zlib, which would point to pack file corruption more than incorrect ownership.
> 
> Guix's git checkouts are stashed in ~/.cache/guix/checkouts.  As the name implies you can safely delete it or even the entire 'guix' directory, at the expense of subsequent downloads & computation.
> 
> You could also rename it for later investigation, but I'm unable to volunteer for that myself.  Don't feel obliged.
> 
> [0]: https://git.savannah.gnu.org/cgit/guix.git/commit/guix/scripts/pull.scm?id=7c52cad0464175370c44bd4695e4c01a62b8268f
> 
> 
> Kind regards,
> 
> T G-R
> 
> Sent on the go.  Excuse or enjoy my brevity.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-01 15:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-01 12:15 Fixing git permissions after sudo guix pull John
2024-09-01 12:51 ` Tobias Geerinckx-Rice
2024-09-01 14:07   ` John via

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).