Troubleshooting

Common errors, what they mean, and what to do.

Starting

postgres mode needs the database's URL: set database.url in forkbase.toml or FORKBASE_DATABASE_URL, or run forkbase init --db chronos to use the engine instead.

chronos mode runs its own database: remove database.url: a URL is set (often FORKBASE_DATABASE_URL left in the shell) while the mode is chronos. Unset it.

agents are off: ... in the log (postgres mode): the engine wasn't found. Install chronos on PATH or set FORKBASE_CHRONOS_BIN, then restart. Everything but agents works meanwhile.

listening on 127.0.0.1:8000: Address already in use: another process has the port. Set FORKBASE_LISTEN.

forkbase.toml: unknown field ...: a typo in the file. Unknown keys are refused on purpose.

forkbase keys says the file isn't there: keys are written at start. Start Forkbase once, from the same folder (or with the same --config).

Requests

401 on every request: send apikey: <key>. For /agents, /jobs, /platform, send Authorization: Bearer <key or token>. Check the key came from this server: keys from another data folder don't verify.

permission denied for table ... (42501): the table isn't granted to the caller's role. grant select ... to anon, authenticated, then add RLS policies.

An empty list where you expected rows: RLS is on and no policy lets this caller see them. Try the same query with the service key; if rows appear, write a policy.

Sign-in links point at 127.0.0.1: set auth.external_url to the address people reach.

No emails arrive: auth.email.mode is log by default, which writes them to the server's log. Set up smtp.

CORS errors in the browser: add your app's origin to auth.origins, or set auth.site_url.

Agents

propose keeps answering held: that's the policy working. Read reasons, then approve in the dashboard, or change policies/<name>.toml and restart if the rule is wrong. Don't split a change to slip under a limit.

409 conflict: rows the run changed were changed in the data after the run started. Start a new run and redo the work.

409 stale_reads: the policy has check_reads and rows the run read have changed. Same: a new run.

A new table isn't visible to agents (postgres mode): the engine attaches again once no run is open. Make sure the table has a primary key and that no run is left open (discard old ones).

reattached when undoing (postgres mode): the engine attached again after the run merged, so its merge can't be undone automatically. Restore the rows by hand from the run's changes.

Realtime or a table trigger missed an agent's rows (chronos mode): merges don't run triggers. Use a run.merged event trigger or webhook.

Jobs

no runtime, or jobs stay queued: no server with jobs.enabled has the runtime. Install Node 22.6+ or Python 3, or set jobs.node_bin / jobs.python_bin. GET /jobs/v1/runtimes shows what this server found.

Cannot find package ... / ModuleNotFoundError: dependencies aren't installed. Bundle the function into one file, or use the standard library.

A job fails with a timeout or memory error: raise timeout_s or memory_mb on the function (up to the server's max_*).

MCP

The client never opens a browser: it may not support OAuth. Give it an agent's fba_ token as a bearer header instead.

agents are off on this server: MCP clients work as an agent, so agents must be on (see above).

Getting help

Run with FORKBASE_LOG=debug, check GET /health, and open an issue with the log lines around the error (remove keys and passwords first).

Something wrong or missing? Edit this page on GitHub or open an issue.

Troubleshooting · Forkbase