Broken system and home containers

  • Open
  • quality assurance status badge
Details
4 participants
  • Ludovic Courtès
  • Maxim Cournoyer
  • Rutherther
  • hiecaq
Owner
unassigned
Submitted by
Rutherther
Severity
important

Debbugs page

R
R
Rutherther wrote on 10 May 09:09 -0700
(address . bug-guix@gnu.org)
87r00wjvm3.fsf@ditigal.xyz
Seems that the recent commit 'Lock mounts by default'
a57ed987ffd1452ba5a4d70feb54893e99b8e076 has broken both guix system
container and guix home container. For system container, the system
container command finishes fine, but then running the run-container
script fails. For home container the command itself errors out, since
it's what is starting the container as well.

Here are the backtraces:
guix system:
```
Backtrace:
7 (primitive-load "/gnu/store/p3m2srwhv49gv1lk2yi4i73b9mn…")
In gnu/build/linux-container.scm:
368:8 6 (call-with-temporary-directory #<procedure 7f02cddd1af0…>)
476:16 5 (_ "/tmp/guix-directory.DGavex")
62:6 4 (call-with-clean-exit #<procedure 7f02ce52ab80 at gnu/b…>)
323:22 3 (_)
215:2 2 (initialize-user-namespace 1 65536 #:host-uid _ # _ # _ …)
In ice-9/ports.scm:
435:6 1 (call-with-output-file _ _ #:binary _ #:encoding _)
In unknown file:
0 (close-port #<output: /proc/1/uid_map 6>)

ERROR: In procedure close-port:
In procedure fport_write: Operation not permitted
system container is running as PID #f
Run 'sudo guix container exec #f /run/current-system/profile/bin/bash --login'
or run 'sudo nsenter -a -t #f' to get a shell into it.

Backtrace:
3 (primitive-load "/gnu/store/p3m2srwhv49gv1lk2yi4i73b9mn…")
In gnu/build/linux-container.scm:
368:8 2 (call-with-temporary-directory #<procedure 7f02cddd1af0…>)
485:7 1 (_ "/tmp/guix-directory.DGavex")
In unknown file:
0 (waitpid #f #<undefined>)
```

guix home:
```
Backtrace:
In ice-9/boot-9.scm:
1752:10 14 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
13 (apply-smob/0 #<thunk 7fe026e942a0>)
In ice-9/boot-9.scm:
724:2 12 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
619:8 11 (_ #(#(#<directory (guile-user) 7fe026e99c80>)))
In ice-9/command-line.scm:
185:19 10 (_ #<input: string 7fe026e93850>)
In unknown file:
9 (eval (begin (use-modules (guix build utils) (# ?)) # ?) ?)
In ice-9/eval.scm:
619:8 8 (_ #f)
In unknown file:
7 (primitive-load "/gnu/store/9kr07956x74cs9cql5jj3kdvb7f?")
In ice-9/eval.scm:
619:8 6 (_ #(#(#(#(#(#(#(#(#(#(#<?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
626:19 5 (_ #(#(#(#(#(#(#(#(#(#(#<?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
619:8 4 (_ #(#(#(#(#(#(#(#(#(#(#<?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In unknown file:
3 (primitive-load "/gnu/store/j7v0sgg2grb9x8n6h2xh2cyvyf7?")
In ice-9/eval.scm:
293:34 2 (_ #(#(#(#(#(#(#<directory (guile-use?> ?) ?) ?) ?) ?) ?))
In ice-9/ports.scm:
450:11 1 (call-with-input-file _ #<procedure 7fe01d5b3a60 at ic?> ?)
In unknown file:
0 (open-file #<unspecified> "r" #:encoding #f # #f)

ERROR: In procedure open-file:
Wrong type (expecting string): #<unspecified>
```

Additionally at one moment I was able to get an error message with guix
home that unshare has gotten an invalid argument, the argument was just
a number.

Unfortunately I was not able to understand what the issue is to fix it.

Regards
Rutherther
L
L
Ludovic Courtès wrote on 10 May 09:36 -0700
control message for bug #78356
(address . control@debbugs.gnu.org)
87selc2zj4.fsf_-_@gnu.org
severity 78356 important
quit
L
L
Ludovic Courtès wrote on 12 May 01:54 -0700
Re: bug#78356: Broken system and home containers
(name . Rutherther)(address . rutherther@ditigal.xyz)(address . 78356@debbugs.gnu.org)
87v7q643bd.fsf@gnu.org
Hi,

Rutherther <rutherther@ditigal.xyz> writes:

Toggle quote (10 lines)
> Seems that the recent commit 'Lock mounts by default'
> a57ed987ffd1452ba5a4d70feb54893e99b8e076 has broken both guix system
> container and guix home container. For system container, the system
> container command finishes fine, but then running the run-container
> script fails. For home container the command itself errors out, since
> it's what is starting the container as well.
>
> Here are the backtraces:
> guix system:

Fixed in 437bb9ece55f37d4b5a62cafc98c0c3b848a53ce.

Toggle quote (2 lines)
> guix home:

What command did you run, precisely? I cannot experience it:

