-
Notifications
You must be signed in to change notification settings - Fork 823
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
Cannot start Windows executable from powershell.exe started from WSL2 after wsl.exe --update #9364
Comments
I am seeing a similar issue, where we use a windows python.exe from WSL, and after wsl --update, processes started from within python.exe fail to run (WindowsError: [Error 1] Incorrect function). Since my issue is very similar but slightly different (Python instead of cmd or powershell) I have raised another issue. Can I link them? |
I also have this issue. I think it may be related to the switch to the Microsoft Store version of WSL |
@davidtlascelles this worked for me with the store version of WSL. It stopped working yesterday when I ran "wsl --update" and "wsl --shutdown" to get the latest features. |
I did this and it did not help. |
It looks like this: |
/logs |
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:
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! |
WslLogs-2023-01-06_13-31-44.zip |
WslLogs-2023-01-06_13-32-11.zip i.e. the failed log in the previous post WslLogs-2023-01-06_13-31-44.zip is: Whereas the working logs here are when I run: |
See logs provided by @Rack1600. I can also generate mine, if needed... |
It looks like there is still no solution nor a proper workaround? I've same behavior on |
Seems to affect all windows executables saved into WSL fileshare and being run from powershell.exe (or pwsh.exe) which was launched from WSL. My workaround was to uninstall the store version of WSL, and then the previous version of WSL was restored which still worked. |
Also |
This is is the same to all issues reporting unusual slowness of WSL2 starting Windows executables from WSL file system. References
This is a nice and clean minimal repro suggested in [2]: Executable started from Windows share takes nothing to start:
Same executable started from WSL2 filesystems takes 1m45sec to run (sic!)
Bug is confirmed in kernels:
As of now, latest WSL2 kernel is not fixed. |
Are there any updates on this issue? It still hasn't been fixed it seems. |
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! |
Version
Windows version: 10.0.19044.2364
WSL Version
Kernel Version
5.15.79.1
Distro Version
Ubuntu 20.04
Other Software
n/a
Repro Steps
It is also impossible to open file associated with the executable:
Expected Behavior
Executing Windows programs on WSL2 paths from cmd.exe or powershell.exe is possible if the latter it started from WSL2 environment (in current example AutoHotkeyU64.exe starts.
Actual Behavior
cmd.exe: The system cannot execute the specified program.
powershell.exe: NativeCommandFailed
Diagnostic Logs
Remarks:
wsl.exe --update
cmd.exe and poweshell.exe could start executables on WSL2 paths just same fine as other executables.The text was updated successfully, but these errors were encountered: