-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Fetching paths from cache.nixos.org can get 'stuck' #160289
Description
Describe the bug
Sometimes, nix gets stuck fetching paths:
$ nix-shell -p sbt
these 2 paths will be fetched (408.08 MiB download, 694.33 MiB unpacked):
/nix/store/0kg8zm25k6av8hgf177kwnp9q5j6yrf3-openjdk-17.0.1+12
/nix/store/wj7x8ik896h0k9r6fk0bns21xw5c18yh-sbt-1.6.2
copying path '/nix/store/0kg8zm25k6av8hgf177kwnp9q5j6yrf3-openjdk-17.0.1+12' from 'https://cache.nixos.org'...
Stalling without any network traffic.
Interestingly this seems to be somehow tied to the specific path: nix can download other paths just fine, but always gets stuck on (in this case) /nix/store/0kg8zm25k6av8hgf177kwnp9q5j6yrf3-openjdk-17.0.1+12.
It has something to do with the system state: rebooting the machine makes it possible to fetch the path again, but killing all nix-daemon processes without rebooting doesn't seem to help.
edit: it does seem to be something around nix-daemon though, because when rebooting I see systemd-shutdown waiting for several nix-daemon processes to shut down which takes quite a while.
If anyone can suggest ways to further diagnose the problem I'd be happy to try things out!
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 5.16.5, NixOS, 22.05 (Quokka)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.6.0`
- channels(root): `"nixos-20.03pre194293.2436c27541b"`
- nixpkgs: `/home/aengelen/nixpkgs`