Self-test fails in --init none environments #73

Open
opened 2026-03-24 09:42:58 +00:00 by ofalvai · 0 comments

After a91194c204 fixed the install command itself, I think there is still one more regression left: the self-test subcommand fails with the same socket error:

 > [5/6] RUN /nix/nix-installer self-test:
0.164  INFO nix-installer v3.95.0
0.336 Error:
0.336    0: Self test error, install may be only partially functional
0.336       Shell `sh` failed self-test with command `"sh" "-lc" "exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = \"self-test-sh-1774345338398\"; system = \"aarch64-linux\"; builder = \"/bin/sh\"; args = [\"-c\" \"echo hello > \\$out\"]; }'"`, stderr:
0.336       error:
0.336              … while evaluating an expression to select 'drvPath' on it
0.336                at «internal»:1:552:
0.336              … while evaluating strict
0.336                at «internal»:1:552:
0.336              (stack trace truncated; use '--show-trace' to show the full trace)
0.336
0.336              error: could not connect to any lix socket (tried /nix/var/nix/daemon-socket/socket)
0.336
0.336              note: trace involved the following derivations:
0.336              derivation 'self-test-sh-1774345338398'
0.336
0.336
0.336       Shell `bash` failed self-test with command `"bash" "-lc" "exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = \"self-test-bash-1774345338555\"; system = \"aarch64-linux\"; builder = \"/bin/sh\"; args = [\"-c\" \"echo hello > \\$out\"]; }'"`, stderr:
0.336       error:
0.336              … while evaluating an expression to select 'drvPath' on it
0.336                at «internal»:1:552:
0.336              … while evaluating strict
0.336                at «internal»:1:552:
0.336              (stack trace truncated; use '--show-trace' to show the full trace)
0.336
0.336              error: could not connect to any lix socket (tried /nix/var/nix/daemon-socket/socket)
0.336
0.336              note: trace involved the following derivations:
0.336              derivation 'self-test-bash-1774345338555'
After https://git.lix.systems/lix-project/lix-installer/commit/a91194c204659ea43a51ca4446bbf8f64a98b7c8 fixed the install command itself, I think there is still one more regression left: the `self-test` subcommand fails with the same socket error: ``` > [5/6] RUN /nix/nix-installer self-test: 0.164 INFO nix-installer v3.95.0 0.336 Error: 0.336 0: Self test error, install may be only partially functional 0.336 Shell `sh` failed self-test with command `"sh" "-lc" "exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = \"self-test-sh-1774345338398\"; system = \"aarch64-linux\"; builder = \"/bin/sh\"; args = [\"-c\" \"echo hello > \\$out\"]; }'"`, stderr: 0.336 error: 0.336 … while evaluating an expression to select 'drvPath' on it 0.336 at «internal»:1:552: 0.336 … while evaluating strict 0.336 at «internal»:1:552: 0.336 (stack trace truncated; use '--show-trace' to show the full trace) 0.336 0.336 error: could not connect to any lix socket (tried /nix/var/nix/daemon-socket/socket) 0.336 0.336 note: trace involved the following derivations: 0.336 derivation 'self-test-sh-1774345338398' 0.336 0.336 0.336 Shell `bash` failed self-test with command `"bash" "-lc" "exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = \"self-test-bash-1774345338555\"; system = \"aarch64-linux\"; builder = \"/bin/sh\"; args = [\"-c\" \"echo hello > \\$out\"]; }'"`, stderr: 0.336 error: 0.336 … while evaluating an expression to select 'drvPath' on it 0.336 at «internal»:1:552: 0.336 … while evaluating strict 0.336 at «internal»:1:552: 0.336 (stack trace truncated; use '--show-trace' to show the full trace) 0.336 0.336 error: could not connect to any lix socket (tried /nix/var/nix/daemon-socket/socket) 0.336 0.336 note: trace involved the following derivations: 0.336 derivation 'self-test-bash-1774345338555' ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix-installer#73
No description provided.