nixops-hetzner
nixops-hetzner copied to clipboard
Fresh nixops deploy on hetzner fails because of broken build2Packages.nixpart0
See https://github.com/NixOS/nixpkgs/issues/86403.
I am also filing it here for visibility and because, potentially, it could be fixed in nixops by using a newer nixpart version.
build2Packages.nixpart
works.
❯ nixops deploy -d dont-touch-hetzner-new
warning: unknown setting 'experimental-features'
warning: unknown setting 'experimental-features'
webserver2> installing machine...
webserver.> installing machine...
webserver2> rebooting machine ‘webserver2’ (116.202.241.221) into rescue system
webserver.> rebooting machine ‘webserver’ (136.243.104.225) into rescue system
webserver.> sending hard reset to robot...
webserver2> sending reboot command...
webserver2> bash: warning: setlocale: LC_TIME: cannot change locale ()
webserver.> done.
webserver.> waiting for rescue system...[down]Connection to 116.202.241.221 closed by remote host.
webserver2> done.
webserver2> waiting for rescue system...
webserver.> ..
webserver2> [down]
[...]
webserver2> .[up]
webserver2> building Nix bootstrap installer...
webserver.> .these derivations will be built:
/nix/store/bn9dnb20l41szdwycpbbrafqpvps8pk5-cryptsetup-1.6.3.drv
/nix/store/np3r9xm0196kkj1630jic5hkdd8s9qhi-lvm2-2.02.106.drv
/nix/store/cbif25ga724sbaf9dgj1zqp293km8q6q-multipath-tools-0.4.9.drv
/nix/store/lp6b2k48yp01ymb9lyxcg441jk0j00hc-dmraid-1.0.0.rc15.drv
/nix/store/hnfnbxiw7n5k2q10d6fdsf0lf53xmsi7-pyblock-0.53.drv
/nix/store/bzab2pafnr9p34skyg07wv386q32kild-parted-3.1.drv
/nix/store/zs49fplg5jk022f29az94pdhr2lkhaqj-pyparted-3.10.drv
/nix/store/qzfcy012f6zknw0nd1mq750957j41fby-blivet-0.17-1.drv
/nix/store/a589gqvazqrn2adk1f78jlfgw7pk97rn-nixpart-0.4.1.drv
/nix/store/kcajq35nsrij1a9bf90chx37yhwx8hzk-hetzner-nixops-installer.drv
[...]
builder for '/nix/store/bn9dnb20l41szdwycpbbrafqpvps8pk5-cryptsetup-1.6.3.drv' failed with exit code 2
cannot build derivation '/nix/store/qzfcy012f6zknw0nd1mq750957j41fby-blivet-0.17-1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/a589gqvazqrn2adk1f78jlfgw7pk97rn-nixpart-0.4.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/kcajq35nsrij1a9bf90chx37yhwx8hzk-hetzner-nixops-installer.drv': 1 dependencies couldn't be built
error: build of '/nix/store/kcajq35nsrij1a9bf90chx37yhwx8hzk-hetzner-nixops-installer.drv' failed
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^Cerror: interrupted
It is also probably not ideal to still depend on a very old cryptsetup here.
Just a note this has been fixed in nixpkgs with:
- https://github.com/NixOS/nixpkgs/pull/89948 - master
- https://github.com/NixOS/nixpkgs/pull/90064 - 20.03
Would you consider this issue to be solved or do you feel it hasn't been addressed in a satisfactory manner?
Sorry if I'm being a nuisance, just wanted to check if you had a chance to take another look at this issue?
I ran into the same issue and the patch solved it for me. Thanks.