Can't upgrade Gitlab on Ubuntu 18.04.6 LTS

I have Gitlab 15.11 running on an Ubuntu 18.04.6 LTS Server. Until now I never had problems upgrading. Now I get this:

The following packages will be upgraded:
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,317 MB of archives.
After this operation, 150 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Reading changelogs… Done
(Reading database … 234678 files and directories currently installed.)
Preparing to unpack …/gitlab-ce_16.0.1-ce.0_amd64.deb …

  • gitlab_rails[‘gitlab_default_can_create_group’] has been deprecated since 15.5 and was removed in 16.0. Starting with GitLab 15.5, this setting cannot be controlled via the configuration file anymore. Follow the steps at Account and limit settings | GitLab, to configure this setting via the Admin UI or the API
    Deprecations found. Please correct them and try again.
    dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_16.0.1-ce.0_amd64.deb (–unpack):
    new gitlab-ce package pre-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea what’s wrong?

The error message suggests what to do. Remove gitlab_default_can_create_group line from /etc/gitlab/gitlab.rb, save the file and then do:

gitlab-ctl reconfigure

then when you attempt the upgrade again it should work.

Thx a lot. I looked in the wrong place.

1 Like