Skip to content

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

Closed

Description

@CyberT17

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

Activity

  1. sudhanshu112233shukla commented on Jan 21, 2026

    @sudhanshu112233shukla

    this PR will fix your issue

    thank you!!

  2. brendan-kellam commented on Jan 21, 2026

    @brendan-kellam
    Contributor

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

  3. CyberT17 commented on Jan 21, 2026

    @CyberT17
    ContributorAuthor

    db embedded in the Dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions