From: Andrew Tropin <andrew@trop.in>
To: wolf <wolf@wolfsden.cz>, 61717@debbugs.gnu.org
Cc: "Oleg Pykhalov" <go.wigust@gmail.com>,
"Ludovic Courtès" <ludo@gnu.org>,
"Tobias Geerinckx-Rice" <me@tobias.gr>
Subject: bug#61717: guix home reconfigure on a fresh system fails
Date: Fri, 24 Feb 2023 17:01:38 +0400 [thread overview]
Message-ID: <87fsavz07h.fsf@trop.in> (raw)
In-Reply-To: <Y/Y3goQdK/zZFttb@ws>
[-- 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 --]
prev parent reply other threads:[~2023-02-24 13:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-22 15:40 bug#61717: guix home reconfigure on a fresh system fails wolf
2023-02-24 13:01 ` Andrew Tropin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsavz07h.fsf@trop.in \
--to=andrew@trop.in \
--cc=61717@debbugs.gnu.org \
--cc=go.wigust@gmail.com \
--cc=ludo@gnu.org \
--cc=me@tobias.gr \
--cc=wolf@wolfsden.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.