Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-installer hangs on testing nix install via zsh #946

Open
trent-annalect opened this issue Apr 30, 2024 · 0 comments
Open

nix-installer hangs on testing nix install via zsh #946

trent-annalect opened this issue Apr 30, 2024 · 0 comments

Comments

@trent-annalect
Copy link

Running the following command hangs, and I break out after ~20 minutes:

❯ sudo sh installer.sh self-test -v
info: downloading installer https://install.determinate.systems/nix/tag/v0.18.0/nix-installer-aarch64-darwin
DEBUG execute:self_test:discover: Discovered `sh`
DEBUG execute:self_test:discover: Discovered `bash`
DEBUG execute:self_test:discover: Discovered `zsh`
DEBUG execute:self_test:self_test: Testing Nix install via `sh` command="\"sh\" \"-lc\" \"nix build --no-link --expr \\'derivation { name = \\\"self-test-sh-1714516181136\\\"; system = \\\"aarch64-darwin\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\""
DEBUG execute:self_test:self_test: Testing Nix install via `bash` command="\"bash\" \"-lc\" \"nix build --no-link --expr \\'derivation { name = \\\"self-test-bash-1714516186163\\\"; system = \\\"aarch64-darwin\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\""
DEBUG execute:self_test:self_test: Testing Nix install via `zsh` command="\"zsh\" \"-ic\" \"nix build --no-link --expr \\'derivation { name = \\\"self-test-zsh-1714516191414\\\"; system = \\\"aarch64-darwin\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\""



^C
Error:
   0: Self test error, install may be only partially functional
   0: Shell `zsh` failed self-test with command `"zsh" "-ic" "nix build --no-link --expr \'derivation { name = \"self-test-zsh-1714516191414\"; system = \"aarch64-darwin\"; builder = \"/bin/sh\"; args = [\"-c\" \"echo hello > \\$out\"]; }\'"`, stderr:
      /Users/trenton.ornelas/.zshrc:4: job table full or recursion limit exceeded
      /Users/trenton.ornelas/.oh-my-zsh/oh-my-zsh.sh:2: job table full or recursion limit exceeded
      /Users/trenton.ornelas/.p10k.zsh:15: job table full or recursion limit exceeded
      bashcompinit:178: job table full or recursion limit exceeded
      /Users/trenton.ornelas/.oh-my-zsh/oh-my-zsh.sh:56: job table full
      (anon):8: job table full or recursion limit exceeded
      complete:13: job table full or recursion limit exceeded
      /Users/trenton.ornelas/.oh-my-zsh/tools/check_for_upgrade.sh:30: job table full or recursion limit exceeded
      /Users/trenton.ornelas/.oh-my-zsh/oh-my-zsh.sh:86: job table full or recursion limit exceeded
      is-at-least:23: job table full or recursion limit exceeded
      complete:13: job table full
      is_plugin:1: job table full or recursion limit exceeded
      is-at-least:33: job table full or recursion limit exceeded
      complete:13: command not found: compdef
      compinit:81: job table full or recursion limit exceeded
      complete:13: command not found: compdef
      compinit:87: job table full or recursion limit exceeded
      complete:13: command not found: compdef
      (eval):1: job table full or recursion limit exceeded
      compinit:532: job table full or recursion limit exceeded
      compaudit:176: job table full or recursion limit exceeded
      compinit:535: job table full or recursion limit exceeded
      compaudit:135: job table full or recursion limit exceeded
      compdef:1: job table full or recursion limit exceeded
      compaudit:135: job table full
      compdef:14: job table full or recursion limit exceeded
      compdef:131: job table full or recursion limit exceeded
      compdef:169: job table full or recursion limit exceeded
      compdef:95: job table full or recursion limit exceeded
      compdef:95: job table full

   0:

Location:
   src/cli/subcommand/self_test.rs:15

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   0: nix_installer::cli::subcommand::self_test::execute
      at src/cli/subcommand/self_test.rs:13

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Self+test+error%2C+install+may+be+only+partially+functional%0A+++0%3A+Shell+%60zsh%60+failed+self-test+with+command+%60%22zsh%22+%22-ic%22+%22nix+build+--no-link+--expr+%5C%27derivation+%7B+name+%3D+%5C%22self-test-zsh-1714516191414%5C%22%3B+system+%3D+%5C%22aarch64-darwin%5C%22%3B+builder+%3D+%5C%22%2Fbin%2Fsh%5C%22%3B+args+%3D+%5B%5C%22-c%5C%22+%5C%22echo+hello+%3E+%5C%5C%24out%5C%22%5D%3B+%7D%5C%27%22%60%2C+stderr%3A%0A++++++%2FUsers%2Ftrenton.ornelas%2F.zshrc%3A4%3A+job+table+full+or+recursion+limit+exceeded%0A++++++%2FUsers%2Ftrenton.ornelas%2F.oh-my-zsh%2Foh-my-zsh.sh%3A2%3A+job+table+full+or+recursion+limit+exceeded%0A++++++%2FUsers%2Ftrenton.ornelas%2F.p10k.zsh%3A15%3A+job+table+full+or+recursion+limit+exceeded%0A++++++bashcompinit%3A178%3A+job+table+full+or+recursion+limit+exceeded%0A++++++%2FUsers%2Ftrenton.ornelas%2F.oh-my-zsh%2Foh-my-zsh.sh%3A56%3A+job+table+full%0A++++++%28anon%29%3A8%3A+job+table+full+or+recursion+limit+exceeded%0A++++++complete%3A13%3A+job+table+full+or+recursion+limit+exceeded%0A++++++%2FUsers%2Ftrenton.ornelas%2F.oh-my-zsh%2Ftools%2Fcheck_for_upgrade.sh%3A30%3A+job+table+full+or+recursion+limit+exceeded%0A++++++%2FUsers%2Ftrenton.ornelas%2F.oh-my-zsh%2Foh-my-zsh.sh%3A86%3A+job+table+full+or+recursion+limit+exceeded%0A++++++is-at-least%3A23%3A+job+table+full+or+recursion+limit+exceeded%0A++++++complete%3A13%3A+job+table+full%0A++++++is_plugin%3A1%3A+job+table+full+or+recursion+limit+exceeded%0A++++++is-at-least%3A33%3A+job+table+full+or+recursion+limit+exceeded%0A++++++complete%3A13%3A+command+not+found%3A+compdef%0A++++++compinit%3A81%3A+job+table+full+or+recursion+limit+exceeded%0A++++++complete%3A13%3A+command+not+found%3A+compdef%0A++++++compinit%3A87%3A+job+table+full+or+recursion+limit+exceeded%0A++++++complete%3A13%3A+command+not+found%3A+compdef%0A++++++%28eval%29%3A1%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compinit%3A532%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compaudit%3A176%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compinit%3A535%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compaudit%3A135%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compdef%3A1%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compaudit%3A135%3A+job+table+full%0A++++++compdef%3A14%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compdef%3A131%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compdef%3A169%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compdef%3A95%3A+job+table+full+or+recursion+limit+exceeded%0A++++++compdef%3A95%3A+job+table+full%0A%0A%0A%60%60%60%0A%0A%23%23+Metadata%0A%7Ckey%7Cvalue%7C%0A%7C--%7C--%7C%0A%7C**version**%7C0.18.0%7C%0A%7C**os**%7Cmacos%7C%0A%7C**arch**%7Caarch64%7C%0A%0A%0A%23%23+SpanTrace%0A%0A%3Cdetails%3E%0A%0A%60%60%60%0ASpanTrace%3A%0A+++0%3A+nix_installer%3A%3Acli%3A%3Asubcommand%3A%3Aself_test%3A%3Aexecute%0A+++++++++++++at+src%2Fcli%2Fsubcommand%2Fself_test.rs%3A13%0A%60%60%60%0A%3C%2Fdetails%3E

System:
M1 Macbook Pro
Sonoma 14.4.1

bash:

❯ bash --version
GNU bash, version 5.2.15(1)-release (aarch64-apple-darwin21.6.0)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

zsh:

❯ zsh --version
zsh 5.9 (x86_64-apple-darwin23.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant