[Nix-dev] nix-copy-closure error

Rickard Nilsson rickard.nilsson at telia.com
Fri Dec 30 16:47:46 CET 2011


Hi,

I'm trying to copy a path from on NixOS host to another. The source host
is x86_64-linux and the target is armv5tel-linux. I get the following,
rather strange, error message:

[root at target:~]# NIX_SSHOPTS="-i /etc/secrets/nix-remote-daemon.id_dsa"
nix-copy-closure --sign --from nixremote at source
/nix/store/yniljr7fnd4z5bf2qvcx94q350cqvmvx-linux-3.1.4
copying 1 missing paths from ‘nixremote at source’...
error: hash of path
`/nix/store/yniljr7fnd4z5bf2qvcx94q350cqvmvx-linux-3.1.4' has changed from
`a52ee92f0494c45a72facc1bb02c99c1087c91b386a8c82c5fcedcbbf46b6e74' to
`c81a3fe4cb0a0c5a0eb56c4a0a5b07bfbdba1cccc44a46bc45223579be31b710'!
error: unexpected end-of-file
copying store paths from remote machine `nixremote at source' failed: 256 at
/var/run/current-system/sw/bin/nix-copy-closure line 107.


[nixremote at source:~]$ nix-hash --type sha256
/nix/store/yniljr7fnd4z5bf2qvcx94q350cqvmvx-linux-3.1.4
c81a3fe4cb0a0c5a0eb56c4a0a5b07bfbdba1cccc44a46bc45223579be31b710


I have run "nix-store --verify --check-contents" on both hosts, without
any errors. I get the hash-error each time I try to copy the path above. I
can copy other paths, though.

How can I debug this?


     / Rickard


More information about the nix-dev mailing list