text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

Starting Server: [Errno 13] error while attempting to bind on address ('127.0.0.1', 5000):

Open metzo007 opened this issue 1 year ago • 3 comments

Describe the bug

Hi,

since today I get this error when I try to start a open-ai server. [Errno 13] error while attempting to bind on address ('127.0.0.1', 5000):

Found out that ist svchost.exe, iphlpsvc. I can kill it and the server starts witout error, but than I get a "500" errer when I try to connect.

Best, Metzo

Is there an existing issue for this?

  • [X] I have searched the existing issues

Reproduction

Check the OpenAI Box in extention and re start

Screenshot

No response

Logs

21:33:07-627432 INFO     LOADER: "llama.cpp"
21:33:07-627432 INFO     TRUNCATION LENGTH: 32768
21:33:07-627432 INFO     INSTRUCTION TEMPLATE: "Custom (obtained from model metadata)"
21:33:07-635432 INFO     Loaded the model in 4.02 seconds.
Closing server running on port: 7860
21:33:16-098403 INFO     Loading the extension "gallery"
21:33:16-098403 INFO     Loading the extension "openai"
21:33:16-255298 INFO     OpenAI-compatible API URL:

                         http://127.0.0.1:5000

[Errno 13] error while attempting to bind on address ('127.0.0.1', 5000): der zugriff auf einen socket war aufgrund der zugriffsrechte des sockets unzulässig

Running on local URL:  http://127.0.0.1:7860

System Info

AND Ryzen, GTX 1660

metzo007 avatar Mar 25 '24 20:03 metzo007

I get this error too but I don't see the service you mention

wyxos avatar Apr 01 '24 04:04 wyxos

Having this issue as well.

JomSpoons avatar May 10 '24 14:05 JomSpoons

The default port may be reserved by Windows, especially if you run Hyper-V related stuff, for example WSL VMs or Docker for Windows. Run Command Prompt as Administrator, and run netsh interface ipv4 show excludedportrange protocol=tcp to check if Windows has reserved the port you want to use. 图片 In my case you can see port 5000 is reserved by Windows(specifically, winnat service). The easiest way to solve the problem without restarting your PC is simply restart winnat service. Run net stop winnat and net start winnat as Administrator. 图片

dakkidaze avatar Jun 18 '24 16:06 dakkidaze