-
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
Using command ‘wsl’, there's no response. #10866
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please 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. Thank you! Open similar issues:
Closed similar issues:
|
/dump |
I make my wsl run for 5 minutes with no response for However |
Thank you @Ethan-Chen-plus. Looking at the dump it looks like things are stuck on the Linux side. Let's see what's happening inside the VM. Can you please:
This should help us understand where things are stuck |
Let's suppose I need to do all of that to debug a potential problem within the distribution which currently isn't available from the Microsoft Store. How therefore do I go about invoking the debug shell? This was returned from a regular Powershell routine: The strange part I was able to invoke the debug shell earlier, but wasn't able to paste the shell script described there. |
I agree with @Ethan-Chen-plus here. What is also needed is that of feedback from the author. No not yourself, @Ethan-Chen-plus I mean any of the folks from Microsoft who happens to be involved here. |
Thank you @Ethan-Chen-plus. |
@OneBlue I just repeated @Ethan-Chen-plus did and found the folder it created. However, since the VM is running properly, I did in fact see nothing there. Is this normal for a properly working image? |
However I can't find it in my And since there is no '/mnt/c' before executing this script, I thought that's why I couldn't found it in 'C:'. I think we should mount 'C:' to '/mnt/c' in wsl debugger before we execute the script. But how to mount? |
@Ethan-Chen-plus It did for my run. |
Oh I see what's happening @Ethan-Chen-plus. This is most likely because things get stuck before /mnt/c even gets mounted. Let's try another approach: Can you run this script instead ? It will output everything on stdout so there should be no need to access /mnt/c. |
The output can be seen in the detachment. |
Thank you @Ethan-Chen-plus. With these logs we found a bug that triggers the hang you're seeing. Although that bug only explains half of your symptoms. Most likely something in your distro is causing init to crash. Can you try to add:
In %USERPROFILE%/.wslconfig And see if the distribution starts that way ? |
@benhillis Hi, benhillis! Thanks for your work. But how can I get this update? After updating my windows11, could I get this new feature? |
@Ethan-Chen-plus: You can get it by running: |
@OneBlue However this can't work.This is just printing some command usage information about
|
@Ethan-Chen-plus Try (I'm not affiliated with the WSL team, just happened upon this from reading release notes and thought I'd try to help while the MS staff are away for the holidays). |
@mosullivan93 Thank you, this works.However there's another issue occurred
|
@benhillis Thanks. But there're still errors:
|
Thank you @Ethan-Chen-plus. This is interesting. Can you collect updated /logs with 2.1.0 ? |
I have the same problem as this issue. I have upgraded the version to 2.1.0.0, but it still freezes when running.I have sent the log by email and hope to get a reply as soon as possible |
@OneBlue Thank you for reopening the issue, however there was a promble:
So I can't collect the logs. |
Thanks @Ethan-Chen-plus. The debug shell is only available if WSL is already running. Can you try to start wsl first ? |
@OneBlue Sorry but I can't start wsl first as below shown:
|
@Ethan-Chen-plus: Interesting, it looks like wsl is just failing to start. Can you collect regular /logs in this case ? |
@OneBlue The logs: Terminal1:
At the same time I reproduced the error in Terminal2:
Hope the can help to find the reason. |
Hey, even I'm facing the same problem, Still not able to figure out. Also when running this command -> This is the Error i'm getting: Error logs: VSCode extension not working, not opening remote wsl: Powershell not giving any response on any Stuck in this since days, still not getting what's wrong here. Would be helpful if anyone finds a solution to this. Thanks for your time. |
@OneBlue Hi! 👋 Are you still here? |
I had the same problem. I was able to solve it by restarting Windows with as few programs as possible and only with absolutely necessary hardware and then running the wsl --update --pre-release with an administrator cmd.exe. |
formerly, I worked it great, but I install a usb-driver for wsl can use usb to download Bin. Then, it be stuck when i install usb driver. i try to uninstall everything about wsl, close Windows's virtual platform then open it , restart many times and so forth. after this, i find what i was doing was not working. |
Windows Version
10.0.25977.1000
WSL Version
0.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
Ubuntu 1804
Other Software
'wsl' works well before, and I enjoy it. However, these days I can't open it.
Repro Steps
just using command
wsl
.Expected Behavior
it should come into the ‘/home/kewei’ and show dedtails.
Actual Behavior
Diagnostic Logs
No response
the log file as the attachment:
WslLogs-2023-12-02_22-25-54.zip
I have tried these, but none of them works:
The text was updated successfully, but these errors were encountered: