Install Gitlab in Ubuntu via Command Line

Posted on

In this article, there will be a full description on how to install Gitlab in Ubuntu using terminal or bash prompt as a Command Line Interface (CLI) as follows :

1. First of all, don’t forget to update the operating system before directly installing  Gitlab. Just type the following command :

apt-get update

The output of the above command’s execution :

root@hostname:~# apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:7 http://ppa.launchpad.net/gns3/ppa/ubuntu xenial InRelease
Ign:8 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist InRelease
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:10 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu xenial InRelease
Hit:11 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist Release
Hit:13 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Hit:14 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial InRelease
Fetched 102 kB in 2s (44,8 kB/s)
Reading package lists... Done
W: http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/Release.gpg: Signature by key 492EAFE8CD016A07919F1D2B9ECBEC467F0CEB10 uses weak digest algorithm (SHA1)
root@hostname:~#

2. As root account, execute the following command :

apt-get install curl openssh-server ca-certificates postfix

The above command is used to install packages needed for preparing further installation process of Gitlab and to solve any problem rises relating with package dependencies.

Below is the output of the above executed command :

root@hostname:~# apt-get install curl openssh-server ca-certificates postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20160104ubuntu1).
postfix is already the newest version (3.1.0-3).
postfix set to manually installed.
The following additional packages will be installed:
libcurl3-gnutls openssh-client openssh-sftp-server
Suggested packages:
libpam-ssh keychain monkeysphere rssh molly-guard
The following packages will be upgraded:
curl libcurl3-gnutls openssh-client openssh-server openssh-sftp-server
5 upgraded, 0 newly installed, 0 to remove and 562 not upgraded.
1 not fully installed or removed.
Need to get 1.286 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.2 [139 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.2 [184 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.2 [184 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-sftp-server amd64 1:7.2p2-4ubuntu2.1 [38,8 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-server amd64 1:7.2p2-4ubuntu2.1 [338 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-client amd64 1:7.2p2-4ubuntu2.1 [587 kB]
Fetched 1.198 kB in 2min 8s (9.284 B/s)
Preconfiguring packages ...
(Reading database ... 836218 files and directories currently installed.)
Preparing to unpack .../curl_7.47.0-1ubuntu2.2_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.2) over (7.47.0-1ubuntu2.1) ...
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.2_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.2) over (7.47.0-1ubuntu2.1) ...
Preparing to unpack .../openssh-sftp-server_1%3a7.2p2-4ubuntu2.1_amd64.deb ...
Unpacking openssh-sftp-server (1:7.2p2-4ubuntu2.1) over (1:7.2p2-4ubuntu1) ...
Preparing to unpack .../openssh-server_1%3a7.2p2-4ubuntu2.1_amd64.deb ...
Unpacking openssh-server (1:7.2p2-4ubuntu2.1) over (1:7.2p2-4ubuntu1) ...
Preparing to unpack .../openssh-client_1%3a7.2p2-4ubuntu2.1_amd64.deb ...
Unpacking openssh-client (1:7.2p2-4ubuntu2.1) over (1:7.2p2-4ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu13) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.35-0ubuntu2) ...
ERROR: problem running
Processing ufw triggers failed. Ignoring.
Setting up redmine (3.2.1-2) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf
granting access to database redmine_default for redmine/instance@localhost: already exists.
creating database redmine_default: already exists.
dbconfig-common: flushing administrative password
rake aborted!
ActiveRecord::AdapterNotSpecified: 'development' database is not configured. Available: ["production"]
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:248:in `resolve_symbol_connection'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:211:in `resolve_connection'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:139:in `resolve'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb:50:in `establish_connection'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/railtie.rb:120:in `block (2 levels) in <class:Railtie>'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:44:in `each'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/base.rb:315:in `<module:ActiveRecord>'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/base.rb:26:in `<top (required)>'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `block in load'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:652:in `block in load_config_initializer'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:651:in `load_config_initializer'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `each'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `block in <class:Engine>'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `each'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `tsort_each_child'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/application.rb:328:in `require_environment!'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/var/lib/gems/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
dpkg: error processing package redmine (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.2) ...
Setting up curl (7.47.0-1ubuntu2.2) ...
Setting up openssh-client (1:7.2p2-4ubuntu2.1) ...
Setting up openssh-sftp-server (1:7.2p2-4ubuntu2.1) ...
Setting up openssh-server (1:7.2p2-4ubuntu2.1) ...
Installing new version of config file /etc/network/if-up.d/openssh-server ...
insserv: warning: script 'K01alfresco' missing LSB tags and overrides
insserv: warning: script 'alfresco' missing LSB tags and overrides
insserv: Script nagios is broken: incomplete LSB comment.
insserv: missing `Default-Start:' entry: please add even if empty.
insserv: missing `Default-Stop:' entry: please add even if empty.
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `nagios'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `nagios'
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@hostname:~#

3. Execute the following command to install the required repository for installing Gitlab  :

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

The output of the above command is shown below :

root@hostname:~# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
Detected operating system as Ubuntu/xenial.
Checking for curl...
Detected curl...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/gitlab_gitlab-ce.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.

The repository is setup! You can now install packages.
You have new mail in /var/mail/root
root@hostname:~#

4. After successfully installing Gitlab repository package, execute the following command to check whether the intended package available for installation can be found by typing it in the bash prompt :

apt-cache search gitlab-ce

The output of the above executed command can be displayed as follows :

root@hostname:~# apt-cache search gitlab-ce
gitlab-ce - GitLab Community Edition and GitLab CI (including NGINX, Postgres, Redis)
root@hostname:~#

4. As soon as the required Gitlab repository has successfully installed and the package itself can be found in the repository itself, the installation process of Gitlab can be proceeded by executing the following command :

apt-get install gitlab-ce

Below is the output of the above command’s execution :

root@hostname:~# apt-get install gitlab-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
gitlab-ce
0 upgraded, 1 newly installed, 0 to remove and 562 not upgraded.
1 not fully installed or removed.
Need to get 310 MB of archives.
After this operation, 856 MB of additional disk space will be used.
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial/main amd64 gitlab-ce amd64 8.15.3-ce.0 [310 MB]
Fetched 310 MB in 2min 24s (2.148 kB/s)
Selecting previously unselected package gitlab-ce.
(Reading database ... 836218 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_8.15.3-ce.0_amd64.deb ...
Unpacking gitlab-ce (8.15.3-ce.0) ...
Setting up redmine (3.2.1-2) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf
granting access to database redmine_default for redmine/instance@localhost: already exists.
creating database redmine_default: already exists.
dbconfig-common: flushing administrative password
rake aborted!
ActiveRecord::AdapterNotSpecified: 'development' database is not configured. Available: ["production"]
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:248:in `resolve_symbol_connection'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:211:in `resolve_connection'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:139:in `resolve'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb:50:in `establish_connection'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/railtie.rb:120:in `block (2 levels) in <class:Railtie>'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:44:in `each'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/base.rb:315:in `<module:ActiveRecord>'
/var/lib/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/base.rb:26:in `<top (required)>'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `block in load'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:652:in `block in load_config_initializer'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:651:in `load_config_initializer'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `each'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `block in <class:Engine>'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `each'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `tsort_each_child'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/application.rb:328:in `require_environment!'
/var/lib/gems/2.3.0/gems/railties-4.2.6/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/var/lib/gems/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
/var/lib/gems/2.3.0/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
dpkg: error processing package redmine (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up gitlab-ce (8.15.3-ce.0) ...
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.

_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at http://hostname
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab:
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab:

gitlab: GitLab now ships with a newer version of PostgreSQL (9.6.1), and will be used
gitlab: as the default in the next major relase. To upgrade, RUN THE FOLLOWING COMMANDS:

sudo gitlab-ctl pg-upgrade

gitlab: For more details, please see:
gitlab: https://docs.gitlab.com/omnibus/settings/database.html#upgrade-packaged-postgresql-server
gitlab:
It looks like GitLab has not been configured yet; skipping the upgrade script.
Errors were encountered while processing:
redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)
You have new mail in /var/mail/root
root@hostname:~#

7. The last step is the configuration step. Just type the following command which is already stated before in the several last line of the previous command’s output  :

gitlab-ctl reconfigure

Below is the output of the above command’s execution :

root@hostname:~# gitlab-ctl reconfigure
....
== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb
- execute "bash" "/tmp/chef-script20170109-483-zno70v"
Recipe: gitlab::gitlab-rails
* execute[clear the gitlab-rails cache] action run
- execute /opt/gitlab/bin/gitlab-rake cache:clear
Recipe: gitlab::logrotate_folders_and_configs
* directory[/var/opt/gitlab/logrotate] action create
- create new directory /var/opt/gitlab/logrotate
- change mode from '' to '0700'
* directory[/var/opt/gitlab/logrotate/logrotate.d] action create
- create new directory /var/opt/gitlab/logrotate/logrotate.d
- change mode from '' to '0700'
* directory[/var/log/gitlab/logrotate] action create
- create new directory /var/log/gitlab/logrotate
- change mode from '' to '0700'
* template[/var/opt/gitlab/logrotate/logrotate.conf] action create
- create new file /var/opt/gitlab/logrotate/logrotate.conf
- update content in file /var/opt/gitlab/logrotate/logrotate.conf from none to 378c95
--- /var/opt/gitlab/logrotate/logrotate.conf 2017-01-09 11:04:29.828684837 +0700
+++ /var/opt/gitlab/logrotate/.chef-logrotate.conf20170109-483-ijwkjs 2017-01-09 11:04:29.828684837 +0700
@@ -1 +1,10 @@
+# Generated by 'gitlab-ctl reconfigure'.
+# Modifications will be overwritten!
+
+include /var/opt/gitlab/logrotate/logrotate.d/nginx
+include /var/opt/gitlab/logrotate/logrotate.d/unicorn
+include /var/opt/gitlab/logrotate/logrotate.d/gitlab-rails
+include /var/opt/gitlab/logrotate/logrotate.d/gitlab-shell
+include /var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse
+include /var/opt/gitlab/logrotate/logrotate.d/gitlab-pages
- change mode from '' to '0644'
* template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create
- create new file /var/opt/gitlab/logrotate/logrotate.d/nginx
- update content in file /var/opt/gitlab/logrotate/logrotate.d/nginx from none to b0c555
--- /var/opt/gitlab/logrotate/logrotate.d/nginx 2017-01-09 11:04:29.832684797 +0700
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-nginx20170109-483-1rdo7zj 2017-01-09 11:04:29.832684797 +0700
@@ -1 +1,15 @@
+# Generated by gitlab-ctl reconfigure
+# Modifications will be overwritten!
+
+/var/log/gitlab/nginx/*.log {
+ daily
+
+ rotate 30
+ compress
+ copytruncate
+ missingok
+ postrotate
+
+ endscript
+}
* template[/var/opt/gitlab/logrotate/logrotate.d/unicorn] action create
- create new file /var/opt/gitlab/logrotate/logrotate.d/unicorn
- update content in file /var/opt/gitlab/logrotate/logrotate.d/unicorn from none to 1520c7
--- /var/opt/gitlab/logrotate/logrotate.d/unicorn 2017-01-09 11:04:29.836684756 +0700
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-unicorn20170109-483-kw3ax7 2017-01-09 11:04:29.836684756 +0700
@@ -1 +1,15 @@
+# Generated by gitlab-ctl reconfigure
+# Modifications will be overwritten!
+
+/var/log/gitlab/unicorn/*.log {
+ daily
+
+ rotate 30
+ compress
+ copytruncate
+ missingok
+ postrotate
+
+ endscript
+}
* template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create
- create new file /var/opt/gitlab/logrotate/logrotate.d/gitlab-rails
- update content in file /var/opt/gitlab/logrotate/logrotate.d/gitlab-rails from none to f44586
--- /var/opt/gitlab/logrotate/logrotate.d/gitlab-rails 2017-01-09 11:04:29.840684715 +0700
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-rails20170109-483-1xear8z 2017-01-09 11:04:29.840684715 +0700
@@ -1 +1,15 @@
+# Generated by gitlab-ctl reconfigure
+# Modifications will be overwritten!
+
+/var/log/gitlab/gitlab-rails/*.log {
+ daily
+
+ rotate 30
+ compress
+ copytruncate
+ missingok
+ postrotate
+
+ endscript
+}
* template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create
- create new file /var/opt/gitlab/logrotate/logrotate.d/gitlab-shell
- update content in file /var/opt/gitlab/logrotate/logrotate.d/gitlab-shell from none to d12268
--- /var/opt/gitlab/logrotate/logrotate.d/gitlab-shell 2017-01-09 11:04:29.840684715 +0700
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-shell20170109-483-1xj9hc1 2017-01-09 11:04:29.840684715 +0700
@@ -1 +1,15 @@
+# Generated by gitlab-ctl reconfigure
+# Modifications will be overwritten!
+
+/var/log/gitlab/gitlab-shell//*.log {
+ daily
+
+ rotate 30
+ compress
+ copytruncate
+ missingok
+ postrotate
+
+ endscript
+}
* template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create
- create new file /var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse
- update content in file /var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse from none to 359431
--- /var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse 2017-01-09 11:04:29.844684674 +0700
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-workhorse20170109-483-jztl7 2017-01-09 11:04:29.844684674 +0700
@@ -1 +1,15 @@
+# Generated by gitlab-ctl reconfigure
+# Modifications will be overwritten!
+
+/var/log/gitlab/gitlab-workhorse/*.log {
+ daily
+
+ rotate 30
+ compress
+ copytruncate
+ missingok
+ postrotate
+
+ endscript
+}
* template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create
- create new file /var/opt/gitlab/logrotate/logrotate.d/gitlab-pages
- update content in file /var/opt/gitlab/logrotate/logrotate.d/gitlab-pages from none to 3a241b
--- /var/opt/gitlab/logrotate/logrotate.d/gitlab-pages 2017-01-09 11:04:29.848684634 +0700
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-pages20170109-483-4b5t0d 2017-01-09 11:04:29.848684634 +0700
@@ -1 +1,15 @@
+# Generated by gitlab-ctl reconfigure
+# Modifications will be overwritten!
+
+/var/log/gitlab/gitlab-pages/*.log {
+ daily
+
+ rotate 30
+ compress
+ copytruncate
+ missingok
+ postrotate
+
+ endscript
+}
Recipe: gitlab::unicorn
* directory[/var/log/gitlab/unicorn] action create
- create new directory /var/log/gitlab/unicorn
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[/opt/gitlab/var/unicorn] action create
- create new directory /opt/gitlab/var/unicorn
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[/var/opt/gitlab/gitlab-rails/sockets] action create
- create new directory /var/opt/gitlab/gitlab-rails/sockets
- change mode from '' to '0750'
- change owner from '' to 'git'
- change group from '' to 'gitlab-www'
* directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date)
* template[/var/opt/gitlab/gitlab-rails/etc/unicorn.rb] action create
- create new file /var/opt/gitlab/gitlab-rails/etc/unicorn.rb
- update content in file /var/opt/gitlab/gitlab-rails/etc/unicorn.rb from none to 529419
--- /var/opt/gitlab/gitlab-rails/etc/unicorn.rb 2017-01-09 11:04:29.864684470 +0700
+++ /var/opt/gitlab/gitlab-rails/etc/.chef-unicorn.rb20170109-483-1ej4auj 2017-01-09 11:04:29.864684470 +0700
@@ -1 +1,49 @@
+# This file is managed by gitlab-ctl. Manual changes will be
+# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
+# and run `sudo gitlab-ctl reconfigure`.
+
+
+# What ports/sockets to listen on, and what options for them.
+listen "127.0.0.1:8080", :tcp_nopush => true
+listen "/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket", :backlog => 1024
+
+working_directory '/var/opt/gitlab/gitlab-rails/working'
+
+# What the timeout for killing busy workers is, in seconds
+timeout 60
+
+# Whether the app should be pre-loaded
+preload_app true
+
+# How many worker processes
+worker_processes 5
+
+# What to do before we fork a worker
+before_fork do |server, worker|
+ old_pid = "#{server.config[:pid]}.oldbin"
+ if old_pid != server.pid
+ begin
+ sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU
+ Process.kill(sig, File.read(old_pid).to_i)
+ rescue Errno::ENOENT, Errno::ESRCH
+ end
+ end
+
+end
+
+# Where to drop a pidfile
+pid '/opt/gitlab/var/unicorn/unicorn.pid'
+
+# Where stderr gets logged
+stderr_path '/var/log/gitlab/unicorn/unicorn_stderr.log'
+
+# Where stdout gets logged
+stdout_path '/var/log/gitlab/unicorn/unicorn_stdout.log'
+
+# Min memory size (RSS) per worker
+ENV['GITLAB_UNICORN_MEMORY_MIN'] = (400 * 1 << 20).to_s
+
+# Max memory size (RSS) per worker
+ENV['GITLAB_UNICORN_MEMORY_MAX'] = (650 * 1 << 20).to_s
+
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/unicorn] action create
- create new directory /opt/gitlab/sv/unicorn
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/unicorn/log] action create
- create new directory /opt/gitlab/sv/unicorn/log
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/unicorn/log/main] action create
- create new directory /opt/gitlab/sv/unicorn/log/main
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/unicorn/run] action create
- create new file /opt/gitlab/sv/unicorn/run
- update content in file /opt/gitlab/sv/unicorn/run from none to 580ca8
--- /opt/gitlab/sv/unicorn/run 2017-01-09 11:04:29.880684306 +0700
+++ /opt/gitlab/sv/unicorn/.chef-run20170109-483-ezx83 2017-01-09 11:04:29.880684306 +0700
@@ -1 +1,16 @@
+#!/bin/bash
+
+# Let runit capture all script error messages
+exec 2>&1
+
+
+
+exec chpst -P -u git \
+ /usr/bin/env \
+ current_pidfile=/opt/gitlab/var/unicorn/unicorn.pid \
+ rails_app=gitlab-rails \
+ user=git \
+ environment=production \
+ unicorn_rb=/var/opt/gitlab/gitlab-rails/etc/unicorn.rb \
+ /opt/gitlab/embedded/bin/gitlab-unicorn-wrapper
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/unicorn/log/run] action create
- create new file /opt/gitlab/sv/unicorn/log/run
- update content in file /opt/gitlab/sv/unicorn/log/run from none to d50262
--- /opt/gitlab/sv/unicorn/log/run 2017-01-09 11:04:29.888684225 +0700
+++ /opt/gitlab/sv/unicorn/log/.chef-run20170109-483-1gi1ldx 2017-01-09 11:04:29.888684225 +0700
@@ -1 +1,3 @@
+#!/bin/sh
+exec svlogd -tt /var/log/gitlab/unicorn
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/var/log/gitlab/unicorn/config] action create
- create new file /var/log/gitlab/unicorn/config
- update content in file /var/log/gitlab/unicorn/config from none to 623c00
--- /var/log/gitlab/unicorn/config 2017-01-09 11:04:29.896684144 +0700
+++ /var/log/gitlab/unicorn/.chef-config20170109-483-12kif36 2017-01-09 11:04:29.896684144 +0700
@@ -1 +1,7 @@
+s209715200
+n30
+t86400
+!gzip
+
+
- change owner from '' to 'root'
- change group from '' to 'root'
* ruby_block[reload unicorn svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/unicorn/down] action delete (up to date)
* directory[/opt/gitlab/sv/unicorn/control] action create
- create new directory /opt/gitlab/sv/unicorn/control
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/unicorn/control/t] action create
- create new file /opt/gitlab/sv/unicorn/control/t
- update content in file /opt/gitlab/sv/unicorn/control/t from none to 84b233
--- /opt/gitlab/sv/unicorn/control/t 2017-01-09 11:04:29.908684020 +0700
+++ /opt/gitlab/sv/unicorn/control/.chef-t20170109-483-9r1pd8 2017-01-09 11:04:29.908684020 +0700
@@ -1 +1,4 @@
+#!/bin/sh
+echo "Received TERM from runit, sending to process group (-PID)"
+kill -- -$(cat /opt/gitlab/service/unicorn/supervise/pid)
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[/opt/gitlab/init/unicorn] action create
- create symlink at /opt/gitlab/init/unicorn to /opt/gitlab/embedded/bin/sv
* link[/opt/gitlab/service/unicorn] action create
- create symlink at /opt/gitlab/service/unicorn to /opt/gitlab/sv/unicorn
* ruby_block[supervise_unicorn_sleep] action run
- execute the ruby block supervise_unicorn_sleep
* service[unicorn] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start unicorn] action run
[execute] ok: run: unicorn: (pid 1489) 1s
- execute /opt/gitlab/bin/gitlab-ctl start unicorn
* directory[create /etc/sysctl.d for net.core.somaxconn] action create (up to date)
* file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create
- create new file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf
- update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf from none to 353a75
--- /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf 2017-01-09 11:04:31.028672582 +0700
+++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn20170109-483-1xv5x6k 2017-01-09 11:04:31.028672582 +0700
@@ -1 +1,2 @@
+net.core.somaxconn = 1024
* execute[load sysctl conf net.core.somaxconn] action run
[execute] net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
kernel.printk = 4 4 1 7
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
kernel.kptr_restrict = 1
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
kernel.sysrq = 176
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.tcp_syncookies = 1
kernel.yama.ptrace_scope = 1
vm.mmap_min_addr = 65536
fs.inotify.max_user_watches = 524288
fs.inotify.max_user_watches = 65536
kernel.sem = 250 32000 32 262
kernel.shmall = 4194304
kernel.shmmax = 17179869184
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
- execute cat /etc/sysctl.conf /etc/sysctl.d/*.conf | sysctl -e -p -
* link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create
- create symlink at /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf to /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf
* file[delete /etc/sysctl.d/90-postgresql.conf net.core.somaxconn] action delete (skipped due to only_if)
* file[delete /etc/sysctl.d/90-unicorn.conf net.core.somaxconn] action delete (skipped due to only_if)
* file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf net.core.somaxconn] action delete (skipped due to only_if)
* file[delete /etc/sysctl.d/90-omnibus-gitlab.conf net.core.somaxconn] action delete (skipped due to only_if)
* execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing)
Recipe: gitlab::sidekiq
* directory[/var/log/gitlab/sidekiq] action create
- create new directory /var/log/gitlab/sidekiq
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[/opt/gitlab/sv/sidekiq] action create
- create new directory /opt/gitlab/sv/sidekiq
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/sidekiq/log] action create
- create new directory /opt/gitlab/sv/sidekiq/log
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/sidekiq/log/main] action create
- create new directory /opt/gitlab/sv/sidekiq/log/main
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/sidekiq/run] action create
- create new file /opt/gitlab/sv/sidekiq/run
- update content in file /opt/gitlab/sv/sidekiq/run from none to 4bc8af
--- /opt/gitlab/sv/sidekiq/run 2017-01-09 11:04:31.072672132 +0700
+++ /opt/gitlab/sv/sidekiq/.chef-run20170109-483-b65rjt 2017-01-09 11:04:31.072672132 +0700
@@ -1 +1,15 @@
+#!/bin/sh
+
+cd /var/opt/gitlab/gitlab-rails/working
+
+exec 2>&1
+
+exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \
+ -U git -u git \
+ /opt/gitlab/embedded/bin/bundle exec sidekiq \
+ -C /opt/gitlab/embedded/service/gitlab-rails/config/sidekiq_queues.yml \
+ -e production \
+ -r /opt/gitlab/embedded/service/gitlab-rails \
+ -t 4 \
+ -c 25
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/sidekiq/log/run] action create
- create new file /opt/gitlab/sv/sidekiq/log/run
- update content in file /opt/gitlab/sv/sidekiq/log/run from none to 051d8f
--- /opt/gitlab/sv/sidekiq/log/run 2017-01-09 11:04:31.080672051 +0700
+++ /opt/gitlab/sv/sidekiq/log/.chef-run20170109-483-1aipexk 2017-01-09 11:04:31.080672051 +0700
@@ -1 +1,3 @@
+#!/bin/sh
+exec svlogd -tt /var/log/gitlab/sidekiq
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/var/log/gitlab/sidekiq/config] action create
- create new file /var/log/gitlab/sidekiq/config
- update content in file /var/log/gitlab/sidekiq/config from none to 623c00
--- /var/log/gitlab/sidekiq/config 2017-01-09 11:04:31.084672010 +0700
+++ /var/log/gitlab/sidekiq/.chef-config20170109-483-13fv1te 2017-01-09 11:04:31.084672010 +0700
@@ -1 +1,7 @@
+s209715200
+n30
+t86400
+!gzip
+
+
- change owner from '' to 'root'
- change group from '' to 'root'
* ruby_block[reload sidekiq svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/sidekiq/down] action delete (up to date)
* link[/opt/gitlab/init/sidekiq] action create
- create symlink at /opt/gitlab/init/sidekiq to /opt/gitlab/embedded/bin/sv
* link[/opt/gitlab/service/sidekiq] action create
- create symlink at /opt/gitlab/service/sidekiq to /opt/gitlab/sv/sidekiq
* ruby_block[supervise_sidekiq_sleep] action run
- execute the ruby block supervise_sidekiq_sleep
* service[sidekiq] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] action run
[execute] ok: run: sidekiq: (pid 1556) 1s
- execute /opt/gitlab/bin/gitlab-ctl start sidekiq
Recipe: gitlab::gitlab-workhorse
* directory[/var/opt/gitlab/gitlab-workhorse] action create
- create new directory /var/opt/gitlab/gitlab-workhorse
- change mode from '' to '0750'
- change owner from '' to 'git'
- change group from '' to 'gitlab-www'
* directory[/var/log/gitlab/gitlab-workhorse] action create
- create new directory /var/log/gitlab/gitlab-workhorse
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[/opt/gitlab/etc/gitlab-workhorse] action create
- create new directory /opt/gitlab/etc/gitlab-workhorse
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[/opt/gitlab/etc/gitlab-workhorse/env] action create
- create new directory /opt/gitlab/etc/gitlab-workhorse/env
* file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] action create
- create new file /opt/gitlab/etc/gitlab-workhorse/env/PATH
- update content in file /opt/gitlab/etc/gitlab-workhorse/env/PATH from none to d5dc07
--- /opt/gitlab/etc/gitlab-workhorse/env/PATH 2017-01-09 11:04:33.448647867 +0700
+++ /opt/gitlab/etc/gitlab-workhorse/env/.chef-PATH20170109-483-10wp536 2017-01-09 11:04:33.448647867 +0700
@@ -1 +1,2 @@
+/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin
* file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] action create
- create new file /opt/gitlab/etc/gitlab-workhorse/env/HOME
- update content in file /opt/gitlab/etc/gitlab-workhorse/env/HOME from none to 205bb9
--- /opt/gitlab/etc/gitlab-workhorse/env/HOME 2017-01-09 11:04:33.452647827 +0700
+++ /opt/gitlab/etc/gitlab-workhorse/env/.chef-HOME20170109-483-1hntkl2 2017-01-09 11:04:33.452647827 +0700
@@ -1 +1,2 @@
+/var/opt/gitlab
* directory[/opt/gitlab/sv/gitlab-workhorse] action create
- create new directory /opt/gitlab/sv/gitlab-workhorse
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/gitlab-workhorse/log] action create
- create new directory /opt/gitlab/sv/gitlab-workhorse/log
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create
- create new directory /opt/gitlab/sv/gitlab-workhorse/log/main
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/gitlab-workhorse/run] action create
- create new file /opt/gitlab/sv/gitlab-workhorse/run
- update content in file /opt/gitlab/sv/gitlab-workhorse/run from none to 09dfef
--- /opt/gitlab/sv/gitlab-workhorse/run 2017-01-09 11:04:33.496647377 +0700
+++ /opt/gitlab/sv/gitlab-workhorse/.chef-run20170109-483-5c6rwq 2017-01-09 11:04:33.496647377 +0700
@@ -1 +1,25 @@
+#!/bin/sh
+set -e # fail on errors
+
+# Redirect stderr -> stdout
+exec 2>&1
+
+
+
+cd /var/opt/gitlab/gitlab-workhorse
+
+exec chpst -e /opt/gitlab/etc/gitlab-workhorse/env -P \
+ -U git \
+ -u git \
+ /opt/gitlab/embedded/bin/gitlab-workhorse \
+ -listenNetwork unix \
+ -listenUmask 0 \
+ -listenAddr /var/opt/gitlab/gitlab-workhorse/socket \
+ -authBackend http://localhost:8080 \
+ -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket \
+ -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public \
+ -pprofListenAddr ''\
+ -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \
+
+# Do not remove this line; it prevents trouble with the trailing backslashes above.
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create
- create new file /opt/gitlab/sv/gitlab-workhorse/log/run
- update content in file /opt/gitlab/sv/gitlab-workhorse/log/run from none to 6ed0e1
--- /opt/gitlab/sv/gitlab-workhorse/log/run 2017-01-09 11:04:33.516647173 +0700
+++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-run20170109-483-1voej2s 2017-01-09 11:04:33.516647173 +0700
@@ -1 +1,3 @@
+#!/bin/sh
+exec svlogd -tt /var/log/gitlab/gitlab-workhorse
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/var/log/gitlab/gitlab-workhorse/config] action create
- create new file /var/log/gitlab/gitlab-workhorse/config
- update content in file /var/log/gitlab/gitlab-workhorse/config from none to 623c00
--- /var/log/gitlab/gitlab-workhorse/config 2017-01-09 11:04:33.524647091 +0700
+++ /var/log/gitlab/gitlab-workhorse/.chef-config20170109-483-7fb048 2017-01-09 11:04:33.524647091 +0700
@@ -1 +1,7 @@
+s209715200
+n30
+t86400
+!gzip
+
+
- change owner from '' to 'root'
- change group from '' to 'root'
* ruby_block[reload gitlab-workhorse svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/gitlab-workhorse/down] action delete (up to date)
* link[/opt/gitlab/init/gitlab-workhorse] action create
- create symlink at /opt/gitlab/init/gitlab-workhorse to /opt/gitlab/embedded/bin/sv
* link[/opt/gitlab/service/gitlab-workhorse] action create
- create symlink at /opt/gitlab/service/gitlab-workhorse to /opt/gitlab/sv/gitlab-workhorse
* ruby_block[supervise_gitlab-workhorse_sleep] action run
- execute the ruby block supervise_gitlab-workhorse_sleep
* service[gitlab-workhorse] action nothing (skipped due to action :nothing)
* file[/var/opt/gitlab/gitlab-workhorse/VERSION] action create
- create new file /var/opt/gitlab/gitlab-workhorse/VERSION
- update content in file /var/opt/gitlab/gitlab-workhorse/VERSION from none to e902f9
--- /var/opt/gitlab/gitlab-workhorse/VERSION 2017-01-09 11:04:38.544595822 +0700
+++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20170109-483-1xac5vm 2017-01-09 11:04:38.544595822 +0700
@@ -1 +1,2 @@
+gitlab-workhorse v1.2.1-20170106.215456
Recipe: gitlab::mailroom_disable
* link[/opt/gitlab/service/mailroom] action delete (up to date)
* directory[/opt/gitlab/sv/mailroom] action delete (up to date)
Recipe: gitlab::nginx
* directory[/var/opt/gitlab/nginx] action create
- create new directory /var/opt/gitlab/nginx
- change mode from '' to '0750'
- change owner from '' to 'root'
- change group from '' to 'gitlab-www'
* directory[/var/opt/gitlab/nginx/conf] action create
- create new directory /var/opt/gitlab/nginx/conf
- change mode from '' to '0750'
- change owner from '' to 'root'
- change group from '' to 'gitlab-www'
* directory[/var/log/gitlab/nginx] action create
- create new directory /var/log/gitlab/nginx
- change mode from '' to '0750'
- change owner from '' to 'root'
- change group from '' to 'gitlab-www'
* link[/var/opt/gitlab/nginx/logs] action create
- create symlink at /var/opt/gitlab/nginx/logs to /var/log/gitlab/nginx
* template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] action create
- create new file /var/opt/gitlab/nginx/conf/gitlab-http.conf
- update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from none to 3b10e8
--- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2017-01-09 11:04:38.584595414 +0700
+++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http.conf20170109-483-1w4c3zs 2017-01-09 11:04:38.576595496 +0700
@@ -1 +1,89 @@
+# This file is managed by gitlab-ctl. Manual changes will be
+# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
+# and run `sudo gitlab-ctl reconfigure`.
+
+## GitLab
+## Modified from https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab-ssl & https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab
+##
+## Lines starting with two hashes (##) are comments with information.
+## Lines starting with one hash (#) are configuration parameters that can be uncommented.
+##
+##################################
+## CHUNKED TRANSFER ##
+##################################
+##
+## It is a known issue that Git-over-HTTP requires chunked transfer encoding [0]
+## which is not supported by Nginx < 1.3.9 [1]. As a result, pushing a large object
+## with Git (i.e. a single large file) can lead to a 411 error. In theory you can get
+## around this by tweaking this configuration file and either:
+## - installing an old version of Nginx with the chunkin module [2] compiled in, or
+## - using a newer version of Nginx.
+##
+## At the time of writing we do not know if either of these theoretical solutions works.
+## As a workaround users can use Git over SSH to push large files.
+##
+## [0] https://git.kernel.org/cgit/git/git.git/tree/Documentation/technical/http-protocol.txt#n99
+## [1] https://github.com/agentzh/chunkin-nginx-module#status
+## [2] https://github.com/agentzh/chunkin-nginx-module
+##
+###################################
+## configuration ##
+###################################
+
+upstream gitlab-workhorse {
+ server unix:/var/opt/gitlab/gitlab-workhorse/socket;
+}
+
+
+server {
+ listen *:80;
+
+
+ server_name hostname;
+ server_tokens off; ## Don't show the nginx version number, a security best practice
+
+ ## Increase this if you want to upload large attachments
+ ## Or if you want to accept large git objects over http
+ client_max_body_size 0;
+
+
+ ## Real IP Module Config
+ ## http://nginx.org/en/docs/http/ngx_http_realip_module.html
+
+ ## Individual nginx logs for this GitLab vhost
+ access_log /var/log/gitlab/nginx/gitlab_access.log gitlab_access;
+ error_log /var/log/gitlab/nginx/gitlab_error.log;
+
+ location / {
+ ## If you use HTTPS make sure you disable gzip compression
+ ## to be safe against BREACH attack.
+
+
+ ## https://github.com/gitlabhq/gitlabhq/issues/694
+ ## Some requests take more than 30 seconds.
+ proxy_read_timeout 3600;
+ proxy_connect_timeout 300;
+ proxy_redirect off;
+ proxy_http_version 1.1;
+
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection $connection_upgrade;
+ proxy_set_header X-Forwarded-Proto http;
+
+ proxy_pass http://gitlab-workhorse;
+ }
+ error_page 404 /404.html;
+ error_page 422 /422.html;
+ error_page 500 /500.html;
+ error_page 502 /502.html;
+ location ~ ^/(404|422|500|502)(-custom)?\.html$ {
+ root /opt/gitlab/embedded/service/gitlab-rails/public;
+ internal;
+ }
+
+
+}
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date)
* template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date)
* template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date)
* template[/var/opt/gitlab/nginx/conf/nginx-status.conf] action create
- create new file /var/opt/gitlab/nginx/conf/nginx-status.conf
- update content in file /var/opt/gitlab/nginx/conf/nginx-status.conf from none to bee808
--- /var/opt/gitlab/nginx/conf/nginx-status.conf 2017-01-09 11:04:38.620595046 +0700
+++ /var/opt/gitlab/nginx/conf/.chef-nginx-status.conf20170109-483-167nuit 2017-01-09 11:04:38.620595046 +0700
@@ -1 +1,12 @@
+server {
+ listen *:8060;
+ server_name localhost;
+ location /nginx_status {
+ stub_status on;
+ server_tokens off;
+ access_log off;
+ allow 127.0.0.1;
+ deny all;
+ }
+}
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/var/opt/gitlab/nginx/conf/nginx.conf] action create
- create new file /var/opt/gitlab/nginx/conf/nginx.conf
- update content in file /var/opt/gitlab/nginx/conf/nginx.conf from none to 5da6ee
--- /var/opt/gitlab/nginx/conf/nginx.conf 2017-01-09 11:04:38.640594842 +0700
+++ /var/opt/gitlab/nginx/conf/.chef-nginx.conf20170109-483-1i0h2o6 2017-01-09 11:04:38.640594842 +0700
@@ -1 +1,55 @@
+# This file is managed by gitlab-ctl. Manual changes will be
+# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
+# and run `sudo gitlab-ctl reconfigure`.
+
+user gitlab-www gitlab-www;
+worker_processes 4;
+error_log stderr;
+pid nginx.pid;
+
+daemon off;
+
+events {
+ worker_connections 10240;
+}
+
+http {
+ log_format gitlab_access '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
+ log_format gitlab_ci_access '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
+ log_format gitlab_mattermost_access '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
+
+ server_names_hash_bucket_size 64;
+
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+
+ keepalive_timeout 65;
+
+ gzip on;
+ gzip_http_version 1.0;
+ gzip_comp_level 2;
+ gzip_proxied any;
+ gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
+
+ include /opt/gitlab/embedded/conf/mime.types;
+
+ proxy_cache_path proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2;
+ proxy_cache gitlab;
+
+ map $http_upgrade $connection_upgrade {
+ default upgrade;
+ '' close;
+ }
+
+ include /var/opt/gitlab/nginx/conf/gitlab-http.conf;
+
+
+
+
+
+ include /var/opt/gitlab/nginx/conf/nginx-status.conf;
+
+
+}
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/nginx] action create
- create new directory /opt/gitlab/sv/nginx
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/nginx/log] action create
- create new directory /opt/gitlab/sv/nginx/log
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/nginx/log/main] action create
- create new directory /opt/gitlab/sv/nginx/log/main
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/nginx/run] action create
- create new file /opt/gitlab/sv/nginx/run
- update content in file /opt/gitlab/sv/nginx/run from none to d75aea
--- /opt/gitlab/sv/nginx/run 2017-01-09 11:04:38.664594596 +0700
+++ /opt/gitlab/sv/nginx/.chef-run20170109-483-987dyt 2017-01-09 11:04:38.664594596 +0700
@@ -1 +1,6 @@
+#!/bin/sh
+exec 2>&1
+
+cd /var/opt/gitlab/nginx
+exec chpst -P /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/nginx/log/run] action create
- create new file /opt/gitlab/sv/nginx/log/run
- update content in file /opt/gitlab/sv/nginx/log/run from none to c70025
--- /opt/gitlab/sv/nginx/log/run 2017-01-09 11:04:38.692594310 +0700
+++ /opt/gitlab/sv/nginx/log/.chef-run20170109-483-rkngbm 2017-01-09 11:04:38.692594310 +0700
@@ -1 +1,3 @@
+#!/bin/sh
+exec svlogd -tt /var/log/gitlab/nginx
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/var/log/gitlab/nginx/config] action create
- create new file /var/log/gitlab/nginx/config
- update content in file /var/log/gitlab/nginx/config from none to 623c00
--- /var/log/gitlab/nginx/config 2017-01-09 11:04:38.700594228 +0700
+++ /var/log/gitlab/nginx/.chef-config20170109-483-17p17cs 2017-01-09 11:04:38.700594228 +0700
@@ -1 +1,7 @@
+s209715200
+n30
+t86400
+!gzip
+
+
- change owner from '' to 'root'
- change group from '' to 'root'
* ruby_block[reload nginx svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/nginx/down] action delete (up to date)
* link[/opt/gitlab/init/nginx] action create
- create symlink at /opt/gitlab/init/nginx to /opt/gitlab/embedded/bin/sv
* link[/opt/gitlab/service/nginx] action create
- create symlink at /opt/gitlab/service/nginx to /opt/gitlab/sv/nginx
* ruby_block[supervise_nginx_sleep] action run
- execute the ruby block supervise_nginx_sleep
* service[nginx] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start nginx] action run
[execute] ok: run: nginx: (pid 1620) 1s
- execute /opt/gitlab/bin/gitlab-ctl start nginx
Recipe: gitlab::remote-syslog_disable
* link[/opt/gitlab/service/remote-syslog] action delete (up to date)
* directory[/opt/gitlab/sv/remote-syslog] action delete (up to date)
Recipe: gitlab::logrotate
* directory[/opt/gitlab/sv/logrotate] action create
- create new directory /opt/gitlab/sv/logrotate
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/logrotate/log] action create
- create new directory /opt/gitlab/sv/logrotate/log
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/logrotate/log/main] action create
- create new directory /opt/gitlab/sv/logrotate/log/main
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/logrotate/run] action create
- create new file /opt/gitlab/sv/logrotate/run
- update content in file /opt/gitlab/sv/logrotate/run from none to 07f1b6
--- /opt/gitlab/sv/logrotate/run 2017-01-09 11:04:40.084580094 +0700
+++ /opt/gitlab/sv/logrotate/.chef-run20170109-483-1l0rdoj 2017-01-09 11:04:40.084580094 +0700
@@ -1 +1,11 @@
+#!/bin/sh
+exec 2>&1
+
+cd /var/opt/gitlab/logrotate
+
+exec /opt/gitlab/embedded/bin/chpst -P /usr/bin/env \
+ dir=/var/opt/gitlab/logrotate \
+ pre_sleep=600 \
+ post_sleep=3000 \
+ /opt/gitlab/embedded/bin/gitlab-logrotate-wrapper
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/logrotate/log/run] action create
- create new file /opt/gitlab/sv/logrotate/log/run
- update content in file /opt/gitlab/sv/logrotate/log/run from none to 94afe6
--- /opt/gitlab/sv/logrotate/log/run 2017-01-09 11:04:40.096579971 +0700
+++ /opt/gitlab/sv/logrotate/log/.chef-run20170109-483-16e1edm 2017-01-09 11:04:40.096579971 +0700
@@ -1 +1,3 @@
+#!/bin/sh
+exec svlogd -tt /var/log/gitlab/logrotate
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/var/log/gitlab/logrotate/config] action create
- create new file /var/log/gitlab/logrotate/config
- update content in file /var/log/gitlab/logrotate/config from none to 623c00
--- /var/log/gitlab/logrotate/config 2017-01-09 11:04:40.100579931 +0700
+++ /var/log/gitlab/logrotate/.chef-config20170109-483-1q2ksvm 2017-01-09 11:04:40.100579931 +0700
@@ -1 +1,7 @@
+s209715200
+n30
+t86400
+!gzip
+
+
- change owner from '' to 'root'
- change group from '' to 'root'
* ruby_block[reload logrotate svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/logrotate/down] action delete (up to date)
* directory[/opt/gitlab/sv/logrotate/control] action create
- create new directory /opt/gitlab/sv/logrotate/control
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/logrotate/control/t] action create
- create new file /opt/gitlab/sv/logrotate/control/t
- update content in file /opt/gitlab/sv/logrotate/control/t from none to 8fa3fa
--- /opt/gitlab/sv/logrotate/control/t 2017-01-09 11:04:40.120579726 +0700
+++ /opt/gitlab/sv/logrotate/control/.chef-t20170109-483-r2l9ib 2017-01-09 11:04:40.120579726 +0700
@@ -1 +1,4 @@
+#!/bin/sh
+echo "Received TERM from runit, sending to process group (-PID)"
+kill -- -$(cat /opt/gitlab/service/logrotate/supervise/pid)
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[/opt/gitlab/init/logrotate] action create
- create symlink at /opt/gitlab/init/logrotate to /opt/gitlab/embedded/bin/sv
* link[/opt/gitlab/service/logrotate] action create
- create symlink at /opt/gitlab/service/logrotate to /opt/gitlab/sv/logrotate
* ruby_block[supervise_logrotate_sleep] action run
- execute the ruby block supervise_logrotate_sleep
* service[logrotate] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start logrotate] action run
[execute] ok: run: logrotate: (pid 1629) 1s
- execute /opt/gitlab/bin/gitlab-ctl start logrotate
Recipe: gitlab::bootstrap
* file[/var/opt/gitlab/bootstrapped] action create
- create new file /var/opt/gitlab/bootstrapped
- update content in file /var/opt/gitlab/bootstrapped from none to 4ae00c
--- /var/opt/gitlab/bootstrapped 2017-01-09 11:04:42.444555992 +0700
+++ /var/opt/gitlab/.chef-bootstrapped20170109-483-togbi4 2017-01-09 11:04:42.444555992 +0700
@@ -1 +1,2 @@
+All your bootstraps are belong to Chef
- change mode from '' to '0600'
- change owner from '' to 'root'
- change group from '' to 'root'
Recipe: gitlab::mattermost_disable
* link[/opt/gitlab/service/mattermost] action delete (up to date)
* directory[/opt/gitlab/sv/mattermost] action delete (up to date)
Recipe: gitlab::gitlab-pages_disable
* link[/opt/gitlab/service/gitlab-pages] action delete (up to date)
* directory[/opt/gitlab/sv/gitlab-pages] action delete (up to date)
Recipe: gitlab::registry_disable
* link[/opt/gitlab/service/registry] action delete (up to date)
* directory[/opt/gitlab/sv/registry] action delete (up to date)
Recipe: gitlab::default
* link[/opt/gitlab/service/gitlab-git-http-server] action delete (up to date)
* directory[/opt/gitlab/sv/gitlab-git-http-server] action delete (up to date)
Recipe: gitlab::gitlab-rails
* execute[clear the gitlab-rails cache] action run
- execute /opt/gitlab/bin/gitlab-rake cache:clear
Recipe: gitlab::redis
* ruby_block[reload redis svlogd configuration] action create
- execute the ruby block reload redis svlogd configuration
Recipe: gitlab::postgresql
* ruby_block[reload postgresql svlogd configuration] action create
- execute the ruby block reload postgresql svlogd configuration
Recipe: gitlab::unicorn
* ruby_block[reload unicorn svlogd configuration] action create
- execute the ruby block reload unicorn svlogd configuration
Recipe: gitlab::sidekiq
* ruby_block[reload sidekiq svlogd configuration] action create
- execute the ruby block reload sidekiq svlogd configuration
Recipe: gitlab::gitlab-workhorse
* service[gitlab-workhorse] action restart
- restart service service[gitlab-workhorse]
* ruby_block[reload gitlab-workhorse svlogd configuration] action create
- execute the ruby block reload gitlab-workhorse svlogd configuration
Recipe: gitlab::nginx
* ruby_block[reload nginx svlogd configuration] action create
- execute the ruby block reload nginx svlogd configuration
Recipe: gitlab::logrotate
* ruby_block[reload logrotate svlogd configuration] action create
- execute the ruby block reload logrotate svlogd configuration

Running handlers:
Running handlers complete
Chef Client finished, 233/326 resources updated in 01 minutes 31 seconds
gitlab Reconfigured!
You have new mail in /var/mail/root
root@hostname:~#

8. After successfully installing Gitlab, to be able to access it, just start Gitlab’s service. In order to start Gitlab’s service, read the following article titled ‘Start Gitlab via Command Line’ in the following link. If it has already start, below is the which is going to be appeared in the first time usage :

Install Gitlab in Ubuntu via Command Line
Install Gitlab in Ubuntu via Command Line

2 thoughts on “Install Gitlab in Ubuntu via Command Line

Leave a Reply