geerlingguy / docker-centos7-ansible

CentOS 7 Docker container for Ansible playbook and role testing.
https://hub.docker.com/r/geerlingguy/docker-centos7-ansible/
MIT License
102 stars 87 forks source link

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

Open VladDm93 opened 1 year ago

VladDm93 commented 1 year ago

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.

tbumke commented 1 year ago

+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.

deitChi commented 1 year ago

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

geerlingguy commented 1 year ago

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.