{"code": 503, "message": "Database is not ready!"}
jeremiah-oss
FREEOP

a month ago

I am working on an n8n deployment and cannot currently access it. When i try to access n8n, i get the following message: { "code": 503, "message": "Database is not ready!" }

I hadn't logged in for about two weeks and now i get this message.

What ive tried:

  • restarting postgresdb, redis and n8n worker - n8n deployment still fails.

  • checked to see if my db is out of space - it has plenty 300/500mb available

  • ensured other settings wasnt preventing it - as far as i know, nothing else has changed.

please help!

Attachments

$10 Bounty

3 Replies

jeremiah-oss
FREEOP

a month ago

dashboard view

Attachments


dev-johnjosephnwj
HOBBY

25 days ago

Hello are you able to resolve this? Experiencing this error as well


The error database "n8n" does not exist means your postgres is running but the actual database n8n needs is missing. so this can happen if postgres data got reset during the recent outage or a volume issue.

To fix it, connect to your Postgres service and create the database:

 1. Go to your Postgres service -> Data tab -> open the query console

 2. Run: CREATE DATABASE n8n;

 3. Redeploy your n8n service

 If the Data tab isn't available, you can connect via the Railway CLI:

railway connect postgres

  CREATE DATABASE n8n;


Loading...