Omnibus GitLab


This project creates full-stack platform-specific downloadable packages for GitLab. For other installation options please see the GitLab installation page.

Canonical source

The source of omnibus-gitlab is hosted on and there are mirrors to make contributing as easy as possible.


The documentation can be found in the doc directory.

Omnibus fork

Omnibus GitLab is using a fork of omnibus project. For additional information see the comments in the Gemfile.

We left the links below in the readme to preserve old links, but please use the directory[doc/] to browse the complete documentation.


Please see the contribution guidelines


Please follow the steps on the downloads page.

After installation

Your GitLab instance should be reachable over HTTP at the IP or hostname of your server. You can login as an admin user with username root and password 5iveL!fe.

See doc/maintenance/ for useful commands to control/debug your GitLab instance.

Configuration options

See doc/settings/

Configuring the external URL for GitLab

See doc/settings/

Storing Git data in an alternative directory

See doc/settings/

Changing the name of the Git user / group

See doc/settings/

Setting up LDAP sign-in

See doc/settings/

Enable HTTPS

See doc/settings/

Redirect HTTP requests to HTTPS

See doc/settings/

Change the default port and the ssl certificate locations

See doc/settings/

Use non-packaged web-server

For using an existing Nginx, Passenger, or Apache webserver see doc/settings/

Using a non-packaged PostgreSQL database management server

To connect to an external PostgreSQL DBMS see doc/settings/

Using a non-packaged Redis instance

See doc/settings/

Adding ENV Vars to the Gitlab Runtime Environment

See doc/settings/

Changing gitlab.yml settings

See doc/settings/

Specify numeric user and group identifiers

See doc/settings/

Sending application email via SMTP

See doc/settings/

Omniauth (Google, Twitter, GitHub login)

Omniauth configuration is documented in

Adjusting Unicorn settings

See doc/settings/

Setting the NGINX listen address or addresses

See doc/settings/

Inserting custom NGINX settings into the GitLab server block

See doc/settings/

Inserting custom settings into the NGINX config

See doc/settings/

Only start omnibus-gitlab services after a given filesystem is mounted

See doc/settings/


Instructions for updating your Omnibus installation and upgrading from a manual installation are in the update directory.

Uninstalling Omnibus GitLab

See doc/installation/

Common installation problems

This section has been moved to the separate document doc/

Section below remains for historical reasons(mainly to not break existing links). Each section contains the link to the new location.

Apt error 'The requested URL returned error: 403'

See doc/

GitLab is unreachable in my browser

See doc/

Emails are not being delivered

See doc/

TCP ports for GitLab services are already taken

See doc/

Git SSH access stops working on SELinux-enabled systems

See doc/

Postgres error 'FATAL: could not create shared memory segment: Cannot allocate memory'

See doc/

Reconfigure complains about the GLIBC version

See doc/

Reconfigure fails to create the git user

See doc/

Failed to modify kernel parameters with sysctl

See doc/

I am unable to install omnibus-gitlab without root access

See doc/

gitlab-rake assets:precompile fails with 'Permission denied'

See doc/

'Short read or OOM loading DB' error

See doc/


See doc/settings/

Backup and restore omnibus-gitlab configuration

See doc/settings/

Creating an application backup

See doc/settings/

Restoring an application backup

See restore documentation.

Backup and restore using non-packaged database

If you are using non-packaged database see documentation on using non-packaged database.

Upload backups to remote (cloud) storage

For details check backup documentation.

Invoking Rake tasks

See doc/maintenance/

Directory structure

Omnibus-gitlab uses four different directories.

  • /opt/gitlab holds application code for GitLab and its dependencies.

  • /var/opt/gitlab holds application data and configuration files that gitlab-ctl reconfigure writes to.

  • /etc/gitlab holds configuration files for omnibus-gitlab. These are the only files that you should ever have to edit manually.

  • /var/log/gitlab contains all log data generated by components of omnibus-gitlab.

Omnibus-gitlab and SELinux

Although omnibus-gitlab runs on systems that have SELinux enabled, it does not use SELinux confinement features:

  • omnibus-gitlab creates unconfined system users;

  • omnibus-gitlab services run in an unconfined context.

The correct operation of Git access via SSH depends on the labeling of /var/opt/gitlab/.ssh. If needed you can restore this labeling by running sudo gitlab-ctl reconfigure.

Depending on your platform, gitlab-ctl reconfigure will install SELinux modules required to make GitLab work. These modules are listed in files/gitlab-selinux/

NSA, if you're reading this, we'd really appreciate it if you could contribute back a SELinux profile for omnibus-gitlab :) Of course, if anyone else is reading this, you're welcome to contribute the SELinux profile too.


This section has been moved to separate document doc/settings/

Tail logs in a console on the server

See doc/settings/

Runit logs

See doc/settings/


See doc/settings/

UDP log shipping (GitLab Enterprise Edition only)

See doc/settings/

Create a user and database for GitLab

See doc/settings/

Configure omnibus-gitlab to connect to it

See doc/settings/

Seed the database (fresh installs only)

See doc/settings/

Building your own package

See the separate build documentation.

Running a custom GitLab version

It is not recommended to make changes to any of the files in /opt/gitlab after installing omnibus-gitlab: they will either conflict with or be overwritten by future updates. If you want to run a custom version of GitLab you can build your own package or use another installation method.


This omnibus installer project is based on the awesome work done by Chef in omnibus-chef-server.