Admin guide Operations
Troubleshooting
Common problems with an Archipelego server, what causes them, and how to fix them.
On this page
- Quick reference
- The port is in use
- Websockets fail behind a proxy
- No AI provider is connected
- The fixed model has no key
- A key test fails
- Stored keys stop working after a move
- ARCHIPELEGO_SECRET must be 32 bytes
- Not found on port 1234
- A library entry is missing
- Phones cannot join in development
- The chip says offline
Start with the table. Each row links to a section with more detail.
Quick reference
| Problem | Likely cause | Fix |
|---|---|---|
| The server does not start | Port 1234 is in use |
Change the port |
| The canvas stays on Connecting | The proxy drops websocket upgrades | Pass the upgrade |
| "No AI provider is connected yet" | No key for any provider | Add a key |
| "The fixed model has no key" | Fixed mode on a provider without a key | Add the key or use Auto |
| Test fails for a key | Wrong key, missing field, or provider down | Check the key |
| Stored keys stop working after a move | The master key changed | Restore the master key |
| "ARCHIPELEGO_SECRET must be 32 bytes, base64 or hex." | A malformed secret | Fix the secret |
| "Not found. In development, open the Vite app on port 5173." | No built app | Build the app |
| A library entry is missing | Invalid JSON or file name | Check the entry |
| Phones cannot join in development | Wrong address or a firewall | Use the LAN address |
| The chip says Offline, changes kept | The browser lost the server | Check the connection |
The port is in use
Another program already listens on port 1234. Start Archipelego on another port:
PORT=8080 npm startWith Docker, publish another host port and keep 1234 inside the container:
docker run -d --name archipelego -p 8080:1234 -v archipelego-data:/data ghcr.io/yannickhuchard/archipelego:latestWith Compose, set ARCHIPELEGO_PORT=8080 in .env.
Websockets fail behind a proxy
The page loads, but the status chip stays on Connecting and nobody sees each other. The proxy does not pass the websocket upgrade for /yjs/.
- In nginx, set
proxy_http_version 1.1and theUpgradeandConnectionheaders. - Raise
proxy_read_timeout, or idle canvases disconnect.
See the full examples in Security.
No AI provider is connected
Explain or the Architect answers "No AI provider is connected yet. Add a key in AI models and keys."
Nobody has added a key for this canvas, and the server has no credentials of its own. Fix it in one of two ways:
- A participant adds a key in AI models and keys.
- You set
ANTHROPIC_API_KEYon the server and restart it. Check thatARCHIPELEGO_PLATFORM_AIis notoff.
The fixed model has no key
The answer is "The fixed model has no key. Add one in AI models and keys, or switch the router to Auto."
In Fixed mode the router uses only that model, and its provider has no key. Add a key for that provider, or switch the router to Auto.
A key test fails
Test sends one short prompt with the key. When it fails, the message names the reason:
- "rejected the key": the key is wrong, revoked or for another product.
- "is rate limiting this key": wait, or raise the limit with the provider.
- "could not be reached": the server has no outbound internet access to the provider.
- "needs a valid Workspace ID": a Qwen key needs its workspace id.
The test times out after 30 seconds.
Stored keys stop working after a move
Canvases open, but keys stored on the server no longer work. The server cannot decrypt them with its current master key.
- If you used
.vault.key, copy it from the old data folder into the new one. - If you used
ARCHIPELEGO_SECRET, set the same value again.
If the old master key is gone, people remove their stored keys and add them again.
ARCHIPELEGO_SECRET must be 32 bytes
The secret must decode to exactly 32 bytes. Use 64 hexadecimal characters, or base64 of 32 bytes. Generate a valid one with:
openssl rand -base64 32Not found on port 1234
The server answers "Not found. In development, open the Vite app on port 5173."
The server serves the app from app/dist, and that folder is missing.
- In development, open
http://localhost:5173instead. - In production, run
npm run buildbeforenpm start.
A library entry is missing
The server skips an entry when:
- the file is not valid JSON,
- the file name is not lowercase letters, digits and hyphens, ending in
.json, - the
canvas.blockslist is missing.
Check the entry with curl http://localhost:1234/api/library. See Reference library.
Phones cannot join in development
npm run dev listens on your LAN address as well as localhost.
- Open the LAN address that Vite prints, such as
http://192.168.1.20:5173, notlocalhost. - Put the phone on the same network as the laptop.
- Allow port
5173in the laptop's firewall.
The chip says offline
Offline, changes kept means the browser lost its connection to the server. Edits stay in the browser and sync when the connection returns.
- Check the server with
curl http://localhost:1234/health. - Check the network between the device and the server.
- Check the proxy, as in Websockets fail behind a proxy.