From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GBP/Am5AV2FHZgAAgWs5BA (envelope-from ) for ; Fri, 01 Oct 2021 19:07:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OPYoOm1AV2F3NQAAbx9fmQ (envelope-from ) for ; Fri, 01 Oct 2021 17:07:57 +0000 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 B22E1729B for ; Fri, 1 Oct 2021 19:07:57 +0200 (CEST) Received: from localhost ([::1]:42578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWM0q-000068-Tk for larch@yhetil.org; Fri, 01 Oct 2021 13:07:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWLz2-0006Kn-6t for bug-guix@gnu.org; Fri, 01 Oct 2021 13:06:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWLyz-0008Ig-Tq for bug-guix@gnu.org; Fri, 01 Oct 2021 13:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWLyz-0003ol-P4 for bug-guix@gnu.org; Fri, 01 Oct 2021 13:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50945: Guix home: No such file or directory: "/run/user/1003/on-first-login-executed" Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 01 Oct 2021 17:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50945 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jan Nieuwenhuizen , 50945@debbugs.gnu.org Received: via spool by 50945-submit@debbugs.gnu.org id=B50945.163310795114654 (code B ref 50945); Fri, 01 Oct 2021 17:06:01 +0000 Received: (at 50945) by debbugs.gnu.org; 1 Oct 2021 17:05:51 +0000 Received: from localhost ([127.0.0.1]:57259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWLyp-0003oI-Ij for submit@debbugs.gnu.org; Fri, 01 Oct 2021 13:05:51 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:51248 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWLyn-0003o6-OL for 50945@debbugs.gnu.org; Fri, 01 Oct 2021 13:05:50 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1633107944; bh=0gBjl7legZOGhQIeisJXgigJhGD/NzO3kQ4a9QYam/U=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=urX4ZUvKZAsdGeVMjsRhYYWlqlT/dmenH4wJmtpHu0PqHX7NpMFgXPr8VGWUryX5t wkfU54Q4UzrBp3POPAcJvrAf+6e3bh1KPtjPT9xj4CEkuTRsPtHot594AhDWplu2Oe VVHPkF8vZiCaLNliqAUSUP2w8PpHVf7Km6xU+epo= In-Reply-To: <87y27czr0v.fsf@gnu.org> References: <87y27czr0v.fsf@gnu.org> Date: Fri, 01 Oct 2021 19:05:40 +0200 Message-ID: <87ilygllp7.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; 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: List-Help: List-Subscribe: , Cc: Andrew Tropin Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633108077; 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=mHhkd4N9vgTWZOsYSAzqz+iYWgZ7YoFZ41vRkwgxEpI=; b=afsyhezEd6NsFtVBA9gj+nhsRBbNpjYcsyen+1IijHG3aUmNehUsW7Prq9aR1a+zmXiKz7 pvNo9HiIynoo/tJTi/ISJtKE8uu4julcKwC3QlFvM+V1orEL1qT90Gszz8TAShg7PYZ54Q 9A6eApWuca1PCsGW7e+qQArt8pn/+LWek83qb5ahjFca8WvD4ggIFC7bTp9hWuahRb6gnt x6tOL8weLBvWi4XxPFJE8ZXIgD00FzW+6L0elr5XiS7IaI2iaB7QFUbgB+mFeGLMHO14qm tNrR6mdPephBqPtPXCWARfkjOrJQkXievyBt1wzOoBdArfQR1Pl9Sz5683fXIw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633108077; a=rsa-sha256; cv=none; b=AxAbvM0jIKYMGv00QpNYt/1QShJxEhsklamfcxhyE59S+2zH7xJAaaU5aA+sTqP9zs7Ifs G7jWjmQ1wETLVmxl8NcartXgLstV9UXlTbH5N03GP3WIiNah52n2EdwkW6LbOZWQtHT8r/ RgVFCxFD5DT/lbEI+TxNfL/W2X1DcPdjiKU/U6QcznEbZuKL4eeZJOOCDZXkWo+IUtOTLR LO29eiJDV03VgGalPjOvgSWdSepPNuQGHw3J8yzA9KwlL4WS9MnApZhPZAaWB4Tf6L+yru ifj0xo4KHPNvqRUavWhdnMm2l9DeE2NxeyuM5l3dnyD+0J+5vE3GLtMLzePqPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=urX4ZUvK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=urX4ZUvK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B22E1729B X-Spam-Score: -3.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: PJLXL4zByngY --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Oct 01 2021, Jan Nieuwenhuizen wrote: > Hi, > > When using su or sudo to enter an account managed by guix home, I get > this error > > --8<---------------cut here---------------start------------->8--- > Backtrace: > 2 (primitive-load "/home/guix/.guix-home/on-first-login") > In ice-9/ports.scm: > 461:11 1 (call-with-output-file "/run/user/1003/on-first-login-=E2=80= =A6" =E2=80=A6) > In unknown file: > 0 (open-file "/run/user/1003/on-first-login-executed" "w" =E2= =80=A6) > > ERROR: In procedure open-file: > In procedure open-file: No such file or directory: "/run/user/1003/on-fir= st-login-executed" > --8<---------------cut here---------------end--------------->8--- > > Upon a console login or ssh login, /var/run/1003 is created and all is fi= ne. > > See below for the scenario, home-minimal.scm is attached. > > Greetings, > Janneke [ Cc Andrew who did most of the work on Guix Home ] I think this is because Guix Home relies on $XDG_RUNTIME_DIR to be defined, otherwise it falls-back to /run/user/UID. But it looks like /run/user/UID isn=E2=80=99t created when using =E2=80=98su=E2=80=99 to logi= n. I don=E2=80=99t really know how these things work under the hood; maybe using $XDG_RUNTIME_DIR isn=E2=80=99t best idea. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmFXP+QVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5becQAL7ZlFkF0dSuO3SIN6Npvb6cSrNj yjELwonVnqSuFYfiQcSt7C/7iEtH+clWjVac7HxGwxIspl6c+dkPKAcgcTJyyfCn P4rrUtVmwxchQh/MjRCLZp6y+v9CMQLA/91fzi1VlOrsxYYttz05Yn2h7k36TAsX sLgWGUvK16ohanoja+1oOh7PPCrYy8ufarK3TnBOrGu3lUIBIm6v+bnr3gLicjIk ODJJ/VZyN2g64SQgbVMtyzZHLX3xCwQGD88ZZCmyqT3938408cpybUJelXx5RjuV WVyG1hsMEwT2IMaJBosP/ZLjxlRIeQGF/eYFXoadkgfF9DJJcHGj7N671IkBCkY6 I4RkXybPDx2JqWGbA4NmPjovrX2yALF0EaF0YGNOpvqPanVvdtJpHL1WxZHV+9jW /gGBt/H1rnEYxi2h42oke6rsGpiexouro5TAbzrjincD62U2lc3MADuoyGHErsnN 6gQDVK4kdOwiH5VTw8jgVaH26wgnekF2ySKR90nraiImUhvu9a4iuV/jrDObZjzv ZllX2T5Dz1+mRVi2o2rUY9pqmZsnsG6vc9R1YzxTimv7KDfqeCi3SB7GxzF6bexE iQJe08X9UwBrFWSnTsSUsJ2lzYQgFyRBmOXo7Q7zO6TElq4Q7bOEwYlBuNJgUGnq oOt/vw45UPc0x+R5 =hnkm -----END PGP SIGNATURE----- --=-=-=--