Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

determined systems nix installer fails during build qemu arm64 cross-arch container build #14

Closed
usrbinkat opened this issue Nov 13, 2023 · 2 comments
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed

Comments

@usrbinkat
Copy link
Contributor

What happened?

Tried building multi-arch container including nix+devbox with gha using docker buildx but the build fails per the following snippet.

As a temporary workaround, added a ternary to skip the nix+devbox install in the arm64 build until resolved.

Example

#31 15.84  INFO Step: Configure Nix
#31 16.95 Error: 
#31 16.95    0: Install failure
#31 16.95    1: Error executing action
#31 16.96    2: Action `configure_nix` errored
#31 16.96    3: Action `setup_default_profile` errored
#31 16.96    4: Failed to execute command with status 1 `HOME="/root" NIX_SSL_CERT_FILE="/nix/store/vlnayiihjkzx3fhfshgp5iyibj6pvpl6-nss-cacert-3.92/etc/ssl/certs/ca-bundle.crt" "/nix/store/hh65xwqm9s040s3cgn9vzcmrxj0sf5ij-nix-2.18.1/bin/nix-env" "-i" "/nix/store/hh65xwqm9s040s3cgn9vzcmrxj0sf5ij-nix-2.18.1"`, stdout: 
#31 16.96       stderr: installing 'nix-2.18.1'
#31 16.96       error:
#31 16.96              … while setting up the build environment
#31 16.96 
#31 16.96              error: unable to load seccomp BPF program: Invalid argument
#31 16.96 
#31 16.96 
#31 16.96 
#31 16.96 Location:
#31 16.96    /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/convert/mod.rs:716
#31 16.96 
#31 16.96 Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
#31 16.96 Run with RUST_BACKTRACE=full to include source snippets.
#31 16.96 
#31 16.96 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+Install+failure%0A+++1%3A+Error+executing+action%0A+++2%3A+Action+%60configure_nix%60+errored%0A+++3%3A+Action+%60setup_default_profile%60+errored%0A+++4%3A+Failed+to+execute+command+with+status+1+%60HOME%3D%22%2Froot%22+NIX_SSL_CERT_FILE%3D%22%2Fnix%2Fstore%2Fvlnayiihjkzx3fhfshgp5iyibj6pvpl6-nss-cacert-3.92%2Fetc%2Fssl%2Fcerts%2Fca-bundle.crt%22+%22%2Fnix%2Fstore%2Fhh65xwqm9s040s3cgn9vzcmrxj0sf5ij-nix-2.18.1%2Fbin%2Fnix-env%22+%22-i%22+%22%2Fnix%2Fstore%2Fhh65xwqm9s040s3cgn9vzcmrxj0sf5ij-nix-2.18.1%22%60%2C+stdout%3A+%0A++++++stderr%3A+installing+%27nix-2.18.1%27%0A++++++error%3A%0A+++++++++++++%E2%80%A6+while+setting+up+the+build+environment%0A%0A+++++++++++++error%3A+unable+to+load+seccomp+BPF+program%3A+Invalid+argument%0A%0A%0A%60%60%60%0A%0A%23%23+Metadata%0A%7Ckey%7Cvalue%7C%0A%7C--%7C--%7C%0A%7C**version**%7C0.14.0%7C%0A%7C**os**%7Clinux%7C%0A%7C**arch**%7Caarch64%7C%0A
#31 ERROR: process "/bin/sh -c set -ex      && curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix         | sh -s -- install linux --extra-conf \"sandbox = false\" --init none --no-confirm      && bash -c \"nix --version\"      && true" did not complete successfully: exit code: 1

Full logs: https://github.com/usrbinkat/devcontainer/actions/runs/6855330614/job/18640135431#step:6:29535

Output of pulumi about

N/A

Additional context

Engaged @lucperkins for resolution.

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@usrbinkat usrbinkat added the kind/bug Some behavior is incorrect or out of spec label Nov 13, 2023
@usrbinkat usrbinkat self-assigned this Nov 13, 2023
@usrbinkat
Copy link
Contributor Author

Resolved with #18

@pulumi-bot
Copy link

Cannot close issue:

  • does not have required labels: resolution/

Please fix these problems and try again.

@pulumi-bot pulumi-bot reopened this Nov 14, 2023
@usrbinkat usrbinkat added the resolution/fixed This issue was fixed label Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

2 participants