From 8.5 to 8.6

Make sure you view this update guide from the tag (version) of GitLab you would
like to install. In most cases this should be the highest numbered production
tag (without rc in it). You can select the tag in the version dropdown at the
top left corner of GitLab (below the menu bar).

If the highest number stable branch is unclear please check the
GitLab Blog for installation
guide links by version.

6. Updates for PostgreSQL Users

Starting with 8.6 users using GitLab in combination with PostgreSQL are required
to have the pg_trgm extension enabled for all GitLab databases. If you're
using GitLab's Omnibus packages there's nothing you'll need to do manually as
this extension is enabled automatically. Users who install GitLab without using
Omnibus (e.g. by building from source) have to enable this extension manually.
To enable this extension run the following SQL command as a PostgreSQL super
user for every GitLab database:

CREATEEXTENSIONIFNOTEXISTSpg_trgm;

Certain operating systems might require the installation of extra packages for
this extension to be available. For example, users using Ubuntu will have to
install the postgresql-contrib package in order for this extension to be
available.

If you are using Apache instead of NGINX please see the updated Apache templates.
Also note that because Apache does not support upstreams behind Unix sockets you
will need to let gitlab-workhorse listen on a TCP port. You can do this
via /etc/default/gitlab.

Init script

Ensure you're still up-to-date with the latest init script changes:

sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab

For Ubuntu 16.04.1 LTS:

sudo systemctl daemon-reload

9. Start application

sudo service gitlab start
sudo service nginx restart

10. Check application status

Check if GitLab and its environment are configured correctly:

sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

To make sure you didn't miss anything run a more thorough check:

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

If all items are green, then congratulations, the upgrade is complete!