Gitlab 8.8.3 auf 8.9.5 aktualisieren

July 08, 2016

Reading time ~2 minutes

Die kollaborative Versionsverwaltung Gitlab unter Debian von Version 8.8.3 auf Version 8.9.5 aktualisieren.

stop and backup

sudo service gitlab stop
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production

update bundler

sudo gem2.1 install bundler

gitlab 8.9.5

cd /home/git/gitlab
sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb
sudo -u git -H git checkout v8.9.5

gitlab-shell 3.2.0

cd /home/git/gitlab-shell
sudo -u git -H git fetch --all
sudo -u git -H git checkout v3.2.0

gitlab-workhorse 0.7.7

cd /home/git/gitlab-workhorse
sudo -u git -H git fetch --all
sudo -u git -H git checkout v0.7.7
sudo -u git -H make

mysql permissions

mysql -u root -p
GRANT REFERENCES ON `gitlabhq_production`.* TO 'git'@'localhost';
\q

update gitlab

cd /home/git/gitlab
sudo -u git -H bundle install --without development test postgres --deployment
sudo -u git -H bundle clean
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab

config changes

cd /home/git/gitlab
sudo -u git -H git diff v8.8.3 v8.9.5 config/gitlab.yml.example
sudo -u git -H vi /home/git/gitlab/config/gitlab.yml
sudo -u git -H git diff v8.8.3 v8.9.5 lib/support/nginx/gitlab-ssl
#sudo vi /etc/nginx/sites-enabled/gitlab-ssl
#sudo -u git -H vi /home/git/gitlab-shell/config.yml
#sudo -u git -H git config --global gc.auto 0

start again

sudo swapoff -a && sudo swapon -a
sudo systemctl daemon-reload
sudo service gitlab start
sudo service nginx restart

check

cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
System information
System:         Debian 8
Current User:   git
Using RVM:      no
Ruby Version:   2.1.5p273
Gem Version:
Bundler Version:1.12.5
Rake Version:   10.5.0
Sidekiq Version:4.1.2

GitLab information
Version:        8.9.5
Revision:       f6ab19d
Directory:      /home/git/gitlab
DB Adapter:     mysql2
URL:            https://gitlab.domain.tld
HTTP Clone URL: https://gitlab.domain.tld/some-group/some-project.git
SSH Clone URL:  git@gitlab.domain.tld:some-group/some-project.git
Using LDAP:     no
Using Omniauth: no

GitLab Shell
Version:        3.2.0
Repositories:   /home/git/repositories/
Hooks:          /home/git/gitlab-shell/hooks/
Git:            /usr/bin/git

Und es machte BOOM!

Die neue Logitech SqueezeBox Boom ist endlich auch bei uns gelandet. Während Logitech bekannte Blogger bereits vorab mit der Boom beglückte,…… Continue reading