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

Hetzner Deployment Example not working #11

Open
mharrend opened this issue Aug 10, 2018 · 1 comment
Open

Hetzner Deployment Example not working #11

mharrend opened this issue Aug 10, 2018 · 1 comment

Comments

@mharrend
Copy link

Dear all,

I am trying to deploy NixOS on a bare metal server as described in
https://nixos.org/nixops/manual/#idm140737318354032

My nixops default.nix file looks like this

{
  quicksilver = {
    deployment.targetEnv = "hetzner";
    deployment.hetzner.mainIPv4 = "46.X.X.X";
    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
    '';
  };
}

I am trying to deploy NixOS via

nixops create  -d default default.nix
nixops deploy -d default

However, the deployment always gets stucked here:

default> creating an exclusive robot admin sub-account for ‘default’... done. (XXXXXXXXXXXXX)
default> installing machine...
default> rebooting machine ‘default’ (46.X.X.X) into rescue system
default> sending hard reset to robot... done.
default> waiting for rescue system...[down].................................[up]
default> building Nix bootstrap installer... done. (/nix/store/1if0dzhqbj5mh1wijgyw4b7270hlzdbr-hetzner-nixops-installer/bin/hetzner-bootstrap)
default> creating nixbld group in rescue system... 
default> could not connect to ‘root@46.’, retrying in 1 seconds...
default> could not connect to ‘root@46.’, retrying in 2 seconds...
default> could not connect to ‘root@46.’, retrying in 4 seconds...
default> could not connect to ‘root@46.’, retrying in 8 seconds...
error: unable to start SSH master connection to ‘root@46.’

So for some reason nixops cannot connect to the rescue system.

However, if I use nixops export -d default to get the password of the rescue system I can log into the rescue system via the usual ssh.

Any help with this issue would be highly appreciated.

Thanks

PS: I should mention that I am using nixops on an Ubuntu system.

@mharrend
Copy link
Author

Dear all,

I know that we are all busy nowadays. I tried to get some help via the Google Mailing list and also via this issue report , but after a month I did not get any response yet.

Is there some other place were I should ask this question?

Thanks in advance for any response

@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