From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GOb2D3ouV2FLPgAAgWs5BA (envelope-from ) for ; Fri, 01 Oct 2021 17:51:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GJG0C3ouV2FZSwAA1q6Kng (envelope-from ) for ; Fri, 01 Oct 2021 15:51:22 +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 7F79FF179 for ; Fri, 1 Oct 2021 17:51:21 +0200 (CEST) Received: from localhost ([::1]:44874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWKoi-0007bh-6i for larch@yhetil.org; Fri, 01 Oct 2021 11:51:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWKlW-0003dG-9P for bug-guix@gnu.org; Fri, 01 Oct 2021 11:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWKlV-0002Ak-Up for bug-guix@gnu.org; Fri, 01 Oct 2021 11:48:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWKlV-0001jF-P9 for bug-guix@gnu.org; Fri, 01 Oct 2021 11:48: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: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 01 Oct 2021 15:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50945 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50945@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16331032286568 (code B ref -1); Fri, 01 Oct 2021 15:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Oct 2021 15:47:08 +0000 Received: from localhost ([127.0.0.1]:57171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWKkd-0001hm-AJ for submit@debbugs.gnu.org; Fri, 01 Oct 2021 11:47:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:41242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWKkV-0001hG-OQ for submit@debbugs.gnu.org; Fri, 01 Oct 2021 11:47:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWKkV-0002Ye-Ci for bug-guix@gnu.org; Fri, 01 Oct 2021 11:46:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43250) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWKkV-0001L8-5c; Fri, 01 Oct 2021 11:46:59 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=44750 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWKkU-0007L9-Q3; Fri, 01 Oct 2021 11:46:59 -0400 From: Jan Nieuwenhuizen Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Fri, 01 Oct 2021 17:46:56 +0200 Message-ID: <87y27czr0v.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: , 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=1633103481; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=5sONIIsa97C9QNv9jEf8A165GgCLvZ3VyN679plXd3E=; b=kM4LjYyqa4/W5zm7V2X5WIixJw4ZAIOJXahX3M155YctNu/UAU5U9bnxoW6XVySOBTUN0X rdz0AyECBvyvW2QxyXghIvRaQlX0x3CADd8abf3phUGwKYCLCRu0cbuNj/TwAqz3dSD7As NdO7t8vl/xyb1H0fyfi7V7thpK1J6pZU2H9rZE30KzdaUoL3UiMxpRGK9SI8xwjMhpHAYo Y7FgxDJ49rd0Nf3rzPpKWDX1eZEJgEdQvKk1d/yDAfnP54oN8n4gTT/IWb4ozM7rgPUp3M 7Kp2TPzZgnpIVaURv/UdpFKaV9lmRu8S1hWdzUW5DNHJFEelu8JBVtfOhNz4vw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633103481; a=rsa-sha256; cv=none; b=LTeHJ9KHFLkpb02hRAhlbNjy1Ux+8WqsulQPOclytLMTij/Hs30ZACzWjSh0Zkoe0IOzY3 Zy7PoD4VqXZUC4vP05muXYrpvMESmpQan/NroeYTlW+aMvDABVVPsOFuoNMpyhzvpGCO1/ 3v4HZMtBMSwm0jsJ1/6jKEjlZVOhDnKkUGV31HmV50LGcP3v+X9Ey2JPktUaCwpVCAeQ5x ZjPVGZicSSleSmJmSdjRSNu4No0159MMu5BQaEe0lT1QQiR4mvQWM6JGbDEsqUN4rD7HSm Wyp25dhOB5yezXafnKhBcwGVVoDHNieCaw7ZHWb0QSbxsjr8dsgMJm57VJKNCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.90 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 7F79FF179 X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: AOptccMtHFgo --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-first= -login-executed" --8<---------------cut here---------------end--------------->8--- Upon a console login or ssh login, /var/run/1003 is created and all is fine. See below for the scenario, home-minimal.scm is attached. Greetings, Janneke $ ssh guix@localhost -p 2222 guix@localhost's password:=20 Last login: Tue Jun 23 11:45:08 2020 from 2001:980:1b4f:1:216:d3ff:fe29:7cdb guix@dundal ~$ guix home reconfigure home-minimal.scm /gnu/store/fgxpmf1iwjp9f8dfyaf7wxqa8105lq3w-home Cleaning up symlinks from previous home-environment. Skipping /home/guix/.config/fontconfig (not an empty directory)... done Skipping /home/guix/.config (not an empty directory)... done Cleanup finished. New symlinks to home-environment will be created soon. All conflicting files will go to /home/guix/1633101995-guix-home-legacy-con= figs-backup. Skipping /home/guix/.config (directory already exists)... done Creating /home/guix/.config/fontconfig... done Symlinking /home/guix/.config/fontconfig/fonts.conf -> /gnu/store/phj2z2iiq= dhryfy7mqral0b9qz3hlva6-fonts.conf... done Symlinking /home/guix/.config/test.conf -> /gnu/store/bdixb09v30bvhpgi2f6nd= iq25wzb9l74-tmp-file.txt... done Symlinking /home/guix/.bash_profile -> /gnu/store/j3vhlswj46psxicapnq8c9p1j= rwd55rk-bash_profile... done Symlinking /home/guix/.profile -> /gnu/store/fxbppk3pqzdi3zzy0xl5vg1ir6c5jz= q5-shell-profile... done Symlinking /home/guix/.bashrc -> /gnu/store/513j2xkszmcmv7fiawh59mr0i1fmin5= 5-bashrc... done done Finished updating symlinks. Comparing /gnu/store/fgxpmf1iwjp9f8dfyaf7wxqa8105lq3w-home/profile/share/fo= nts and /gnu/store/fgxpmf1iwjp9f8dfyaf7wxqa8105lq3w-home/profile/share/fo= nts... done (same) Evaling on-change gexps. On-change gexps evaluation finished. guix@dundal ~$ guix home list-generations ]8;;file://dundal/var/guix/profiles/per-user/guix/guix-home-1-link\Generati= on 1 Oct 01 2021 12:19:16]8;;\ (current) file name: /var/guix/profiles/per-user/guix/guix-home-1-link canonical file name: /gnu/store/fgxpmf1iwjp9f8dfyaf7wxqa8105lq3w-home channels: guix: repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: ]8;;https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D5= 6b10709efc4eb35df66f52a20ce3cb7fab4fee6\56b10709efc4eb35df66f52a20ce3cb7fab= 4fee6]8;;\ configuration file: ]8;;file://dundal/gnu/store/kjha5z8mck0pa9jrgx2266rq1= lvlb3ji-configuration.scm\/gnu/store/kjha5z8mck0pa9jrgx2266rq1lvlb3ji-confi= guration.scm]8;;\ guix@dundal ~$ logout Connection to localhost closed. 17:26:49 janneke@dundal:~ $ sudo -i -u guix Password:=20 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-first= -login-executed" guix@dundal ~$ ls -ltrF /run/user total 0 drwx------ 7 gdm gdm 160 Oct 1 12:16 971/ drwx------ 13 janneke janneke 260 Oct 1 13:07 1000/ guix@dundal ~$ logout 17:29:34 janneke@dundal:~ $ su - guix Password:=20 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-first= -login-executed" 17:37:33 janneke@dundal:~ $ ssh guix@localhost -p 2222 guix@localhost's password:=20 Last login: Fri Oct 1 17:23:35 2021 from 127.0.0.1 guix@dundal ~$=20 --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=home-minimal.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChnbnUgaG9tZSkKICAgICAgICAgICAgIChnbnUgaG9tZS1zZXJ2aWNlcykK ICAgICAgICAgICAgIChnbnUgaG9tZS1zZXJ2aWNlcyBzaGVsbHMpCiAgICAgICAgICAgICAoZ251 IGhvbWUtc2VydmljZXMgc2hlcGhlcmQpCiAgICAgICAgICAgICAoZ251IHNlcnZpY2VzKQogICAg ICAgICAgICAgKGdudSBwYWNrYWdlcyBhZG1pbikKICAgICAgICAgICAgIChndWl4IGdleHApKQoK KGhvbWUtZW52aXJvbm1lbnQKIChwYWNrYWdlcyAobGlzdCBodG9wKSkKIChzZXJ2aWNlcwogIChs aXN0CiAgIChzZXJ2aWNlIGhvbWUtYmFzaC1zZXJ2aWNlLXR5cGUKICAgICAgICAgICAgKGhvbWUt YmFzaC1jb25maWd1cmF0aW9uCiAgICAgICAgICAgICAoZ3VpeC1kZWZhdWx0cz8gI3QpCiAgICAg ICAgICAgICAoYmFzaC1wcm9maWxlICcoIlwKZXhwb3J0IEhJU1RGSUxFPSRYREdfQ0FDSEVfSE9N RS8uYmFzaF9oaXN0b3J5IikpKSkKICAgCiAgIChzaW1wbGUtc2VydmljZSAndGVzdC1jb25maWcK ICAgICAgICAgICAgICAgICAgIGhvbWUtZmlsZXMtc2VydmljZS10eXBlCiAgICAgICAgICAgICAg ICAgICAobGlzdCBgKCJjb25maWcvdGVzdC5jb25mIgogICAgICAgICAgICAgICAgICAgICAgICAg ICAsKHBsYWluLWZpbGUgInRtcC1maWxlLnR4dCIKICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICJ0aGUgY29udGVudCBvZiB+Ly5jb25maWcvdGVzdC5jb25mIikpKSkpKSkK --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--