* bug#61717: guix home reconfigure on a fresh system fails
@ 2023-02-22 15:40 wolf
2023-02-24 13:01 ` Andrew Tropin
0 siblings, 1 reply; 2+ messages in thread
From: wolf @ 2023-02-22 15:40 UTC (permalink / raw)
To: 61717
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
Hi,
I'm trying to setup a Guix machine. I did clean install using guix system init,
I can provide the config, but it does not seem to be relevant. After that I
decided to try the guix home reconfigure command, and it ended with:
guix home: error: while creating directory `/var/guix/profiles/per-user/wolf': Permission denied
hint: Please create the `/var/guix/profiles/per-user/wolf' directory, with you as the owner.
The workaround I used was to just install any random package:
guix install coreutils
guix remove coreutils
After that running
guix home reconfigure config.scm
started to work just fine. However that does not seem like proper way, but more
like a workaround. I was adviced on IRC to report it, so here I am.
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#61717: guix home reconfigure on a fresh system fails
2023-02-22 15:40 bug#61717: guix home reconfigure on a fresh system fails wolf
@ 2023-02-24 13:01 ` Andrew Tropin
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Tropin @ 2023-02-24 13:01 UTC (permalink / raw)
To: wolf, 61717; +Cc: Oleg Pykhalov, Ludovic Courtès, Tobias Geerinckx-Rice
[-- Attachment #1: Type: text/plain, Size: 1996 bytes --]
On 2023-02-22 16:40, wolf@wolfsden.cz wrote:
> Hi,
>
> I'm trying to setup a Guix machine. I did clean install using guix system init,
> I can provide the config, but it does not seem to be relevant. After that I
> decided to try the guix home reconfigure command, and it ended with:
>
> guix home: error: while creating directory `/var/guix/profiles/per-user/wolf': Permission denied
> hint: Please create the `/var/guix/profiles/per-user/wolf' directory, with you as the owner.
>
> The workaround I used was to just install any random package:
>
> guix install coreutils
> guix remove coreutils
>
> After that running
>
> guix home reconfigure config.scm
>
> started to work just fine. However that does not seem like proper way, but more
> like a workaround. I was adviced on IRC to report it, so here I am.
>
> W.
This happens because of this call, which can't create a directory in
root owned /var/guix/profiles:
https://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/home.scm?h=2c757e8fb4385f889ec91f02b77acdf27143c316#n476
1. Actually, this call is usually unecessary as the creation of directory
for per-user profiles handled by daemon.
https://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/local-store.cc?h=2c757e8fb4385f889ec91f02b77acdf27143c316#n1613
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37744
2. However, in some circumstances (when used custom $GUIX_STATE_DIRECTORY)
daemon doesn't handle this properly, so probably because of it this line
was added:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=0f6a27c2c4
I moved it to a place, where connection to store is already openned, so
it work in both scenarios (first one is covered by the daemon, second
one by this call).
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=e615aaca28
Ideally, it would be cool to fix on the daemon side and remove this call
at all.
CCed Ludo, Tobias, Oleg.
--
Best regards,
Andrew Tropin
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-24 13:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22 15:40 bug#61717: guix home reconfigure on a fresh system fails wolf
2023-02-24 13:01 ` Andrew Tropin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).