Omnibus Upgrade to 11 fails because of mattermost config I can't find

When trying to apt-get upgrade to Omnilab gitlab-ce 11 (on Debian) I get the following error:

* mattermost['service_allowed_untrusted_internal_connections'] has been deprecated since 10.2 and removed in 11.0.
Deprecations found. Please correct them and try again.

I found where this option can be set in /etc/gitlab/gitlab.rb, but it is commented out. Running gitlab-ctl check-config throws the same error.

Any ideas on either where this may be getting set, or a way to get gitlab-ctl to show me where it is getting that line from?

Thanks for any help!

Exact same issue for me as well. Trying to upgrade Omnibus version 10.8.3 (564c342) via apt and am getting the following:

Preparing to unpack .../gitlab-ce_11.0.2-ce.0_amd64.deb ...
* mattermost['service_enable_oauth_service_provider'] has been deprecated since 10.2 and removed in 11.0.
* mattermost['service_enable_custom_emoji'] has been deprecated since 10.2 and removed in 11.0.
* mattermost['service_enable_incoming_webhooks'] has been deprecated since 10.2 and removed in 11.0.
Deprecations found. Please correct them and try again.
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_11.0.2-ce.0_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/gitlab-ce_11.0.2-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried commenting out these fields in /etc/gitlab/gitlab.rb, but still get the error.

I think i figured it out. I forgot to run:

sudo gitlab-ctl reconfigure

after commenting out the deprecated mattermost fields. Once I did that the upgrade went as expected.

Glad to hear that worked for you, I’ve forgotten that step a couple of times in the past, thanks for the heads up.

Unfortunately that doesn’t seem to be the issue in my case.

Just to double check I ran reconfigure followed by rebooting, and still got the config error. It makes me wonder if GitLab is reading part of it’s config from some location other than /etc/gitlab/gitlab.rb.

There seems to be an error when reconfiguring, as this option is always set regardless of your own gitlab.rb.
The offending option can be found in /opt/gitlab/embedded/nodes/<hostname>.json.

Removing the line (do not run reconfigure afterwards!) will fix the check and will allow to upgrade to 11.0.

1 Like

Awesome, thanks so much for the help @laurens.stoetzel. Any ideas what I should look into to solve the underlying issue?