Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with PostgreSQL Version Compatibility in Latest Kaizoku Setup #165

Open
ricardopeters-dev opened this issue Sep 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ricardopeters-dev
Copy link

Describe the bug

Hi there,

I’ve encountered an issue with the latest Kaizoku setup using the recommended docker-compose.yml. The db service is using postgres:alpine, which pulls the latest version (currently PostgreSQL 17). However, this causes compatibility issues if the data directory was initialized with PostgreSQL 16, leading to errors like:

FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 17.0.

To resolve the issue, I reverted to postgres:16-alpine in the docker-compose.yml file. It might be helpful to update the documentation to specify a PostgreSQL version to avoid similar issues for other users.

Thanks for your work on Kaizoku!

Best regards,

Reproduction steps

No response

Expected behavior

No response

Additional context

No response

@ricardopeters-dev ricardopeters-dev added the bug Something isn't working label Sep 28, 2024
@GabriellCosta
Copy link

My temporary solution for this was just using PostgreSQL 16 instead of the latest image

kaizoku-db:
    container_name: kaizoku-db
    image: postgres:16.4
    restart: unless-stopped

As this project is in the process of rewrite (#160) I think that for me is enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants