To upgrade Centos 8

sudo dnf clean all
sudo rm -r /var/cache/dnf
sudo dnf upgrade --exclude=gitlab-ce

To upgrade Gitlab|Mattermost

It is important to follow the upgrade path as indicated here:

https://docs.gitlab.com/ee/update/index.html#upgrade-paths
Target version Your version Supported upgrade path Note
14.8.2 13.10.2 13.10.213.12.1514.0.1214.8.2 Two intermediate versions are required: 13.12 and 14.0, then 14.8.2.
then

# RHEL/CentOS 8
version:
  •  =sudo gitlab-rake gitlab:env:info= 
Maintenace mode:
  • gitlab-ctl deploy-page up
  • gitlab-ctl deploy-page down
Disable autobackup before upgrade
sudo touch /etc/gitlab/skip-auto-backup
sudo rm /etc/gitlab/skip-auto-backup

dnf --showduplicates list gitlab-ce

touch /etc/gitlab/skip-auto-backup
sudo dnf install gitlab-ce-13.12.15-ce.0.el8
sudo dnf install gitlab-ce-14.0.12-ce.0.el8
sudo dnf install gitlab-ce-14.6.5-ce.0.el8
sudo dnf install gitlab-ce-14.8.0-ce.0.el8
sudo dnf install gitlab-ce-14.8.4-ce.0.el8

sudo gitlab-ctl reconfigure --→ it is important to do it after each upgrading

if it fails due to pending jobs:
# For Omnibus installations:
sudo gitlab-rails runner -e production 'puts Gitlab::BackgroundMigration.remaining'

sudo gitlab-ctl status

Useful path

Httpd conf:

  • gitlab:
    • /var/opt/gitlab/nginx/conf/gitlab-http.conf
  • mattermost:
    • /var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf

Gitlab conf:

  • /etc/gitlab/gitlab.rb

Mattermost conf:

  • /var/opt/gitlab/mattermost/config.json

How to delete mattermost user

  • vim /var/opt/gitlab/mattermost/config.json
    • "EnableLocalMode": true,

    • sudo gitlab-ctl restart mattermost

  • cd /opt/gitlab/embedded
    • sudo bin/mmctl --local user delete xx.yy@ego-gw.it --config /var/opt/gitlab/mattermost/config.json
    • y
    • y
  • vim /var/opt/gitlab/mattermost/config.json
    • "EnableLocalMode": false,
    • sudo gitlab-ctl restart mattermost
Topic revision: r6 - 10 Nov 2022, Dibiase
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki_Virgo_LSC? Send feedback