AdminsTroubleshooting

Troubleshooting

This page covers common issues and diagnostic steps for the hosted SaaS (app.studiobrain.ai, API at api.studiobrain.ai) and the desktop client.

Earlier versions of this page described a Docker Compose stack (backend, frontend, Caddy, Postgres, Qdrant, Redis, NFS). That deployment is retired, and the commands for it have been removed. Self-hosted/enterprise (crates/sb-enterprise*) is a future offering and has no supported troubleshooting procedure yet.

Quick Checks

API Health

sb-server-worker serves unauthenticated health routes at the server root:

curl https://api.studiobrain.ai/health
curl https://api.studiobrain.ai/health/live

There is no /api/health route on the Worker. If these fail, check Cloudflare status before investigating your own network or account.

Browser Console

For a web problem, open the browser developer tools and look at the Network tab for failing /api/* requests. Note the status code, the request path, and the response body when reporting it to support.

Common Issues

Signed Out Unexpectedly

Symptom: The app returns you to the login screen, or API calls return 401.

Resolution: Sign in again. Sign-in, sessions and account management run on auth.studiobrain.ai / accounts.studiobrain.ai, separate from the content API. If sign-in itself fails, clear cookies for studiobrain.ai and retry, then contact support with the time of the failure.


Writes Rejected With 400

Symptom: Creating or editing an entity or asset directly through the API returns 400.

Cause: Mutating entity routes on api.studiobrain.ai require an X-Project-Id header, which selects the project’s Durable Object. The web and desktop clients add it automatically. Direct API callers must send it themselves.

Resolution: Add X-Project-Id: <project id> (a project you are a member of) and an Authorization: Bearer <token> header to the request.


Content Not Appearing

Symptom: The app loads but entity lists are empty.

Resolution:

  1. Confirm the correct project is selected in the project switcher. Entities are stored per project.
  2. Reload the page. Clients catch up via the project change feed, so a stale tab can show old data.
  3. For the desktop app, check that it is signed in and online, then let sync finish before checking again.
  4. If the list is still empty, capture the failing request from the Network tab and contact support.

AI Features Fail or Models Are Missing

Symptom: Generation fails, or the model picker is empty.

Cause: AI requests go api.studiobrain.ai → /ai-proxy/* → sb-ai-worker, which also serves the model catalog (/api/ai/models/unified). The AI Worker has no public hostname; ai.studiobrain.ai is a Cloudflare AI Gateway, not the StudioBrain AI service, so errors from that host are not StudioBrain bugs.

Resolution:

  1. Reload and reopen the model picker.
  2. Check your BrainBits balance. A request that cannot reserve BrainBits is refused before the provider is called. Image and ComfyUI generations reserve first and charge only for delivered outputs, so a failed generation should not consume BrainBits. Report any case where it did.
  3. If you use your own provider keys (BYOK), verify the key in your account settings.
  4. Report the failing request path and time to support.

Desktop: Engine Installation Fails

Symptom: Installing a local inference engine from the desktop app leaves it in a failed state.

Resolution:

  1. Check the engine status in the app. The desktop server exposes engine catalog, install, uninstall and status routes (catalog, installed, status, :id/install, :id/uninstall).
  2. Retry the install. Ensure there is enough free disk space and that the download is not blocked by a firewall or proxy.
  3. For GPU engines, make sure your GPU driver is up to date.
  4. Attach the desktop app logs when contacting support.

Desktop: Cannot Reach the Local Server

Symptom: The desktop app shows connection errors to its local server.

Cause: The desktop client embeds a server on 127.0.0.1:7070. Another process using that port will prevent it from starting.

Resolution: Quit other copies of StudioBrain, check what is bound to port 7070, then restart the app.

Reporting a Problem

Include the following when contacting support:

  • The app surface (web at app.studiobrain.ai, desktop, or mobile) and app version
  • The time of the failure, with timezone
  • The failing request path and HTTP status from the browser Network tab
  • Your project name (not credentials or tokens)