分布式 worker 端口异常占用(程序停止后,端口无占用),感觉是动态分配冲突了?
728604d04ba41d42adb9ce801000000, repr=<verl.single_controller.ray.base.WorkerDict object at 0x7fa4d9b7f590>) (WorkerDict pid=113813) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (WorkerDict pid=113813) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (WorkerDict pid=113813) File "/data/team/xuelei12/WebAgent/RL_Factory/RL-Factory/verl/single_controller/ray/base.py", line 723, in init (WorkerDict pid=113813) self.worker_dict[key] = user_defined_cls(*init_args_dict[key].get("args", ()), **init_args_dict[key].get("kwargs", {})) (WorkerDict pid=113813) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (WorkerDict pid=113813) File "/data/team/xuelei12/WebAgent/RL_Factory/RL-Factory/verl/workers/fsdp_workers.py", line 112, in init (WorkerDict pid=113813) torch.distributed.init_process_group(backend="cpu:gloo,cuda:nccl" if is_cuda_available else "cpu:gloo,npu:hccl", rank=rank, world_size=world_size) (WorkerDict pid=113813) File "/root/miniconda3/envs/rl_facory_py311/lib/python3.11/site-packages/torch/distributed/c10d_logger.py", line 81, in wrapper (WorkerDict pid=113813) return func(*args, **kwargs) (WorkerDict pid=113813) ^^^^^^^^^^^^^^^^^^^^^ (WorkerDict pid=113813) File "/root/miniconda3/envs/rl_facory_py311/lib/python3.11/site-packages/torch/distributed/c10d_logger.py", line 95, in wrapper (WorkerDict pid=113813) func_return = func(*args, **kwargs) (WorkerDict pid=113813) ^^^^^^^^^^^^^^^^^^^^^ (WorkerDict pid=113813) File "/root/miniconda3/envs/rl_facory_py311/lib/python3.11/site-packages/torch/distributed/distributed_c10d.py", line 1714, in init_process_group (WorkerDict pid=113813) store, rank, world_size = next(rendezvous_iterator) (WorkerDict pid=113813) ^^^^^^^^^^^^^^^^^^^^^^^^^ (WorkerDict pid=113813) File "/root/miniconda3/envs/rl_facory_py311/lib/python3.11/site-packages/torch/distributed/rendezvous.py", line 274, in _env_rendezvous_handler (WorkerDict pid=113813) store = _create_c10d_store( (WorkerDict pid=113813) ^^^^^^^^^^^^^^^^^^^ (WorkerDict pid=113813) File "/root/miniconda3/envs/rl_facory_py311/lib/python3.11/site-packages/torch/distributed/rendezvous.py", line 194, in _create_c10d_store (WorkerDict pid=113813) return TCPStore( (WorkerDict pid=113813) ^^^^^^^^^ (WorkerDict pid=113813) RuntimeError: The server socket has failed to listen on any local network address. port: 60107, useIpv6: 0, code: -98, name: EADDRINUSE, message: address already in use
same problem, restart may solve this
same issue
same, still can't resolve
same issue
same issue, can not resolve
same issue
same issue
same issue
same issue, how to solve it ?
中文:
根据现有信息,我不建议关闭这个 issue。#3147 的栈是在 torch.distributed.init_process_group 创建 TCPStore 时因 EADDRINUSE 失败:https://github.com/verl-project/verl/issues/3147 。当前主分支里,Ray worker group 的 master port 仍由 get_master_addr_port() 选择并传给 worker:https://github.com/verl-project/verl/blob/6f2aa24abfc01cc72811b376aeb3936503885096/verl/single_controller/ray/base.py#L91-L110 。相关的 #5706 仍是开放 PR,目标就是在 worker 启动前保留 master port:https://github.com/verl-project/verl/pull/5706 。另一个开放 issue #5889 也报告了同类 vLLM/torch distributed 端口冲突:https://github.com/verl-project/verl/issues/5889 。
为了继续定位,请补充:1) verl/vLLM/PyTorch/Ray 版本;2) 完整启动命令和 Hydra overrides;3) 单机/多机、GPU 数、tensor_model_parallel_size、data_parallel_size、是否 async rollout;4) 失败附近日志里的 MASTER_ADDR、MASTER_PORT 和 vLLM data-parallel 相关端口。临时排查可以先 ray stop --force 清理残留 Ray 进程,降低并发启动或 TP/DP 并行度,并在最新 main 或包含 #5310 的版本上复现:https://github.com/verl-project/verl/pull/5310 。如果你能验证 #5706 的端口保留方案是否解决,也请反馈结果。
English:
Based on the available evidence, I would not close this issue yet. The traceback in #3147 fails inside torch.distributed.init_process_group/TCPStore with EADDRINUSE: https://github.com/verl-project/verl/issues/3147 . On current main, the Ray worker-group master-port allocation path is still present: https://github.com/verl-project/verl/blob/6f2aa24abfc01cc72811b376aeb3936503885096/verl/single_controller/ray/base.py#L91-L110 . PR #5706, which tries to reserve the Ray worker-group master port until startup, is still open: https://github.com/verl-project/verl/pull/5706 . A separate open report, #5889, shows the same class of vLLM/torch distributed port conflict: https://github.com/verl-project/verl/issues/5889 .
Please share: (1) verl/vLLM/PyTorch/Ray versions, (2) the full launch command and Hydra overrides, (3) single-node vs multi-node, GPU count, tensor_model_parallel_size, data_parallel_size, and whether async rollout is enabled, and (4) the MASTER_ADDR, MASTER_PORT, and vLLM data-parallel ports printed near the failure. As a workaround/debug step, try cleaning Ray with ray stop --force, reducing concurrent startup or TP/DP parallelism, and reproducing on latest main or a version containing #5310: https://github.com/verl-project/verl/pull/5310 . If you can test whether #5706 resolves the race, that would be especially useful.
This response was generated by a scheduled Codex GPT5.5 issue processing task.