-
Notifications
You must be signed in to change notification settings - Fork 822
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
Failed to connect to bus: No such file or directory #11603
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
Diagnostic information
|
I use arch,same error encountered,how did you solve it |
Try upgrade systemd or downgrade it. |
This works for me until MS fix the issue with v256: |
I reopen this issue, because the error is reproduced again since MSFT drop new pre-release WSL. I ran same debian(sid) and systemd(256.4-2) version but different WSL version, the error is only on WSL 2.3.13. |
@Gchengan I use the pre-release wsl and using docker with systemd 255.7 is fine. |
Anyone try 2.3.14? |
@Gchengan Whatever systemd's version I use, the functions of the systemd are works, just slow down the init. So, we aren't the same issue. |
Workaround for systemd >=256 detailed here: |
sudo systemctl list-jobs | grep running @kloon15 It works for me |
my workaround here. fully disable cgroupv1 to fix warn "Failed to connect to bus" ref: #11857 (comment) and make sure disable systemd-networkd-wait-online to fix "WSL (2) ERROR: WaitForBootProcess:3342: /sbin/init failed to start within 10000 ms" ref: #11603 (comment) |
For me the problem was solved by doing this:
can be fixed by adding these lines to
The issue is that when running program, it expects the socket to be located at a fixed path in /run/user/1000/bus, which doesn't work in WSL2 where the socket is instead created as an abstract socket and is found under /tmp
|
Windows Version
Microsoft Windows [Version 10.0.22635.3640]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
Debian Sid
Other Software
No response
Repro Steps
dmesg
Expected Behavior
Not shown the error and startup faster
Actual Behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: