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-store --verify-path fails with no information, and sometimes spurious results #900
Comments
Is your hdd drive all good? |
Yes. Also this happens on multiple machines, including OSX and Centos, and on VMs. |
A potential issue I see is that I'm using a non-standard nix directory ( |
@adnelson this one is really hard to debug, because I can not reproduce. Any steps to get http://sscce.org would help :) |
I hit this while trying to install NixOS from rescue mode. Instructions here - except I do this on a ovh.com dedicated server (their rescue mode).
|
I'm getting this as well. I can't rebuild my system because of it :(
Any ideas how I can at least fix the "file exists" error? |
I have one near-sscce that has one confounding factor: Vagrant. https://github.com/chreekat/invalid-path-test For some reason, glibc is considered an invalid path when using export+import to copy a closure to a VM, but everything is fine if nix-copy-closure is used directly. I ran into this when working on a system where nix-copy-closure isn't immediately available, possibly for bad reasons. That doesn't seem relevant, though -- export+import should work, I think! |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
I think this issue persists into the very latest versions of Nix, as per #9052 (comment) |
I've been encountering occasional errors when doing
nix-copy-closure
. The command sometimes fails, complaining that a path is not valid, and I can't seem to find why. The failures do not seem to have anything to do with SSH. For example, putting the path intonix-store --verify-path
also fails, in one of two ways. The first is an error which has no explanation:This is not helpful at all -- why is it not valid? The store objects haven't been modified in any way.
The other message is slightly more informative, but makes no sense:
This to me indicates that nix is storing hashes incorrectly. It also calls into question whether the other type of error is valid.
Unfortunately, there's no easy way to provide steps to reproduce the error, as it seems to be completely arbitrary which paths break. At the very least, there needs to be more informative error messages here.
The text was updated successfully, but these errors were encountered: