mirror of
https://github.com/plankanban/planka.git
synced 2026-07-16 05:53:57 +03:00
[Bug]: dependency failed to start: container planka-postgres-1 is unhealthy #721
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 @moritzmofi on GitHub (May 30, 2025).
Where is the problem occurring?
None
What browsers are you seeing the problem on?
No response
Current behavior
I try to install planka v2 with a docker-compose
I cannot start the docker-compose with up -d
Error:
dependency failed to start: container planka-postgres-1 is unhealthy
what can I do?
Desired behavior
No response
Steps to reproduce
Install with docker-compose
Error:
dependency failed to start: container planka-postgres-1 is unhealthy
Other information
No response
@meltyshev commented on GitHub (Jun 5, 2025):
Hi! It's difficult to say what might be wrong without seeing the logs or knowing more about your environment and installation method. You can try retrieving the logs by running
docker logs planka-postgres-1.@moritzmofi commented on GitHub (Jun 6, 2025):
here are the logs:
✘ Container planka-postgres-1 Error 0.8s
dependency failed to start: container planka-postgres-1 is unhealthy
root@docker:~/planka# docker logs planka-postgres-1
PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-06-06 14:24:41.494 UTC [1] FATAL: database files are incompatible with server
2025-06-06 14:24:41.494 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 14, which is not compatible with this version 16.9.
@meltyshev commented on GitHub (Jun 6, 2025):
Ah, that makes sense. Your PostgreSQL version has changed, and the previous data isn't compatible with the new version. You'll need to back up the existing data and restore it into the new version.
Here are some links that might help:
https://github.com/plankanban/planka/issues/949#issuecomment-2659378566
https://www.cloudytuts.com/tutorials/docker/how-to-upgrade-postgresql-in-docker-and-kubernetes/
@moritzmofi commented on GitHub (Jun 7, 2025):
thanx -this helped me