Common issues
Participant shows as offline
Section titled “Participant shows as offline”Symptoms:
- participant joined successfully but shows as offline
- requests fail because no participant is available
Causes and solutions:
A participant’s status comes from its tunnel alone: offline means the hub has no open tunnel from it.
-
The participant is reconnecting.
- After a drop, the participant runtime tries again by itself, waiting 1 second and doubling up to 30. Watch for
reconnectingevents ingambi participant join --format ndjson. - If it stays offline for 60 seconds, the hub removes it from the room. The runtime keeps trying, and its next registration brings it back with the same ID.
- After a drop, the participant runtime tries again by itself, waiting 1 second and doubling up to 30. Watch for
-
The tunnel cannot open.
- Check whether the
gambi participant joinprocess is still running. - Check whether a firewall or proxy is blocking WebSocket upgrades.
- Check whether the
-
The hub is unreachable.
curl http://hub-ip:3000/v1/healthConnection timeout
Section titled “Connection timeout”Symptoms:
- requests hang and eventually time out
- you see
ETIMEDOUTorECONNREFUSED
Causes and solutions:
- The hub is not running.
gambi hub serve --port 3000-
The participant can reach the hub over HTTP, but the tunnel upgrade is blocked.
- Test without an intermediate reverse proxy.
- If you are using nginx, Caddy, or another proxy, ensure WebSocket upgrade headers are passed through.
-
The wrong hub URL is configured.
mDNS discovery not working
Section titled “mDNS discovery not working”Symptoms:
- discovery helpers do not find any hubs
- no rooms are discovered on the local network
Causes and solutions:
- mDNS is not enabled.
gambi hub serve --mdns-
Machines are on different network segments.
-
UDP port 5353 is blocked.
CORS errors
Section titled “CORS errors”Symptoms:
- browser console shows CORS errors
- Node.js usage works but browser usage does not
Causes and solutions:
The hub answers CORS for any origin, on both APIs.
- A custom proxy is stripping CORS headers.
- A custom proxy is also stripping WebSocket upgrade headers needed for participant tunnels.
Request goes to the wrong participant
Section titled “Request goes to the wrong participant”Symptoms:
- a request routes to a different participant than expected
Causes and solutions:
-
gambi.model("llama3")routes to the first available participant with that model.- Use
gambi.participant("worker-1")to ask for one participant. It is not an exact target: whenworker-1is busy or offline, another available participant serving a model namedworker-1would take the request. Give participants IDs that are not model names.
- Use
-
The intended participant is offline or busy. Only
onlineparticipants are picked. -
A plain
modelvalue that is not a participant ID is treated as a model name. If no available participant has the ID you sent, the hub routes to the first available participant serving a model with that name. See Model routing.
Participant joins and is refused
Section titled “Participant joins and is refused”Symptoms:
gambi participant joinexits with code4before it is online- a custom runtime built on
createParticipantSession()rejects with aParticipantError
Read the error name (--format json puts it in error.name) or the code:
VersionMismatch/VERSION_MISMATCH: the participant runs another minor version of Gambi than the hub. The message names the version the hub expects. Install a release of that minor on the participant, or update both the hub and the participant to the latest release, so both are on the same minor (any0.8.xwith any other0.8.x).gambi self updatealways installs the latest release.RoomNotFound/ROOM_NOT_FOUND: check the room code withgambi room list.InvalidPassword/INVALID_PASSWORD: pass the room password with--password.
Exit code 3 instead means the participant could not reach what it depends on: the hub (HubUnreachable, NotAHub), its provider (EndpointUnreachable, ModelNotOnEndpoint), the tunnel (TunnelOpenFailed), or its harness. The message says which.
Participant stops after the hub restarts
Section titled “Participant stops after the hub restarts”Symptoms:
- the hub process was restarted, and
gambi participant joinends withleftandreason: "refused", printingRoomNotFoundand exiting with code4 - a custom runtime’s
session.endedresolves withreason: "refused"
Rooms live in the hub’s memory, and room codes are random. A restarted hub comes back without its rooms, so a participant that tries to come back hears that the room does not exist and stops on purpose. Create the room again, share the new code, and join again.
The participant only comes back by itself when the hub was unreachable for a while (a Wi-Fi blink, a sleeping laptop) and returns with its rooms.
Participant ends with replaced
Section titled “Participant ends with replaced”Symptoms:
gambi participant joinends withleftandreason: "replaced", exit code4- a custom runtime’s
session.endedresolves withreason: "replaced"
Another runtime joined the same room with the same participant ID, and the hub kept the newer one. The replaced runtime does not try again, so the two never take the tunnel from each other. Give each running participant its own ID.
A participant you removed comes back
Section titled “A participant you removed comes back”When gambi participant leave removes a connected participant, the hub closes its tunnel with 4002. Its participant join reports left with reason: "removed" and exits with code 4.
If someone removes the participant while its runtime is waiting between retries, there is no open or pending tunnel to receive 4002. Its next attempt registers it again. Run participant leave once it is online, or stop participant join with Ctrl+C on its own machine.
Streaming request ends with consumer_too_slow
Section titled “Streaming request ends with consumer_too_slow”The app read a streamed answer too slowly, and more than 8 MiB of it piled up on the hub. The hub cancels the request on the participant and ends the stream with this error. Read the stream as it arrives, or ask for an answer that is not a stream.
Request fails with inference_timeout
Section titled “Request fails with inference_timeout”The participant sent nothing for 5 minutes, before the first chunk or between two. The hub cancelled the request on the participant. A provider that takes longer than that to start answering (a very large model loading, for example) needs to be warmed up first.
High latency
Section titled “High latency”Symptoms:
- requests take much longer than expected
- streaming feels slow
Causes and solutions:
- Network latency between participant and hub.
- Slow provider or model.
- Too many requests targeting too few participants.
Watch room events and look at llm.complete.metrics to inspect:
ttftMsdurationMstokensPerSecond
Harness participant fails to start or is rejected
Section titled “Harness participant fails to start or is rejected”Symptoms and fixes for gambi participant join --harness:
-
Exit code
3before registration, with a message to install or log in.- The harness binary or its ACP adapter is missing, or there is no local login. Run the command the CLI prints, for example
opencode auth login,claude auth login, orcodex login, then retry. See Bring your harness.
- The harness binary or its ACP adapter is missing, or there is no local login. Run the command the CLI prints, for example
-
Exit code
2and an error that says the flagscannot be used with --harness.- Remove
--endpoint,--header, and--header-env. The harness uses its own local login.
- Remove
-
Claude Code cannot run as a Gambi-hosted harness for third parties.- An application called
createHarnessParticipantSession()withharness: "claude-code"andhosted: true. The SDK rejects that combination. Each person must run Claude Code with their own login.
- An application called
-
An inference request returns HTTP
400with the codeinference_not_supported.- The
modelvalue names a harness participant. Harness participants do not take OpenAI-compatible requests. Attach withclient.harness.attach()instead.
- The
-
artifact_skippedwithcause: "tooLarge".- The workspace snapshot is larger than 8 MiB, so it was not sent. Move large files out of the workspace.
-
A harness process keeps running after the participant is gone.
- If
gambi participant join(or your program) was killed withkill -9, it could not stop the harness. A harness that does not watch its standard input keeps running. Find it and stop it by hand. Ctrl+C andSIGTERMstop it normally.
- If
Still having issues?
Section titled “Still having issues?”-
Check the hub output.
gambi hub servewrites its log lines to stderr (--log-level debugshows more), andgambi events watch --room <code>shows room events. An error from the CLI or the SDK may carry arequestId; look for it in the hub’s log. -
Test the provider endpoint directly:
curl http://localhost:11434/v1/responses \ -H "Content-Type: application/json" \ -d '{"model": "llama3", "input": "Hi"}'- Open an issue on GitHub with:
- the error message
- steps to reproduce
- environment details