Open attilaolah opened 1 month ago
Sounds like we need to add getent
into Teleport's PATH, either only for the Teleport systemd service, or for the teleport
binary. We already do a similar thing for tsh
https://github.com/NixOS/nixpkgs/blob/c01818d57c9d47b9d9b85ab84b5dc04e6c830d63/pkgs/servers/teleport/generic.nix#L163
Could you test with:
systemd.services.teleport.path = [ pkgs.getent ];
and verify that it helps?
There's a few other external binaries that Teleport calls if you're using the host user creation feature, so we might want to include those as well. https://github.com/gravitational/teleport/blob/631c1fcae219d8f33b119059b70a27638a0da470/lib/utils/host/hostusers.go
Sorry for the absence here, sure, I'll give it a try and report back.
Describe the bug
When running the Teleport service, while it is functional, it logs errors complaining that it can't find the
getent
binary:Might just need some careful application of
patchelf
?Steps To Reproduce
Steps to reproduce the behavior:
services.teleport.enable = true;
.tsh ssh …
.systemctl status teleport
and check for the error logs.Expected behavior
There should be no errors logged to the journal.
Notify maintainers
@freezeboy, @arianvp, @justinas, @sigma, @tomberek, @techknowlogick (sorry for the mass mention).
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.