Toggle snippet (67 lines)
$ guix describe
Generation 345 mai 11 2025 23:03:38 (current)
shepherd a54a503
repository URL: https://git.savannah.gnu.org/git/shepherd.git
branch: main
commit: a54a503b01f9da4f6fb49d736dcf90da0fe51f1b
guile af96820
repository URL: https://git.savannah.gnu.org/git/guile.git
branch: main
commit: af96820e072d18c49ac03e80c6f3466d568dc77d
guix 300d29e
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 300d29e69988caf23684f08effa51f621c7ec083
$ guix home container doc/he-config-bare-bones.scm
substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: looking for substitutes on 'https://guix.bordeaux.inria.fr'... 100.0%
The following derivations will be built:
/gnu/store/3j1dim91nm280hfhfjh9j130f77svhpk-provenance.drv
/gnu/store/ni8rlk32hbr7s6gyps0dr0lfy7g9c5dl-shepherd.conf.drv
/gnu/store/4khnkn4rab0p6vv9h99n9yfmk2lm1jwj-on-first-login.drv
/gnu/store/lm40rfw0y4jank8bw5m05mjkwbw9w1bd-bashrc.drv
/gnu/store/6as6qxw72lcr90gml6wk8mjib5rj8j87-files.drv
/gnu/store/dqlgr0jg3kiyzbbc4pmd9vk188sl3kh1-activate.drv
/gnu/store/qdsfz93g85l509qvw199j2b86nh2iqz8-profile.drv
/gnu/store/jig19g154iqhp7yml0yd93g3rqhf855k-home.drv

building /gnu/store/3j1dim91nm280hfhfjh9j130f77svhpk-provenance.drv...
building /gnu/store/lm40rfw0y4jank8bw5m05mjkwbw9w1bd-bashrc.drv...
building CA certificate bundle...
listing Emacs sub-directories...
building /gnu/store/ni8rlk32hbr7s6gyps0dr0lfy7g9c5dl-shepherd.conf.drv...
building profile with 3 packages...
building /gnu/store/dqlgr0jg3kiyzbbc4pmd9vk188sl3kh1-activate.drv...
building /gnu/store/6as6qxw72lcr90gml6wk8mjib5rj8j87-files.drv...
building /gnu/store/4khnkn4rab0p6vv9h99n9yfmk2lm1jwj-on-first-login.drv...
building /gnu/store/jig19g154iqhp7yml0yd93g3rqhf855k-home.drv...
The following derivations will be built:
/gnu/store/si9ibx12dkqir83z7bd0bic06d9a0p9q-module-import.drv
/gnu/store/md9kdf2whka0gnaylhypbrw760184wk1-home-system-profile.drv

building profile with 1 package...
building /gnu/store/si9ibx12dkqir83z7bd0bic06d9a0p9q-module-import.drv...
WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete'
WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete'
Symlinking /home/ludo/.bashrc -> /gnu/store/b9ppn0jdrda5h88mw5x35m2jvms8izw6-bashrc... done
Symlinking /home/ludo/.bash_profile -> /gnu/store/gghay5fzpad5w7082nnk6z9lj7q00drv-bash_profile... done
Symlinking /home/ludo/.profile -> /gnu/store/vvxqfhlkpi90bgmfh1b03kkwfq7pmfkk-shell-profile... done
Symlinking /home/ludo/.config/test.conf -> /gnu/store/i8wsnvh1q8lbgyf50vapfsn2rfj7a2nc-tmp-file.txt... done
Symlinking /home/ludo/.config/fontconfig/fonts.conf -> /gnu/store/mw4clgkwj3rvlnfv0gd694aabvamr0sa-fonts.conf... done
Symlinking /home/ludo/.config/shepherd/init.scm -> /gnu/store/ysg5icpancicn1hi2gfd1q3xvmmgb8lf-shepherd.conf... done
done
Finished updating symlinks.

Comparing /gnu/store/non-existing-generation/profile/share/fonts and
/gnu/store/9ylfbl50dlng3rqp1kvd3qalr87yyjcl-home/profile/share/fonts... done (same)
Evaluating on-change gexps.

On-change gexps evaluation finished.

ludo@ribbon ~$ id
uid=1000(ludo) gid=1000(users) groups=1000(users),65534(overflow)
ludo@ribbon ~$ ls
ludo@ribbon ~$ logout

Thanks,
Ludo’.
R
R
Rutherther wrote on 12 May 02:15 -0700
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 78356@debbugs.gnu.org)
871psuxk96.fsf@ditigal.xyz
Hi Ludo

Ludovic Courtès <ludo@gnu.org> writes:
Toggle quote (3 lines)
>
> What command did you run, precisely? I cannot experience it:

For home, I tried my own config, and since I was pretty sure any system
container is affected (tried a simple one, my one and I know one other
person reported this in Matrix channel), I didn't try anything simpler
and just assumed all homes are going to be affected as well.
Now trying simpler config you mentioned, that one works fine.

The command was `guix home container -L ./home/modules ./home/home-container.scm`
Any idea what service could cause this behavior with lock-mounts? Would
be good to isolate it, but I am not sure where to start.

Here is the unshare error I was talking about earlier:
Toggle quote (1 lines)
> guix home: error: unshare: 268566528: Invalid argument
Now I am getting it consistently, before it was missing sometimes.
Currently on
```
Toggle quote (1 lines)
> ./target/guix/bin/guix describe
guix 300d29e
branch: master
commit: 300d29e69988caf23684f08effa51f621c7ec083
nonguix 1940698
branch: master
commit: 19406981a9bf9d0b140180f1f3008cb91f716b4b
ruther 1a49e47
branch: main
commit: 1a49e4760bd922237532fa2eee44bc9e1fe42399
rde bf8f628
branch: master
commit: bf8f628c4deb9acc94e261db80d301048ea1f0a2
```

Thanks
Rutherther
L
L
Ludovic Courtès wrote on 12 May 02:45 -0700
(name . Rutherther)(address . rutherther@ditigal.xyz)(address . 78356@debbugs.gnu.org)
87r00u2mdz.fsf@gnu.org
Hi,

Rutherther <rutherther@ditigal.xyz> writes:

Toggle quote (9 lines)
> The command was `guix home container -L ./home/modules ./home/home-container.scm`
> in my repository. It's here https://git.ditigal.xyz/~ruther/guix-config.
> Any idea what service could cause this behavior with lock-mounts? Would
> be good to isolate it, but I am not sure where to start.
>
> Here is the unshare error I was talking about earlier:
>> guix home: error: unshare: 268566528: Invalid argument
> Now I am getting it consistently, before it was missing sometimes.

Could you copy paste the command and its output, to be sure there’s no
misunderstanding?

This is on Guix System, right?

Thanks,
Ludo’.
R
R
Rutherther wrote on 12 May 03:29 -0700
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 78356@debbugs.gnu.org)
87ecwuazr0.fsf@ditigal.xyz
Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (16 lines)
> Hi,
>
> Rutherther <rutherther@ditigal.xyz> writes:
>
>> The command was `guix home container -L ./home/modules ./home/home-container.scm`
>> in my repository. It's here https://git.ditigal.xyz/~ruther/guix-config.
>> Any idea what service could cause this behavior with lock-mounts? Would
>> be good to isolate it, but I am not sure where to start.
>>
>> Here is the unshare error I was talking about earlier:
>>> guix home: error: unshare: 268566528: Invalid argument
>> Now I am getting it consistently, before it was missing sometimes.
>
> Could you copy paste the command and its output, to be sure there’s no
> misunderstanding?

Sure

Toggle snippet (66 lines)
[ruther:~/.setup] main(+68/-13)* 15s ±
> ./target/guix/bin/guix home container -L ./home/modules ./home/home-configuration.scm
guix home: warning: failed to load '(ruther home channels-emacs)':
no code for module (ruther home channels-emacs)
ruther/home/channels-emacs.scm:1:0: warning: module name (channels) does not match file name 'ruther/home/channels-emacs.scm'
hint: File `./home/modules/ruther/home/channels-emacs.scm' should probably start with:

(define-module (ruther home channels-emacs))

guix home: warning: ambiguous package specification `font-ubuntu'
guix home: warning: choosing font-ubuntu@0.83 from ruther/home/fonts.scm:8:2
guix home: error: unshare: 268566528: Invalid argument
Backtrace:
18 (primitive-load "/home/ruther/.setup/./target/guix/bin/…")
In guix/ui.scm:
2369:7 17 (run-guix . _)
2332:10 16 (run-guix-command _ . _)
In ice-9/boot-9.scm:
1752:10 15 (with-exception-handler _ _ #:unwind? _ # _)
In guix/status.scm:
859:3 14 (_)
839:4 13 (call-with-status-report _ _)
In guix/scripts/home.scm:
547:4 12 (_)
In ice-9/boot-9.scm:
1752:10 11 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
690:37 10 (thunk)
1331:8 9 (call-with-build-handler _ _)
1331:8 8 (call-with-build-handler _ _)
1331:8 7 (call-with-build-handler #<procedure 7fa85bf53930 at g…> …)
2212:25 6 (run-with-store #<store-connection 256.100 7fa85cec65a0> …)
In guix/scripts/home.scm:
465:14 5 (_ _)
In gnu/system/linux-container.scm:
349:17 4 (_ _)
In gnu/build/linux-container.scm:
485:7 3 (call-with-container _ _ #:namespaces _ #:host-uids _ # …)
In unknown file:
2 (waitpid #f #<undefined>)
In ice-9/boot-9.scm:
1685:16 1 (raise-exception _ #:continuable? _)
1685:16 0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Wrong type (expecting exact integer): #f
θ61° [ruther:~/.setup] main(+68/-13)* 58s 1 ±
> ./target/guix/bin/guix describe
guix 300d29e
repository URL: https://codeberg.org/guix/guix-mirror
branch: master
commit: 300d29e69988caf23684f08effa51f621c7ec083
nonguix 1940698
repository URL: https://gitlab.com/nonguix/nonguix
branch: master
commit: 19406981a9bf9d0b140180f1f3008cb91f716b4b
ruther 1a49e47
repository URL: https://git.ditigal.xyz/~ruther/guix-exprs
branch: main
commit: 1a49e4760bd922237532fa2eee44bc9e1fe42399
rde bf8f628
repository URL: https://git.sr.ht/~abcdw/rde
branch: master
commit: bf8f628c4deb9acc94e261db80d301048ea1f0a2

Toggle quote (3 lines)
>
> This is on Guix System, right?

Yes

Toggle quote (3 lines)
>
> Thanks,
> Ludo’.
L
L
Ludovic Courtès wrote on 12 May 04:43 -0700
(name . Rutherther)(address . rutherther@ditigal.xyz)(address . 78356@debbugs.gnu.org)
874ixq2gw2.fsf@gnu.org
Hi,

Rutherther <rutherther@ditigal.xyz> writes:

Toggle quote (14 lines)
> --8<---------------cut here---------------start------------->8---
> [ruther:~/.setup] main(+68/-13)* 15s ±
>> ./target/guix/bin/guix home container -L ./home/modules ./home/home-configuration.scm
> guix home: warning: failed to load '(ruther home channels-emacs)':
> no code for module (ruther home channels-emacs)
> ruther/home/channels-emacs.scm:1:0: warning: module name (channels) does not match file name 'ruther/home/channels-emacs.scm'
> hint: File `./home/modules/ruther/home/channels-emacs.scm' should probably start with:
>
> (define-module (ruther home channels-emacs))
>
> guix home: warning: ambiguous package specification `font-ubuntu'
> guix home: warning: choosing font-ubuntu@0.83 from ruther/home/fonts.scm:8:2
> guix home: error: unshare: 268566528: Invalid argument

Is this from within a container?

Does ‘guix shell -C coreutils’ work?

Thanks,
Ludo’.
R
R
Rutherther wrote on 12 May 05:32 -0700
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 78356@debbugs.gnu.org)
87a57iau1c.fsf@ditigal.xyz
Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (20 lines)
> Hi,
>
> Rutherther <rutherther@ditigal.xyz> writes:
>
>> --8<---------------cut here---------------start------------->8---
>> [ruther:~/.setup] main(+68/-13)* 15s ±
>>> ./target/guix/bin/guix home container -L ./home/modules ./home/home-configuration.scm
>> guix home: warning: failed to load '(ruther home channels-emacs)':
>> no code for module (ruther home channels-emacs)
>> ruther/home/channels-emacs.scm:1:0: warning: module name (channels) does not match file name 'ruther/home/channels-emacs.scm'
>> hint: File `./home/modules/ruther/home/channels-emacs.scm' should probably start with:
>>
>> (define-module (ruther home channels-emacs))
>>
>> guix home: warning: ambiguous package specification `font-ubuntu'
>> guix home: warning: choosing font-ubuntu@0.83 from ruther/home/fonts.scm:8:2
>> guix home: error: unshare: 268566528: Invalid argument
>
> Is this from within a container?

No.

Toggle quote (3 lines)
>
> Does ‘guix shell -C coreutils’ work?

Yes, shell containers work fine for me, it was just home and system
where I saw an issue. As I pointed out earlier the home container in
guix source tree works for me. So it's triggered by something in my home
setup.

Toggle quote (1 lines)
>> --8<---------------cut here---------------start------------->8---
[ruther:~/doc/projects/git_clones/guix] issue/78308(9)* 130 ±
Toggle quote (1 lines)
> ~/.setup/target/guix/bin/guix home container doc/he-config-bare-bones.scm
substitute: looking for substitutes on 'https://substitutes.nonguix.org'... 100.0%
substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/1d031p7xkmhhcjw4qqs0cwhfh8p004q7-shepherd-timer.scm.drv
/gnu/store/54csgxblx2i5c8r03ywxpda1wv8blz61-shepherd-transient.scm.drv
/gnu/store/k8s4j84qrly49hd1adihjcq106hx0a6c-shepherd-log-rotation.scm.drv
/gnu/store/ni8rlk32hbr7s6gyps0dr0lfy7g9c5dl-shepherd.conf.drv
/gnu/store/4khnkn4rab0p6vv9h99n9yfmk2lm1jwj-on-first-login.drv
/gnu/store/6as6qxw72lcr90gml6wk8mjib5rj8j87-files.drv
/gnu/store/as14p3xl0n3hgxi5lac7w0gdcjilbr2g-provenance.drv
/gnu/store/dqlgr0jg3kiyzbbc4pmd9vk188sl3kh1-activate.drv
/gnu/store/nkhmbvy8hkwkafb7fq1f14by0mrnd046-home.drv

building /gnu/store/as14p3xl0n3hgxi5lac7w0gdcjilbr2g-provenance.drv...
building /gnu/store/k8s4j84qrly49hd1adihjcq106hx0a6c-shepherd-log-rotation.scm.drv...
building /gnu/store/1d031p7xkmhhcjw4qqs0cwhfh8p004q7-shepherd-timer.scm.drv...
building /gnu/store/54csgxblx2i5c8r03ywxpda1wv8blz61-shepherd-transient.scm.drv...
building /gnu/store/ni8rlk32hbr7s6gyps0dr0lfy7g9c5dl-shepherd.conf.drv...
building /gnu/store/dqlgr0jg3kiyzbbc4pmd9vk188sl3kh1-activate.drv...
building /gnu/store/6as6qxw72lcr90gml6wk8mjib5rj8j87-files.drv...
building /gnu/store/4khnkn4rab0p6vv9h99n9yfmk2lm1jwj-on-first-login.drv...
building /gnu/store/nkhmbvy8hkwkafb7fq1f14by0mrnd046-home.drv...
WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete'
WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete'
Symlinking /home/ruther/.bash_profile -> /gnu/store/gghay5fzpad5w7082nnk6z9lj7q00drv-bash_profile... done
Symlinking /home/ruther/.profile -> /gnu/store/vvxqfhlkpi90bgmfh1b03kkwfq7pmfkk-shell-profile... done
Symlinking /home/ruther/.bashrc -> /gnu/store/b9ppn0jdrda5h88mw5x35m2jvms8izw6-bashrc... done
Symlinking /home/ruther/.config/test.conf -> /gnu/store/i8wsnvh1q8lbgyf50vapfsn2rfj7a2nc-tmp-file.txt... done
Symlinking /home/ruther/.config/fontconfig/fonts.conf -> /gnu/store/mw4clgkwj3rvlnfv0gd694aabvamr0sa-fonts.conf... done
Symlinking /home/ruther/.config/shepherd/init.scm -> /gnu/store/ysg5icpancicn1hi2gfd1q3xvmmgb8lf-shepherd.conf... done
done
Finished updating symlinks.

Comparing /gnu/store/non-existing-generation/profile/share/fonts and
/gnu/store/84kwxidarhpibps26xyqbdpj5lfk1s37-home/profile/share/fonts... done (same)
Evaluating on-change gexps.

On-change gexps evaluation finished.

This is the Z Shell configuration function for new users,
zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~). This function can help you with a few settings that should
make your use of the shell easier.

You can:

(q) Quit and do nothing. The function will be run again next time.

(0) Exit, creating the file ~/.zshrc containing just a comment.
That will prevent this function being run again.

(1) Continue to the main menu.

--- Type one of the keys in parentheses --- 0
Toggle snippet (1 lines)
R
R
Rutherther wrote on 12 May 05:45 -0700
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 78356@debbugs.gnu.org)
877c2matfi.fsf@ditigal.xyz
Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (8 lines)
> Hi,
>
> Rutherther <rutherther@ditigal.xyz> writes:
>> Here are the backtraces:
>> guix system:
>
> Fixed in 437bb9ece55f37d4b5a62cafc98c0c3b848a53ce.

Confirmed.
L
L
Ludovic Courtès wrote on 13 May 08:21 -0700
(name . Rutherther)(address . rutherther@ditigal.xyz)(address . 78356@debbugs.gnu.org)
87bjrwv8n0.fsf@gnu.org
Hi,

Rutherther <rutherther@ditigal.xyz> skribis:

Toggle quote (12 lines)
>> ./target/guix/bin/guix home container -L ./home/modules ./home/home-configuration.scm
> guix home: warning: failed to load '(ruther home channels-emacs)':
> no code for module (ruther home channels-emacs)
> ruther/home/channels-emacs.scm:1:0: warning: module name (channels) does not match file name 'ruther/home/channels-emacs.scm'
> hint: File `./home/modules/ruther/home/channels-emacs.scm' should probably start with:
>
> (define-module (ruther home channels-emacs))
>
> guix home: warning: ambiguous package specification `font-ubuntu'
> guix home: warning: choosing font-ubuntu@0.83 from ruther/home/fonts.scm:8:2
> guix home: error: unshare: 268566528: Invalid argument

What’s weird is that this seems to happen even before activation.

I cannot audit the whole thing but apparently something in the config
tries to connect to the outside:

Toggle snippet (7 lines)
<x home container -L home/modules home/home-configuration.scm
Updating channel 'guix' from Git repository at 'https://codeberg.org/guix/guix-mirror'...
guix home: error: failed to load 'home/home-configuration.scm':
web/client.scm:338:10: In procedure open-socket-for-uri:
In procedure getaddrinfo: Servname not supported for ai_socktype

Probably use of ‘current-guix’?

Anyway, do you think you could boil it down to a minimal reproducer?

Thanks,
Ludo’.
R
R
Rutherther wrote on 13 May 10:33 -0700
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 78356@debbugs.gnu.org)
87r00sh0vk.fsf@ditigal.xyz
Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (29 lines)
> Hi,
>
> Rutherther <rutherther@ditigal.xyz> skribis:
>
>>> ./target/guix/bin/guix home container -L ./home/modules ./home/home-configuration.scm
>> guix home: warning: failed to load '(ruther home channels-emacs)':
>> no code for module (ruther home channels-emacs)
>> ruther/home/channels-emacs.scm:1:0: warning: module name (channels) does not match file name 'ruther/home/channels-emacs.scm'
>> hint: File `./home/modules/ruther/home/channels-emacs.scm' should probably start with:
>>
>> (define-module (ruther home channels-emacs))
>>
>> guix home: warning: ambiguous package specification `font-ubuntu'
>> guix home: warning: choosing font-ubuntu@0.83 from ruther/home/fonts.scm:8:2
>> guix home: error: unshare: 268566528: Invalid argument
>
> What’s weird is that this seems to happen even before activation.
>
> I cannot audit the whole thing but apparently something in the config
> tries to connect to the outside:
>
> --8<---------------cut here---------------start------------->8---
> <x home container -L home/modules home/home-configuration.scm
> Updating channel 'guix' from Git repository at 'https://codeberg.org/guix/guix-mirror'...
> guix home: error: failed to load 'home/home-configuration.scm':
> web/client.scm:338:10: In procedure open-socket-for-uri:
> In procedure getaddrinfo: Servname not supported for ai_socktype
> --8<---------------cut here---------------end--------------->8---

So this is after the build? I have added inferiors recently for using
Emacs 30, that would explain it before build, but after build I am
clueless why that would happen. Though if it's before build, I am
surprised you got an error like that, unless you were purposefully in
environment without network. I added the inferiors just yesterday,
commit 819ee341ab6bcc9846b099572af185c781b82a1d shouldn't be downloading
anything.

Toggle quote (5 lines)
>
> Probably use of ‘current-guix’?
>
> Anyway, do you think you could boil it down to a minimal reproducer?

I will definitely try to, but probably not today, in a few days,
hopefully by the end of the week.

Toggle quote (3 lines)
>
> Thanks,
> Ludo’.
L
L
Ludovic Courtès wrote on 13 May 14:42 -0700
(name . Rutherther)(address . rutherther@ditigal.xyz)(address . 78356@debbugs.gnu.org)
87ikm4428k.fsf@gnu.org
Hi,

Rutherther <rutherther@ditigal.xyz> writes:

Toggle quote (16 lines)
>> --8<---------------cut here---------------start------------->8---
>> <x home container -L home/modules home/home-configuration.scm
>> Updating channel 'guix' from Git repository at 'https://codeberg.org/guix/guix-mirror'...
>> guix home: error: failed to load 'home/home-configuration.scm':
>> web/client.scm:338:10: In procedure open-socket-for-uri:
>> In procedure getaddrinfo: Servname not supported for ai_socktype
>> --8<---------------cut here---------------end--------------->8---
>
> So this is after the build? I have added inferiors recently for using
> Emacs 30, that would explain it before build, but after build I am
> clueless why that would happen. Though if it's before build, I am
> surprised you got an error like that, unless you were purposefully in
> environment without network. I added the inferiors just yesterday,
> commit 819ee341ab6bcc9846b099572af185c781b82a1d shouldn't be downloading
> anything.

Yes, I was running it in ‘guix shell -CW’.

Ludo’.
M
M
Maxim Cournoyer wrote on 14 May 23:25 -0700
(name . Ludovic Courtès)(address . ludo@gnu.org)
87zffeie64.fsf@gmail.com
Hi,

Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (31 lines)
> Hi,
>
> Rutherther <rutherther@ditigal.xyz> skribis:
>
>>> ./target/guix/bin/guix home container -L ./home/modules ./home/home-configuration.scm
>> guix home: warning: failed to load '(ruther home channels-emacs)':
>> no code for module (ruther home channels-emacs)
>> ruther/home/channels-emacs.scm:1:0: warning: module name (channels) does not match file name 'ruther/home/channels-emacs.scm'
>> hint: File `./home/modules/ruther/home/channels-emacs.scm' should probably start with:
>>
>> (define-module (ruther home channels-emacs))
>>
>> guix home: warning: ambiguous package specification `font-ubuntu'
>> guix home: warning: choosing font-ubuntu@0.83 from ruther/home/fonts.scm:8:2
>> guix home: error: unshare: 268566528: Invalid argument
>
> What’s weird is that this seems to happen even before activation.
>
> I cannot audit the whole thing but apparently something in the config
> tries to connect to the outside:
>
> <x home container -L home/modules home/home-configuration.scm
> Updating channel 'guix' from Git repository at 'https://codeberg.org/guix/guix-mirror'...
> guix home: error: failed to load 'home/home-configuration.scm':
> web/client.scm:338:10: In procedure open-socket-for-uri:
> In procedure getaddrinfo: Servname not supported for ai_socktype
>
> Probably use of ‘current-guix’?
>
> Anyway, do you think you could boil it down to a minimal reproducer?

Not sure how minimal that is, but I can trigger this in the readymedia
system test:

Toggle snippet (3 lines)
make check-system TESTS=readymedia

It may not fail every time (?). In the VM, in
/var/log/readymedia/minidlna.log, we can read:

Toggle snippet (23 lines)
2025-05-15 08:22:27 In gnu/build/linux-container.scm:
...skipping...
2025-05-15 08:22:27 476:16 3 (_ "/tmp/guix-directory.w1REZ6")
2025-05-15 08:22:27 62:6 2 (call-with-clean-exit #<procedure 7fa0ff7c2e80 at gnu/b?>)
2025-05-15 08:22:27 321:20 1 (_)
2025-05-15 08:22:27 In guix/build/syscalls.scm:
2025-05-15 08:22:27 1231:10 0 (_ 268566528)
2025-05-15 08:22:27
2025-05-15 08:22:27 guix/build/syscalls.scm:1231:10: In procedure unshare: 268566528: Invalid argument
2025-05-15 08:22:28 Backtrace:
2025-05-15 08:22:28 4 (primitive-load "/gnu/store/4h68sswscz96wk47724bfqfrq9n?")
2025-05-15 08:22:28 In ice-9/eval.scm:
2025-05-15 08:22:28 191:35 3 (_ _)
2025-05-15 08:22:28 In gnu/build/linux-container.scm:
2025-05-15 08:22:28 368:8 2 (call-with-temporary-directory #<procedure 7fa0ff7df3f0?>)
2025-05-15 08:22:28 485:7 1 (_ "/tmp/guix-directory.w1REZ6")
2025-05-15 08:22:28 In unknown file:
2025-05-15 08:22:28 0 (waitpid #f #<undefined>)
2025-05-15 08:22:28
2025-05-15 08:22:28 ERROR: In procedure waitpid:
2025-05-15 08:22:28 Wrong type (expecting exact integer): #f

The service uses least-authority-wrapper.

--
Thanks,
Maxim
L
L
Ludovic Courtès wrote on 15 May 01:29 -0700
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
875xi2xoob.fsf@gnu.org
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

Toggle quote (36 lines)
> Not sure how minimal that is, but I can trigger this in the readymedia
> system test:
>
> --8<---------------cut here---------------start------------->8---
> make check-system TESTS=readymedia
> --8<---------------cut here---------------end--------------->8---
>
> It may not fail every time (?). In the VM, in
> /var/log/readymedia/minidlna.log, we can read:
>
> --8<---------------cut here---------------start------------->8---
> 2025-05-15 08:22:27 In gnu/build/linux-container.scm:
> ...skipping...
> 2025-05-15 08:22:27 476:16 3 (_ "/tmp/guix-directory.w1REZ6")
> 2025-05-15 08:22:27 62:6 2 (call-with-clean-exit #<procedure 7fa0ff7c2e80 at gnu/b?>)
> 2025-05-15 08:22:27 321:20 1 (_)
> 2025-05-15 08:22:27 In guix/build/syscalls.scm:
> 2025-05-15 08:22:27 1231:10 0 (_ 268566528)
> 2025-05-15 08:22:27
> 2025-05-15 08:22:27 guix/build/syscalls.scm:1231:10: In procedure unshare: 268566528: Invalid argument
> 2025-05-15 08:22:28 Backtrace:
> 2025-05-15 08:22:28 4 (primitive-load "/gnu/store/4h68sswscz96wk47724bfqfrq9n?")
> 2025-05-15 08:22:28 In ice-9/eval.scm:
> 2025-05-15 08:22:28 191:35 3 (_ _)
> 2025-05-15 08:22:28 In gnu/build/linux-container.scm:
> 2025-05-15 08:22:28 368:8 2 (call-with-temporary-directory #<procedure 7fa0ff7df3f0?>)
> 2025-05-15 08:22:28 485:7 1 (_ "/tmp/guix-directory.w1REZ6")
> 2025-05-15 08:22:28 In unknown file:
> 2025-05-15 08:22:28 0 (waitpid #f #<undefined>)
> 2025-05-15 08:22:28
> 2025-05-15 08:22:28 ERROR: In procedure waitpid:
> 2025-05-15 08:22:28 Wrong type (expecting exact integer): #f
> --8<---------------cut here---------------end--------------->8---
>
> The service uses least-authority-wrapper.

Damnit. “make check-system TESTS=bitlbee” pass though (also using
‘least-authority-wrapper’) and I don’t see any significant difference
between the two?

Ludo’.
H
H
hiecaq wrote on 17 May 19:08 -0700
(address . 78356@debbugs.gnu.org)
87sel2hdri.fsf@hiecaq.org
Hi,

Rutherther via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

Toggle quote (51 lines)
> Hi Ludo
>
> Ludovic Courtès <ludo@gnu.org> writes:
>>
>> What command did you run, precisely? I cannot experience it:
>
> For home, I tried my own config, and since I was pretty sure any
> system
> container is affected (tried a simple one, my one and I know one
> other
> person reported this in Matrix channel), I didn't try anything
> simpler
> and just assumed all homes are going to be affected as well.
> Now trying simpler config you mentioned, that one works fine.
>
> The command was `guix home container -L ./home/modules
> ./home/home-container.scm`
> in my repository. It's here
> https://git.ditigal.xyz/~ruther/guix-config.
> Any idea what service could cause this behavior with
> lock-mounts? Would
> be good to isolate it, but I am not sure where to start.
>
> Here is the unshare error I was talking about earlier:
>> guix home: error: unshare: 268566528: Invalid argument
> Now I am getting it consistently, before it was missing
> sometimes.
> Currently on
> ```
>> ./target/guix/bin/guix describe
> guix 300d29e
> repository URL: https://codeberg.org/guix/guix-mirror
> branch: master
> commit: 300d29e69988caf23684f08effa51f621c7ec083
> nonguix 1940698
> repository URL: https://gitlab.com/nonguix/nonguix
> branch: master
> commit: 19406981a9bf9d0b140180f1f3008cb91f716b4b
> ruther 1a49e47
> repository URL: https://git.ditigal.xyz/~ruther/guix-exprs
> branch: main
> commit: 1a49e4760bd922237532fa2eee44bc9e1fe42399
> rde bf8f628
> repository URL: https://git.sr.ht/~abcdw/rde
> branch: master
> commit: bf8f628c4deb9acc94e261db80d301048ea1f0a2
> ```
>
> Thanks
> Rutherther

I'm getting this "unshare: 268566528: Invalid argument" error just
using `guix shell -C -m manifest.scm` when I was trying to develop
a local Haskell package today, and I think it might be relevant to
this bug. Here is the backtrace:

Toggle snippet (40 lines)
guix shell: error: unshare: 268566528: Invalid argument
Backtrace:
16 (primitive-load
"/home/hiecaq/.config/guix/current/bin/…")
In guix/ui.scm:
2369:7 15 (run-guix . _)
2332:10 14 (run-guix-command _ . _)
In ice-9/boot-9.scm:
1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In guix/status.scm:
839:4 12 (call-with-status-report _ _)
In guix/store.scm:
703:3 11 (_)
In ice-9/boot-9.scm:
1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
690:37 9 (thunk)
1331:8 8 (call-with-build-handler _ _)
1331:8 7 (call-with-build-handler #<procedure 7f364c36aea0 at
g…> …)
In guix/scripts/environment.scm:
1184:11 6 (proc _)
In guix/store.scm:
2212:25 5 (run-with-store #<store-connection 256.100
7f364cd41050> …)
In guix/scripts/environment.scm:
898:8 4 (_ _)
In gnu/build/linux-container.scm:
485:7 3 (call-with-container _ _ #:namespaces _ #:host-uids _
# …)
In unknown file:
2 (waitpid #f #<undefined>)
In ice-9/boot-9.scm:
1685:16 1 (raise-exception _ #:continuable? _)
1685:16 0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Wrong type (expecting exact integer): #f

Here is my manifest:

Toggle snippet (41 lines)
(use-modules (guix)
(guix build-system haskell)
(guix git-download)
((guix licenses) #:prefix license:)
(gnu packages)
(gnu packages xorg) ;; for libxpm
(gnu packages wm) ;; for ghc-xmobar
(gnu packages haskell)
(gnu packages haskell-apps))

(specifications->manifest
(list "ghc-xmobar" "ghc" "gcc-toolchain" "libxpm"))

(define %source-dir (dirname (current-filename)))

(define xmobar-hiecaq
(package
(name "xmobar-hiecaq")
(version "0.0.1")
(source
(local-file %source-dir
#:recursive? #t
#:select? (git-predicate %source-dir)))
(build-system haskell-build-system)
(inputs (list ghc-xmobar
libxpm))
(home-page "")
(synopsis
"")
(description
"")
(license license:gpl3+)))

(concatenate-manifests
(list
(specifications->manifest
(list "coreutils" "git" "which"))
(packages->manifest (list cabal-install))
(package->development-manifest xmobar-hiecaq)))

What I did is basically the following things in order (I believe
only the manifest is needed to reproduce):
1. `guix shell -C -m manifest.scm`
2. then I attempted `cabal build` but I realized that now I need
writable root. So
3. I quit the current shell and then `guix shell -C -m
manifest.scm --writable-root`, it failed with the above error.
4. After that, `guix shell -C -m manifest.scm` also failed, but if
I kept retrying sometimes it succeeded. With `--writable-root` it
failed consistently.

Output of `guix describe`:

Toggle snippet (12 lines)
Generation 26 May 17 2025 09:41:21 (current)
nonguix e4459f4
repository URL: https://gitlab.com/nonguix/nonguix
branch: master
commit: e4459f4802e8b222eec55196d44c25dc7a5bc53b
guix 6465931
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 6465931bbc118d4ed9da652b0be74ed844b52b2a


I had been using Guix at the commit
`d505cb960fd1e670be9a66d9fdbad94bc49e891d` before yesterday (so
`--writable-root` were not introduced yet) and I had never got any
similar error before. I hope my case is reproducible ;)

Thanks,
hiecaq
R
R
Rutherther wrote on 17 May 23:57 -0700
(name . Ludovic Courtès)(address . ludo@gnu.org)
87jz6e9zin.fsf@ditigal.xyz
Hi,

hiecaq <this@hiecaq.org> writes:

Toggle quote (6 lines)
>
> I'm getting this "unshare: 268566528: Invalid argument" error just
> using `guix shell -C -m manifest.scm` when I was trying to develop
> a local Haskell package today, and I think it might be relevant to
> this bug. Here is the backtrace:

I can confirm I can get this with your manifest as well. But not
consistently, I have to rerun the shell container multiple times to get
it. Also, from simple trial it seems it's the development inputs of
xmobar-hiecaq that cause this. I am not getting the issue when I comment
everything else in the manifest. But I haven't tried minimizing this
even more to a specific input.

Regards
Rutherther
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 78356@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 78356
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch