hercules-ci-agent icon indicating copy to clipboard operation
hercules-ci-agent copied to clipboard

the build users group 'nixbld' has no members

Open domenkozar opened this issue 5 years ago • 3 comments

Most likely caused by https://github.com/NixOS/nix/issues/1559

domenkozar avatar Dec 10 '19 16:12 domenkozar

This issue might well be related to that bug but, as far as I can tell, the agent doesn't work with single-user nix at all (even when normal nix commands work just fine). It seems to be at least somewhat agent-specific because normal nix commands can work properly on a single-user-nix machine while the agent is unable to perform builds.

clhodapp avatar Jan 21 '20 05:01 clhodapp

I think this can be fixed with

$ mkdir -m 0755 /etc/nix
$ echo "build-users-group =" > /etc/nix/nix.conf

SuperSandro2000 avatar Aug 25 '21 09:08 SuperSandro2000

Just as a data point, I hit this bug since I had enabled auto-allocate-uids and then disabled it. I think the first time I enabled it, it deleted all my nixbld users. @SuperSandro2000 fix worked for me.

rishid avatar Jan 20 '24 11:01 rishid