mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
[Bug]: The data directory was initialized by PostgreSQL version 14, which is not compatible with this version 17.0 #589
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 @sedationh on GitHub (Oct 22, 2024).
Where is the problem occurring?
None
What browsers are you seeing the problem on?
No response
Current behaviour
epos/planka - (master) > docker-compose -f docker-compose-db.yml up
WARN[0000] /Users/seda/workspace/repos/planka/docker-compose-db.yml: the attribute
versionis obsolete, it will be ignored, please remove it to avoid potential confusion[+] Running 11/11
✔ postgres Pulled 18.2s
✔ cf04c63912e1 Already exists 0.0s
✔ 044d9972b6f9 Pull complete 1.1s
✔ 1c4b963fa70b Pull complete 3.1s
✔ c97ff27562e7 Pull complete 3.1s
✔ 0a8fa91fd8dd Pull complete 12.0s
✔ fc336a10ac24 Pull complete 12.0s
✔ e64e42d2e378 Pull complete 12.0s
✔ 368fad94fbf5 Pull complete 12.0s
✔ 2f5a5dbb159e Pull complete 12.0s
✔ 440196fcba86 Pull complete 12.0s
[+] Running 2/2
✔ Network planka_default Created 0.0s
✔ Container planka-postgres-1 Created 0.3s
Attaching to postgres-1
postgres-1 |
postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres-1 |
postgres-1 | 2024-10-22 15:05:35.537 UTC [1] FATAL: database files are incompatible with server
postgres-1 | 2024-10-22 15:05:35.537 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 14, which is not compatible with this version 17.0.
postgres-1 exited with code 0
Desired behaviour
No response
Steps to reproduce
run
docker-compose -f docker-compose-db.yml up
Other information
No response
@sedationh commented on GitHub (Oct 22, 2024):
After Change from
to
image: postgres:14
docker-compose -f docker-compose-db.yml upworks fine@sedationh commented on GitHub (Oct 22, 2024):
@sedationh commented on GitHub (Oct 22, 2024):
Software:
Hardware:
@sedationh commented on GitHub (Oct 22, 2024):
https://github.com/plankanban/planka/pull/919
@meltyshev commented on GitHub (Oct 22, 2024):
Thanks for reporting and submitting the PR! Please update the data to v16 using this guide: https://cloudytuts.com/tutorials/docker/how-to-upgrade-postgresql-in-docker-and-kubernetes.