Bonjour,
Si vous avez aussi besoin d'upgrade Gitlab 13.12 à 14.x
Mais que vous avez l'avez l'erreur :
Voici comment le corriger :
Trouver les lignes qui concerne unicorn :
cat /etc/gitlab/gitlab.rb | grep -i unicorn
Exemple :
###! Time between sampling of unicorn socket metrics, in seconds
# gitlab_rails['monitoring_unicorn_sampler_interval'] = 10
## GitLab Unicorn
##! Tweak unicorn settings.
##! Docs: https://docs.gitlab.com/omnibus/settings/unicorn.html
# unicorn['worker_timeout'] = 60
unicorn['worker_processes'] = 5
# unicorn['listen'] = '127.0.0.1'
# unicorn['port'] = 8080
# unicorn['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
# unicorn['pidfile'] = '/opt/gitlab/var/unicorn/unicorn.pid'
# unicorn['tcp_nopush'] = true
# unicorn['backlog_socket'] = 1024
# unicorn['somaxconn'] = 1024
# unicorn['log_directory'] = "/var/log/gitlab/unicorn"
###! Docs: https://about.gitlab.com/2015/06/05/how-gitlab-uses-unicorn-and-unicorn-worker-killer/
###! https://github.com/kzk/unicorn-worker-killer
# unicorn['worker_memory_limit_min'] = "400 * 1 << 20"
# unicorn['worker_memory_limit_max'] = "650 * 1 << 20"
Commenter les lignes unicorn :
nano /etc/gitlab/gitlab.rb
Dans mon exemple je commente :
# unicorn['worker_processes'] = 5
Reconfigurer Gitlab :
gitlab-ctl reconfigure
Convertir vos Repos en Hash :
gitlab-rake gitlab:storage:migrate_to_hashed
Mettre à jour Gitlab :
Nous allons mettre à jour gitlab à la version 14.0.12 pour commencer
wget https://packages.gitlab.com/gitlab/gitlab-ee/packages/ol/7/gitlab-ee-14.0.12-ee.0.el7.x86_64.rpm/download.rpm -O gitlab-ee-14.0.12-ee.0.el7.x86_64.rpm
yum localinstall ./gitlab-ee-14.0.12-ee.0.el7.x86_64.rpm
gitlab-ctl reconfigure
Mettre à jour Gitlab :
Nous allons mettre à jour gitlab à la version 14.1.8
wget https://packages.gitlab.com/gitlab/gitlab-ee/packages/el/7/gitlab-ee-14.1.8-ee.0.el7.x86_64.rpm/download.rpm -O gitlab-ee-14.1.8-ee.0.el7.x86_64.rpm
yum localinstall ./gitlab-ee-14.1.8-ee.0.el7.x86_64.rpm
gitlab-rake db:migrate
gitlab-rake db:migrate:status | grep " down "
gitlab-ctl reconfigure
Mettre à jour Gitlab :
Nous allons mettre à jour gitlab à la version 14.2.7
Il est important que votre migration soit totalement effectué en 14.1 avant de passer à cette version !
wget https://packages.gitlab.com/gitlab/gitlab-ee/packages/el/7/gitlab-ee-14.2.7-ee.0.el7.x86_64.rpm/download.rpm -O gitlab-ee-14.2.7-ee.0.el7.x86_64.rpm
yum localinstall ./gitlab-ee-14.2.7-ee.0.el7.x86_64.rpm
gitlab-ctl restart redis
gitlab-rake db:migrate
gitlab-rake db:migrate:status | grep " down "
gitlab-ctl reconfigure
Mettre à jour Gitlab :
Nous allons mettre à jour gitlab à la version 14.3.6
Il est important que votre migration soit totalement effectué en 14.2 avant de passer à cette version !
wget https://packages.gitlab.com/gitlab/gitlab-ee/packages/el/7/gitlab-ee-14.3.6-ee.0.el7.x86_64.rpm/download.rpm -O gitlab-ee-14.3.6-ee.0.el7.x86_64.rpm
yum localinstall ./gitlab-ee-14.3.6-ee.0.el7.x86_64.rpm
gitlab-ctl reconfigure
Mettre à jour Gitlab :
Nous allons mettre à jour gitlab à la version 14.4.5
wget https://packages.gitlab.com/gitlab/gitlab-ee/packages/el/7/gitlab-ee-14.4.5-ee.0.el7.x86_64.rpm/download.rpm -O gitlab-ee-14.4.5-ee.0.el7.x86_64.rpm
yum localinstall ./gitlab-ee-14.4.5-ee.0.el7.x86_64.rpm
gitlab-ctl reconfigure
Lister les actions disponible : (Optionnel)
gitlab-rake --tasks
Lister les taches en background : (Optionnel)
gitlab-rake gitlab:background_migrations:status
Fix Migration DB : (Optionnel)
gitlab-rake gitlab:background_migrations:finalize[CopyColumnUsingBackgroundMigrationJob,ci_stages,id,'[["id"]\, ["id_convert_to_bigint"]]']
gitlab-rake gitlab:background_migrations:finalize[CopyColumnUsingBackgroundMigrationJob,events,id,'[["id"]\, ["id_convert_to_bigint"]]']
Vous voilà en Gitlab 14.4.5 !