Can't rebuild the configruation

Guys I face this error every time I run nix-channel --update nixos; nixos-rebuild boot command in NixOS 23.05

warning: error: unable to download 'https://cache.nixos.org/nar/1w3j7h940fm0kd2mrh6xmjlmsgnf7aanvha19fxbwg7bmlhws0p1.nar.xz': Timeout was reached (28); retrying from offset 12892890 in 2017 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0jiy41h25sc7pbd9hxsykbjnp7p896alymrdlklm294dvjfv5s6g.nar.xz': Timeout was reached (28); retrying from offset 12985242 in 2182 ms
warning: error: unable to download 'https://cache.nixos.org/nar/1g60cnwhpcgxdsqi4d7pdbxnpjkn9adjmwbq4q9igbnjihwvd7dn.nar.xz': Timeout was reached (28); retrying from offset 12888109 in 2079 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0l604ypq55nr4la3ch3i00rf85c8x5hihdchq1vpf7j2v545r17j.nar.xz': Timeout was reached (28); retrying from offset 12855347 in 2094 ms
warning: error: unable to download 'https://cache.nixos.org/nar/11qyzn0yrcibvn965vrdlxgjxcxlxz0vfpb9pj9zl719kx8w0agn.nar.xz': Timeout was reached (28); retrying from offset 13084042 in 2204 ms
warning: error: unable to download 'https://cache.nixos.org/nar/0dzs2i76q485mylcdiv5q7vzvhima5sz6z9mn5v0y6xk5yil6gg5.nar.xz': Timeout was reached (28); retrying from offset 12810620 in 2084 ms
error: unable to download 'https://cache.nixos.org/nar/1w3j7h940fm0kd2mrh6xmjlmsgnf7aanvha19fxbwg7bmlhws0p1.nar.xz': Timeout was reached (28)
error: some substitutes for the outputs of derivation '/nix/store/qi0n6ngv81amwbrsxrby73iqbij52j42-linux-6.1.65.drv' failed (usually happens due to networking issues); try '--fallback' to build derivation from source
error: 1 dependencies of derivation '/nix/store/g96fr0h23n0516jx101nbg1lq86k19qd-nixos-system-nixos-23.11.1431.a804fc878d7b.drv' failed to build
  • I live in UAE and the internet very fast so I don’t think the problem from the network
  • The error message very long so I gave you the only the last lines of it

If you have any idea you think would help me plz let me know.

A 23.05 nixos-rebuild boot --upgrade seems to be hanging for me. I’m not getting warnings or timeouts; it seems stuck on this:

copying path ‘/nix/store/pglpjbmnnhd8g2xkwi029j5wxxvp3d48-chromium-unwrapped-120.0.6099.71’ from ‘https://cache.nixos.org’…

There’s next to no network activity.

Edit:
@Jasim, I rebooted my modem/router and things now seem to be progressing. I’m not sure whether or not that is what allowed the downloads to continue, but maybe worth a try?

I have nothing to do but trying everything can solve the problem, and even if you or anyone tell me that quitting smoking can help solve the problem I will try it immediately.

:slight_smile: Did either do the trick?