Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

[Dockerfile] OSError: Port 7865 is in use. If a gradio.Blocks is running on the port, you can close() it or gradio.close_all()

Open paul2048 opened this issue 2 years ago • 4 comments

I downloaded the Dockerfile, and ran the image in Docker GUI on my Windows 11. But I get this error after I run python infer-web.py in the terminal:

Use Language: en_US
没有发现支持的N卡, 使用CPU进行推理
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/gradio/networking.py", line 118, in start_server
    s.bind((LOCALHOST_NAME, server_port))
OSError: [Errno 98] Address already in use

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/infer-web.py", line 1639, in <module>
    app.queue(concurrency_count=511, max_size=1022).launch(
  File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1740, in launch
    server_name, server_port, local_url, app, server = networking.start_server(
  File "/usr/local/lib/python3.10/site-packages/gradio/networking.py", line 121, in start_server
    raise OSError(
OSError: Port 7865 is in use. If a gradio.Blocks is running on the port, you can close() it or gradio.close_all().

I tried to see what runs on that port:

# netstat -ltnp | grep :7865
tcp        0      0 0.0.0.0:7865            0.0.0.0:*               LISTEN      1/python3

and then I tried to close that with kill -9 1, but the process is still there.

I also tried running python infer-web.py --port 8000, and the output was:

Use Language: en_US
没有发现支持的N卡, 使用CPU进行推理
Running on local URL:  http://0.0.0.0:8000

but: image

paul2048 avatar May 15 '23 21:05 paul2048

Try running ur shell with full admin access. And try --port 3000.

Mangio621 avatar May 18 '23 05:05 Mangio621

thanks, but it still doesn't work

paul2048 avatar May 20 '23 21:05 paul2048

have anyone solved it, i have the same problem

wyz9616 avatar May 29 '23 06:05 wyz9616