-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
error: unexpected end-of-file when cache is not found on https://cache.nixos.org #4903
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/content-addressed-nix-call-for-testers/12881/102 |
Thanks for reporting. Do you have the full Nix code available so that I can try to reproduce it? Also, is the Nix daemon using the same Nix version as the client? (Btw, |
nix daemon is using the same version yes
Understood that nix-develop is broken with CA derivations. Unfortunately, I can't reproduce systematically the error. Sometimes it happens with a particular code, and then it doesn't happen anymore. It happens to be sometimes with my dotfiles |
I don't know if it could help reproduce it, but on my system I just need to run this:
|
If you want to check if it is the same error, you can run your command again with the flag |
|
Thank you for the added info! I have to say it doesn't look like the same error. |
It can be that nix-daemon crashes, do look at the logs. |
|
Should I open a new issue for the crash? In this repo? |
@bbigras please :) |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
I marked this as stale due to inactivity. → More info |
Describe the bug
When running a nix command sometimes, nix tries to fetch a cache, when the url is 404, the error generated is just
error: unexpected end-of-file
Steps To Reproduce
running
When I try to curl the url, it gives me a 404
I don't know why nix is looking at that path specifically, but I get that error quite often recently.
Here is my flake.lock
here is the
Expected behavior
Is there a way when the cache returns a 404 to try to build the derivation?
I'm not sure what additional information might be needed.
nix-env --version
output❯ nix-env --version
nix-env (Nix) 2.4pre20210601_5985b8b
Additional context
I have those experimental-features enabled
The text was updated successfully, but these errors were encountered: