NixOS / nixops-hetzner

GNU Lesser General Public License v3.0
48 stars 14 forks source link

Hetzner Deployment Example not working #11

Open mharrend opened 6 years ago

mharrend commented 6 years ago

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 commented 6 years ago

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