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

Explain what "don't know how to build these paths" means and suggest what to do about it #765

Open
copumpkin opened this issue Jan 6, 2016 · 10 comments
Assignees
Labels
error-messages Confusing messages and better diagnostics

Comments

@copumpkin
Copy link
Member

I got that message several times (for the first time in my experience) last night and had no clue what to do about it. I found a couple of mailing list posts from two or three years ago of other people asking and it seemed like the consensus was that something was wonky about the binary cache. I turned off binary caches and the message went away.

It seems like even though it's an unlikely issue to encounter, it's worth documenting what to do with it when we do encounter it.

@masaeedu
Copy link
Contributor

I'm getting this as well. How does one disable the binary cache?

@Shados
Copy link
Member

Shados commented Nov 19, 2017

@masaeedu Rather than outright disabling the cache, you may just want to try the --fallback flag first, which will have Nix fall back to building the derivation from source if the binary substitution fails for some reason.

@masaeedu
Copy link
Contributor

masaeedu commented Nov 19, 2017

@Shados Could you give me some intution for what the error actually means? If it says "don't know how to build these paths", why would adding a flag that tells it to build those paths from source help?

EDIT: tried it out, didn't seem to work in my environment. I ended up using --prebuilt-only.

@shlevy shlevy added the backlog label Apr 1, 2018
@domenkozar domenkozar added documentation error-messages Confusing messages and better diagnostics and removed documentation backlog labels Apr 30, 2020
@stale
Copy link

stale bot commented Feb 15, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 15, 2021
@stale
Copy link

stale bot commented May 2, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this as completed May 2, 2022
@runeksvendsen
Copy link
Contributor

So... what does it mean?

@thufschmitt thufschmitt reopened this Feb 24, 2023
@jian-lin
Copy link
Contributor

jian-lin commented May 9, 2023

Is there any way to use that wonky binary cache for those paths again?

My binary cache is served with nix-serve if that matters. Restarting nix-serve has no effect.

@stale stale bot removed the stale label May 9, 2023
@tmillr
Copy link

tmillr commented Jun 22, 2023

I'm running into this as well (even when using a stable branch—not a channel—as the nixpkgs source) using a flake configuration with nix build and darwin-rebuild switch. I don't have any custom settings set in terms of non-default binary caches. It seems to happen randomly and I've found that the short-term remedy is just to redo/repeat the build as it usually succeeds on the 2nd or 3rd try. Perhaps it has to do with a spontaneous/ephemeral network issue?

zolodev pushed a commit to zolodev/nix that referenced this issue Jan 1, 2024
Mention rebuilds in best practices
@yaitskov
Copy link

yaitskov commented Jul 24, 2024

I get this error 100% of time when do following steps during docker build, though nix-store is working inside other identical docker container and on the host computer

RUN attic login local $atticurl $attickey
RUN attic use mycache
RUN nix-build 
RUN attic push mycache $(realink ./result)
RUN nix-store --store $PWD/copy -r $(realink ./result)

@yaitskov
Copy link

yaitskov commented Jul 24, 2024

Workaround is

rm -rf ~/.cache/nix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error-messages Confusing messages and better diagnostics
Projects
None yet
Development

No branches or pull requests