opf / openproject-docker-compose

Recipes to deploy OpenProject with Docker, Docker Compose, Kubernetes, etc.
181 stars 164 forks source link

UPGRADE > Build the control plane Fails #97

Closed sirgreender closed 1 month ago

sirgreender commented 1 month ago

On branch stable/14 9a5552aad

Following the Upgrade procedure i got this

root@pc:~/openproject# docker compose -f docker-compose.yml -f docker-compose.control.yml build
WARN[0000] /root/openproject/docker-compose.control.yml: `version` is obsolete 
[+] Building 32.8s (20/23)  
.....
.....
=> ERROR [backup 5/7] RUN apt-get update -qq && apt-get install postgresql-9.6 postgresql-10 postgresql-13 -y && rm -rf /var/lib/apt/lists/*                          3.1s
------
 > [backup 5/7] RUN apt-get update -qq && apt-get install postgresql-9.6 postgresql-10 postgresql-13 -y && rm -rf /var/lib/apt/lists/*:
2.815 E: The repository 'http://apt.postgresql.org/pub/repos/apt buster-pgdg Release' does not have a Release file.
------
failed to solve: process "/bin/sh -c apt-get update -qq && apt-get install postgresql-9.6 postgresql-10 postgresql-13 -y && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Apparently there's no release candidate for buster in the http://apt.postgresql.org/pub/repos/apt buster-pgdg

I solved upgrading control/Dockerfile to use debian:11

hadifikri commented 1 month ago
FROM debian:11

RUN apt-get update -qq && apt-get install wget gnupg2 -y && rm -rf /var/lib/apt/lists/*
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN apt-get update -qq && apt-get install postgresql-9.6 postgresql-10 postgresql-13 -y && rm -rf /var/lib/apt/lists/*
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

ENV LANG en_US.utf8

ADD . /control
tiroessler commented 1 month ago

Thanks for reporting and also for the workaround.

I created a Bug report here:

https://community.openproject.org/projects/openproject/work_packages/58353/activity

And added a PR that should fix this bug.