Open blitz opened 5 years ago
this is a recurrent issue in nixops, see https://github.com/NixOS/nixops/issues/931
I'm running into this issue with a standard NixOS VM (nix-build -A vm
). Is there any open issue that tracks this?
I'm running into this issue with a standard NixOS VM (
nix-build -A vm
). Is there any open issue that tracks this?
Your best bet is https://github.com/NixOS/nixops/issues/931
How would this be related to NixOps if I'm not using it?
How would this be related to NixOps if I'm not using it?
cough Good point. Are you using a single user install?
Hello there, After running into the exact same problem, I created a minimal example where it happens, for experimentation purposes. Here it is: github: litchipi/nixos_sudopb I've tried a bunch of things, but nothing worked so far. I'm really surprised there are a lot of people having this issue. Hope it helps, feel free to clone and experiment and discuss about it on my repo or here, I'll try to resolve it by my side as well
@litchipi The flake.nix had some syntax errors, but I got it working. It does not reproduce the issue for me. I really think this is only an issue on single-user installs of Nix. Can you try whether you see the same issue with a multi-user install of nix?
@blitz Tried out with multi-user install (so with nix version 2.6.1) and everything seams to work now. However I don't know what to do with that information. Should a new issue be opened ? Or this one re-opened ? I feel like this problem should be addressed for single user installs
@litchipi Good questions. See also nixos/nix#2602. Let's re-open this issue.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
Issue description
I'm deploying a postgresql server using NixOps and the postgres post-start script times out. I'm deploying from a Fedora system running a single-user installation of Nix. The underlying issue is this:
And indeed sudoers.so is not owned by root:
The issue seems to be that the permissions from my Fedora system bleed through. The uid/gid of sudoers.so is the same as on my Fedora system (1000/1000). I assume this is a problem in the Nix expression for "sudo", but I'm not sure.
Steps to reproduce
Technical details
cc: @tfc