To upgrade Centos 8
sudo dnf clean all
sudo rm -r /var/cache/dnf
sudo dnf upgrade --exclude=gitlab-ce
PS: after ending support to Centos8:
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
sudo yum update -y
To upgrade Gitlab|Mattermost
It is important to follow the upgrade path as indicated here:
tools:
https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/
https://docs.gitlab.com/ee/update/index.html#upgrade-paths
then
# RHEL/CentOS 8
version:
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:
Mattermost conf:
- /var/opt/gitlab/mattermost/config.json
How to delete mattermost user
- vim /var/opt/gitlab/mattermost/config.json
- 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
How to modify sender domain from @gitlab.et-gw.eu to @et-gw.eu
You can follow this wiki page
here
and modify /etc/postfix/main.cf adding these row:
#relayhost = $mydomain
relayhost = mail.ego-gw.it#relayhost = [gateway.my.domain]
restart postfix