[Errno 98] error while attempting to bind on address, but only one process is running #2447
Unanswered
youkaichao
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, team, thanks for the great framework!
I'm a contributor for the vLLM project, and we use uvicorn for the request handling:
https://github.com/vllm-project/vllm/blob/fc5ebbd1d3453461ea6e00a78faf87c41d1aa625/vllm/entrypoints/launcher.py#L6
Recently, I met a strange bug happening in our ci, saying that the port we use for uvicorn is already used. The stack trace looks like:
This has been bothering us for a long time. And then I added quite a lot logging information to find out which process is using that port.
Surprisingly, I find it is the process itself, that uses the port. You can see the server process has pid 21410. Then it fails to bind the port 37017. Then the log shows port 37017 is used by process with pid=21410.
Is this some potential bug from uvicorn? Do you have any ideas to avoid it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions