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

WSL not opening well #9945

Closed
1 of 2 tasks
HossamAmer12 opened this issue Apr 11, 2023 · 10 comments
Closed
1 of 2 tasks

WSL not opening well #9945

HossamAmer12 opened this issue Apr 11, 2023 · 10 comments

Comments

@HossamAmer12
Copy link

Windows Version

Windows 11 Enterprise 22H2

WSL Version

2

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

open wsl window

<3>WSL (10684) ERROR: CreateProcessParseCommon:786: Failed to translate C:\WINDOWS\system32
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.1.6.0_x64__8wekyb3d8bbwe
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files\Eclipse Adoptium\jdk-17.0.6.10-hotspot\bin
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS\system32
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files (x86)\Bitvise SSH Client
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files\PowerShell\7
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Programs\Python\Python310\Scripts
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Programs\Python\Python310
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Microsoft\WindowsApps
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Programs\Microsoft VS Code\bin
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Programs\EmEditor
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.90.1-microsoft-standard-WSL2 x86_64)

Expected Behavior

Nothing happens no logs

Actual Behavior

<3>WSL (10684) ERROR: CreateProcessParseCommon:786: Failed to translate C:\WINDOWS\system32
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_1.1.6.0_x64__8wekyb3d8bbwe
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files\Eclipse Adoptium\jdk-17.0.6.10-hotspot\bin
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS\system32
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files (x86)\Bitvise SSH Client
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Program Files\PowerShell\7
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Programs\Python\Python310\Scripts
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Programs\Python\Python310
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Microsoft\WindowsApps
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Programs\Microsoft VS Code\bin
<3>WSL (10684) ERROR: UtilTranslatePathList:2652: Failed to translate C:\Users\hossamamer\AppData\Local\Programs\EmEditor
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.90.1-microsoft-standard-WSL2 x86_64)

Diagnostic Logs

No response

@simonlock
Copy link

same for me

@benhillis
Copy link
Member

/logs

@microsoft-github-policy-service
Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

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

Thank you!

@HossamAmer12
Copy link
Author

I updated Windows and installed updates. Then, this thing suddenly disappeared

@ecastro-capgemini
Copy link

Summary of microsoft/vscode#198285

As for WSL 2.0.9, when you use wsl.exe, you cannot use VSCode on WSL anymore.
When you first use (after reboot) VSCode on WSL, you cannot use wsl.exe reliably (you get the infamous Failed to translate list of error messages).

@ecastro-capgemini
Copy link

It appears that Windows file system mount points are missing on the buggy wsl.exe sessions, hence the failed to translate error message.

In full functioning VSCode WSL Session, sudo mount -t drvfs d: /mnt/d works (given there is a D: disk), but it fails in wsl.exe session opend at the same time!

I guess that the drvfs subsystem cannot be shared by VSCode and wsl.exe. Et c'est bien dommage

@ecastro-capgemini
Copy link

wsl --shutdown does not help. To reset which one of VSCode or wsl.exe will gain correct behavior of drvfs, you need to reboot Windows

@ecastro-capgemini
Copy link

I have noted that:

  • If one starts wsl.exe from standard mode shell, it cannot be launched from an admin mode shell anymore.
  • Conversely; if one starts wsl.exe from admin mode shell, it cannot be launched from standard mode any more.

I think that this is the root bug

@github-actions github-actions bot mentioned this issue Dec 6, 2023
2 tasks
@ecastro-capgemini
Copy link

Seems to be resolved by WSL 2.0.14

> wsl.exe --update

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

4 participants