nix-deploy icon indicating copy to clipboard operation
nix-deploy copied to clipboard

Fails with nix 1.12

Open chris-martin opened this issue 7 years ago • 4 comments

Hey, heads up, nix-deploy doesn't seem to work with nix 1.12. I just installed nixUnstable and tried to run nix-deploy, and got this result:

[+] Downloading: /etc/nix/signing-key.sec
[+] Installing: /etc/nix/signing-key.sec
[+] Downloading: /etc/nix/signing-key.pub
[+] Installing: /etc/nix/signing-key.pub
[+] Installing system: /nix/store/nx3f93ll1dksdpypqik1rbrp013vclm2-nixos-system-tc-webserver1-18.03pre-git

error: invalid SSH host name '--sign'
nix-deploy: user error ([x] Failed transferring /nix/store/nx3f93ll1dksdpypqik1rbrp013vclm2-nixos-system-tc-webserver1-18.03pre-git to typeclasses.com

    1. /nix/store/nx3f93ll1dksdpypqik1rbrp013vclm2-nixos-system-tc-webserver1-18.03pre-git may not exist, make sure you built it with nix-build first
    2. Make sure you have an authorized key configured on typeclasses.com so that you can SSH

Original error was:

ProcFailed {procCommand = "nix-copy-closure", procArguments = ["--sign","--to","--gzip","typeclasses.com","/nix/store/nx3f93ll1dksdpypqik1rbrp013vclm2-nixos-system-tc-webserver1-18.03pre-git"], procExitCode = ExitFailure 1}
)

Seems like the command-line interface must be changing or something.

chris-martin avatar Jan 25 '18 03:01 chris-martin

Thanks for the issue ticket. I also think in nix 1.12 nix-copy-closure will handle key exchange too so we'll probably need to remove that behavior from the tool.

That's probably a good time to bump the minor version. I'll get to this soon since I'm also on unstable (but not on 1.12 yet).

ixmatus avatar Jan 25 '18 03:01 ixmatus

@ixmatus has anything happened in that regard? :)

gilligan avatar Jul 30 '18 13:07 gilligan

@gilligan no, I was busy over the weekend with some other higher-priority personal projects. I will probably get to this later this week if not this weekend (I want to fix it for myself too).

ixmatus avatar Jul 30 '18 15:07 ixmatus

A temp solution is to just add --noSign to your nix-deploy call.

tomberek avatar Mar 30 '19 17:03 tomberek