GNU bug report logs - #61717
guix home reconfigure on a fresh system fails

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Tomas Volf <~@wolfsden.cz>; dated Wed, 22 Feb 2023 20:35:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug submitter to 'Tomas Volf <~@wolfsden.cz>' from 'wolf <wolf@HIDDEN>' Request was from Tomas Volf <~@wolfsden.cz> to control <at> debbugs.gnu.org. Full text available.

Message received at 61717 <at> debbugs.gnu.org:


Received: (at 61717) by debbugs.gnu.org; 24 Feb 2023 13:01:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 24 08:01:53 2023
Received: from localhost ([127.0.0.1]:36263 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pVXhx-0005DL-Az
	for submit <at> debbugs.gnu.org; Fri, 24 Feb 2023 08:01:53 -0500
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:55881)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andrew@HIDDEN>) id 1pVXhu-0005D7-Ov
 for 61717 <at> debbugs.gnu.org; Fri, 24 Feb 2023 08:01:51 -0500
Received: (Authenticated sender: andrew@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id 6D0E3FF809;
 Fri, 24 Feb 2023 13:01:42 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1;
 t=1677243704;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=k3bzQ0G5z4ngYuBZ0PZXsNhqh020u0/Inb9iDEU4Zio=;
 b=cgj3mo+LhBb6uaxzAoL6sIUFabvBxQloIwoUq2Kzphq/3EtPS4jw3UEu03c6EVU8vbiTEu
 egdEATb4lvB5ErO/FsF2WQ+GYN8cxVor+YIklrJAp2z6iEP1F6EldwjUtGXdUdnVeETe6A
 Yx9p4E61fCpvUhe75pidAjCBbN3K6vj9zW3rnxOFjJUoQ6gLt6+Cei6SYhKKBF8Ay4Gz5H
 QYuViHEFuqpRJiRoURySZqb9sYxzIHDKIOJcl0sBfG9nNrEUAUR/Tu7qGFI3MHSePJDUOv
 2JRso9/FCHHMZfTZLP9DqbYJGXEQf+TxsInGvy8eC63lC7+dLpaVT+7rus7gcg==
From: Andrew Tropin <andrew@HIDDEN>
To: wolf <wolf@HIDDEN>, 61717 <at> debbugs.gnu.org
Subject: Re: bug#61717: guix home reconfigure on a fresh system fails
In-Reply-To: <Y/Y3goQdK/zZFttb@ws>
References: <Y/Y3goQdK/zZFttb@ws>
Date: Fri, 24 Feb 2023 17:01:38 +0400
Message-ID: <87fsavz07h.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 61717
Cc: Oleg Pykhalov <go.wigust@HIDDEN>,
 Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 Tobias Geerinckx-Rice <me@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On 2023-02-22 16:40, wolf@HIDDEN 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-us=
er/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, bu=
t 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=3D2=
c757e8fb4385f889ec91f02b77acdf27143c316#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=3D2c757e8fb4385f889ec91f02b77acdf27143c316#n1613
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37744

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=3D0f6a27c2c4

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=3De615aaca28

Ideally, it would be cool to fix on the daemon side and remove this call
at all.

CCed Ludo, Tobias, Oleg.

=2D-=20
Best regards,
Andrew Tropin

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmP4tTIACgkQIgjSCVjB
3rB7VQ/+Jcaud+pBP0ryzJZgc/TjLG31C6/Oqx/DloYgymFY+28TXapfVctvCZUH
F78IDmf1bp0wtWjc70KET79UaBNHlCjtvXyTOyZnRizc+9+HipgtKAoE7yUeiXKk
Wma/RmHPoUE1PeoFmDcaGCWC+y4xEZy0rn+r6wXmOf05b2tmprW8+PBdQD6xCk4O
rwDYoX+KbuoQlwjqk4jPM1PAtpjsXX5TSATLZvlFOoPY6Xz7EdQOrWEdhQud0CD4
OGcImiZEPq69uwLWTNpzs3dMe71EAKuIbvCy0dZVfVMN/irHIm1c9cnv+nRO/p2z
1Rg5OtOGzv3oU3PFSo+jWQSMOv74vb5M6j64A9mDHW3fCMMkbNyxI4HiF3eUqxkB
QL8+7dmPmN5ZDtW49i15DjzgJThCIGeILakVQDIR2TSNQ7WkUtCFubCDNQwtua7k
8s0ESIuc0zpwZ7EuowR8J6DtWeH6Z8XqChvN7msxKZek/ci8UH7XSLZOaAATtbSl
BfZMf0AszqwEGWrKzV4MSGZ/szs9X18YVQvPGhaZvubyMQ+2P4pg3BsTHyfKohud
nH34cIAqvb2D7UTNWvAHg/1CTgwBDSiTzWrAAcuU6QJB6XnfsjRiqDI1XYuIOm4m
31V94tFVqB7Rrx6LKdjP6clCnC87Bxs/+AK1diPEexdkQWxEE0Y=
=zv6d
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#61717; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Feb 2023 20:34:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 22 15:34:54 2023
Received: from localhost ([127.0.0.1]:60470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pUvpF-0005wJ-6G
	for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 15:34:54 -0500
Received: from lists.gnu.org ([209.51.188.17]:49916)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wolf@HIDDEN>) id 1pUrEx-0006Nt-EL
 for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 10:41:09 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <wolf@HIDDEN>) id 1pUrEu-0007Pa-T0
 for bug-guix@HIDDEN; Wed, 22 Feb 2023 10:41:05 -0500
