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

<3>WSL (13) ERROR: UtilAcceptVsock:250: accept4 failed 110 #491

Closed
remco-pc opened this issue Jul 18, 2024 · 4 comments
Closed

<3>WSL (13) ERROR: UtilAcceptVsock:250: accept4 failed 110 #491

remco-pc opened this issue Jul 18, 2024 · 4 comments

Comments

@remco-pc
Copy link

remco-pc commented Jul 18, 2024

Contact Details

No response

What happened?

<3>WSL (13) ERROR: UtilAcceptVsock:250: accept4 failed 110

Version

./llava-v1.5-7b-q4.llamafile

What operating system are you seeing the problem on?

Linux, Windows

Relevant log output

wsl2 debian version, just trying it out
@jart
Copy link
Collaborator

jart commented Jul 22, 2024

This is an upstream issue with WSL. See microsoft/WSL#8677 It happens I think when you SSH into your WSL instance rather than using the Microsoft provided command prompt. Doing that is janky.

Another thing you want to do, to get WSL working properly is this:

[Unit]
Description=cosmopolitan APE binfmt service
After=wsl-binfmt.service

[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"

[Install]
WantedBy=multi-user.target

Put that in /etc/systemd/system/cosmo-binfmt.service.

Then run sudo systemctl enable cosmo-binfmt.

@jart jart closed this as completed Jul 22, 2024
jart added a commit that referenced this issue Jul 22, 2024
@remco-pc
Copy link
Author

I dont ssh into the machine, i am using the debian console, i will try that config, @jart i dont need to install anything ?

@remco-pc
Copy link
Author

@jart it didn't work, i still receive <3>WSL (560179) ERROR: UtilAcceptVsock:250: accept4 failed 110 after enabling sudo systemctl enable cosmo-binfmt.

I even restarted my machine, to see if it needed a reboot

@adailey-sw
Copy link

I ran into this error when trying to limit the memory used by WSL. I had created a .wslconfig file in my windows user home directory with these contents in an effort to limit the memory:

[wsl2]
memory=500MB

But I suspect that wasn't enough memory for what I needed, and I started running into the error. With that file removed, the error went away. So if you're seeing this issue, it might be that you don't have enough free memory.

devversion added a commit to devversion/dev-infra that referenced this issue Feb 20, 2025
This is an attempt to avoid surprising errors when launching too many
processes from within WSL to "emulate native Windows testing".

See: Mozilla-Ocho/llamafile#491
devversion added a commit to angular/dev-infra that referenced this issue Feb 20, 2025
This is an attempt to avoid surprising errors when launching too many
processes from within WSL to "emulate native Windows testing".

See: Mozilla-Ocho/llamafile#491
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