[Nix#10136] 'Administrative' shutdown of a Nix remote builder cause complete failure of any remote builds #48

Open
opened 2024-03-16 06:36:22 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#10136

Describe the bug

Perform an 'administrative' shutdown of a Nix remote builder at runtime via stopping its nix-daemon and preventing its socket to reactivate it, if you think this is a feature request for 'administrative' shutdown features, feel free to relabel it.

The remote builder should not be usable anymore as it has no running nix-daemon, run a nix build on anything that registered it as a remote builder, observe that everything is failing with:

error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused

and crashing the whole build instead of switching to the next remote builder.

Steps To Reproduce

  1. systemctl stop nix-daemon && systemctl stop nix-daemon.socket
  2. nix-build anything that will schedule it on that remote builder.
  3. See error

Expected behavior

Graceful failover to the next remote builder or local building.

nix-env --version output

2.18.1.

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/10136 **Describe the bug** Perform an 'administrative' shutdown of a Nix remote builder at runtime via stopping its nix-daemon and preventing its socket to reactivate it, if you think this is a feature request for 'administrative' shutdown features, feel free to relabel it. The remote builder should not be usable anymore as it has no running nix-daemon, run a nix build on anything that registered it as a remote builder, observe that everything is failing with: > error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused and crashing the whole build instead of switching to the next remote builder. **Steps To Reproduce** 1. `systemctl stop nix-daemon && systemctl stop nix-daemon.socket` 2. `nix-build` anything that will schedule it on that remote builder. 3. See error **Expected behavior** Graceful failover to the next remote builder or local building. **`nix-env --version` output** 2.18.1. **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
bug
imported
labels 2024-03-16 06:36:22 +00:00
jade added the
Area/remote-builds
label 2024-05-23 00:51:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#48
No description provided.