Playbook · DGX Spark clusters · Problem

DGX Spark worker will not join the cluster

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.

Why a DGX Spark worker does not join

  1. Check the worker can reach the head's address on the cable.
  2. Compare Ray, Python and the container image on both.
  3. With Ray tokens, both nodes need token mode and the same token.
  4. Check ports both ways, and never expose Ray to the internet.

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

What you see.

MessageWhat 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 foundRay, when token mode is on and no token is there.
The client socket has timed out afterPyTorch: 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 fileNVIDIA’s playbook: NCCL is not set up on every node.
mpirun hangsNVIDIA’s playbook points to SSH between the nodes first.
Can the worker reach the head's address? Fix the link first if not yes Is it the head's cable address? Wrong interface name or empty variable if not yes Same Ray and Python on both? Use one container image on both if not yes Same token setting on both? Set token mode and share the token if not yes Can the nodes reach each other's ports? Local firewall or listening address if not
Our diagram: what a worker needs before it can join, in the order to check it. Ray is shown; the first two apply to any tool.

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

Read both sides.

Replace NAME with the container name. In NVIDIA’s Ray steps it starts with node-.

  1. Reach the head from the worker

    If this fails, go to other Spark not found.

    ping -c 3 HEAD_LINK_IP
    ssh USER@HEAD_LINK_IP hostname
  2. Read the address your commands used

    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
  3. Check the containers are running and read their output

    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
  4. Compare versions, inside the containers

    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
  5. Ask the head what it sees

    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
  6. Check ports and firewall

    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

Match your result.

What you foundWhat it meansNext
Ping failsNo path between the nodes.Fix the network first
Address variable empty or on the wrong networkThe interface name is wrong.Take the name from ibdev2netdev
Versions differThe two environments are not the same. vLLM asks for identical ones.Use one image on both
Token error, or only the head is protectedRay 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 reachableThe head is not running, listens elsewhere, or a firewall blocks it.Check the head first
Joins, then drops or hangsAnother needed port or direction is blocked, or the wrong interface is used.Check traffic both ways
torchrun or Gloo times outWrong MASTER_ADDR, unequal node counts, or the wrong interface.Compare the launch lines

Fix

Rebuild the weak link.

Start the head, then the worker

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 token

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.

PyTorch and MPI

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

Count the nodes.

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

Take a change back.

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

Keep going.

About Server AI Hub

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.

See what Server AI Hub does

Sources

Check the makers’ own pages.

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.