n8n errors / Schema
There was an error initializing DB: relation "credentials_entity" does not exist
Cause
n8n's Postgres migrations run against the wrong schema when DB_POSTGRESDB_SCHEMA is set to anything other than 'public', leaving tables uncreated.
Fix
Set DB_POSTGRESDB_SCHEMA=public or remove the variable so n8n uses the default. If you need schema isolation, create it first and grant the user full privileges before starting n8n. After fixing, wipe the database and let n8n re-run migrations cleanly.
Part of the Automation Error Index — n8n errors: browse all.
Hitting an automation error we have not covered?
AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.
Describe the problem