Received: from wolfsden.cz ([37.205.8.62])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <wolf@HIDDEN>) id 1pUrEs-0002tJ-0x
 for bug-guix@HIDDEN; Wed, 22 Feb 2023 10:41:04 -0500
Received: by wolfsden.cz (Postfix, from userid 104)
 id 45C0723BBF6; Wed, 22 Feb 2023 15:40:53 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1677080453; bh=yckF7LCkThmD6T8iUtBQGiPCDleTAEWrlqptzMjXkYs=;
 h=Date:From:To:Subject;
 b=xKvuO35HTzmyslTDJ9naVxDqqtnrOdDCUrCYyqDCU9jI684SVz4CN8bhhup05kP5/
 hKeuqy1H80tmsU/iv1ziii9lbQefbOykb0d5x2+fC+ZwSd4Xv9qlOGiwS55mM3xcJI
 nhzfwyGri1HR6cup9d+q4cf4WeDJ3OvNoI5AOUjirLXKk/aJkWOYegaYsZ7VGRJm/j
 ZRIRbU1rKOy/SJzPj9Icx+JNbKaVuxhWy52jBxnNfI1rzteZwpXd+yaHQPdXRLcPfn
 I1Adi8wtMoXnrJamiCJjZGw4Ikt6/oLlem4hempv+nQensruN04hMfCz02wWUrz71m
 iwOApodeJnjPOWvebEPFcFkiJVZzVP4grN5izMEf0iP+vVS0Jp4vPt/LJ43rOzoy/1
 vn3GhbIk3R1eVASWSEX6zidf/3QQyCVbC3McUbonycL/W2SbbIOWOJxtXgwjEhu1T1
 eQuN3oAx4ATC8tQPXo5duHC2RlH5y08ghACt29jSC9EDNAGnp1b7RmYXx8ULwh6u0T
 rQdq7m40NsCCyhaBbdXI7mQuZeoYJE0b+qHKqoa9mlPHT0wBn2s7JdqVa5Dcfr/lWX
 EomDvoADnbiRQ/cv2UwuBeDxWeTQn5uWZuQ46pdeOXKz2Ok+uHKyRaRAZ949Zfuci+
 56uMUve3fNpwO4RqqL9aysbo=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden
X-Spam-Level: 
X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED
 autolearn=unavailable autolearn_force=no version=3.4.6
