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

A file named "C:\Program" prevents WSL from starting #10637

Closed
1 of 2 tasks
dantmnf opened this issue Oct 17, 2023 · 5 comments
Closed
1 of 2 tasks

A file named "C:\Program" prevents WSL from starting #10637

dantmnf opened this issue Oct 17, 2023 · 5 comments

Comments

@dantmnf
Copy link

dantmnf commented Oct 17, 2023

Windows Version

Microsoft Windows [Version 10.0.22621.2428]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

N/A

Other Software

No response

Repro Steps

C:\>wsl echo hello
hello

C:\>wsl --shutdown

C:\>echo a > Program

C:\>wsl echo hello
%1 is not a valid Win32 application.
Error code: Wsl/Service/CreateInstance/CreateVm/0x800700c1

C:\>del Program

C:\>wsl echo hello
hello

Expected Behavior

WSL should start regardless the existence of the C:\Program file.

Actual Behavior

As long as the C:\Program file exists, WSL will not start.

Diagnostic Logs

No response

@ghost
Copy link

ghost commented Oct 18, 2023

Are you sure this has to do with WSL? Or with the service control manager?

@dantmnf
Copy link
Author

dantmnf commented Oct 18, 2023

The WslService, vmcompute, HNS services are all running. Any extra service will start during the process?

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 19, 2023

/logs

@dantmnf
Copy link
Author

dantmnf commented Oct 22, 2023

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 24, 2023

Fixed in 2.0.6

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

2 participants