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

Version 2.1.4 is marked as release although totally unusable #11272

Closed
1 of 2 tasks
Wladastic opened this issue Mar 8, 2024 · 5 comments
Closed
1 of 2 tasks

Version 2.1.4 is marked as release although totally unusable #11272

Wladastic opened this issue Mar 8, 2024 · 5 comments

Comments

@Wladastic
Copy link

Windows Version

Microsoft Windows [Version 10.0.22631.3155]

WSL Version

2.1.4

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Default Distribution: Ubuntu-20.04

Distro Version

Ubuntu-20.04

Other Software

No response

Repro Steps

When updating through apt upgrade wsl is upgraded to 2.1.4 which has no functioning Port Forwarding.
When executing the installer for 2.0.14 everything runs smoothly again.

Expected Behavior

Port forwarding should work when:

netsh interface portproxy delete v4tov4 listenport=7860 listenaddr=0.0.0.0
netsh interface portproxy delete v4tov4 listenport=5000 listenaddr=0.0.0.0

netsh interface portproxy reset

netsh interface portproxy add v4tov4 listenport=7860 listenaddress=0.0.0.0 connectport=7860 connectaddress=$(wsl hostname -I)
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=7860 connectaddress=127.0.0.1 connectport=7860

netsh interface portproxy add v4tov4 listenport=5000 listenaddress=0.0.0.0 connectport=5000 connectaddress=$(wsl hostname -I)
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=5000 connectaddress=127.0.0.1 connectport=5000

Actual Behavior

IP Service explodes in CPU usage and then keeps crashing

Diagnostic Logs

A request to allocate an ephemeral port number from the global TCP port space has failed due to all such ports being in use.
and
The IP Helper service terminated unexpectedly. It has done this 2 time(s). The following corrective action will be taken in 300000 milliseconds: Restart the service.

@Wladastic
Copy link
Author

Wladastic commented Mar 8, 2024

When I install 2.0.14 it just runs without any flaw, dont even have to portproxy wsl to localhost.
I know that I dont have to port forward wsl to 0.0.0.0 and could have done to 127.0.0.1, this one works just as well although I know if there was one it would be circular.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 12, 2024

/logs

@Wladastic
Copy link
Author

/logs

I did a Network reset, automagically everything works again

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 13, 2024

Thank you for confirming. Closing since the repro is gone.

@OneBlue OneBlue closed this as completed Mar 13, 2024
@Wladastic
Copy link
Author

Apparently the network reset only let the port forwarding run only once.
I figured out why it stopped working:
"A request to allocate an ephemeral port number from the global TCP port space has failed due to all such ports being in use."
Whenever I start a Gradio Server, close it and start it again I get this error.

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

2 participants