docker-centos7-ansible icon indicating copy to clipboard operation
docker-centos7-ansible copied to clipboard

Failed to get D-Bus connection: No such file or directory

Open VladDm93 opened this issue 3 years ago • 3 comments

Hello, I am getting this error while running https://github.com/VladDm93/postgresql/actions/runs/3510277043/jobs/5884722508

fatal: [postgresql-12]: FAILED! => {"changed": false, "cmd": "/bin/systemctl", "msg": "Failed to get D-Bus connection: No such file or directory", "rc": 1, "stderr": "Failed to get D-Bus connection: No such file or directory\n", "stderr_lines": ["Failed to get D-Bus connection: No such file or directory"], "stdout": "", "stdout_lines": []}

I was getting similar errors before on others images such as .

geerlingguy/docker-centos8-ansible:latest
geerlingguy/docker-debian10-ansible:latest
geerlingguy/docker-ubuntu1804-ansible:latest
geerlingguy/docker-ubuntu2004-ansible:latest

I was able to fix those errors thanks to replies on this issue https://github.com/geerlingguy/docker-debian11-ansible/issues/4

but for some reason centos7 version keeps getting errors.

VladDm93 avatar Nov 21 '22 19:11 VladDm93

+1 Not having any issues with the RockyLinux 8 and CentOS 8 images, but CentOS 7 still fails with cgroup v2. Any known workaround (instead of updating systemd) ? I'm mostly running the images in my CI pipelines in GH actions.

tbumke avatar Feb 22 '23 13:02 tbumke

Any updates on this? My situation is identical - centos8 works fine, centos7 is failing with the dbus error

deitChi avatar Mar 24 '23 13:03 deitChi

I've basically stopped testing on CentOS 7 for most of my work, as everything across the board is getting harder to support (yum issues with Ansible, Python 2 / 3 issues with various software, this issue with systemd...).

I would recommend anyone who still needs to support active testing on CentOS 7 either find a good fix for this project (and I'll try to merge it) or build your own separate environment for it.

geerlingguy avatar Mar 27 '23 01:03 geerlingguy