Skip to content
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

Can't use systemd on official oracle-linux7.9 - Failed to get D-Bus connection: No such file or directory #9961

Closed
1 of 2 tasks
captainfalcon23 opened this issue Apr 13, 2023 · 14 comments

Comments

@captainfalcon23
Copy link

Windows Version

Microsoft Windows [Version 10.0.22621.1555]

WSL Version

WSL version: 1.2.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Kernel version: 5.15.90.1

Distro Version

OracleLinux_7_9

Other Software

NA

Repro Steps

Follow steps at https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/ to enable systemd

Try and run systemctl.

My wsl.conf:

[ ~]$ cat /etc/wsl.conf
[boot]
systemd=true
[network]
generateResolvConf = false
[user]
default=XXX
[automount]
options=metadata,umask-0033i

Expected Behavior

systemctl works as expected

Actual Behavior

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

Diagnostic Logs

No response

@danisan00
Copy link

Same behavior seen here starting April 13th, with CentOS 7.9

Windows 10 version: 22H2 (build 19045.2728)
WSL version: 1.2.0.0
CentOS 7.9 WSL file downloaded from https://github.com/mishamosher/CentOS-WSL/releases/download/7.9-2111/CentOS7.zip

@jamieduncan
Copy link

Same behaviour for me, starting April 13th - systemd stopped working in existing CentOS distros.

WSL version: 1.2.0.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1555

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

These are daily-use dev environments and systemd had been working fine.

@jamieduncan
Copy link

Rolling back to 1.16.0 has restored systemd for me - see #9914

@fishstone118
Copy link

fishstone118 commented Apr 14, 2023

I also encountered the same problem. I downloaded version 1.1.3 from the release area and reinstalled it to solve the problem. Starting from version 1.1.5, the native Docker installed in my WSL2 CentOS had problems. I had to change a lot of configurations to barely solve it. Later, when I upgraded to version 1.2.2, even the systemctl command could not be used directly.

WSL 版本: 1.1.3.0
内核版本: 5.15.90.1
WSLg 版本: 1.0.49
MSRDC 版本: 1.2.3770
Direct3D 版本: 1.608.2-61064218
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows版本: 10.0.22621.1555

@dbbao
Copy link

dbbao commented Apr 17, 2023

我也碰到了该问题,有啥解决办法吗

@fishstone118
Copy link

我也碰到了该问题,有啥解决办法吗

把版本降回1.1.3,就在release去找下载链接。我目前是这样解决的
但是系统自动升级又会把版本给我自动升上去我还没去看咋个关,反正发现升级了我就又降回来就好了

@FirthTuckman
Copy link

back to v1.1.3 , perfect resolved.

@mikedoy
Copy link

mikedoy commented Apr 18, 2023

How do you revert wsl update?

@fishstone118
Copy link

How do you revert wsl update?

https://github.com/microsoft/WSL/releases/tag/1.1.3

@dbbao
Copy link

dbbao commented Apr 19, 2023

@yikuo123
Copy link

Updating to 1.2.3.0 resolves this issue.

@captainfalcon23
Copy link
Author

My WSL is installed from the Windows Store and looks like it is the latest :( Must be some delay hitting the store...

PS C:\Windows\system32> wsl --update
Checking for updates.
The most recent version of Windows Subsystem for Linux is already installed.
PS C:\Windows\system32> wsl --version
WSL version: 1.2.0.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1555
PS C:\Windows\system32>

image

@captainfalcon23
Copy link
Author

Also... why are all the versions after 1.1.3 marked as pre-release? https://github.com/microsoft/WSL/releases

I expect to be getting a stable release from the store?

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants