digitallyinduced / ihp

🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness
https://ihp.digitallyinduced.com/
MIT License
4.93k stars 195 forks source link

`deploy-to-nixos` Grub issue #1937

Open AronNovak opened 7 months ago

AronNovak commented 7 months ago

After a series of successful deployments, I got this while doing deploy-to-nixos qa-server:

Shared connection to ec2-111-111-111-111.compute-1.amazonaws.com. closed.
updating GRUB 2 menu...
installing the GRUB 2 boot loader on /dev/xvda...
Installing for i386-pc platform.
/nix/store/rflv7474psa19pqsnv940l23a70a7rq5-grub-2.12/sbin/grub-install: error: cannot find a GRUB drive for /dev/xvda.  Check your device.map.
/nix/store/jbij3r324xraik58v2cv2fzfkflsgjxp-install-grub.pl: installation of GRUB on /dev/xvda failed: Inappropriate ioctl for device

As in the flake.nix, we do not customize anything related to Grub, it might be some of the dependencies in the background for NixOS.

amitaibu commented 7 months ago

@mpscholten we are running our app on IHP latest master, so I suspect it's related to the GHC upgrade?

mpscholten commented 7 months ago

Yes, very likely caused by the new nixpkgs version. I'll try to fix this soon. As a workaround you could use an older IHP commit to run the app

amitaibu commented 7 months ago

Thanks, for now we downgraded IHP

{
    inputs = {
-       ihp.url = "github:digitallyinduced/ihp";
+       ihp.url = "github:digitallyinduced/ihp/f7f7f4ee9019078ab5d243db30c1381afa88bf1c";
mpscholten commented 6 months ago

Any updates on this one?

amitaibu commented 6 months ago

Not yet, @AronNovak is going to try to re-deploy, once he has some time. We'll update :)