sourcebot icon indicating copy to clipboard operation
sourcebot copied to clipboard

[bug] The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 18.1.

Open CyberT17 opened this issue 10 months ago • 3 comments

Describe the bug

After upgrading to v4.10.3, the upgrade fails because the previous version (v4.10.12) was using Postgres version 16 and the new node image installs postgres version 18.

2026-01-21 15:22:52.902 UTC [79] FATAL:  database files are incompatible with server
2026-01-21 15:22:52.902 UTC [79] DETAIL:  The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 18.1.
postgres failed to run

To reproduce

Upgrade and deploy to v4.10.13 with an already populated database.

Sourcebot deployment information

Sourcebot version (e.g. v3.0.1):

Additional information

No response

CyberT17 avatar Jan 21 '26 15:01 CyberT17

this PR will fix your issue

thank you!!

sudhanshu112233shukla avatar Jan 21 '26 17:01 sudhanshu112233shukla

@CyberT17 are you using the docker-compose or the database embedded in the Dockerfile?

brendan-kellam avatar Jan 21 '26 18:01 brendan-kellam

db embedded in the Dockerfile

CyberT17 avatar Jan 21 '26 19:01 CyberT17