user for remote builds fails if its group is nixbld #1069
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#1069
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
when one setup a user specifically for remote builds but i put as group
nixbldthe authentication of the build user fails in the daemon.Steps To Reproduce
this lead to the problem the the daemon failed with:
Dec 08 03:08:03 silent nix-daemon[1329]: error: error processing connection: user 'nixbld' is not allowed to connect to the Nix daemonExpected behavior
Dec 08 12:56:52 silent nix-daemon[20189]: accepted connection from pid 25127, user nixremote (trusted)it works if the group is named like the user (haven't tried anything else
nix --versionoutputAdditional context
Add any other context about the problem here.
this is fully intentional.
nixbldis the default group for build users, and thus the common group used by all builds. allowing builds to connect back to the daemon would wreak havoc with the entire scheduling system (cf recursive nix) and is thus not allowed. if you want to use the namenixbldfor your user you can rename the group used by sandboxes using thebuild-users-groupsetting, but that also requires replacing the nixos module responsible for daemon setup.is there a specific reason you want to configure a remotely accessible user using the reserved sandbox groups?
i was wondering for a few hours why the remote building doesn't work.
if it is possible to create an error message for this case it would be helpful for the second person who has this unlikely idea :-) .
This issue was mentioned on Gerrit on the following CLs: