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()
Nobody has claimed this yet.
- 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:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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