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

nix copy never finishes when used from MacOS host and copying to remote servers with ssh or ssh-ng #11582

Open
onnimonni opened this issue Sep 24, 2024 · 0 comments
Labels

Comments

@onnimonni
Copy link

onnimonni commented Sep 24, 2024

Describe the bug

Whenever I'm trying to use nixos-anywhere it just hangs when trying to copy disko module to remote server. I have narrowed this issue down to nix copy. See more here nix-community/nixos-anywhere#385.

I have installed my nix with the nix determinate systems installer.

$ sw_vers
ProductName:		macOS
ProductVersion:		14.6.1
BuildVersion:		23G93
$ ssh -V
OpenSSH_9.9p1, OpenSSL 3.3.2 3 Sep 2024

Steps To Reproduce

  1. Install UTM
    2: Try to initialize the VM with the following steps:
# Create new nix configuration for UTM vm
$ nix flake new -t github:ciderale/nixos-utm my-utm-vm

$ cd my-utm-vm
# Replace the ssh key with the key that comes first from your ssh-agent
$ sed -i'' -e "/ssh-ed25519/ s/.*/    \"$(ssh-add -L | head -n1)\"/" configuration.nix
# Initialize the UTM vm
$ nix run github:ciderale/nixos-utm#nixosCreate .#utm

This then hangs when installing disko script (last output is ### Building disko script ###) and I have narrowed it down to this command:

nix copy --extra-experimental-features 'nix-command flakes' --no-write-lock-file -L --substitute-on-destination --to ssh://[email protected] '.#nixosConfigurations."utm".config.system.build.diskoScript' --derivation --no-check-sigs --debug  --print-build-logs --verbose &> stdout-log.txt

I tried to replace ssh-ng to ssh and it hangs similiarly for both. When I'm running this command from a linux host everything works properly.

Expected behavior

Installer should finish and not hang into the step where it copies disko modules to the remote server. This happens both with UTM local virtual machine and remote servers for me.

nix-env --version output
nix (Nix) 2.24.5

Additional context

Here are the logs from my attempt to use the above nix copy command:
stdout-log.txt

Priorities

Add 👍 to issues you find important.

@onnimonni onnimonni added the bug label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant