Singularity on RHEL-8: failed to connect to dbus
0
votes
1
answer
545
views
I am using Singularity on RHEL-8. I just upgraded to cgroupsv2 so that I could throttle resource usage. I also delegate CPU controller permissions in my
/etc/systemd/system/user@.service.d/override.conf
as described [here](https://github.com/systemd/systemd/issues/18293) .
So far, so good. So I try to run: singularity run --cpus 0.8 container.sif
.
I get the following error (some of the random strings randomized and shortened):
> FATAL: container creation failed: while applying cgroups config: while creating cgroup manager: failed to connect to dbus (hint: for rootless containers, maybe you need to install dbus-user-session package, see https://github.com/opencontainers/runc/blob/master/docs/cgroup-v2.md) : could not execute busctl --user --no-pager status
(output: "Failed to get credentials: No such process\nBusAddress=unix:abstract=/tmp/dbus-4843,guid=35345\nBusScope=user\nBusID=343345\n"): exit status 1
Indeed, if I try busctl --user status
, I get a connection refused error.
There are some related questions like [this one](https://superuser.com/questions/1561076/systemctl-user-failed-to-connect-to-bus-no-such-file-or-directory-debian-9) and [this one](https://unix.stackexchange.com/questions/615917/failed-to-get-d-bus-connection-connection-refused) , but my dbus session seems to be running fine, and I am not trying to run this as root. What gives?
Asked by cag51
(101 rep)
Jun 14, 2024, 08:51 PM
Last activity: May 25, 2025, 08:26 AM
Last activity: May 25, 2025, 08:26 AM