[Bug]: The data directory was initialized by PostgreSQL version 14, which is not compatible with this version 17.0 #589

Closed
opened 2026-02-04 20:28:11 +03:00 by OVERLORD · 5 comments
Owner

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 version is 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

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 `version` is 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_
Author
Owner

@sedationh commented on GitHub (Oct 22, 2024):

After Change from

image: postgres:alpine

to
image: postgres:14

docker-compose -f docker-compose-db.yml up works fine

@sedationh commented on GitHub (Oct 22, 2024): After Change from image: postgres:alpine to image: postgres:14 `docker-compose -f docker-compose-db.yml up` works fine
Author
Owner

@sedationh commented on GitHub (Oct 22, 2024):

image
@sedationh commented on GitHub (Oct 22, 2024): <img width="987" alt="image" src="https://github.com/user-attachments/assets/05cddeff-9dc1-4e51-83fe-c408a7c2bd26">
Author
Owner

@sedationh commented on GitHub (Oct 22, 2024):

Software:

System Software Overview:

  System Version: macOS 14.5 (23F79)
  Kernel Version: Darwin 23.5.0
  Boot Mode: Normal
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 2 days, 1 hour, 1 minute

Hardware:

Hardware Overview:

  Model Name: Mac mini
  Model Identifier: Mac14,3
  Chip: Apple M2
  Total Number of Cores: 8 (4 performance and 4 efficiency)
  Memory: 16 GB
  System Firmware Version: 10151.121.1
  OS Loader Version: 10151.121.1
@sedationh commented on GitHub (Oct 22, 2024): Software: System Software Overview: System Version: macOS 14.5 (23F79) Kernel Version: Darwin 23.5.0 Boot Mode: Normal Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 2 days, 1 hour, 1 minute Hardware: Hardware Overview: Model Name: Mac mini Model Identifier: Mac14,3 Chip: Apple M2 Total Number of Cores: 8 (4 performance and 4 efficiency) Memory: 16 GB System Firmware Version: 10151.121.1 OS Loader Version: 10151.121.1
Author
Owner

@sedationh commented on GitHub (Oct 22, 2024):

https://github.com/plankanban/planka/pull/919

@sedationh commented on GitHub (Oct 22, 2024): https://github.com/plankanban/planka/pull/919
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#589