Repository navigation
Closed as not planned
Labels
Description
It turns out I regularly run into issue #719 with my Hydra server.
Apparently, now nixos-rebuild switch --fallback doesn't even work as a workaround:
$ nixos-rebuild switch --fallback
building Nix...
building the system configuration...
fetching path ‘/nix/store/n2rhmzj3hy7b2gg1ba4dipsrqxrxwixy-rg-src’...
*** Downloading ‘http://homeserv:3000/nar/n2rhmzj3hy7b2gg1ba4dipsrqxrxwixy-rg-src’ to ‘/nix/store/n2rhmzj3hy7b2gg1ba4dipsrqxrxwixy-rg-src’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 410 Gone
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
error: unexpected end-of-file
download of ‘http://homeserv:3000/nar/n2rhmzj3hy7b2gg1ba4dipsrqxrxwixy-rg-src’ failed: No such file or directory
could not download ‘/nix/store/n2rhmzj3hy7b2gg1ba4dipsrqxrxwixy-rg-src’ from any binary cache
fetching path ‘/nix/store/n2rhmzj3hy7b2gg1ba4dipsrqxrxwixy-rg-src’ failed with exit code 1
error: some substitutes for the outputs of derivation ‘/nix/store/c7sm6c47l9s6aijimsnxnkl2sv0gk5jj-rg-src.drv’ failed (usually happens due to networking issues); try ‘-
-fallback’ to build derivation from source
(use ‘--show-trace’ to show detailed location information)
Activity
wizeman commentedon Apr 14, 2016
I can confirm that if I use this command, I get the above failure:
But if I use this command instead, it actually falls back and successfully builds the missing derivation locally:
So I would guess that the error must be somewhere in the argument parser or the handover to
nix-store?NotaseCretagen commentedon Apr 27, 2016
man nixos-rebuilddoesn't list--fallbackEDIT: it is listed inman nix-envthough.but it seems to be working for me.
wizeman commentedon Apr 27, 2016
@NotaseCretagen did you try
--fallbackwhennixos-rebuildtold you to do so, or did you try it despite it didn't?Using
--fallbackdoesn't stopnixos-rebuildfrom working, it's just that it doesn't seem to do anything (for me), even though that's what Nix tells me to do to solve the410 Goneproblem.NotaseCretagen commentedon Apr 27, 2016
Both. But lately I was trying it despite.
When it asked me to try it the first time, I remember it worked, or at least, it worked eventually (assuming it worked because I reran it after it failed - don't really remember, since nixos-rebuild keeps failing and on next run it works; EDIT: it usually fails apparently due to not being able to restart services, or something like that, but wtw it is, on next rerun of same command it just works!)
wizeman commentedon Mar 9, 2017
I have ran into this issue again and I think it only happens when using import-from-derivation.
stale commentedon Feb 15, 2021
I marked this as stale due to inactivity. → More info
stale commentedon May 2, 2022
I closed this issue due to inactivity. → More info
vm improve reproducible command and 23.11 (NixOS#807)
tomberek commentedon Aug 13, 2026
Closing as stale. Re-open if needed.
Merge pull request NixOS#807 from DeterminateSystems/darwin-gc-app-pe…