Saat upgrade Gitlab Community Edition, muncul error dari gitlab

"* 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."

Cek parameter unicorn yang diaktifkan di Gitlab

grep unicorn /etc/gitlab/gitlab.rb
# output
unicorn['enable'] = true
unicorn['worker_timeout'] = 60
unicorn['worker_processes'] = 10

bila anda tidak pernah merasa mengkonfigurasi settingan ini cukup menambahkan tanda pagar # di depan untuk menonaktifkannya, contoh

#unicorn['enable'] = true
#unicorn['worker_timeout'] = 60
#unicorn['worker_processes'] = 10

kalau anda melakukan konfigurasi tersebut, cukup ganti unicorn menjadi puma

unicorn['enable'] = true
# menjadi
puma['enable'] = true

konfigurasi ulang Gitlab agar perubahan tersebut diaplikasikan

sudo gitlab-ctl reconfigure

Setelah selesai konfigurasi ulang Gitlab, jalankan kembali script sudo apt upgrade. Cek kembali versi Gitlab anda

gitlab-rake gitlab:env:info | grep Version
# output
...
Version:	14.1.0
...

Atau dengan dpkg

dpkg -l gitlab-ce
# output
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-===========================================================
ii  gitlab-ce      14.1.0-ce.0  amd64        GitLab Community Edition (including NGINX, Postgres, Redis)

Leave a comment

Your email address will not be published. Required fields are marked *