On upgrading to GitLab 14 from 13.12.5, I got the following errors:
Removed configurations found in gitlab.rb. Aborting reconfigure.
Removals:
* unicorn['worker_processes'] has been deprecated since 13.10 and was removed in 14.0. Starting with GitLab 14.0, Unicorn is no longer supported and users must switch to Puma, following https://docs.gitlab.com/ee/administration/operations/puma.html.
* unicorn['socket'] has been deprecated since 13.10 and was removed in 14.0. Starting with GitLab 14.0, Unicorn is no longer supported and users must switch to Puma, following https://docs.gitlab.com/ee/administration/operations/puma.html.
OK, fair enough, I followed the instructions and I commented out those items from /etc/gitlab/gitlab.rb, but the errors persist. I’ve looked everywhere I can think of on the filesystem with grep, and there’s absolutely no mention of unicorn anywhere that isn’t commented out. I still get the above errors. I also made sure Puma was turned on by adding puma['enable'] = true to /etc/gitlab/gitlab.rb.
I can confirm Puma is actually running under GitLab 13 with ps xa | grep puma. Unicorn is not mentioned anywhere when I ps xa | grep unicorn.
What do I need to do to convince GitLab 14 that I really am not using and that Puma is fine? Running gitlab-ctl reconfigure under GitLab 13 still shows the deprecation warnings, despite all my efforts.
my gitlab.rb doesn’t have any puma lines, since by default it will use puma and it’s default settings unless otherwise specified. A similar post was yesterday: Upgrading from 13.12 to 14.0 which you can use for reference as well.
by uncommenting and then running gitlab-ctl reconfigure does that help bypass the errors? I don’t know of any other place it could be reading settings from, so doesn’t make too much sense.
OK, I found it. In my Kubernetes configuration I was setting the GITLAB_OMNIBUS_CONFIG environment variable and that’s where the settings were coming from. Once I removed the unicorn settings from that environment variable everything started working.
Thanks for the help; sorry for the distraction. Maybe my goof will help someone else!