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

libstore: nar-info-disk-cache.cc: Assertion `hashPart == storePathToHash(info->path)' failed #31

Open
k-bx opened this issue Jun 21, 2020 · 3 comments

Comments

@k-bx
Copy link

k-bx commented Jun 21, 2020

Investigation under the original ticket obsidiansystems/obelisk#768 has lead us to believe that the issue is related to Zeus, not obelisk, so I'm creating an issue here.

Error following the tutorial:

$ nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz -iA command
installing 'obelisk-command-0.8.0.0'
nix-env: src/libstore/nar-info-disk-cache.cc:233: nix::NarInfoDiskCacheImpl::upsertNarInfo(const string&, const string&, std::shared_ptr<nix::ValidPathInfo>)::<lambda()>: Assertion `hashPart == storePathToHash(info->path)' failed.
[1]    2798858 abort (core dumped)  nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz  
@Ericson2314
Copy link

I don't think it's a zeus bug per se. It's just data corrupt of unknown provenance or a (probably cross-version / migration) bug in Nix itself.

@NinjaTrappeur can you post the two store paths so we can take a further look at them?

@mightybyte
Copy link
Owner

The Zeus caches have definitely gotten stale and things may have gotten corrupted in them back when I was first getting the caching working. I'm going to clean them out and reset things on that front.

@picnoir
Copy link

picnoir commented Jun 22, 2020

@Ericson2314 I did not find a way to make the daemon more chatty to dump me the path. How should I do that?

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

4 participants