GNU bug report logs - #50945
Guix home: No such file or directory: "/run/user/1003/on-first-login-executed"

Previous Next

Package: guix;

Reported by: Jan Nieuwenhuizen <janneke <at> gnu.org>

Date: Fri, 1 Oct 2021 15:48:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jan Nieuwenhuizen <janneke <at> gnu.org>
To: 50945 <at> debbugs.gnu.org
Subject: bug#50945: Guix home: No such file or directory: "/run/user/1003/on-first-login-executed"
Date: Fri, 01 Oct 2021 17:46:56 +0200
[Message part 1 (text/plain, inline)]
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-…" …)
In unknown file:
           0 (open-file "/run/user/1003/on-first-login-executed" "w" …)

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 <at> localhost -p 2222
guix <at> localhost's password: 
Last login: Tue Jun 23 11:45:08 2020 from 2001:980:1b4f:1:216:d3ff:fe29:7cdb
guix <at> 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-configs-backup.

Skipping   /home/guix/.config (directory already exists)... done
Creating   /home/guix/.config/fontconfig... done
Symlinking /home/guix/.config/fontconfig/fonts.conf -> /gnu/store/phj2z2iiqdhryfy7mqral0b9qz3hlva6-fonts.conf... done
Symlinking /home/guix/.config/test.conf -> /gnu/store/bdixb09v30bvhpgi2f6ndiq25wzb9l74-tmp-file.txt... done
Symlinking /home/guix/.bash_profile -> /gnu/store/j3vhlswj46psxicapnq8c9p1jrwd55rk-bash_profile... done
Symlinking /home/guix/.profile -> /gnu/store/fxbppk3pqzdi3zzy0xl5vg1ir6c5jzq5-shell-profile... done
Symlinking /home/guix/.bashrc -> /gnu/store/513j2xkszmcmv7fiawh59mr0i1fmin55-bashrc... done
 done
Finished updating symlinks.

Comparing /gnu/store/fgxpmf1iwjp9f8dfyaf7wxqa8105lq3w-home/profile/share/fonts and
          /gnu/store/fgxpmf1iwjp9f8dfyaf7wxqa8105lq3w-home/profile/share/fonts... done (same)
Evaling on-change gexps.

On-change gexps evaluation finished.

guix <at> dundal ~$ guix home list-generations
]8;;file://dundal/var/guix/profiles/per-user/guix/guix-home-1-link\Generation 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=56b10709efc4eb35df66f52a20ce3cb7fab4fee6\56b10709efc4eb35df66f52a20ce3cb7fab4fee6]8;;\
  configuration file: ]8;;file://dundal/gnu/store/kjha5z8mck0pa9jrgx2266rq1lvlb3ji-configuration.scm\/gnu/store/kjha5z8mck0pa9jrgx2266rq1lvlb3ji-configuration.scm]8;;\
guix <at> dundal ~$ logout
Connection to localhost closed.
17:26:49 janneke <at> dundal:~
$ sudo -i -u guix
Password: 
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-…" …)
In unknown file:
           0 (open-file "/run/user/1003/on-first-login-executed" "w" …)

ERROR: In procedure open-file:
In procedure open-file: No such file or directory: "/run/user/1003/on-first-login-executed"
guix <at> 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 <at> dundal ~$ logout
17:29:34 janneke <at> dundal:~
$ su - guix
Password: 
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-…" …)
In unknown file:
           0 (open-file "/run/user/1003/on-first-login-executed" "w" …)

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 <at> dundal:~
$ ssh guix <at> localhost -p 2222
guix <at> localhost's password: 
Last login: Fri Oct  1 17:23:35 2021 from 127.0.0.1
guix <at> dundal ~$ 

[home-minimal.scm (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

This bug report was last modified 3 years and 241 days ago.

Previous Next


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