Upgrade GitLab
Jump to navigation
Jump to search
- Upgrade paths: https://docs.gitlab.com/ee/update/#upgrade-paths
To skip auto backup:
sudo touch /etc/gitlab/skip-auto-backup
Check GitLab version:
gitlab-rake gitlab:env:info | grep -w ^Versiondpkg -s gitlab-ce | grep Versiondpkg -l | grep -E "^ii gitlab-(ce|ee)"
Check status:
Upgrade:
sudo apt update && sudo apt install gitlab-ce
Check Background migration process:
gitlab-rake db:migrate:status | grep -v "^ up"
gitlab-rails runner 'Gitlab::Database::BackgroundMigration::BatchedMigration.where.not(status: [3, 6]).each { |m| puts "#{m.job_class_name} - #{m.status_name}" }'
Check new version:
gitlab-rake gitlab:env:info | grep -w ^Versiondpkg -s gitlab-ce | grep Version
Related[edit]
check_gitlab_status.sh- GitLab logs
- Create a backup from GitLab:
gitlab-backup create gitlab-ctl statusgitlab-ctl restart/etc/gitlab/skip-auto-backupgitlab-rake gitlab:checkgitlab-rake gitlab:doctor:secretsapt install:apt install gitlab-ee=14.9.5=ee.0gitlab-ctl stop- GitLab Changelog
/var/opt/gitlab/git-data/- gcloud compute snapshots
- gitlab-ctl stop puma && gitlab-ctl stop sidekiq
- gitlab-rake db:migrate:status
See also[edit]
Advertising: