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
504 was not retried while fetching nar #3278
Comments
Strange, looking at |
Looking at the code, it seems like this happens with Nix already consumes some of the body. |
I think this is a bug since 53247d6, Nix will retry only if there is accept-ranges header in the response, but that might not be the case on server errors. In that case Nix should fallback and retry downloading the whole body again (as was the case before this commit). Lines 420 to 422 in f800d45
|
@edolstra how feasible would it be to wait for I think that would solve this and a bunch of other errors: I heard today from @michaelpj he has still seen And I'd really like to backport this to 2.3.x since it's giving headaches to Nix users. |
Hopefully fixes NixOS#3278.
Hopefully fixes NixOS#3278. (cherry picked from commit 1ab8d6a) Signed-off-by: Domen Kožar <domen@dev.si>
Hopefully fixes NixOS#3278. (cherry picked from commit 1ab8d6a)
This fix broke the downloading of files over FTP with |
Current behavior:
Expected behavior:
nix show-config
version: nix (Nix) 2.3
The text was updated successfully, but these errors were encountered: