Troubleshooting
Find your symptom below. Each entry says what usually causes it and what to do.
The chat client cannot connect
Likely cause: the server is not running, or the client points at a different address or transport than the server uses.
What to do: start the server first and keep its terminal open. Use the same transport on both sides, and check the address. The defaults are 127.0.0.1:8787 for HTTP and WebSocket, and 127.0.0.1:8788 for gRPC.
Port already in use
Likely cause: another program uses port 8787 or 8788.
What to do: start the server on other ports with -addr and -grpc-addr, and point your client at the new addresses. For example -addr 127.0.0.1:9787.
Token rejected
Likely cause: the token is wrong, or it is not in the server’s token list.
What to do:
- With
robotelos dev up, the token is in~/.robotelos/dev/token, androbotelos-chatreads it by itself. The embedded server ofapps/consoleaccepts the demo tokensdemo-aliceanddemo-bob. - With the gateway, the token must be listed in the token file, and it must be at least 8 characters long. Keep the token file out of version control.
The gateway does not start
Likely cause: one or more settings are missing or wrong.
What to do: read the message in the terminal. The gateway lists every problem at once, and it exits with code 2. Check that each ROBOTELOS_GATEWAY_* variable is set, and that the database address and the two database roles are correct. The full list is in the gateway configuration reference.
A migration shows as “changed”
Likely cause: someone edited a migration file that was already applied to the database.
What to do: restore the original file. To change the schema, add a new migration file instead. See Database migrations.
robotelos dev fails to start
Likely cause: Docker is not running.
What to do: start Docker, then run robotelos dev up again. Stop the old instance with robotelos dev down if it is still listed as running.
An agent does not answer
Likely cause: in a group, agents answer only when they are mentioned. Or the agent ID does not match a registered agent.
What to do: mention the agent in your message. Check that the ID you used when creating the conversation is one the server knows, for example mock. See Groups and participants.
Someone cannot join my group
Likely cause: the invitation was sent, but the person has not accepted it, or they do not have the conversation’s ID.
What to do: share the conversation’s ID with them, and ask them to accept the invitation. Until they join, they can only answer the invitation.
The client shows an old or incomplete conversation
Likely cause: the client was offline for a long time, and its saved position is no longer available on the server.
What to do: subscribe again without a saved position. The server then sends a complete snapshot. Good client libraries do this automatically. See Delivery.
Still stuck?
Open an issue in the Robotelos repository with what you ran, what you expected, and the message you saw.
Next steps
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.