Commit 3678c50e598494063dfbf49bd9266e34404134e2
Exists in
master
and in
13 other branches
Merge branch 'update/6-7' into 'master'
Update instructions for 6.7
Showing
2 changed files
with
62 additions
and
0 deletions
Show diff stats
README.md
doc/update.md
| 1 | 1 | # Updating GitLab via omnibus-gitlab |
| 2 | 2 | |
| 3 | +## Updating from GitLab 6.6.x to 6.7.x | |
| 4 | + | |
| 5 | +First, download the latest package from https://www.gitlab.com/downloads/ to your GitLab server. | |
| 6 | + | |
| 7 | +```shell | |
| 8 | +# Stop unicorn and sidekiq so we can do database migrations | |
| 9 | +sudo gitlab-ctl stop unicorn | |
| 10 | +sudo gitlab-ctl stop sidekiq | |
| 11 | + | |
| 12 | +# Create a database backup in case the upgrade fails | |
| 13 | +sudo gitlab-rake gitlab:backup:create | |
| 14 | + | |
| 15 | +# Install the latest package | |
| 16 | +# Ubuntu: | |
| 17 | +sudo dpkg -i gitlab_6.7.y-omnibus.xxx.deb | |
| 18 | +# CentOS: | |
| 19 | +sudo rpm -Uvh gitlab-6.7.y_xxx.rpm | |
| 20 | + | |
| 21 | +# Reconfigure GitLab (includes database migrations) | |
| 22 | +sudo gitlab-ctl reconfigure | |
| 23 | + | |
| 24 | +# Start unicorn and sidekiq | |
| 25 | +sudo gitlab-ctl start | |
| 26 | +``` | |
| 27 | + | |
| 28 | +Done! | |
| 29 | + | |
| 30 | +### Reverting to GitLab 6.6.x | |
| 31 | + | |
| 32 | +First download a GitLab 6.6.x package from https://www.gitlab.com/downloads/archives/ . | |
| 33 | + | |
| 34 | +``` | |
| 35 | +# Stop GitLab | |
| 36 | +sudo gitlab-ctl stop unicorn | |
| 37 | +sudo gitlab-ctl stop sidekiq | |
| 38 | + | |
| 39 | +# Downgrade GitLab to 6.6 | |
| 40 | +# Ubuntu | |
| 41 | +sudo dpkg -r gitlab | |
| 42 | +sudo dpkg -i gitlab-6.6.x-yyy.deb | |
| 43 | + | |
| 44 | +# CentOS: | |
| 45 | +sudo rpm -e gitlab | |
| 46 | +sudo rpm -ivh gitlab-6.6.x-yyy.rpm | |
| 47 | + | |
| 48 | +# Prepare GitLab for receiving the backup restore | |
| 49 | + | |
| 50 | +# Due to a backup restore bug in GitLab 6.6, it is needed to drop the database | |
| 51 | +# _before_ running `gitlab-ctl reconfigure`. | |
| 52 | +sudo -u gitlab-psql /opt/gitlab/embedded/bin/dropdb gitlabhq_production | |
| 53 | + | |
| 54 | +sudo gitlab-ctl reconfigure | |
| 55 | + | |
| 56 | +# Restore your backup | |
| 57 | +sudo gitlab-rake gitlab:backup:restore BACKUP=12345 # where 12345 is your backup timestamp | |
| 58 | + | |
| 59 | +# Start GitLab | |
| 60 | +sudo gitlab-ctl start | |
| 61 | +``` | |
| 62 | + | |
| 3 | 63 | ## Updating from GitLab 6.6.0.pre1 to 6.6.4 |
| 4 | 64 | |
| 5 | 65 | First, download the latest package from https://www.gitlab.com/downloads/ to your GitLab server. | ... | ... |