Hello everyone,
I am encountering a persistent “Timeout was reached” error while trying to update my NixOS system. This prevents me from downloading packages and updating my system.
Expected Outcome:
I expect nixos-rebuild switch to successfully download all the necessary packages from the binary cache and update my system.
Output:
Here is the error message I am receiving in my terminal:
Ing kvb1alg1np5a69m2ql.cjqhr662-binutils-wrapper-2.44 from 'https://cache.nixos.arg...warning: error: unable to download 'https://cache.nixos.org/nar/Br9yh4c41yjkx1lsgkq8cvpbaal1qfnn5vkgc2vf4wd6rh6zln94.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying from offset 54060644 in 284 mswarning: error: unable to download 'https://cache.nixos.org/nar/Br9yh4c41yjkx1lsgkq@cvpbaal1qfnn5vkgc2vf4wdórházln94.nar.xz': Timeout was reached ( 28); retrying from offset 54068644 in 550 ms
I have confirmed that the issue is not a regional block, as I can successfully download the same .nar.xz file using wget on another machine on a different OS (Bazzite). The download completes successfully with good speed.
System Information:
- NixOS Version: 24.11
- Location: The NixOS machine is located in Russia.
What I’ve Tried So Far:
- Verifying my internet connection is stable.
- Successfully downloading the problematic NAR file using wget on another computer on the same network.
I am looking for guidance on how to resolve this timeout issue. Could this be related to specific Nix network settings, or are there alternative caches I should be using? Any help would be greatly appreciated.
Thank you!