Postgres redeploy error

digitalelevation
PRO

19 days ago

{"message":"2025-08-13 16:50:09.993 UTC [2] FATAL:  database files are incompatible with server","attributes":{"level":"error"},"timestamp":"2025-08-13T16:50:10.260953767Z"}
{"message":"2025-08-13 16:50:09.993 UTC [2] DETAIL:  The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 17.5 (Debian 17.5-1.pgdg120+1).","attributes":{"level":"error"},"timestamp":"2025-08-13T16:50:10.260959604Z"}

7 Replies

Railway
BOT

19 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


digitalelevation
PRO

19 days ago

I redeployed postgres and added vars that was needing.

I have the setup alongside n8n and now n8n won't work. I need this fixed urgently !

Attachments


digitalelevation
PRO

19 days ago

Got a temporary fix. Had to change the Postgres server image to ghcr.io/railwayapp-templates/postgres-ssl:16 .

How can always be in the latest version?


digitalelevation
PRO

19 days ago

Another question: Why cant i see the data?

Attachments


consultoria-simplia
HOBBY

19 days ago

I was using the same image ghcr.io/railwayapp-templates/postgres-ssl:16 but I had the same issue. I set the image source as postgres:16 and the redeploy worked. Not sure what happened.


consultoria-simplia
HOBBY

19 days ago

That's how it looks now

Attachments


consultoria-simplia

I was using the same image ghcr.io/railwayapp-templates/postgres-ssl:16 but I had the same issue. I set the image source as postgres:16 and the redeploy worked. Not sure what happened.

digitalelevation
PRO

15 days ago

Whats your error?


Postgres redeploy error - Railway Help Station