English

Admin guide Operations

Troubleshooting

Common problems with an Archipelego server, what causes them, and how to fix them.

On this page

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:

bash
PORT=8080 npm start

With Docker, publish another host port and keep 1234 inside the container:

bash
docker run -d --name archipelego -p 8080:1234 -v archipelego-data:/data ghcr.io/yannickhuchard/archipelego:latest

With 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.1 and the Upgrade and Connection headers.
  • 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_KEY on the server and restart it. Check that ARCHIPELEGO_PLATFORM_AI is not off.

See AI providers and keys.

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:

bash
openssl rand -base64 32

Not 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:5173 instead.
  • In production, run npm run build before npm 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.blocks list 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, not localhost.
  • Put the phone on the same network as the laptop.
  • Allow port 5173 in 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.