Your error message indicates that Ray’s “raylet” process is exiting because a required agent (dashboard_agent or runtime_env_agent) failed. The most common causes are: (1) an incompatible grpcio version, (2) a port conflict or agent startup failure, or (3) the agent being killed by the OS (e.g., out of memory) (agent_manager.cc, Ray issue #56580).
For Ray 2.46.0 and Python 3.10.12, you should use grpcio >=1.42.0 (your grpcio==1.74.0 is compatible per setup.py). However, some users have reported segfaults or agent crashes with certain grpcio versions or when installing Ray via non-pip methods (e.g., uv) (Ray issue #53631, Ray issue #54587, Discourse: uv breaks dashboard). Also, port conflicts or missing dependencies can cause the agent to fail. Check the logs at /tmp/ray/session_latest/logs/{dashboard_agent|runtime_env_agent}.log for more details, and ensure your environment is not running out of memory (agent_manager.cc, Ray issue #56580).
Would you like a step-by-step troubleshooting guide?
Sources:
- agent_manager.cc
- Ray issue #56580
- Ray issue #53631
- Ray issue #54587
- Discourse: uv breaks dashboard
- setup.py
Hint: Mention @RunLLM in the post for followups.