PostGIS crashing after changing volume size
sgutgar
FREEOP

a year ago

I recently changed the volume size of my PostGIS database from 500MB to 1GB. After this, my database was restarted, but now I'm getting the following error:

2024-10-30 22:15:35.912 UTC [1] FATAL: database files are incompatible with server

2024-10-30 22:15:35.912 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 17.0 (Debian 17.0-1.pgdg110+1).

I suppose that my old database was using Postgresql 16 and after the restart it changed the version and is trying to use version 17 and this is causing the errors.

How can I change the version of Postgres that my PostGIS database is using?

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

3 Replies

brody
EMPLOYEE

a year ago

You just update the image postgis/postgis -> postgis/postgis:16-master

I've done this for you.


sgutgar
FREEOP

a year ago

Thanks!!!


brody
EMPLOYEE

a year ago

No problem!


Status changed to Solved brody over 1 year ago


Loading...