Playbook · DGX Spark clusters · Problem
A worker that cannot join usually has the wrong head address, a different software version, a missing token or a blocked path. These checks tell them apart.
Never open Ray to the internet to make a worker join. Ray says anyone who can reach its dashboard, jobs or client ports can run code on your cluster.
Checked on 26 November 2026 against: NVIDIA's DGX Spark and cluster pages and playbooks, Ray's documentation (read as 2.60.1), PyTorch 2.9 and vLLM's latest developer pages. We have not yet run this playbook start to finish on our own hardware.
The symptom
| Message | What printed it |
|---|---|
A message starting Version mismatch: | Ray: the node and the cluster run different Ray or Python versions. |
Token authentication is enabled but no authentication token was found | Ray, when token mode is on and no token is there. |
The client socket has timed out after | PyTorch: it could not reach the meeting point in time. |
The server socket has failed to listen on any local network address. | PyTorch: the first node could not open its listening port. |
libnccl.so.2: cannot open shared object file | NVIDIA’s playbook: NCCL is not set up on every node. |
mpirun hangs | NVIDIA’s playbook points to SSH between the nodes first. |
Written from the makers’ own pages and source code, read on 26 November 2026. We have not run these checks and fixes on our own hardware for this page. In the commands, spark-two and words in capitals such as USER, PEER_LINK_IP and NAME are made-up placeholders: put your own in. All cluster problems and the safe-checks method.
Safe checks first
Replace NAME with the container name. In NVIDIA’s Ray steps it starts with node-.
If this fails, go to other Spark not found.
ping -c 3 HEAD_LINK_IP
ssh USER@HEAD_LINK_IP hostname
In NVIDIA’s steps the address is filled in from the interface name. If either line prints nothing, the interface name is wrong or has no address. VLLM_HOST_IP must be each node’s own address.
echo "$MN_IF_NAME"
echo "$VLLM_HOST_IP"
ibdev2netdev
NVIDIA’s script runs in the foreground. Its cleanup stops and removes the container when the script ends, so closing that terminal or losing the SSH session removes the node. Read the output in that terminal, or:
docker ps
docker logs --tail 100 NAME
Run on each Spark and compare line by line. NVIDIA’s playbook patches the script to install Ray when the container starts, asking only for a minimum version, so two installs made at different times could differ. That last point is our reading of the command.
docker exec NAME ray --version
docker exec NAME python3 --version
docker image ls
vLLM’s guide uses these to confirm the node and GPU count. Two Sparks should show two nodes.
docker exec NAME ray status
docker exec NAME ray list nodes
NVIDIA’s and vLLM’s script starts the head on port 6379. The first line, on the worker, tests only that port. Ray needs traffic both ways: its docs list worker ports 10002 to 19999 and several others that it picks at random unless you set them. The second line, on the head, shows what is listening and on which address. The third reads the firewall.
nc -vz HEAD_LINK_IP 6379
ss -ltn
sudo ufw status
What each result means
| What you found | What it means | Next |
|---|---|---|
| Ping fails | No path between the nodes. | Fix the network first |
| Address variable empty or on the wrong network | The interface name is wrong. | Take the name from ibdev2netdev |
| Versions differ | The two environments are not the same. vLLM asks for identical ones. | Use one image on both |
| Token error, or only the head is protected | Ray 2.52 added token mode. Ray’s docs say a worker added with ray start --address ignores a token unless RAY_AUTH_MODE=token is set. | Set the same mode and token on both |
| Port 6379 not reachable | The head is not running, listens elsewhere, or a firewall blocks it. | Check the head first |
| Joins, then drops or hangs | Another needed port or direction is blocked, or the wrong interface is used. | Check traffic both ways |
torchrun or Gloo times out | Wrong MASTER_ADDR, unequal node counts, or the wrong interface. | Compare the launch lines |
Fix
Stopping or restarting a node stops work running on the cluster. Check that nothing is in progress.
Use one tested set of steps from start to finish: NVIDIA’s playbook for your workload, with the same image on both Sparks. To start again cleanly, press Ctrl+C in the script’s own terminal, which removes that container, then start the head and then each worker.
Restarts or stops something. Stops that cluster node and anything running in it. NVIDIA’s script then removes the container; files not saved to a mounted folder are lost with it.
docker stop NAME
Keep each script in a terminal that survives a dropped connection, such as tmux, as NVIDIA suggests. tmux does not survive a reboot.
Ray says a token adds a layer and does not replace a private network. It is stored as plain text and sent in an HTTP header, so keep Ray traffic private. Create it once, copy it to each node by a private route, never into a repository or a chat. For containers, the file and the mode must be visible inside the container; follow Ray’s token page for your version.
Changes something. Makes a token if you have none, and prints it on screen.
ray get-auth-token --generate
Ray’s page says 2.59 turned tokens on by default for local clusters, and 2.61 extends that to all clusters. Check the version you really run before you upgrade one node.
Give every node the same node count and meeting address, and a different node rank. vLLM’s troubleshooting test uses --rdzv_backend=static to avoid name lookup failures. Set the same interface variables everywhere; PyTorch says that if you list several Gloo interfaces, every process must list the same number. For mpirun, NVIDIA says to get password-free SSH working, then try it with hostname as the program.
Puts load on the system. Starts a harmless program on both nodes. It should print two different host names.
mpirun -np 2 -H HEAD_IP:1,PEER_IP:1 hostname
Confirm
For Ray, ray status on the head should show both nodes and both GPUs, and still show them a few minutes later.
docker exec NAME ray status
Undo
Stopping the containers undoes a Ray cluster started by the script. Unset variables or close the terminal. If you turned a firewall rule on or off, put it back exactly as it was. If you made a Ray token only for a test, delete the copies on every node.
Our advice: do not leave a firewall off after a test, and do not publish port 8265. To see the dashboard from elsewhere, use an SSH tunnel as NVIDIA’s playbook shows.
Next
Server AI Hub is our app for looking after a DGX Spark. You do not need it to follow this playbook. It is coming soon to the App Store and the Microsoft Store.
Sources
General guidance only, in our own words. Check what a command does before you run it; you use these steps at your own risk. NVIDIA, DGX Spark, ConnectX and CUDA are trademarks of NVIDIA Corporation; Docker, Ray, PyTorch, Ubuntu, Linux, Hugging Face and other names belong to their owners. 6ixLabs is not affiliated with or endorsed by NVIDIA or any project named here.