{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixops/issues/259","labels_url":"https://api.github.com/repos/NixOS/nixops/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixops/issues/259/comments","events_url":"https://api.github.com/repos/NixOS/nixops/issues/259/events","html_url":"https://github.com/NixOS/nixops/issues/259","id":55416017,"number":259,"title":"nix-copy-closure can't connect to Hetzner host in rescue mode","user":{"login":"basvandijk","id":576355,"avatar_url":"https://avatars.githubusercontent.com/u/576355?v=3","gravatar_id":"","url":"https://api.github.com/users/basvandijk","html_url":"https://github.com/basvandijk","followers_url":"https://api.github.com/users/basvandijk/followers","following_url":"https://api.github.com/users/basvandijk/following{/other_user}","gists_url":"https://api.github.com/users/basvandijk/gists{/gist_id}","starred_url":"https://api.github.com/users/basvandijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basvandijk/subscriptions","organizations_url":"https://api.github.com/users/basvandijk/orgs","repos_url":"https://api.github.com/users/basvandijk/repos","events_url":"https://api.github.com/users/basvandijk/events{/privacy}","received_events_url":"https://api.github.com/users/basvandijk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-01-25T13:32:21Z","updated_at":"2015-03-07T20:27:42Z","closed_at":"2015-03-07T20:27:42Z","body":"I get the following error when trying to deploy NixOS to a Hetzner server:\r\n\r\n```\r\nHETZNER_ROBOT_USER=\"xxxxxx\" \\\r\nHETZNER_ROBOT_PASS=\"xxxxxx\" \\\r\n\"./nixops-HEAD\" deploy -d my-network -I .. --include my-server\r\nbuilding all machine configurations...\r\nmy-server.............> copying closure...\r\nmy-server.............> error: the group ‘nixbld’ specified in ‘build-users-group’ does not exist\r\nmy-server.............> error: the group ‘nixbld’ specified in ‘build-users-group’ does not exist\r\nmy-server.............> unable to connect to ‘root@1xx.1xx.1xx.1xx’; falling back to old closure copying method\r\nmy-server.............> error: the group ‘nixbld’ specified in ‘build-users-group’ does not exist\r\nmy-server.............> Died at /nix/store/ffig6yaggbh12dh9y5pnf1grf5lqyipz-nix-1.8/lib/perl5/site_perl/5.20.1/x86_64-linux-thread-multi/Nix/CopyClosure.pm line 100.\r\nerror: command ‘['nix-copy-closure', '--to', 'root@1xx.1xx.1xx.1xx', u'/nix/store/gyiddbpg4mv8930p0ww4ixsj8sjxnvz9-nixos-15.05pre-git', '--gzip']’ failed on machine ‘my-server’ (exit code 1)\r\n```\r\n\r\n`my-server` is simply defined as:\r\n\r\n```nix\r\n  my-server = { config, pkgs, ... }: {\r\n    deployment = {\r\n      targetEnv        = \"hetzner\";\r\n      hetzner.mainIPv4 = \"1xx.1xx.1xx.1xx\";\r\n    };\r\n```\r\n\r\nNote that I'm using `nixpkgs` at revision: https://github.com/NixOS/nixpkgs/commit/5bc68e1a0ee8ff5f6670c62567679dfbf7ea4052 \r\n\r\nNote that `nixops-HEAD` is a bash script which runs the latest nixops from git:\r\n\r\n```bash\r\n#!/usr/bin/env bash\r\n\r\ncmd=\"nixops\"\r\nfor var in \"$@\"\r\ndo\r\n  cmd=\"${cmd} \\\"$var\\\"\"\r\ndone\r\n\r\nnix-shell nixops-HEAD-env.nix -I .. --command \"$cmd\"\r\n```\r\n\r\nwhere `nixops-HEAD-env.nix` is defined as:\r\n\r\n```nix\r\n# This adds nixops-HEAD to the environment so we can\r\n# benefit from the latest bug-fixes.\r\n#\r\n# It depends on the source of nixops to be in the ./nixops directory.\r\n#\r\n# We currently have nixops checked out in ./nixops as a git submodule.\r\n\r\n{ pkgs ? import <nixpkgs> {} }:\r\n\r\nlet nixopsUnstable = pkgs.callPackage\r\n      <nixpkgs/pkgs/tools/package-management/nixops/unstable.nix> {};\r\n\r\n    nixopsHEAD = pkgs.stdenv.lib.overrideDerivation nixopsUnstable (oldAttrs: {\r\n      name = \"nixops-HEAD\";\r\n      src = ./nixops;\r\n      patches = [];\r\n    });\r\n\r\nin\r\npkgs.myEnvFun {\r\n  name = \"nixops-HEAD\";\r\n  buildInputs = [\r\n    nixopsHEAD\r\n  ];\r\n}\r\n```\r\n\r\nAnd `./nixops` is at revision: e29fa84b2a5d6fef1870d117efbfddb877f8068c."}}