RVC-Project / 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 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
Python
Stars
38.4k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Dockerfile and the launch call in infer-web.py near line 1639. Reproduce the container with the default port 7865, then compare it with the reported --port 8000 behavior and inspect the container's port mapping. Done means the container starts the web UI without the reported address-in-use failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, dockerfile, python
Domain
devops, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.