Open andersonams opened 1 year ago
/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:
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!
I had the same issue when running a amazonlinux container in WSL. As long as the container was up, i was not able to open a second WSL instance in Windows.
Thanks @andersonams. Looking at the logs, it looks like the issue is that WSL is out of memory.
Does increasing wsl2.memory
to let's say 8GB help ?
Thanks @andersonams. Looking at the logs, it looks like the issue is that WSL is out of memory.
Does increasing
wsl2.memory
to let's say 8GB help ?
So, after the fresh Windows 11 install, I tried the "free memory" mode, with no explicit configuration on the .wslconfig
before and I was seeing the same behavior. Same as well when I put 8GB.
With no explicit configuration, the VmmemWSL
process almost hits 8GB of usage (the PC has 16GB total), but with the same behavior that I described.
While I was trying to found a solution through internet, I saw some hints to put guiApplications=false
into .wslconfig
. But, it did not help too much. Only the high CPU usage of VmmemWSL
was mitigated.
When running the command docker scout quickview
in Windows Subsystem for Linux (WSL), I encountered the following error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Error code: Wsl/Service/0x8007274c
Press any key to continue...
[process exited with code 4294967295 (0xffffffff)] You can now close this terminal with Ctrl+D, or press Enter to restart.
This is happening to me constantly lately. since I started working on a project where I need to run front-end and back-end servers at the same time, and one docker container running a postgreSQL and I'm coding with VsCode, my machine got 16Gb RAM, and I'm not using .wslconfig, but I read the WSL docs and it tells me that the default RAM is 50% windows RAM, so I think maybe the problem is not a RAM problem, maybe something with vscode and/or some plugin.
I'm having the same issue, trying to run a frontend in WSL, while the Windows based backend runs some docker containers.
Continuing to be a problem, after turning my computer on and opening the Ubuntu app, I get
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Error code: Wsl/Service/0x8007274c
Press any key to continue...
So far, the only workaround I have found is to open a cmd prompt and run wsl --shutdown
and restart WSL
I had forgotten about this thread, but for what it's worth, I think I fixed it by reinstalling WSL and some related tools.
I also get this sporadically. This issue report mentioned vscode as a contributing factor, and I was able to confirm that killing the vscode instance which had been open for a long time (with C++ intellisense plugin) which had a wsl2 remote directory open, fixed the problem. Not sure what the underlying issue is, though.
I tried giving more memory to WSL and this worked for me, just create a file named .wslconfig
on your %UserProfile%
folder on windows and set this config
[wsl2]
memory=10GB
restart WSL and maybe this works for you too.
Windows Version
10.0.22621.1413
WSL Version
1.1.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04.1 LTS
Other Software
Repro Steps
Every that I set up my development applications (such as Docker, PhpStorm, WebStorm, etc), it starts to happen repeatedly throughout the day.
Error code: Wsl/Service/0x8007274c
Additional Information:
I started to experience it since from Windows 10 22H2 update. After a while, I did a fresh Windows 11 install, and the behavior is still happening.
Expected Behavior
Terminals and apps work without hangs.
Actual Behavior
To be able to continue to work:
Diagnostic Logs
No response