Skip to content

SelfTest is throwing a ShellFailed error #136

@flexiondotorg

Description

@flexiondotorg

During the installation of Determinate Nix via the action, the SelfTest is failing. Here's a log capturing the error:

Installing Determinate Nix using the --determinate flag
/home/runner/work/_temp/nix-installer-0685cae1-1701-42cb-9ef2-6a0d947ffbad/nix-installer install linux --determinate
 INFO nix-installer v0.34.0
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
 INFO nix-installer v0.34.0
 INFO Step: Create directory `/nix`
 INFO Step: Install Determinate Nixd
 INFO Step: Provision Nix
Received 35441700 of 35441700 (100.0%), 16.9 MBs/sec
 INFO Step: Create build users (UID 30001-30032) and group (GID 30000)
 INFO Step: Configure Nix
 INFO Step: Create directory `/etc/tmpfiles.d`
 INFO Step: Configure the Determinate Nix daemon
 INFO Step: Remove directory `/nix/temp-install-dir`
 WARN SelfTest([ShellFailed { shell: Sh, command: "\"sh\" \"-lc\" \"nix build --option substitute false --no-link --expr \\'derivation { name = \\\"self-test-sh-1737643290519\\\"; system = \\\"x86_64-linux\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"", output: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "this derivation will be built:\n  /nix/store/1ksz3dqmz8gisnigyy5ag1g7l6b8s273-self-test-sh-1737643290519.drv\nbuilding '/nix/store/1ksz3dqmz8gisnigyy5ag1g7l6b8s273-self-test-sh-1737643290519.drv'...\nerror: program '/nix/var/determinate/post-build-hook.sh' failed with exit code 1\n" } }, ShellFailed { shell: Bash, command: "\"bash\" \"-lc\" \"nix build --option substitute false --no-link --expr \\'derivation { name = \\\"self-test-bash-1737643290661\\\"; system = \\\"x86_64-linux\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"", output: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "this derivation will be built:\n  /nix/store/zkmbwy2wpgxv4ljqf0zi01frqpklxw4x-self-test-bash-1737643290661.drv\nbuilding '/nix/store/zkmbwy2wpgxv4ljqf0zi01frqpklxw4x-self-test-bash-1737643290661.drv'...\nerror: program '/nix/var/determinate/post-build-hook.sh' failed with exit code 1\n" } }])
Nix was installed successfully!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions