-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
nixos/services.glance: "Server Stats" module is broken #391310
Comments
I'm wondering if just adding: ReadOnlyPaths = [
"/proc/filesystems"
"/proc/stats"
]; in the systemd definition ( |
I'm not sure how to test this, however I tried with |
Hey, I tried using ReadOnlyPaths but got this error:
Then I tried a quick fix by using:
Which fixed the issue, however I don't think it's the best choice for a fix, because it gives full access to |
Just out of curiosity, is this working? systemd.services.glance = {
serviceConfig = {
ProcSubset = lib.mkForce "pid";
};
}; |
No, tried it just now. It gives the same error as described in this issue:
|
Nixpkgs version
Describe the bug
We can't use the module "Server Stats" with the service provided. (https://github.com/glanceapp/glance/blob/main/docs/configuration.md#server-stats)
WARN Getting system info: getting host info: open /proc/stat: no such file or directory
Don't know if this is due to the service hardening.
Steps to reproduce
Use:
Then go to the dashboard
Expected behaviour
Get the stats in the dashboard
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"
Linux 6.13.7, NixOS, 25.05 (Warbler), 25.05.20250315.c80f6a7
yes
yes
nix-env (Nix) 2.24.12
/nix/store/alzxn3hjisc84hrlv44x6hni48crww26-source
Notify maintainers
@drupol
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: