OperationsTroubleshooting

Troubleshooting

Recall returns no hits

Ask the server for the workspace vitals:

curl http://localhost:3939/health \
  -H "Authorization: Bearer mns_live_..."
  • factsLive is 0: the key belongs to a different workspace than the one you wrote to. The workspace comes from the API key.
  • embeddings.indexed is 0: nothing has been embedded. Check /health/ready: "embed" must be "ok". In the local stack that means the Ollama models were pulled (bge-m3 and qwen2.5:3b).
  • embeddings.pending is above 0: some facts are stored without an embedding, usually because the provider was down when they were written. They are full-text searchable now and become semantically searchable once the provider answers.

Recall answers 501

No embedding provider is configured and the request carries no precomputed vector. Set MNEMO_LLM_PROVIDER and MNEMO_LLM_API_KEY, or MNEMO_EMBED_PROVIDER for a dedicated one.

401 unauthorized

The Authorization header is missing or the key is not valid. The format is Authorization: Bearer mns_live_....

403 INSUFFICIENT_SCOPE or forbidden

The key is valid but lacks the scope the route needs. Create a key with the right scopes:

mnemo keys create --label "CI agent" --scopes memory:read,memory:write

409 conflict

On POST /remember with kind: "entity", an entity with that name and kind already exists. details.existingId names it: update it instead.

A write contradicts an existing fact

The write is not refused. The POST /remember response carries a conflict object with the candidates. When judgmentRequired is true, resolve each candidate’s relationId:

curl -X POST http://localhost:3939/conflicts/<relationId>/resolve \
  -H "Authorization: Bearer mns_live_..." \
  -H "Content-Type: application/json" \
  -d '{"action": "supersede_a"}'

action is supersede_a, supersede_b, keep_both or merge (which also needs mergedStatement). GET /conflicts lists the unresolved pairs. The memory_judge MCP tool does the same.

429 rate_limited

The key went over its budget. Wait for the number of seconds in the Retry-After header. The limits are fixed in the server and scale with the key’s plan (free, pro, enterprise); there is no setting to raise them for one key.

The server does not start

Read the logs first:

docker compose ps
docker compose logs migrate
docker compose logs server

Common causes:

  • DATABASE_URL is not set. Refusing to start. The variable is missing.
  • A message that the database role has rolsuper=true or rolbypassrls=true. The server refuses a role that bypasses row-level security. Connect as the mnemo_app role; the local override sets MNEMO_ALLOW_UNSAFE_DB_ROLE=true instead.
  • ... must not be true with NODE_ENV=production. Refusing to start. MNEMO_ALLOW_UNSAFE_DB_ROLE or MNEMO_DASHBOARD_INSECURE_COOKIE is set in production.
  • Invalid MNEMO_DASHBOARD_SECRET. Refusing to start. The secret is shorter than 32 bytes.
  • migrate exited non-zero. The server waits for it. A Postgres without the vector extension is the usual cause: use pgvector/pgvector:pg17, or run CREATE EXTENSION IF NOT EXISTS vector; on your own Postgres.
  • Port 5432 or 6379 is taken on the host. Set POSTGRES_PORT or REDIS_PORT in docker/.env.

Need more help

Open an issue at https://github.com/lucasmailland/mnemosyne/issues. Include the request_id from the failed response and the output of /health/ready. Report security problems through GitHub private vulnerability reporting, not in a public issue.