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:

Target version Your version Supported upgrade path Note
14.8.2 13.10.2 Two intermediate versions are required: 13.12 and 14.0, then 14.8.2.

# RHEL/CentOS 8
  •  =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 --config /var/opt/gitlab/mattermost/config.json
    • y
    • y
  • vim /var/opt/gitlab/mattermost/config.json
    • "EnableLocalMode": false,
    • sudo gitlab-ctl restart mattermost

How to modify sender domain from to

You can follow this wiki page


and modify /etc/postfix/ adding these row:

#relayhost = $mydomain
relayhost =
#relayhost = []

restart postfix
Topic revision: r8 - 19 Sep 2023, 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