NixOS / nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud.
https://nixos.org/nixops
GNU Lesser General Public License v3.0
1.86k stars 365 forks source link

Can't deploy to EC2 #1394

Open tathougies opened 4 years ago

tathougies commented 4 years ago

After upgrading my machine from 19.09 to 20.03, i'm trying to deploy my nixops machines. Naturally, they also upgrade (on same nixpkgs). However, it won't actually complete the deployment:

hydra................> /nix/store/yp6d5pd834fgsnbww1cdb0ihzn894iwl-grub-2.04/sbin/grub-install: error: cannot find a GRUB drive for /dev/xvda.  Check your device.map.
hydra................> /nix/store/0yhyyya13q6aw83km9lq23zc6i95bkcf-install-grub.pl: installation of GRUB on /dev/xvda failed
hydra................> error: Traceback (most recent call last):
  File "/nix/store/5cqj6sjb7i4hklfrqllvpf30i1650l66-nixops-1.7/lib/python2.7/site-packages/nixops/deployment.py", line 743, in worker
    raise Exception("unable to activate new configuration (exit code {})".format(res))
Exception: unable to activate new configuration (exit code 1)
tewfik-ghariani commented 3 years ago

Can you deploy with the --allow-reboot option to stop/start the machine?