Received: from localhost (unknown [128.0.188.242])
 by wolfsden.cz (Postfix) with ESMTPSA id 0AD8323BBF5
 for <bug-guix@HIDDEN>; Wed, 22 Feb 2023 15:40:51 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1677080451; bh=yckF7LCkThmD6T8iUtBQGiPCDleTAEWrlqptzMjXkYs=;
 h=Date:From:To:Subject;
 b=dIPRHgy44aOBq9K2HC4/T+ZCj0qLiQJ1A6e70b5g7D476U6tYOleXOqaydP0flUOV
 umRhabQW/eho8jDmk2sn50tfKd6J2fVS42XIMb3cEWFoGIHq5c+fa8k//6oyuVg/nI
 YQBC2390cRcf7Gl6V91884eH6opKZK/mwf0HlVG5nzsmYxyDdK0QA7Ha2ComI+3E6v
 XxkgYIC8esP/Gb0nADvW7ZepLZdicy+L9PPEKnrnpvGlUIiDrfoZZ26TKbrzoQhmE7
 1TbdLAC2CTSdpxaQx2Zq8dqXHsBYNfg4+2K3lfH9R2CTab39gIM1xkWnytoPWELEkj
 Bob4ogf24zKOcvWpnx8RwZ7mnmmE3gxWs4YOR16P7KPg1Elvl1rYn6Jz+lukXvRgTS
 Z8B8hPRuTv4yALjOeXbwCig/aZzAm6CR7pSVQ9gII3u2gi3c8tQHOS/qz5lz+WmGhh
 Ra/LCuIMudcOWLus9mPz8zLyK9GLsXomSdmFG/oCPlT44jFU31Kx4titwUb3RKLYEq
 F+4pNwxHhgEB7sokqoubY2z2qrPg70RtnvgZ8vl8rZ2TPgiqaJwUCEulqGm2kPsGqe
 Z8uyj+5adWQjQoNE4lcIwnHPAfrvEYdLVzjuykEBylEV3rK3cwaya9C0af3xFa//D6
 H8SJANHRmDfeJn081jE916XU=
Date: Wed, 22 Feb 2023 16:40:50 +0100
From: wolf <wolf@HIDDEN>
To: bug-guix@HIDDEN
Subject: guix home reconfigure on a fresh system fails
Message-ID: <Y/Y3goQdK/zZFttb@ws>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="t21SnYfMSZgc8S0u"
Content-Disposition: inline
Received-SPF: pass client-ip=37.205.8.62; envelope-from=wolf@HIDDEN;
 helo=wolfsden.cz
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 22 Feb 2023 15:34:52 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


--t21SnYfMSZgc8S0u
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I'm trying to setup a Guix machine. I did clean install using guix system i=
nit,
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, w=
ith 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.

--=20
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

--t21SnYfMSZgc8S0u
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmP2N4IACgkQL7/ufbZ/
wan7Sw/+MxHjEUbV5IWcwCYgb4mFfnoeB5XhY/HKDj+aT9TWL8elkyEPPvTbLq3v
mFHx5hN3QedDYmtgu0OSZXUo5E8+LrrWky9++NA6Mnz5JckfpSsuaJZsx/3KBZM6
d7uwJWm0DRurukjXwi5KPXiiECl87g+hGJMgep9Xl0gkKjBr3W1sZTegc/4FzOiH
r7Ga5kRtAJuyJdK9fTSfNuxQfycRWiCUM75Sf6/vpZ6K1devY5C3mtNrRGvFfjC/
dEWeobf+JCYdB55MHWL9UK0lORk1EM6q6eMuUWkYYnNsle/Ej7ft0///NxoCQKOb
Y+9kKQ/9WB+mP1lNOA6w/tFT4+RLRUYEm04NUZuhFPZ83409SJSAWpR9bJBG68LZ
SbBDyKpm824uF+1bWL7LJQnvfYRbPnJ1GqrOpm0VJ5kf30Je8C1HICqgDLxbejFr
hjIsxwhCZoofJoOXwmjrBmTc35IMte90Mph9pOm6Mv82prElcwXGyjUGhjgZqjZw
JFldldUAJ2rWyMcadFzuXIGLnASgE62HJNEJtzciBQ3mhePzrPuQ/uH6TauxbpTT
df4+hXgnL6Mf6cXNFNLq8FT6EqooXOLM4sp0NHT3VjbAnFR77RWGk4OyOQwmTtGv
ic4YXKV7pCSVabyONnsYwJcRvFcydlCKYMr3ZDtdscCGRx7LKvE=
=sMSd
-----END PGP SIGNATURE-----

--t21SnYfMSZgc8S0u--




Acknowledgement sent to wolf <wolf@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#61717; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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