-
Notifications
You must be signed in to change notification settings - Fork 108
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
Deployment to NixOS failing #444
Comments
i'm getting the same error on VM builded with https://github.com/NixOS/nixpkgs/blob/master/nixos/maintainers/scripts/azure/create-azure.sh I couldn't have found any occurrences of Any ideas what that could be? |
The /dev/xvda seems to be an expected value for the amazon images according to https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/amazon-image.nix. The failing script is this one https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/loader/grub/install-grub.pl which takes it's device config from an xml file apparently, still haven't found where that config is defined though. |
it makes sense if you take a look on https://github.com/obsidiansystems/obelisk/blob/develop/default.nix#L178 which is called by the question is how to work around that? |
It looks like |
I'm trying to deploy to a computer were I installed NixOS and I'm having trouble deploying to it. I guess I should remove |
@jrodriguesimg you haven't provided enough information for us to help you. What is the error you are seeing? Can you share your |
@vaibhavsagar it's the same error that started this issue. It shouldn't need to change grub just to deploy a web server. Thanks. @alexfmpe I removed the amazon-image.nix part. Can you help me install the new ob command and replace the current one? |
Added to README |
I tried removing the amazon-image.nix and installed the new ob command, but still got the same error while deploying. I even tried running from the result/bin/ob in the obelisk directory. Change I made to default.nix:
The error (the folder ../obelisk/ is where I cloned the obelisk repository):
|
I have replicated this issue with the 19.09 The output was:
|
When deploying to non amazon instances an error related to GRUB was appearing. This commit creates a new option virtualization_type that defaults to `amazon` but can be replaced by `virtualbox`, `azure`, `brightbox`, `digital-ocean`, `docker-image` and `google-compute` image. This behavior is not documented because no options other than amazon are formally supportedi in Obelisk, but makes an implicit assumption explicit. This has been reported on Github and Reddit: https://www.reddit.com/r/reflexfrp/comments/9yzqok/obelisk_deployment_issues/ and #444
It's now possible to configure for non-EC2 deployments: https://github.com/obsidiansystems/obelisk/blob/0403aa5e8cac158fa1309c9dc78b146bca6f3206/README.md#custom-non-ec2-deployment Note that this feature isn't released yet. |
I'm trying to use ob deploy with the default obelisk skeleton (no code edited here).
The ob deploy push errors with the following message
I don't think it's an issue with the ssh credentials since the closures uploading step completes successfully.
Trying to execute the last command directly on the server as root
The NixOs I'm deploying too isn't ec2. It's an installation generated with https://github.com/elitak/nixos-infect which gave me those pretty barebone config files :
configuration.nix
hardware-configuration.nix
Also, the NixOs channel used is 19.03.
Are those errors linked in any way to Obelisk scripts or should i turn somewhere else for help ?
The text was updated successfully, but these errors were encountered: