warning: gitlab-ce-14.0.12-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY
Preparing...                          ################################# [100%]
* 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['listen'] 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['port'] 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.
error: %pre(gitlab-ce-14.0.12-ce.0.el7.x86_64) scriptlet failed, exit status 1
error: gitlab-ce-14.0.12-ce.0.el7.x86_64: install failed
error: gitlab-ce-13.12.15-ce.0.el7.x86_64: erase skipped


原因是 14.x 后版本,不再使用 unicorn ,改为使用 puma 作为web服务器。所以如果是升级操作,需要修改配置,按如下步骤。


备份 gitlab.rb 配置文件


cp /etc/gitlab/gitlab.rb /etc/gitlab/gitlab.rb.bak


修改 gitlab.rb 配置文件

1. vim /etc/gitlab/gitlab.rb 

2. 注释掉所有 unicorn 

3. 按需打开 puma (删除前面的#,修改后面的值,一般是设置过端口,需要重新设置

4. 一般如相三个属性,可能会更改,有更改,直接更改就行


external_url 'http://gitlab.test.com:7777'
nginx['listen_port'] = 8888
puma['port'] = 9999

重新加载配置



gitlab-ctl reconfigure

重新升级



rpm -Uvh gitlab-ce-14.0.12-ce.0.el7.x86_64.rpm