Skip to content
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

error: cannot kill cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' #11874

Open
teto opened this issue Nov 13, 2024 · 0 comments
Labels

Comments

@teto
Copy link
Member

teto commented Nov 13, 2024

Describe the bug

I interrupted a deploy-rs command. I had nix builds in background overheating my CPU that I killed manually.

Then I tried to run another nix command (nixos-rebuild) and I get

...
warning: copied large path '/nix/store/ii7hbxadk976pb78aw6rs8ql0asd7cl3-source/nixos' to the store (12.3 MiB)
warning: killing stray builder process 2363388 (npm ci)...
waiting for 128 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 256 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 512 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
waiting for 1024 ms for cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"' to become empty
note: keeping build directory '/tmp/nix-build-users-groups.json.drv-6/build'
note: keeping build directory '/tmp/nix-build-manifest.json.drv-6/build'
note: keeping build directory '/tmp/nix-build-etc-resolvconf.conf.drv-6/build'
...
note: keeping build directory '/tmp/nix-build-boot.json.drv-6/build'
error: cannot kill cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002"'
error: Recipe `nixos-rebuild` failed on line 34 with exit code 1

I am not familiar with slices. I stopped the daemon and socket and started both again but I would still get the same error.

I tried to remove the folder to no avail

➜ sudo rm -rf /sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002/
rm: cannot remove '/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002/cgroup.events': Operation not permitted
rm: cannot remove '/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002/io.pressure': Operation not permitted
rm: cannot remove '/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-30002/cgroup.procs': Operation not permitted

I would expect a daemon restart to fix this. I've found #11412 that looked related. Maybe it fixes my issue ? Now I guess I 'll just restart :s

nix-env --version output
nix (Nix) 2.24.10

Additional context
nixos-unstable

Priorities

Add 👍 to issues you find important.

@teto teto added the bug label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant