alibaba / alibaba/rtp-llm

socket.gaierror: [Errno -5] No address associated with hostname

Open
#136 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.3k
Forks
275
Avg merge
3d 17h
Merged PRs (30d)
33

Description

报错日志如下:
```
[process-150623][root][04/15/2025 20:15:44][__init__.py:():14][INFO] init logger end
so path: /mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10/site-packages/maga_transformer/libs
[process-150623][root][04/15/2025 20:15:51][__init__.py:():49][INFO] checked path [/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/workspace/rtp-llm/example] for xft, not found.
[process-150623][root][04/15/2025 20:15:51][__init__.py:():49][INFO] checked path [/mnt/bn/pan-personal-bytenas/yinchangpan/mfip] for xft, not found.
[process-150623][root][04/15/2025 20:15:51][__init__.py:():49][INFO] checked path [/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/workspace/rtp-llm/example] for xft, not found.
[process-150623][root][04/15/2025 20:15:51][__init__.py:():49][INFO] checked path [/opt/tiger/rh2] for xft, not found.
[process-150623][root][04/15/2025 20:15:51][__init__.py:():49][INFO] checked path [/opt/tiger/pyutil] for xft, not found.
[process-150623][root][04/15/2025 20:15:51][__init__.py:():49][INFO] checked path [/mnt/bn/pan-personal-bytenas/yinchangpan/workspace/EAGLE] for xft, not found.
[process-150623][root][04/15/2025 20:15:51][__init__.py:():49][INFO] checked path [/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10] for xft, not found.
[process-150623][root][04/15/2025 20:15:51][__init__.py:():49][INFO] checked path [/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10/lib-dynload] for xft, not found.
[process-150623][root][04/15/2025 20:15:51][__init__.py:():43][INFO] load libxfastertransformer.so from /mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10/site-packages/xfastertransformer-devel/lib
Traceback (most recent call last):
File "/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10/site-packages/maga_transformer/start_server.py", line 18, in
from maga_transformer.distribute.worker_info import g_worker_info, g_parallel_info
File "/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10/site-packages/maga_transformer/distribute/worker_info.py", line 125, in
g_worker_info = WorkerInfo.from_env()
File "/mnt/bn/pan-personal-bytenas/mlx/users/yinchangpan/software/conda/envs/ycp_py310_rtpllm_new/lib/python3.10/site-packages/maga_transformer/distribute/worker_info.py", line 87, in from_env
ip=socket.gethostbyname(socket.gethostname()),
socket.gaierror: [Errno -5] No address associated with hostname
```

![Image](https://github.com/user-attachments/assets/fda72057-10e7-4990-b4a1-c87314ff7e7c)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading maga_transformer/distribute/worker_info.py, especially WorkerInfo.from_env at the socket.gethostbyname call, and its import path from maga_transformer/start_server.py. Reproduce the reported startup environment and determine the expected behavior when the hostname has no address; done means startup handles or clearly reports that condition without the traceback.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, distributed-systems, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.