-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitlab 16 incompatible with PostgreSQL 12, requires >=13 #2771
Comments
Had the same question (Though attached to the actual pull request discussion for 16.0.0: #2768 (comment)) I assume this will most likely require an update to https://github.com/sameersbn/docker-postgresql |
We'll provide a workaround. But this will take some time. |
I just pg_dump the whole database, and re import it to bitnami/postgresql, so far, everything seems good. Granted our database size only 300mb after dump. Nothing fancy, just following this https://docs.gitlab.com/ee/administration/postgresql/moving.html |
We moved to official postgres docker image and also used pg_dump. Just make sure that the required extensions are available in your new database. I know there are some convenient features within custom postgres images, but how often do you plan to migrate to a new major version? In my experience using a custom image will most likely lead to more work than it saves. #dump
#import
|
@sachilles a good first step would be - if you have the permissions needed at all, if not, the discussion on that topic is probably moot - to provide a PQ13 version of It's probably not very productive if people report back on their issues with random hand rolled deployments of official PG13 images and/or custom patched/upgraded versions of |
In addition to that (and supporting @Gaibhne prediction, that people might report back with any kinds of issues on their hand rolled deployments) there are some small things you can stumble on when using the official postgres image and porting it to the docker-compose of this project. For example the
which could be directly ported to official images, but results in the data not being persisted, since Still the official image works fine if you read the docs carefully, but as mentioned before this could be a source for |
When and where will that be available? Alongside: Please take into account that people with http connect proxies can have trouble upgrading Postgres - like last time: #2171 |
Sorry for being slow. Actually I wanted to have a look at the special features of the However, I guess it makes more sense to use an official postgres image and thus, the documentation needs to be updated. |
Note: Here are some special features of
|
How I did it - or very inofficial instructions for Docker Compose and Postgres image from Bitnami.Credits to @f-io.
|
Before merging this PR sameersbn/docker-postgresql#158, you can use this zuojiazi/postgresql image instead of sameersbn/postgresql |
Is there a reason to not link the source repository? It's a hard pass on my side. Otherwise, nice initiative. |
The latest image: sameersbn/postgresql:latest is now pg14.8 and stops the warnings on gitlab startup |
Good to know @davidglassborow and @sachilles, as the README.md and sample docker-compose.yml (https://github.com/sameersbn/docker-gitlab/blob/master/docker-compose.yml) are still mentioning So we can "simply" replace |
I tried going to the latest tag like that, in the past (aka pre 12) it would migrate the data. Now my gitlab instance is empty and |
Thanks a lot for your comment @Kiina, it's somehow what I expected. So no production server upgrade for now in any case :) I hope your rollback will be fine again soon ! |
Not saying it's right but was already using sameersbn/postgresql:latest in docker-compose, so I just did The logs show PG detecting the change, and auto updating:
Gitlab is then working fine for us, no data loss, and the admin page is reporting the correct version: |
Yeah I had to dump the old db, import it into the new version and then start everything and execute the db:migrate rake task manually. No idea why it skipped over one of the migrations but it lead to error 500 on load. Afterwards all seems fine. Maybe that's just an issue with my installation. |
Hello everyone, I was wondering that can I use use sameersbn/postgres:14-20230628 for my gitlab? since it released but not updated in gitlab-docker-compose file! |
I'm seting up a new instance and the latest sameersbn/postgresql:15-20230628 didn't work. |
Is it safe to use sameersbn/postgresql:latest for upgrading? Or do we need to do steps 12 > 14 > 15? |
Since major versions of PostgreSQL might be related to breaking changes I'd strongly suggest to migrate from major version to major version, i.e. 12 then 13 then 14 then 15. |
I just updated the PostgreSQL version in my GitLab Docker environment. I went from using the image 'sameersbn/postgresql:12-20200524' to 'sameersbn/postgresql:14-20230628', and then upgraded again to 'sameersbn/postgresql:15-20230628'. During each transition, I performed a Docker Compose up. PostgreSQL seamlessly detected the need for an upgrade when I switched to the newer versions, and I'm pleased to report that the entire process went smoothly without any issues. So, to avoid any problem seems to be a good idea to upgrade from 12 to 14 and then 15. |
I've just updated my GitLab self hosted Docker composition with Upgrade went well, GitLab instance just exited during the upgrade as it was probably waiting too long for postgresql instance. |
I tried your suggestion, but failed ,log says
|
Works. |
Thank you everyone who has been contributing to this discussion! 🥇 I just went by a successful migration from
In each step I started up the image; followed the Also, please do click on each "version box" of the upgrade path tool, which will show you important information for each case. e.g.: Best regards! |
The upgrade of psotgresql from 12 to 14 does not finish, I had to add the following lines Then I could upgrade : Otherwise the upgrade did nbot finish. |
docker-compose.yml
contained in the 16 release usessameersbn/postgresql:12-20200524
as a PostgreSQL container. When starting the containers, we get following error:Despite the message, Gitlab itself appear to work at a cursory glance, but it will probably cause problems further down the line.
The text was updated successfully, but these errors were encountered: