The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 17.0
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Mustache
- Stars
- 41
- Forks
- 45
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 37
Description
Describe the issue
I get the following fatal error in the logs when upgrading from helm chart 0.5.16 to 0.5.17:
postgresql 12:51:27.33 INFO ==> ** PostgreSQL setup finished! **
postgresql 12:51:27.43 INFO ==> ** Starting PostgreSQL **
2024-11-04 12:51:27.538 GMT [1] FATAL: database files are incompatible with server
2024-11-04 12:51:27.538 GMT [1] DETAIL: The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 17.0.
I already tried
- I've read and searched the documentation.
- I've searched for similar filed issues in this repository.
Steps to reproduce the behavior
- Install helm chart 0.5.16 with persistency.
- Upgrade to helm chart 0.5.17
Expected behavior
It should upgrade the helm chart without issues or human intervention.
Screenshots
No response
Exception traceback
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Helm chart 0.5.16-to-0.5.17 upgrade path and the PostgreSQL data-directory handling described in the logs. Reproduce the upgrade with persistence enabled; done means the existing PostgreSQL 16 data remains usable after the chart upgrade without manual intervention.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, postgresql
- Domain
- databases, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100