Repository navigation
Open
Labels
Description
Version
Microsoft Windows [Version 10.0.22000.795]
WSL Version
- WSL 2
- WSL 1
Kernel Version
5.10.102.1
Distro Version
Ubuntu 22.04
Other Software
Visual Studio/2022/Community
Repro Steps
-
setup & start the ssh server via systemctl
-
run some exe included in VisualStudio on ssh
$ "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX64\x64\cl.exe" $ "/mnt/c/Windows/system32/cmd.exe"
Expected Behavior
run cl.exe successfully
Actual Behavior
error
anatawa12@wsl-2204:~$ "/mnt/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/HostX64/x64/cl.exe"
<3>init: (4870) ERROR: UtilAcceptVsock:244: accept4 failed 110
anatawa12@wsl-2204:~$
anatawa12@wsl-2204:~$ "/mnt/c/Windows/system32/cmd.exe"
<3>init: (6522) ERROR: UtilAcceptVsock:244: accept4 failed 110
anatawa12@wsl-2204:~$
Diagnostic Logs
execve("/mnt/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/HostX64/x64/cl.exe", ["/mnt/c/Program Files/Microsoft V"...], 0x7fffdcfb4f38 /* 26 vars */) = 0
arch_prctl(ARCH_SET_FS, 0x356ce0) = 0
set_tid_address(0x356d18) = 5428
brk(NULL) = 0x5ab000
brk(0x5ac000) = 0x5ac000
gettid() = 5428
gettid() = 5428
gettid() = 5428
gettid() = 5428
sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]) = 32
brk(0x5ad000) = 0x5ad000
getpid() = 5428
getcwd("/home/anatawa12", 4096) = 16
uname({sysname="Linux", nodename="wsl-2204", ...}) = 0
getcwd("/home/anatawa12", 4096) = 16
open("/mnt/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/HostX64/x64/cl.exe", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_PATH) = 3
readlink("/proc/self/fd/3", "/mnt/c/Program Files/Microsoft V"..., 4095) = 108
fstat(3, {st_mode=S_IFREG|0555, st_size=403904, ...}) = 0
stat("/mnt/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/HostX64/x64/cl.exe", {st_mode=S_IFREG|0555, st_size=403904, ...}) = 0
close(3) = 0
open("/proc/self/mountinfo", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="226 85 8:32 / / rw,relatime - ex"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="oexec,relatime - cgroup cgroup r"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="fs none rw,mode=755\n248 247 0:42"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="mnt/c rw,noatime - 9p drvfs rw,d"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="tl fusectl rw\n267 226 8:32 /snap"..., iov_len=1024}], 2) = 1004
readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
close(3) = 0
getcwd("/home/anatawa12", 4096) = 16
open("/proc/self/mountinfo", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="226 85 8:32 / / rw,relatime - ex"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="oexec,relatime - cgroup cgroup r"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="fs none rw,mode=755\n248 247 0:42"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="mnt/c rw,noatime - 9p drvfs rw,d"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="tl fusectl rw\n267 226 8:32 /snap"..., iov_len=1024}], 2) = 1004
readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
close(3) = 0
getppid() = 5425
access("/run/WSL/5425_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/5425/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="5425 (strace) S 530 5425 530 348"..., iov_len=1024}], 2) = 320
brk(0x5ae000) = 0x5ae000
close(3) = 0
access("/run/WSL/530_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/530/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="530 (bash) S 529 530 530 34817 5"..., iov_len=1024}], 2) = 331
close(3) = 0
access("/run/WSL/529_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/529/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="529 (sshd) R 424 424 424 0 -1 41"..., iov_len=1024}], 2) = 167
close(3) = 0
access("/run/WSL/424_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/424/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="424 (sshd) S 344 424 424 0 -1 41"..., iov_len=1024}], 2) = 179
close(3) = 0
access("/run/WSL/344_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/344/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="344 (sshd) S 1 344 344 0 -1 4194"..., iov_len=1024}], 2) = 169
close(3) = 0
access("/run/WSL/1_interop", F_OK) = 0
socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/run/WSL/1_interop"}, 110) = 0
write(3, "\22\0\0\0\10\0\0\0", 8) = 8
poll([{fd=3, events=POLLIN}], 1, 10000) = 1 ([{fd=3, revents=POLLIN|POLLHUP}])
read(3, "Ubuntu-22.04", 256) = 12
close(3) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TIOCGPGRP, [5425]) = 0
getpgid(0) = 5425
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=50, ws_col=361, ws_xpixel=5054, ws_ypixel=1700}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 -opost -isig -icanon -echo ...}) = 0
dup(0) = 3
socket(AF_VSOCK, SOCK_STREAM|SOCK_CLOEXEC, 0) = 4
bind(4, {sa_family=AF_VSOCK, svm_cid=VMADDR_CID_ANY, svm_port=VMADDR_PORT_ANY, svm_flags=0}, 16) = 0
getsockname(4, {sa_family=AF_VSOCK, svm_cid=VMADDR_CID_ANY, svm_port=0x3aaa0d52, svm_flags=0}, [16]) = 0
listen(4, 4) = 0
socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 5
connect(5, {sa_family=AF_UNIX, sun_path="/run/WSL/1_interop"}, 110) = 0
write(5, "\6\0\0\0T\1\0\0R\r\252:\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 340) = 340
poll([{fd=4, events=POLLIN}], 1, 10000) = 0 (Timeout)
getpid() = 5428
writev(2, [{iov_base="<3>init: (5428) ERROR: UtilAccep"..., iov_len=63}, {iov_base=NULL, iov_len=0}], 2<3>init: (5428) ERROR: UtilAcceptVsock:244: accept4 failed 110
) = 63
close(5) = 0
close(4) = 0
ioctl(3, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
close(3) = 0
exit_group(-1) = ?
+++ exited with 255 +++
anatawa12@wsl-2204:~$
anatawa12@wsl-2204:~$ strace -ff "/mnt/c/Windows/system32/cmd.exe"
execve("/mnt/c/Windows/system32/cmd.exe", ["/mnt/c/Windows/system32/cmd.exe"], 0x7ffe74a603b8 /* 26 vars */) = 0
arch_prctl(ARCH_SET_FS, 0x356ce0) = 0
set_tid_address(0x356d18) = 6654
brk(NULL) = 0x895000
brk(0x896000) = 0x896000
gettid() = 6654
gettid() = 6654
gettid() = 6654
gettid() = 6654
sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]) = 32
brk(0x897000) = 0x897000
getpid() = 6654
getcwd("/home/anatawa12", 4096) = 16
uname({sysname="Linux", nodename="wsl-2204", ...}) = 0
getcwd("/home/anatawa12", 4096) = 16
open("/mnt/c/Windows/system32/cmd.exe", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_PATH) = 3
readlink("/proc/self/fd/3", "/mnt/c/Windows/system32/cmd.exe", 4095) = 31
fstat(3, {st_mode=S_IFREG|0555, st_size=331776, ...}) = 0
stat("/mnt/c/Windows/system32/cmd.exe", {st_mode=S_IFREG|0555, st_size=331776, ...}) = 0
close(3) = 0
open("/proc/self/mountinfo", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="226 85 8:32 / / rw,relatime - ex"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="oexec,relatime - cgroup cgroup r"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="fs none rw,mode=755\n248 247 0:42"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="mnt/c rw,noatime - 9p drvfs rw,d"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="tl fusectl rw\n267 226 8:32 /snap"..., iov_len=1024}], 2) = 1004
readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
close(3) = 0
getcwd("/home/anatawa12", 4096) = 16
open("/proc/self/mountinfo", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="226 85 8:32 / / rw,relatime - ex"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="oexec,relatime - cgroup cgroup r"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="fs none rw,mode=755\n248 247 0:42"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="mnt/c rw,noatime - 9p drvfs rw,d"..., iov_len=1024}], 2) = 1024
readv(3, [{iov_base="", iov_len=0}, {iov_base="tl fusectl rw\n267 226 8:32 /snap"..., iov_len=1024}], 2) = 1004
readv(3, [{iov_base="", iov_len=0}, {iov_base="", iov_len=1024}], 2) = 0
close(3) = 0
getppid() = 6651
access("/run/WSL/6651_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/6651/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="6651 (strace) S 530 6651 530 348"..., iov_len=1024}], 2) = 320
brk(0x898000) = 0x898000
close(3) = 0
access("/run/WSL/530_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/530/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="530 (bash) S 529 530 530 34817 6"..., iov_len=1024}], 2) = 330
close(3) = 0
access("/run/WSL/529_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/529/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="529 (sshd) R 424 424 424 0 -1 41"..., iov_len=1024}], 2) = 167
close(3) = 0
access("/run/WSL/424_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/424/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="424 (sshd) S 344 424 424 0 -1 41"..., iov_len=1024}], 2) = 179
close(3) = 0
access("/run/WSL/344_interop", F_OK) = -1 ENOENT (No such file or directory)
open("/proc/344/stat", O_RDONLY) = 3
readv(3, [{iov_base="", iov_len=0}, {iov_base="344 (sshd) S 1 344 344 0 -1 4194"..., iov_len=1024}], 2) = 169
close(3) = 0
access("/run/WSL/1_interop", F_OK) = 0
socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/run/WSL/1_interop"}, 110) = 0
write(3, "\22\0\0\0\10\0\0\0", 8) = 8
poll([{fd=3, events=POLLIN}], 1, 10000) = 1 ([{fd=3, revents=POLLIN|POLLHUP}])
read(3, "Ubuntu-22.04", 256) = 12
close(3) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TIOCGPGRP, [6651]) = 0
getpgid(0) = 6651
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=50, ws_col=361, ws_xpixel=5054, ws_ypixel=1700}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 -opost -isig -icanon -echo ...}) = 0
dup(0) = 3
socket(AF_VSOCK, SOCK_STREAM|SOCK_CLOEXEC, 0) = 4
bind(4, {sa_family=AF_VSOCK, svm_cid=VMADDR_CID_ANY, svm_port=VMADDR_PORT_ANY, svm_flags=0}, 16) = 0
getsockname(4, {sa_family=AF_VSOCK, svm_cid=VMADDR_CID_ANY, svm_port=0x3aaa0d55, svm_flags=0}, [16]) = 0
listen(4, 4) = 0
socket(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0) = 5
connect(5, {sa_family=AF_UNIX, sun_path="/run/WSL/1_interop"}, 110) = 0
write(5, "\6\0\0\0\272\0\0\0U\r\252:\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 186) = 186
poll([{fd=4, events=POLLIN}], 1, 10000) = 0 (Timeout)
getpid() = 6654
writev(2, [{iov_base="<3>init: (6654) ERROR: UtilAccep"..., iov_len=63}, {iov_base=NULL, iov_len=0}], 2<3>init: (6654) ERROR: UtilAcceptVsock:244: accept4 failed 110
) = 63
close(5) = 0
close(4) = 0
ioctl(3, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
close(3) = 0
exit_group(-1) = ?
+++ exited with 255 +++
anatawa12@wsl-2204:~$
Reacted by Julien Poulin, Fredrik Mattiasson, Gavin Lloyd, Vasyl Vavrychuk, Nathan Baulch, mianowski, FH0, J. Zebedee and Jonathan Sudiaman
Activity
[-]calling cl.exe from ssh on WSL2 will cause `UtilAcceptVsock:244: accept4 failed 110`[/-][+]calling exe from ssh on WSL2 will cause `UtilAcceptVsock:244: accept4 failed 110`[/+]benhillis commentedon Aug 2, 2022
/logs
anatawa12 commentedon Aug 3, 2022
I've uploaded wsl logs.
benhillis commentedon Aug 3, 2022
Thanks for the logs. The issue here is that sshd is not tied to a wsl.exe or wslhost.exe on the windows side (which handles interop requests). I have some thoughts on how to fix this, let me think about it a bit.
shoucandanghehe commentedon Feb 5, 2023
looks like i have the same issue
WslLogs-2023-02-06_03-22-30.zip
When can we fix it?
speller commentedon Mar 5, 2023
I'm facing this issue with Docker Desktop running from under WSL
But not always, randomly.
mbilal100 commentedon Mar 8, 2023
I'm also getting same issue randomly
2<3>WSL (13815) ERROR: UtilAcceptVsock:248: accept4 failed 110logs:
max-dekock commentedon Apr 3, 2023
I'm getting this issue intermittently with Docker Desktop
WslLogs-2023-04-03_10-54-32.zip
John-zhan commentedon Apr 6, 2023
everytime execute "code .", it's always give a prompt like this "<3>WSL (51) ERROR: UtilAcceptVsock:248: accept4 failed 110"
WslLogs-2023-04-06_13-44-57.zip
we need to solve this problem, it's too annoying
mimikun commentedon Apr 7, 2023
I'm also randomly getting similar issues.
In my case, I get an error(
UtilAcceptVsock:248: accept4 failed 110) when I login to Ubuntu.I am using fish-shell as our Ubuntu login shell.
config.fishcontains the following:set -x WINDOWS_HOME_DIRECTORY (wslpath (wslvar USERPROFILE))log is here:
WslLogs-2023-04-08_22-14-38.zip
birdup000 commentedon Apr 7, 2023
Interesting I'm receiving the same issue <3>WSL (20931) ERROR: UtilAcceptVsock:248: accept4 failed 110
3 remaining items
John-zhan commentedon Apr 10, 2023
yeah man you get it. the problem about my wsl has been fix through this method
bigfree commentedon Apr 12, 2023
I have no idea how this setting can solve the problem, because the value
enabledoesn't exist in the official documentation.There is a value
enabledand its default true.MitchellBot commentedon Jun 6, 2023
I get this on occasion and removing
"credsStore": "desktop.exe"from ~/.docker/config.json fixes it.sherif-elmetainy commentedon Jun 18, 2023
I had the same problem and James Mitchell (@MitchellBot)'s solution fixed it for me. Thanks a lot.
patricknelson commentedon Nov 15, 2023
Bizarrely, I got this error too when running an
exefrom WSL2 (in my case,git-credential-wincred.exe) and the "solves all" quick fix of restarting WSL apparently worked for me as well. i.e. from a command prompt:Also worth a shot for anyone else. Interestingly, this was only an issue for me after applying a Docker Desktop upgrade as well. Very odd.
Rcardu commentedon Nov 22, 2023
my hero!
Moscode commentedon Jul 3, 2024
This worked for the similar issue that I had. The ERROR code was UtilAcceptVsock:250 instead of UtilAcceptVsock:246.
ColumbusAI commentedon Sep 13, 2024
Still getting this error when trying to run a llamafile in WSL2. Ben Hillis (@benhillis) quick mention to see if this is on the team's radar?
kodie commentedon Sep 19, 2024
Adam Mikó (@bigfree) is correct. Adding this to your config will cause a
wsl: Unknown key 'interop.enable'error.This is what worked for me.
ColumbusAI commentedon Sep 19, 2024
To clarify, the error I receive is this:
<3>WSL (5984) ERROR: UtilAcceptVsock:248: accept4 failed 110
It is not resolved by enabling or disabling Interop as I have tried both methods.
fchastanet commentedon Oct 21, 2024
I had the same issue and I remarked that most of WSL RAM was used
I stopped one vscode that was taking more than 4GB of memory !
I re-run vscode and this error disappeared
nouritsu commentedon Feb 21, 2025
From microsoft/wslg#1308
I am running NixOS 24.05 and this issue happens to me when trying to use win32yank.exe from WSL.
davelowndes commentedon Oct 4, 2025
I sometimes get this error when running docker builds. Docker is using the WSL 2 based engine:
A restart of my computer sorts it, but's very annoying.
mslinn commentedon Nov 3, 2025
This is the best incantation I know to restart WSL as background job without leaving an Administrator PowerShell console open:
wsl --shutdown; Start-Process wslThen close the PowerShell console.
MadhaviGunapati610 commentedon Nov 14, 2025
I also had same issue while opening the VSCode through WSL window.
Thanks.