-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log error message if allowed-users in nix.conf does not allow to read store #106
Comments
What would be the nix command to check that? |
To check what? If allowed-users is set? That can be read with |
I'm hitting the exact same issue, except even more severe. The cause seems to be NixOS/nix#9071, and the only workaround I found was to set I suggest adding a service user until that issue is fixed (or a documented workaround is found), adding some logging for file permission errors that are printed by default, and returning a slightly better error. |
Yeah, we should disable dynamic user than. |
This one disables DynamicUser now in nixpkgs: NixOS/nixpkgs#268303 |
Consider this solution good enough for now. |
But we still don't display a proper error message and instead pretend that the store entry doesn't exist which is rather confusing. |
Ok, but when using the nixos module, how does one get into this situation in the first place? |
Then it's probably not happening but in case anyone runs into that bug again, maybe because of something different off with their nix-daemon, then they are probably as confused as me and take longer than necessary to find the issue. |
I am open to accept a patch that implement this. |
Can you just re-open the issue? I have no idea how to properly implement this. |
Right now if the allowed-users setting does not allow the harmonia user to connect to the nix-daemon only missed hash is returned.
It would be better for debugging if at least an error would be logged.
The text was updated successfully, but these errors were encountered: