mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
Help Needed: Upgrading postgres version from postgres:14-alpine to postgres:16-alpine #608
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jaimedmp on GitHub (Nov 19, 2024).
Is this a feature for the backend or frontend?
Backend
What would you like?
Hi, I need some help or suggestions.
Current Planka version: 1.24.1
In the Planka GitHub repository, the
docker-compose.ymlfile specifies theimagefor PostgreSQL as:However, on my premises, it's currently set to:
I would like to update my
docker-compose.ymlfile to usepostgres:16-alpine.Thank you for your guidance!
Why is this needed?
N/A
Other information
N/A
@meltyshev commented on GitHub (Nov 19, 2024):
Hi! We'll add this to the docs soon.
@jaimedmp commented on GitHub (Nov 20, 2024):
Thank you for your response.
@nbx3 commented on GitHub (Feb 14, 2025):
So these are the steps i followed that worked successfully -
Edit the
docker-compose.ymlandnetwork_mode: noneto the postgres config and changeimage: postgres:14-alpinetoimage: postgres:16-alpinePull the updated image, force recreate postgres database and apply your backup
docker-compose.ymland remove thenetwork_mode: none, then rerun the recreateTest!
PS thanks for an awesome open source project
@jaimedmp commented on GitHub (Mar 3, 2025):
Hi,
I am having an error when I try to run
docker compose up --force-recreate -d postgres. I made sure that I follow the previous steps.postgres-1 |
postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres-1 |
postgres-1 | 2025-03-02 23:57:08.965 UTC [1] FATAL: database files are incompatible with server
postgres-1 | 2025-03-02 23:57:08.965 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 14, which is not compatible with this version 16.8.
postgres-1 exited with code 1