opf / opf/openproject-docker-compose

DB container restarting

Open
#148 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
342
Forks
315
PR merge metrics
No merged PRs in 30d

Description

Hi Team,

As the PostgreSQL version has been updated to 17 from 13 in the .env.example file, the DB container keeps on restarting and throwing the below error in the docker logs. When i updated the POSTGRES_VERSION to 13 and recreated the docker container, it works fine.

FATAL: database files are incompatible with server 

The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 17.8

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with .env.example, the POSTGRES_VERSION setting, and the Docker logs shown in the issue; reproduce the restart with PostgreSQL 17 and data initialized by version 13. Determine whether the container setup should support this upgrade or document the required data migration, with completion shown by a successfully starting database container.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, postgresql
Domain
databases, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.