Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

get error "Failed to get D-Bus connection" #11

Open
jeffcao opened this issue Jul 13, 2019 · 7 comments
Open

get error "Failed to get D-Bus connection" #11

jeffcao opened this issue Jul 13, 2019 · 7 comments
Labels
wontfix This will not be worked on

Comments

@jeffcao
Copy link

jeffcao commented Jul 13, 2019

in centos instance, i get error "Failed to get D-Bus connection" when exec command "systemctl start docker".

Kindly help!

@yuk7
Copy link
Collaborator

yuk7 commented Jul 13, 2019

WSL don't supports systemd...
This is WSL issue

@jeffcao
Copy link
Author

jeffcao commented Jul 14, 2019

WSL don't supports systemd...
This is WSL issue

Got it, THX.

@graben
Copy link

graben commented Jul 21, 2019

@jeffcao: Try https://github.com/gdraheim/docker-systemctl-replacement works for me in most cases

@bimimicah
Copy link

Like @graben says above, you can work around the issues with systemctl by replacing it with @gdraheim's script.
just do the following (assumes /usr/bin/systemctl) :

mv /usr/bin/systemctl /usr/bin/systemctl.old
curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py > /usr/bin/systemctl
chmod +x /usr/bin/systemctl

Of course, that just fixes systemctl - the OP wants to start docker, and that's a whole separate issue...

@Wensh
Copy link

Wensh commented Sep 9, 2019

I saw on https://stackoverflow.com/a/13275973/4583938 that is possible to redirect dbus over tcp sockets instead of unix sockets. And people actually got dbus to work with WSL. Unfortunately, following the instructions from that post did not work for CentOS/WSL. Any pointers?

@yuk7 yuk7 added bug Something isn't working wontfix This will not be worked on labels Oct 11, 2019
@zfk513
Copy link

zfk513 commented Nov 6, 2019

@jeffcao: Try https://github.com/gdraheim/docker-systemctl-replacement works for me in most cases

how about start a mysqld service ? I failed

@parveenhooda
Copy link

parveenhooda commented Nov 7, 2019

@zfk513
image

This is happening because /var/run is a volatile directory and somehow it is not able to find/create mysqld.pid file in /var/run/mysqld and hence it is failing. If it still doesn't work look for the logs at /var/logs/mysqld.log.

Also, you would have to do it every time you restart the LxssManager service or reboot the machine.

image

@yuk7 yuk7 removed the bug Something isn't working label Feb 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

7 participants