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

Deploying to Hetzner /bin/udevadm: cannot execute binary file: Exec format error #33

Open
gallexme opened this issue Nov 16, 2018 · 0 comments

Comments

@gallexme
Copy link

steps to reproduce:

{
  example = {
    deployment.targetEnv = "hetzner";
    deployment.hetzner.mainIPv4 = "xxxx";
    deployment.hetzner.robotUser = "xyz";
    deployment.hetzner.robotPass = "yz";
    deployment.hetzner.createSubAccount = false;
    deployment.hetzner.partitions = ''
      clearpart --all --initlabel --drives=sda,sdb

      part swap1 --recommended --label=swap1 --fstype=swap --ondisk=sda
      part swap2 --recommended --label=swap2 --fstype=swap --ondisk=sdb

      part btrfs.1 --grow --ondisk=sda
      part btrfs.2 --grow --ondisk=sdb

      btrfs / --data=1 --metadata=1 --label=root btrfs.1 btrfs.2
    '';
  };
}

WSL Ubuntu 18.04.1 LTS
curl https://nixos.org/nix/install | sh
git clone https://github.com/NixOS/nixops.git
cd nixops && ./dev-shell && cd ..
nixops create -d example example.nix
nixops deploy -d example

stops at

warning: working around a Linux kernel bug by creating a hole of 2097152 bytes in ‘/nix/store/brxh74wgp086n7y89zznmd1ylkcnsxws-extra-utils/bin/udevadm’
patching /nix/store/brxh74wgp086n7y89zznmd1ylkcnsxws-extra-utils/bin/v4l_id...
warning: working around a Linux kernel bug by creating a hole of 2097152 bytes in ‘/nix/store/brxh74wgp086n7y89zznmd1ylkcnsxws-extra-utils/bin/v4l_id’
testing patched programs...
hello world
/tmp/nix-build-extra-utils.drv-0/.attr-0: line 96: /nix/store/brxh74wgp086n7y89zznmd1ylkcnsxws-extra-utils/bin/udevadm: cannot execute binary file: Exec format error
builder for '/nix/store/6ngvxvq53i6anhlgpdlaahbs0lry4c7n-extra-utils.drv' failed with exit code 126
building '/nix/store/bn6yg6jnm46hxhn2qd23h9aq2z3hs502-firewall-stop.drv'...
cannot build derivation '/nix/store/dhbpq4ixaf62h6zryjq7qrpwd5lm2pjb-stage-1-init.sh.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/37ga9wz1s3d1cl9agb8f7x0rdk68x4vy-initrd.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/mxh9dky47lkyihb8q8xdrl0m10khrb09-nixos-system-example-19.03pre159144.0249f7d48af.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ad7xwbhi7mkmk9yp8pdl73na04f1c1vz-nixops-machines.drv': 1 dependencies couldn't be built
error: build of '/nix/store/ad7xwbhi7mkmk9yp8pdl73na04f1c1vz-nixops-machines.drv' failed

@grahamc grahamc transferred this issue from NixOS/nixops Apr 20, 2020
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