I am not a linux (Ubuntu) expert. I have been using GitLab since version 12.5. Every 22nd of the month I do my upgrades using the command:
sudo apt-get update && sudo apt-get install gitlab-ee
I had a problem moving from 12.12 to 13.0 and after that everything run smoothly including the upgrade from 13.11 to 13.12. Now I am experiencing some problems again with upgrade from 13.12 to 14.0. I receive the following message:
"* 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."
Going to the documentation link, I did not see anything that would guide me to move from Unicorn to Puma, and by that I mean which commands should I use, or which files I have to change, what are the changes and where are the files located by default.
Is there any other guideline for dummies, providing a step by step procedure?
The four steps provided in the document are not clear to me:
- Determine suitable Puma worker and thread [settings]. → In the link provided, it is said that “The GitLab Linux package defaults to the recommended Puma settings.”, so I do not think I should worry about this step or change anything here.
- If you’re switching from Unicorn, [convert any custom settings to Puma]. → This is the one I think I should work on, but besides a table showing configuration keys to Unicorn and Puma, nothing else is said. I have no idea where to find configuration keys. Which is the file I should be looking for? Where is it located? Is this just a matter of changing “unicorn” name to “puma” and adding the missing keys? Just that change would make my GitLab to start using Puma instead of Unicorn?
- For multi-node deployments, configure the load balancer to use the [readiness check]. → I do not think this is a concern to me, as I do not have a multi-node deployment.
- Reconfigure GitLab so the above changes take effect. → Finally a step showing the command to achieve what we want…
Can anyone throw some light on my questions? I would really appreciate that.
Here you have the complete result of issuing the command I mentioned above:
or if the image is not good, here is the copy and paste:
/$ sudo apt-get update && sudo apt-get install gitlab-ee [sudo] password for rmattos: Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Hit:5 https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu bionic InRelease Fetched 252 kB in 1s (365 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-4.15.0-51 linux-headers-4.15.0-51-generic linux-image-4.15.0-51-generic linux-modules-4.15.0-51-generic Use 'sudo apt autoremove' to remove them. The following packages will be upgraded: gitlab-ee 1 upgraded, 0 newly installed, 0 to remove and 38 not upgraded. Need to get 0 B/991 MB of archives. After this operation, 6,762 kB of additional disk space will be used. (Reading database ... 258500 files and directories currently installed.) Preparing to unpack .../gitlab-ee_14.0.0-ee.0_amd64.deb ... * 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. Deprecations found. Please correct them and try again. dpkg: error processing archive /var/cache/apt/archives/gitlab-ee_14.0.0-ee.0_amd64.deb (--unpack): new gitlab-ee package pre-installation script subprocess returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/gitlab-ee_14.0.0-ee.0_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)