oae / kaizoku

Self-hosted manga downloader
https://kaizoku.app
MIT License
578 stars 34 forks source link

Issue with PostgreSQL Version Compatibility in Latest Kaizoku Setup #165

Open ricardopeters-dev opened 1 month ago

ricardopeters-dev commented 1 month ago

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

GabriellCosta commented 2 weeks ago

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 (https://github.com/oae/kaizoku/issues/160) I think that for me is enough