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

deploy-rs hangs forever when no changes are necessary

Open cpcloud opened this issue 2 years ago • 6 comments
trafficstars

I really really enjoy using deploy-rs, thanks for creating the project!

Somewhat recently I noticed that running

deploy '.#my-host' --skip-checks

hangs when there's nothing to deploy to my-host. There are no apparent problems when there is something to deploy.

cpcloud avatar Jul 06 '23 14:07 cpcloud

also encountering this bug

kittywitch avatar Jul 19 '23 16:07 kittywitch

In this case, NIX_SSHOPTS="-oControlMaster=no" prepended to the nix copy works

kittywitch avatar Jul 21 '23 17:07 kittywitch

so sshOpts = ["-oControlMaster=no" ...] on your node config should make this work :3 (where ... is your remaining options for your use case)

kittywitch avatar Jul 21 '23 17:07 kittywitch

Upstream bug is https://github.com/NixOS/nix/issues/3017

kittywitch avatar Jul 21 '23 17:07 kittywitch

But even then, ControlPath should probably be set to path which doesn't exist, since the Control socket will still be used regardless

kittywitch avatar Jul 21 '23 17:07 kittywitch