From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aHleFV+1+GNokgAAbAwnHQ (envelope-from ) for ; Fri, 24 Feb 2023 14:02:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qIZhFV+1+GPR4gAA9RJhRA (envelope-from ) for ; Fri, 24 Feb 2023 14:02:23 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A965335929 for ; Fri, 24 Feb 2023 14:02:22 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=cgj3mo+L; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677243743; a=rsa-sha256; cv=none; b=bAAlgWTOedjmeBO0poOF6hOWF5zL5wYxpRLnc9nEAy2T3gyVljXs64ukmpwbE9fHbpIe8p sXcT6v5lUz/lxB2rNaa5sabe7JWZyLYve6XuZLqavNO27mkEL1xeA4yVdR8o7Km6KMV6dr /nyEIdyEpB4oQai9N8ga5VE99oY7Zr7vQBI/H3t7bmYF7azQuJkfGGvvXYkeCe0oYxRToC sZWRUwigjo4aRYGc6SsN4c2YyMoxZGfZGTYSdzJKuiJXu0klYBMhFPgGl/NglnXFm8z83N YUStE9skqlk37qLeYAse3f4q5gI1STXzRz5avUmjcUseVrPrmIzQ22sLTGUX5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=cgj3mo+L; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677243743; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=k3bzQ0G5z4ngYuBZ0PZXsNhqh020u0/Inb9iDEU4Zio=; b=SocnvUpEMTESGt3K30l1CCwLafFuUORYOYX3zTGQeA+3UcWu4/h36CI0udCSNq78DjJd4f t1PQXzFdk2GX7bzFgx1jnjKYpVPF1msDIo0MdrJgYPEx2VA61paFvOU+e6H/nQSpwQz8rP ek40zSz8c8H12du0GHAwJ48S8RqXS+s76qYRUddqBxRlb9gBXaut1FTsiLxw+Kood5ntAC 9exvB3Med3J65tzPe7oBcjzVmFe+ZXHHjBV4LtU9QnRW5mJfy6bC5Cjc4IHJMByDRUxDT4 LBdcdPPS0xRZYfp4Oq8ZhGBscQD9eIIARt8wwHFoXI3CHHfo7gTLxsjKDJcRkw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVXiF-0007MH-J1; Fri, 24 Feb 2023 08:02:11 -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 ) id 1pVXi6-0007FK-Dt for bug-guix@gnu.org; Fri, 24 Feb 2023 08:02:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVXi6-0002Gn-5l for bug-guix@gnu.org; Fri, 24 Feb 2023 08:02:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVXi6-0005Dj-1V for bug-guix@gnu.org; Fri, 24 Feb 2023 08:02:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#61717: guix home reconfigure on a fresh system fails Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 Feb 2023 13:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61717 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: wolf , 61717@debbugs.gnu.org Cc: Oleg Pykhalov , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice Received: via spool by 61717-submit@debbugs.gnu.org id=B61717.167724371320051 (code B ref 61717); Fri, 24 Feb 2023 13:02:01 +0000 Received: (at 61717) by debbugs.gnu.org; 24 Feb 2023 13:01:53 +0000 Received: from localhost ([127.0.0.1]:36263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVXhx-0005DL-Az for submit@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 ) id 1pVXhu-0005D7-Ov for 61717@debbugs.gnu.org; Fri, 24 Feb 2023 08:01:51 -0500 Received: (Authenticated sender: andrew@trop.in) 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 In-Reply-To: References: Date: Fri, 24 Feb 2023 17:01:38 +0400 Message-ID: <87fsavz07h.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: A965335929 X-Spam-Score: -2.38 X-Migadu-Spam-Score: -2.38 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: dmWaKA3+w627 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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-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----- --=-=-=--