GNU bug report logs - #36785
'sudo guix pull' failure in the profile migration code

Previous Next

Package: guix;

Reported by: Julien Lepiller <julien <at> lepiller.eu>

Date: Wed, 24 Jul 2019 14:41:02 UTC

Severity: normal

Merged with 37148

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: bug#37148: closed (Re: bug#36785: Impossible to pull on foreign
 distro)
Date: Thu, 19 Sep 2019 08:25:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#36785: ‘sudo guix pull’ creates root-owned /home/$USER/.cache/guix/…

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 37148 <at> debbugs.gnu.org.

-- 
36785: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36785
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 36785-done <at> debbugs.gnu.org, Julien Lepiller <julien <at> lepiller.eu>
Subject: Re: bug#36785: Impossible to pull on foreign distro
Date: Thu, 19 Sep 2019 10:24:18 +0200
Hi,

Ricardo Wurmus <rekado <at> elephly.net> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:

[...]

>> We could apply the patch I posted earlier, which simply disables profile
>> migration when SUDO_USER is set.  That won’t address the fact that root
>> writes to the user’s ~/.cache, but there’s not much we can do here.
>
> This sounds fine to me.

I went ahead and pushed that as
ee25048e51dd45ad91a1ad4b0f25f4013843c52b.

Thanks,
Ludo’.

[Message part 3 (message/rfc822, inline)]
From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Bug reports for GNU Guix <bug-guix <at> gnu.org>
Subject: ‘sudo guix pull’ creates
 root-owned /home/$USER/.cache/guix/…
Date: Thu, 22 Aug 2019 18:56:32 +0200
[Message part 4 (text/plain, inline)]
Guix,

After running ‘sudo guix pull’, some directories that guix 
assumes to be writable are not:

 $ guix pull
 Updating channel 'guix' from Git repository at 
 'https://git.savannah.gnu.org/git/guix.git'...
 guix pull: error: Git error: failed to create temporary file 
 '/home/adom/.cache/guix/pull/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq/.git/objects/pack/pack_git2_dVwpVq': 
 Permission denied
 $

Now Guix isn't doing anything wrong, per se, and that error 
message will tip off most jaded Unixbeards, but how about a:

 $ guix pull
 warning: /home/<USER>/.cache/… is not writable by the current 
 user <USER>
 hint: You might want to run ‘chown -R <USER>:<USER> /home/…’ 
 [or just delete it outright? -nckx]
 …

?

Thanks to adom` in #guix for posting that output.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 5 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.