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

unable to load seccomp BPF program: Invalid argument #1

Closed
bohendo opened this issue Nov 17, 2022 · 1 comment
Closed

unable to load seccomp BPF program: Invalid argument #1

bohendo opened this issue Nov 17, 2022 · 1 comment

Comments

@bohendo
Copy link

bohendo commented Nov 17, 2022

Progress:

  • I got the docker container running w/out any issues
  • I'm able to access the docker container via either ssh local-linux or sudo ssh local-linux
  • I'm using nix-darwin & configured the remote builder like so:
  nix.settings.allowed-users = [ "root" "bohendo" ];
  nix.settings.trusted-users = [ "root" "bohendo" ];
  nix.distributedBuilds = true;
  nix.buildMachines = [{
    hostName = "local-linux";
    sshKey = "/tmp/nix/insecure_rsa";
    sshUser = "root";
    system = "x86_64-linux";
  }];
  nix.extraOptions = ''
    experimental-features = nix-command flakes
  '';

And when I try to run the test in this repo, I get the following:

bohendo@darwin:~/d/github/nix-remote-builder/test
$ bash test.sh 
this derivation will be built:
  /nix/store/srcabd4d9aa063pwlyziw007bby3mppr-build-test.drv
this path will be fetched (0.69 MiB download, 0.69 MiB unpacked):
  /nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz
copying path '/nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz' from 'https://cache.nixos.org'...
building '/nix/store/srcabd4d9aa063pwlyziw007bby3mppr-build-test.drv' on 'ssh://root@local-linux'...
copying 1 paths...
copying path '/nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz' to 'ssh://root@local-linux'...
error: build of '/nix/store/srcabd4d9aa063pwlyziw007bby3mppr-build-test.drv' on 'ssh://root@local-linux' failed: while setting up the build environment: unable to load seccomp BPF program: Invalid argument
error: builder for '/nix/store/srcabd4d9aa063pwlyziw007bby3mppr-build-test.drv' failed with exit code 1

I found a related issue that suggested setting filter-syscalls = false but this option doesn't appear to exist anymore. Even if it did, I'd rather provide a valid argument than disable important safety features. One comment suggested it might be bug in docker so maybe it's something that this repo's docker container could fix? I'm not really sure how to proceed.

  • system: "aarch64-darwin"
  • host os: Darwin 22.1.0, macOS 13.0.1
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.10.3
  • channels(bohendo): "darwin, nixpkgs"
  • channels(root): "nixpkgs"
  • nixpkgs: /Users/bohendo/.nix-defexpr/channels/nixpkgs
@bohendo
Copy link
Author

bohendo commented Nov 17, 2022

Closing this issue in favor of a similar upstream issue: LnL7/nix-docker#41 (comment)

@bohendo bohendo closed this as completed Nov 17, 2022
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