RVC-Project/Retrieval-based-Voice-Conversion-WebUI

[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

#291 创建于 2023年5月15日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Python (2,849 fork)batch import
bughelp wanted

仓库指标

Star
 (18,427 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南