Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy-rs hangs up and doesn't do anything #294

Open
onnimonni opened this issue Sep 17, 2024 · 3 comments
Open

Deploy-rs hangs up and doesn't do anything #294

onnimonni opened this issue Sep 17, 2024 · 3 comments

Comments

@onnimonni
Copy link

Hey,

I was using this example repository: https://github.com/LGUG2Z/nixos-hetzner-robot-starter to deploy nixos to bare metal AMD server.

I was able to get it up and running and when I'm trying to do small changes and deploy it with deploy-rs it just hangs up and doesn't output anything for 15 minutes until I stopped the process:

$ nix run github:serokell/deploy-rs -- --remote-build --debug-logs -s .#robot
🚀 ❓ [deploy] [DEBUG] Checking for flake support
🚀 ℹ️ [deploy] [INFO] Evaluating flake in .
warning: Git tree '~/Projects/nixos-hetzner-robot-starter' is dirty
🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed:
[robot.system]
user = "root"
ssh_user = "root"
path = "/nix/store/jqp8p6xwcfdrhfjkfdxg9i97fnmf2d0r-activatable-nixos-system-unnamed-24.11.20240915.1f3227d"
hostname = "X.Y.Z.W"
ssh_opts = []

🚀 ❓ [deploy] [DEBUG] Finding the deriver of store path for /nix/store/jqp8p6xwcfdrhfjkfdxg9i97fnmf2d0r-activatable-nixos-system-unnamed-24.11.20240915.1f3227d
🚀 ℹ️ [deploy] [INFO] Building profile `system` for node `robot` on remote host
error: interrupted by the user

How could I debug whats going on?

@sedlund
Copy link

sedlund commented Sep 17, 2024

suggest you add -- -L at the end to pass to nix

  · --print-build-logs / -L Print full build logs on standard error.

@onnimonni
Copy link
Author

Did I ran it properly like this?

$ nix run github:serokell/deploy-rs -- --remote-build --debug-logs -s .#robot -- -L
🚀 ❓ [deploy] [DEBUG] Checking for flake support
🚀 ℹ️ [deploy] [INFO] Evaluating flake in .
warning: Git tree '~/Projects/hetzner-servers/nixos-hetzner-robot-starter' is dirty
🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed:
[robot.system]
user = "root"
ssh_user = "root"
path = "/nix/store/0ad6vfkvf7lkzsvwl0wq9slj6w82c27w-activatable-nixos-system-unnamed-24.11.20240915.1f3227d"
hostname = "X.Y.Z.W"
ssh_opts = []

🚀 ❓ [deploy] [DEBUG] Finding the deriver of store path for /nix/store/0ad6vfkvf7lkzsvwl0wq9slj6w82c27w-activatable-nixos-system-unnamed-24.11.20240915.1f3227d
🚀 ℹ️ [deploy] [INFO] Building profile `system` for node `robot` on remote host

It still hangs in the exact same step without any logs 😞

@sedlund
Copy link

sedlund commented Sep 18, 2024

Do I remember correctly that you are using macos to deploy from?

Maybe this?: #216 (comment)

try --skip-checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants