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: deleting cgroup #1622

Open
zimbatm opened this issue Dec 23, 2024 · 2 comments
Open

error: deleting cgroup #1622

zimbatm opened this issue Dec 23, 2024 · 2 comments

Comments

@zimbatm
Copy link
Member

zimbatm commented Dec 23, 2024

There might be some issue with the nix cgroup implementation.

Source: https://buildbot.nix-community.org/#/builders/1390/builds/161

nixos-disk-image>          Specify the 'raw' format explicitly to remove the restrictions.
nixos-disk-image> EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
error: deleting cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-872546304"': Device or resource busy
program finished with exit code 1

This needs a bit of debugging.

SSH-ing into build03, it looks like the cgroup was deleted successfully:

[root@build03:~]# ls -la /sys/fs/cgroup/system.slice/nix-daemon.service/ | grep nix
drwxr-xr-x  2 root root 0 Dec 23 14:30 nix-daemon
@zimbatm
Copy link
Member Author

zimbatm commented Dec 23, 2024

https://buildbot.nix-community.org/#/builders/1384/builds/162

nixos-disk-image>          Specify the 'raw' format explicitly to remove the restrictions.
nixos-disk-image> EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
warning: killing stray builder process 1316157 ()...
warning: killing stray builder process 1337725 ()...
warning: killing stray builder process 1337726 ()...
error: deleting cgroup '"/sys/fs/cgroup/system.slice/nix-daemon.service/nix-build-uid-873005056"': Device or resource busy

https://github.com/nixos/nix/blob/f1187cb696584739884687d788a6fbb4dd36c61c/src/libutil/linux/cgroup.cc#L96

@zowoq
Copy link
Contributor

zowoq commented Dec 23, 2024

Looks like it is the same as #1459 (comment), hitting the buildbot 20 minute timeout and getting cgroup errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants