Reference
Troubleshooting
Common AxiomDB errors and the fastest safe fixes.
Prisma cannot reach the database
Check:
- your current IP is allowlisted,
DATABASE_URLusesdb.squareexp.com:6432,DIRECT_URLusesdb.squareexp.com:5432,- both URLs include
sslmode=require, - the branch database exists and is active.
Prisma cannot create shadow database
Use DIRECT_URL in schema.prisma.
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
directUrl = env("DIRECT_URL")
}If it still fails, rotate or repair the direct owner role.
PgBouncer cannot connect to server
Usually this means PgBouncer userlist, Postgres role password, database name, or network policy drifted.
Fix path:
- test
DIRECT_URL, - verify role exists,
- refresh PgBouncer config,
- reload PgBouncer,
- retry
DATABASE_URL.
Network save says failed but table changed
That is control-plane/apply drift. The rule was stored, but the VPS apply step failed. The UI should show a sanitized error and the backend should mark the apply event failed.
Retry after fixing the provisioner or remove the stale rule.
Empty schema returns error
An empty branch should show an empty table state. It should not be treated as a failure.