serokell / deploy-rs

A simple multi-profile Nix-flake deploy tool.
Other
1.33k stars 101 forks source link

Request: Show failed nix command #260

Open tecosaur opened 7 months ago

tecosaur commented 7 months ago

For some reason, my nix daemon has started having "Connection refused issues" during attempted deployments

🚀 ℹī¸ [deploy] [INFO] Building profile `system` for node `golgi`
🚀 ℹī¸ [deploy] [INFO] Copying profile `system` to node `golgi`
error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused
error: unexpected end-of-file
🚀 ❌ [deploy] [ERROR] Failed to push profile: Nix copy command resulted in a bad exit code: Some(1)

I'm not sure where this issue is coming from, but one thing that might make it easier to track down is if deploy-rs were to print the nix command that failed when it produces a bad exit code.