[OpenShift origin] gitlab-ce install その2

GitLab

さて全開anyuidを付与したので改めてBuildしてみます。

Openshift originのGUIにてgitlabプロジェクトに入り
Applications》Deploymentsと進み、問題の「gitlab-ce:」をクリックし、Deployボタンをクリックします。
GitLab20.png

GitLab21.png

GitLab22.png

GitLab23.png

Overviewに戻ってしばし待ちますが、またしてもError発生
GitLab24.png

Applications》podsで問題となっているPodのLogsを確認します。
GitLab25.png
ログを確認したところ先ほどの権限問題は回避されて先に進んでいるようですが…
また Permission deniedで怒られていました。

Thank you for using GitLab Docker Image!
Current version: gitlab-ce=10.3.2-ce.0
Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:
docker exec -it gitlab vim /etc/gitlab/gitlab.rb
docker restart gitlab
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
If this container fails to start due to permission problems try to fix it by executing:
docker exec -it gitlab update-permissions
docker restart gitlab
Preparing services...
Starting services...
Configuring GitLab package...
/opt/gitlab/embedded/bin/runsvdir-start: line 24: ulimit: pending signals: cannot modify limit: Operation not permitted
/opt/gitlab/embedded/bin/runsvdir-start: line 34: ulimit: max user processes: cannot modify limit: Operation not permitted
/opt/gitlab/embedded/bin/runsvdir-start: line 37: /proc/sys/fs/file-max: Read-only file system
gitlab preinstall:
gitlab preinstall: This node does not appear to be running a database
gitlab preinstall: Skipping version check, if you think this is an error exit now
gitlab preinstall:
Configuring GitLab...
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- registry (0.1.0)
- package (0.1.0)
- mattermost (0.1.0)
- consul (0.0.0)
- gitaly (0.1.0)
- runit (0.14.2)
Installing Cookbook Gems:
Compiling Cookbooks...
Recipe: gitlab::default
* directory[/etc/gitlab] action create (skipped due to only_if)
Converging 252 resources
* directory[/etc/gitlab] action create (skipped due to only_if)
* directory[Create /var/opt/gitlab] action create
- change owner from 'git' to 'root'
- change group from 'git' to 'root'
* directory[/opt/gitlab/embedded/etc] action create
- create new directory /opt/gitlab/embedded/etc
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/embedded/etc/gitconfig] action create
- create new file /opt/gitlab/embedded/etc/gitconfig
- update content in file /opt/gitlab/embedded/etc/gitconfig from none to 987af3
--- /opt/gitlab/embedded/etc/gitconfig 2017-12-31 06:04:50.673246746 +0000
+++ /opt/gitlab/embedded/etc/.chef-gitconfig20171231-30-1o48h9d 2017-12-31 06:04:50.672246741 +0000
@@ -1 +1,11 @@
+[pack]
+ threads = 1
+[receive]
+ fsckObjects = true
+advertisePushOptions = true
+[repack]
+ writeBitmaps = true
+[transfer]
+ hideRefs=^refs/tmp/
+hideRefs=^refs/keep-around/
- change mode from '' to '0755'
Recipe: gitlab::web-server
* account[Webserver user and group] action create
* group[Webserver user and group] action create (up to date)
* user[Webserver user and group] action create (up to date)
(up to date)
Recipe: gitlab::users
* directory[/var/opt/gitlab] action create (up to date)
* account[GitLab user and group] action create
* group[GitLab user and group] action create (up to date)
* user[GitLab user and group] action create (up to date)
(up to date)
* template[/var/opt/gitlab/.gitconfig] action create
- create new file /var/opt/gitlab/.gitconfig
- update content in file /var/opt/gitlab/.gitconfig from none to b3be7a
--- /var/opt/gitlab/.gitconfig 2017-12-31 06:04:50.718246939 +0000
+++ /var/opt/gitlab/.chef-.gitconfig20171231-30-x52tgh 2017-12-31 06:04:50.717246935 +0000
@@ -1 +1,12 @@
+# 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]
+ name = GitLab
+ email = gitlab@gitlab.127.0.0.1.nip.io
+[core]
+ autocrlf = input
+[gc]
+ auto = 0
- change mode from '' to '0644'
- change owner from '' to 'git'
- change group from '' to 'git'
Recipe: gitlab::gitlab-shell
* storage_directory[/gitlab-data/git-data] action create
* ruby_block[directory resource: /gitlab-data/git-data] action run (skipped due to not_if)
(up to date)
* storage_directory[/gitlab-data/git-data/repositories] action create
* ruby_block[directory resource: /gitlab-data/git-data/repositories] action run (skipped due to not_if)
(up to date)
* storage_directory[/var/opt/gitlab/.ssh] action create
* ruby_block[directory resource: /var/opt/gitlab/.ssh] action run
- execute the ruby block directory resource: /var/opt/gitlab/.ssh

* storage_directory[/gitlab-data/ssh] action create
* ruby_block[directory resource: /gitlab-data/ssh] action run

================================================================================
Error executing action `run` on resource 'ruby_block[directory resource: /gitlab-data/ssh]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of mkdir -p /gitlab-data/ssh ----
STDOUT:
STDERR: mkdir: cannot create directory '/gitlab-data': Permission denied
---- End output of mkdir -p /gitlab-data/ssh ----
Ran mkdir -p /gitlab-data/ssh returned 1

Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/storage_directory_helper.rb:35:in `run_command'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/storage_directory_helper.rb:42:in `ensure_directory_exists'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb:36:in `block (3 levels) in class_from_file'

Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb

33: ruby_block "directory resource: #{path}" do
34: block do
35: # Ensure the directory exists
36: storage_helper.ensure_directory_exists(path)
37:
38: # Ensure the permissions are set
39: storage_helper.ensure_permissions_set(path)
40:
41: # Error out if we have not achieved the target permissions
42: storage_helper.validate!(path)
43: end
44: not_if { storage_helper.validate(path) }
45: end
46: end

Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb:33:in `block in class_from_file'

ruby_block("directory resource: /gitlab-data/ssh") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :default
block_name "directory resource: /gitlab-data/ssh"
declared_type :ruby_block
cookbook_name "gitlab"
block #
not_if { #code block }
end

Platform:
---------
x86_64-linux


================================================================================
Error executing action `create` on resource 'storage_directory[/gitlab-data/ssh]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
ruby_block[directory resource: /gitlab-data/ssh] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb line 33) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of mkdir -p /gitlab-data/ssh ----
STDOUT:
STDERR: mkdir: cannot create directory '/gitlab-data': Permission denied
---- End output of mkdir -p /gitlab-data/ssh ----
Ran mkdir -p /gitlab-data/ssh returned 1

Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/storage_directory_helper.rb:35:in `run_command'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/storage_directory_helper.rb:42:in `ensure_directory_exists'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb:36:in `block (3 levels) in class_from_file'

Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-shell.rb

55: storage_directory dir do
56: owner git_user
57: group git_group
58: mode "0700"
59: end
60: end

Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-shell.rb:55:in `block in from_file'

storage_directory("/gitlab-data/ssh") do
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :storage_directory
cookbook_name "gitlab"
recipe_name "gitlab-shell"
owner "git"
mode "0700"
group "git"
path "/gitlab-data/ssh"
end

Platform:
---------
x86_64-linux


Running handlers:
Running handlers complete
Chef Client failed. 6 resources updated in 10 seconds
There was an error running gitlab-ctl reconfigure:
storage_directory[/gitlab-data/ssh] (gitlab::gitlab-shell line 55) had an error: Mixlib::ShellOut::ShellCommandFailed: ruby_block[directory resource: /gitlab-data/ssh] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb line 33) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of mkdir -p /gitlab-data/ssh ----
STDOUT:
STDERR: mkdir: cannot create directory '/gitlab-data': Permission denied
---- End output of mkdir -p /gitlab-data/ssh ----
Ran mkdir -p /gitlab-data/ssh returned 1


うぅ~ん。/gitlab-data/sshを作ろうとして怒られているみたいだが…
anyuidの権限付与してroot相当になっているのに…なぜ

とりあえずOpenshiftのGUIでStrageを確認します。
gitlab-ce-data pv0055ですね。問題のストレージは
GitLab30.png
では権限を確認してみましょう。
# cd /var/lib/origin
# find ./ -type d -name "*0055"
./openshift.local.pv/pv0055
# cd openshift.local.pv
# ll
合計 0
drwxrwx---. 2 root root 6 12月 30 19:59 pv0001
drwxrwx---. 2 root root 6 12月 30 19:59 pv0002
drwxrwx---. 2 root root 6 12月 30 19:59 pv0003
drwxrwx---. 2 root root 6 12月 30 19:59 pv0004
drwxrwx---. 2 root root 6 12月 30 19:59 pv0005
drwxrwx---. 2 root root 6 12月 30 19:59 pv0006
drwxrwx---. 2 root root 6 12月 30 19:59 pv0007
drwxrwx---. 2 root root 6 12月 30 19:59 pv0008
drwxrwx---. 2 root root 6 12月 30 19:59 pv0009
drwxrwx---. 2 root root 6 12月 30 19:59 pv0010
drwxrwx---. 2 root root 6 12月 30 19:59 pv0011
drwxrwx---. 2 root root 6 12月 30 19:59 pv0012
drwxrwx---. 2 root root 6 12月 30 19:59 pv0013
drwxrwx---. 2 root root 6 12月 30 19:59 pv0014
drwxrwx---. 2 root root 6 12月 30 19:59 pv0015
drwxrwx---. 2 root root 6 12月 30 19:59 pv0016
drwxrwx---. 2 root root 6 12月 30 19:59 pv0017
drwxrwx---. 2 root root 6 12月 30 19:59 pv0018
drwxrwx---. 2 root root 6 12月 30 19:59 pv0019
drwxrwx---. 2 root root 6 12月 30 19:59 pv0020
drwxrwx---. 2 root root 6 12月 30 19:59 pv0021
drwxrwx---. 2 root root 6 12月 30 19:59 pv0022
drwxrwx---. 2 root root 6 12月 30 19:59 pv0023
drwxrwx---. 2 root root 6 12月 30 19:59 pv0024
drwxrwx---. 2 root root 6 12月 30 19:59 pv0025
drwxrwx---. 2 root root 6 12月 30 19:59 pv0026
drwxrwx---. 2 root root 6 12月 30 19:59 pv0027
drwxrwx---. 2 root root 6 12月 30 19:59 pv0028
drwxrwx---. 2 root root 6 12月 30 19:59 pv0029
drwxrwx---. 2 root root 218 12月 31 15:02 pv0030
drwxrwx---. 2 root root 6 12月 30 19:59 pv0031
drwxrwx---. 2 root root 6 12月 30 19:59 pv0032
drwxrwx---. 2 root root 6 12月 30 19:59 pv0033
drwxrwx---. 2 root root 6 12月 30 19:59 pv0034
drwxrwx---. 2 root root 6 12月 30 19:59 pv0035
drwxrwx---. 2 root root 6 12月 30 19:59 pv0036
drwxrwx---. 2 root root 6 12月 30 19:59 pv0037
drwxrwx---. 2 root root 6 12月 30 19:59 pv0038
drwxrwx---. 2 root root 6 12月 30 19:59 pv0039
drwxrwx---. 2 root root 6 12月 30 19:59 pv0040
drwxrwx---. 2 root root 6 12月 30 19:59 pv0041
drwxrwx---. 2 root root 6 12月 30 19:59 pv0042
drwxrwx---. 2 root root 6 12月 30 20:00 pv0043
drwxrwx---. 2 root root 6 12月 30 20:00 pv0044
drwxrwx---. 2 root root 6 12月 30 20:00 pv0045
drwxrwx---. 2 root root 6 12月 30 20:00 pv0046
drwxrwx---. 2 root root 6 12月 30 20:00 pv0047
drwxrwx---. 2 root root 6 12月 30 20:00 pv0048
drwxrwx---. 2 root root 6 12月 30 20:00 pv0049
drwxrwx---. 2 root root 6 12月 30 20:00 pv0050
drwxrwx---. 2 root root 6 12月 30 20:00 pv0051
drwxrwx---. 2 root root 6 12月 30 20:00 pv0052
drwxrwx---. 2 root root 6 12月 30 20:00 pv0053
drwxrwx---. 2 root root 6 12月 30 20:00 pv0054
drwxrwx---. 3 root root 22 12月 31 15:02 pv0055
drwxrwx---. 2 root root 6 12月 30 20:00 pv0056
drwxrwx---. 2 root root 6 12月 30 20:00 pv0057
drwxrwx---. 2 root root 6 12月 30 20:00 pv0058
drwxrwx---. 2 root root 6 12月 30 20:00 pv0059
drwxrwx---. 2 root root 6 12月 30 20:00 pv0060
drwxrwx---. 2 root root 6 12月 30 20:00 pv0061
drwxrwx---. 2 root root 6 12月 30 20:00 pv0062
drwxrwx---. 2 root root 6 12月 30 20:00 pv0063
drwxrwx---. 2 root root 6 12月 30 20:00 pv0064
drwxrwx---. 2 root root 6 12月 30 20:00 pv0065
drwxrwx---. 2 root root 6 12月 30 20:00 pv0066
drwxrwx---. 2 root root 6 12月 30 20:00 pv0067
drwxrwx---. 2 root root 6 12月 30 20:00 pv0068
drwxrwx---. 2 root root 6 12月 30 20:00 pv0069
drwxrwx---. 2 root root 6 12月 30 20:00 pv0070
drwxrwx---. 2 root root 6 12月 30 20:00 pv0071
drwxrwx---. 2 root root 6 12月 30 20:00 pv0072
drwxrwx---. 2 root root 6 12月 30 20:00 pv0073
drwxrwx---. 2 root root 6 12月 30 20:00 pv0074
drwxrwx---. 2 root root 6 12月 30 20:00 pv0075
drwxrwx---. 2 root root 6 12月 30 20:00 pv0076
drwxrwx---. 2 root root 6 12月 30 20:00 pv0077
drwxrwx---. 2 root root 6 12月 30 20:00 pv0078
drwxrwx---. 2 root root 6 12月 30 20:00 pv0079
drwxrwx---. 2 root root 6 12月 30 20:00 pv0080
drwxrwx---. 2 root root 6 12月 30 20:00 pv0081
drwxrwx---. 2 root root 6 12月 30 20:00 pv0082
drwxrwx---. 2 root root 6 12月 30 20:00 pv0083
drwxrwx---. 2 root root 6 12月 30 20:00 pv0084
drwxrwx---. 2 root root 6 12月 30 20:00 pv0085
drwxrwx---. 2 root root 6 12月 30 20:00 pv0086
drwxrwx---. 2 root root 6 12月 30 20:00 pv0087
drwxrwx---. 2 root root 6 12月 30 20:00 pv0088
drwxrwx---. 2 root root 6 12月 30 20:00 pv0089
drwxrwx---. 2 root root 6 12月 30 20:00 pv0090
drwxrwx---. 2 root root 6 12月 30 20:00 pv0091
drwxrwx---. 2 root root 6 12月 30 20:00 pv0092
drwxrwx---. 2 root root 6 12月 30 20:00 pv0093
drwxrwx---. 3 root root 22 12月 31 00:06 pv0094
drwxrwx---. 2 root root 6 12月 30 20:00 pv0095
drwxrwx---. 2 root root 6 12月 30 20:00 pv0096
drwxrwx---. 2 root root 6 12月 30 20:00 pv0097
drwxrwx---. 2 root root 6 12月 30 20:00 pv0098
drwxrwx---. 2 root root 6 12月 30 20:00 pv0099
drwxrwx---. 2 root root 6 12月 30 20:00 pv0100
drwxrwx---. 2 root root 6 12月 30 19:59 registry
# ll pv0055
合計 0
drwx------. 3 chrony root 26 12月 31 15:02 git-data

うん~ん。わからん。
とりあえずroot権限で先に/gitlab-data/sshを作成しておきましょうかね。
# pwd
/var/lib/origin/openshift.local.pv
# cd pv00055
# ll
合計 0
drwx------. 3 chrony root 26 12月 31 15:02 git-data
# mkdir ssh
# ll
合計 0
drwx------. 3 chrony root 26 12月 31 15:02 git-data
drwxr-xr-x. 2 root root 6 12月 31 16:46 ssh

これで同じ手順でDeployしてみます。

GitLab40.png

結論からいうとそうじゃないらしい(笑)
権限かなって事で権限をうまく作れている「git-data」に合わせてみたら…やっぱり違う
# chwon chrony:root ssh

って事で根、一度sshを削除し、フォルダ事chownします。
# rm -rf ssh
# cd ..
# chwon chrony:root pv0055


Thank you for using GitLab Docker Image!
Current version: gitlab-ce=10.3.2-ce.0
Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:
docker exec -it gitlab vim /etc/gitlab/gitlab.rb
docker restart gitlab
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
If this container fails to start due to permission problems try to fix it by executing:
docker exec -it gitlab update-permissions
docker restart gitlab
Preparing services...
Starting services...
Configuring GitLab package...
/opt/gitlab/embedded/bin/runsvdir-start: line 24: ulimit: pending signals: cannot modify limit: Operation not permitted
/opt/gitlab/embedded/bin/runsvdir-start: line 34: ulimit: max user processes: cannot modify limit: Operation not permitted
/opt/gitlab/embedded/bin/runsvdir-start: line 37: /proc/sys/fs/file-max: Read-only file system
gitlab preinstall:
gitlab preinstall: This node does not appear to be running a database
gitlab preinstall: Skipping version check, if you think this is an error exit now
gitlab preinstall:
Configuring GitLab...
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- registry (0.1.0)
- package (0.1.0)
- mattermost (0.1.0)
- consul (0.0.0)
- gitaly (0.1.0)
- runit (0.14.2)
Installing Cookbook Gems:
Compiling Cookbooks...
Recipe: gitlab::default
* directory[/etc/gitlab] action create (skipped due to only_if)
Converging 252 resources
* directory[/etc/gitlab] action create (skipped due to only_if)
* directory[Create /var/opt/gitlab] action create
- change owner from 'git' to 'root'
- change group from 'git' to 'root'
* directory[/opt/gitlab/embedded/etc] action create
- create new directory /opt/gitlab/embedded/etc
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/embedded/etc/gitconfig] action create
- create new file /opt/gitlab/embedded/etc/gitconfig
- update content in file /opt/gitlab/embedded/etc/gitconfig from none to 987af3
--- /opt/gitlab/embedded/etc/gitconfig 2017-12-31 13:05:20.539900179 +0000
+++ /opt/gitlab/embedded/etc/.chef-gitconfig20171231-30-1lrl9fi 2017-12-31 13:05:20.538900173 +0000
@@ -1 +1,11 @@
+[pack]
+ threads = 1
+[receive]
+ fsckObjects = true
+advertisePushOptions = true
+[repack]
+ writeBitmaps = true
+[transfer]
+ hideRefs=^refs/tmp/
+hideRefs=^refs/keep-around/
- change mode from '' to '0755'
Recipe: gitlab::web-server
* account[Webserver user and group] action create
* group[Webserver user and group] action create (up to date)
* user[Webserver user and group] action create (up to date)
(up to date)
Recipe: gitlab::users
* directory[/var/opt/gitlab] action create (up to date)
* account[GitLab user and group] action create
* group[GitLab user and group] action create (up to date)
* user[GitLab user and group] action create (up to date)
(up to date)
* template[/var/opt/gitlab/.gitconfig] action create
- create new file /var/opt/gitlab/.gitconfig
- update content in file /var/opt/gitlab/.gitconfig from none to b3be7a
--- /var/opt/gitlab/.gitconfig 2017-12-31 13:05:20.593900540 +0000
+++ /var/opt/gitlab/.chef-.gitconfig20171231-30-90xaj0 2017-12-31 13:05:20.593900540 +0000
@@ -1 +1,12 @@
+# 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]
+ name = GitLab
+ email = gitlab@gitlab.127.0.0.1.nip.io
+[core]
+ autocrlf = input
+[gc]
+ auto = 0
- change mode from '' to '0644'
- change owner from '' to 'git'
- change group from '' to 'git'
Recipe: gitlab::gitlab-shell
* storage_directory[/gitlab-data/git-data] action create
* ruby_block[directory resource: /gitlab-data/git-data] action run (skipped due to not_if)
(up to date)
* storage_directory[/gitlab-data/git-data/repositories] action create
* ruby_block[directory resource: /gitlab-data/git-data/repositories] action run (skipped due to not_if)
(up to date)
* storage_directory[/var/opt/gitlab/.ssh] action create
* ruby_block[directory resource: /var/opt/gitlab/.ssh] action run
- execute the ruby block directory resource: /var/opt/gitlab/.ssh

* storage_directory[/gitlab-data/ssh] action create
* ruby_block[directory resource: /gitlab-data/ssh] action run
- execute the ruby block directory resource: /gitlab-data/ssh

* directory[/var/log/gitlab/gitlab-shell/] action create
- create new directory /var/log/gitlab/gitlab-shell/
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[/var/opt/gitlab/gitlab-shell] action create
- create new directory /var/opt/gitlab/gitlab-shell
- change mode from '' to '0700'
- change owner from '' to 'git'
* templatesymlink[Create a config.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-shell/config.yml] action create
- create new file /var/opt/gitlab/gitlab-shell/config.yml
- update content in file /var/opt/gitlab/gitlab-shell/config.yml from none to 8762d9
--- /var/opt/gitlab/gitlab-shell/config.yml 2017-12-31 13:05:21.821908734 +0000
+++ /var/opt/gitlab/gitlab-shell/.chef-config.yml20171231-30-1grazr4 2017-12-31 13:05:21.821908734 +0000
@@ -1 +1,42 @@
+# 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 user. git by default
+user: git
+
+# Url to gitlab instance. Used for api calls. Should end with a slash.
+gitlab_url: "http://127.0.0.1:8080 "
+
+http_settings:
+
+# user: someone
+# password: somepass
+# ca_file: /etc/ssl/cert.pem
+# ca_path: /etc/pki/tls/certs
+# self_signed_cert: false
+
+# File used as authorized_keys for gitlab user
+auth_file: "/gitlab-data/ssh/authorized_keys"
+
+# Redis settings used for pushing commit notices to gitlab
+redis:
+ host: gitlab-ce-redis
+ port: 6379
+ database:
+ namespace: resque:gitlab
+
+# Log file.
+# Default is gitlab-shell.log in the root directory.
+log_file: "/var/log/gitlab/gitlab-shell/gitlab-shell.log"
+
+# Log level. INFO by default
+log_level:
+
+# Audit usernames.
+# Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but
+# incurs an extra API call on every gitlab-shell command.
+audit_usernames:
+
+
* link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml

* link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret to /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret
* execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions] action run
- execute /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions
* bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if)
Recipe: gitlab::gitlab-rails
* directory[/var/log/gitlab] action create
- change owner from 'root' to 'git'
* storage_directory[/gitlab-data/shared] action create
* ruby_block[directory resource: /gitlab-data/shared] action run
- execute the ruby block directory resource: /gitlab-data/shared

* storage_directory[/gitlab-data/shared/artifacts] action create
* ruby_block[directory resource: /gitlab-data/shared/artifacts] action run
- execute the ruby block directory resource: /gitlab-data/shared/artifacts

* storage_directory[/gitlab-data/shared/lfs-objects] action create
* ruby_block[directory resource: /gitlab-data/shared/lfs-objects] action run
- execute the ruby block directory resource: /gitlab-data/shared/lfs-objects

* storage_directory[/gitlab-data/uploads] action create
* ruby_block[directory resource: /gitlab-data/uploads] action run
- execute the ruby block directory resource: /gitlab-data/uploads

* storage_directory[/gitlab-data/builds] action create
* ruby_block[directory resource: /gitlab-data/builds] action run
- execute the ruby block directory resource: /gitlab-data/builds

* storage_directory[/gitlab-data/shared/pages] action create
* ruby_block[directory resource: /gitlab-data/shared/pages] action run
- execute the ruby block directory resource: /gitlab-data/shared/pages

* directory[create /var/opt/gitlab/gitlab-rails/etc] action create
- create new directory /var/opt/gitlab/gitlab-rails/etc
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[create /opt/gitlab/etc/gitlab-rails] action create
- create new directory /opt/gitlab/etc/gitlab-rails
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[create /var/opt/gitlab/gitlab-rails/working] action create
- create new directory /var/opt/gitlab/gitlab-rails/working
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[create /var/opt/gitlab/gitlab-rails/tmp] action create
- create new directory /var/opt/gitlab/gitlab-rails/tmp
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create
- create new directory /var/opt/gitlab/gitlab-rails/upgrade-status
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[create /var/log/gitlab/gitlab-rails] action create
- create new directory /var/log/gitlab/gitlab-rails
- change mode from '' to '0700'
- change owner from '' to 'git'
* storage_directory[/var/opt/gitlab/backups] action create
* ruby_block[directory resource: /var/opt/gitlab/backups] action run
- execute the ruby block directory resource: /var/opt/gitlab/backups

* directory[/var/opt/gitlab/gitlab-rails] action create
- change owner from 'root' to 'git'
* directory[/var/opt/gitlab/gitlab-ci] action create
- create new directory /var/opt/gitlab/gitlab-ci
- change mode from '' to '0755'
- change owner from '' to 'git'
* file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
* template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create
- create new file /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc
- update content in file /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc from none to 15c7d9
--- /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc 2017-12-31 13:05:24.621927420 +0000
+++ /opt/gitlab/etc/gitlab-rails/.chef-gitlab-rails-rc20171231-30-eqmok 2017-12-31 13:05:24.621927420 +0000
@@ -1 +1,2 @@
+gitlab_user='git'
* file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
* file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
* templatesymlink[Create a database.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create
- create new file /var/opt/gitlab/gitlab-rails/etc/database.yml
- update content in file /var/opt/gitlab/gitlab-rails/etc/database.yml from none to 184e37
--- /var/opt/gitlab/gitlab-rails/etc/database.yml 2017-12-31 13:05:24.634927506 +0000
+++ /var/opt/gitlab/gitlab-rails/etc/.chef-database.yml20171231-30-yet0tf 2017-12-31 13:05:24.633927499 +0000
@@ -1 +1,22 @@
+# 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`.
+
+production:
+ adapter: postgresql
+ encoding: unicode
+ collation:
+ database: gitlabhq_production
+ pool: 10
+ username: "userKO8"
+ password: "aYIwtABi2AerKDjO"
+ host: "gitlab-ce-postgresql"
+ port: 5432
+ socket:
+ sslmode:
+ sslrootcert:
+ sslca:
+ load_balancing: {"hosts":[]}
+ prepared_statements: false
+ statements_limit: 1000
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml

* templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create
- create new file /var/opt/gitlab/gitlab-rails/etc/secrets.yml
- update content in file /var/opt/gitlab/gitlab-rails/etc/secrets.yml from none to 51c6f2
- suppressed sensitive resource
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml

* templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create
- create new file /var/opt/gitlab/gitlab-rails/etc/resque.yml
- update content in file /var/opt/gitlab/gitlab-rails/etc/resque.yml from none to b51f7f
--- /var/opt/gitlab/gitlab-rails/etc/resque.yml 2017-12-31 13:05:24.702927960 +0000
+++ /var/opt/gitlab/gitlab-rails/etc/.chef-resque.yml20171231-30-sf7n6h 2017-12-31 13:05:24.702927960 +0000
@@ -1 +1,3 @@
+production:
+ url: redis://gitlab-ce-redis/
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml

* templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if)
* templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if)
* templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if)
* templatesymlink[Create a aws.yml and create a symlink to Rails root] action delete
* template[/var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date)
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/aws.yml to /var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date)
(up to date)
* templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete
* template[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb to /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
(up to date)
* templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create
- create new file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
- update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from none to d64c9e
--- /var/opt/gitlab/gitlab-rails/etc/gitlab.yml 2017-12-31 13:05:24.751928287 +0000
+++ /var/opt/gitlab/gitlab-rails/etc/.chef-gitlab.yml20171231-30-fscyhu 2017-12-31 13:05:24.751928287 +0000
@@ -1 +1,475 @@
+# 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`.
+
+production: &base
+ #
+ # 1. GitLab app settings
+ # ==========================
+
+ ## GitLab settings
+ gitlab:
+ ## Web server settings (note: host is the FQDN, do not include http://)
+ host: gitlab.127.0.0.1.nip.io
+ port: 80
+ https: false
+
+ # Uncommment this line below if your ssh host is different from HTTP/HTTPS one
+ # (you'd obviously need to replace ssh.host_example.com with your own host).
+ # Otherwise, ssh host will be set to the `host:` value above
+ ssh_host:
+
+ # WARNING: See config/application.rb under "Relative url support" for the list of
+ # other files that need to be changed for relative url support
+ relative_url_root:
+
+ # Trusted Proxies
+ # Customize if you have GitLab behind a reverse proxy which is running on a different machine.
+ # Add the IP address for your reverse proxy to the list, otherwise users will appear signed in from that address.
+ trusted_proxies:
+
+ # Uncomment and customize if you can't use the default user to run GitLab (default: 'git')
+ user: git
+
+ ## Date & Time settings
+ time_zone:
+
+ ## Email settings
+ # Uncomment and set to false if you need to disable email sending from GitLab (default: true)
+ email_enabled:
+ # Email address used in the "From" field in mails sent by GitLab
+ email_from: gitlab@gitlab.127.0.0.1.nip.io
+ email_display_name:
+ email_reply_to:
+ email_subject_suffix:
+
+ # Email server smtp settings are in [a separate file](initializers/smtp_settings.rb.sample).
+
+ ## User settings
+ default_can_create_group: # default: true
+ username_changing_enabled: # default: true - User can change her username/namespace
+ ## Default theme
+ ## 1 - Graphite
+ ## 2 - Charcoal
+ ## 3 - Green
+ ## 4 - Gray
+ ## 5 - Violet
+ ## 6 - Blue
+ default_theme: # default: 2
+
+ ## Automatic issue closing
+ # If a commit message matches this regular expression, all issues referenced from the matched text will be closed.
+ # This happens when the commit is pushed or merged into the default branch of a project.
+ # When not specified the default issue_closing_pattern as specified below will be used.
+ # Tip: you can test your closing pattern at http://rubular.com
+ issue_closing_pattern:
+
+ ## Default project features settings
+ default_projects_features:
+ issues:
+ merge_requests:
+ wiki:
+ snippets:
+ builds:
+ container_registry:
+
+ ## Webhook settings
+ # Number of seconds to wait for HTTP response after sending webhook HTTP POST request (default: 10)
+ webhook_timeout:
+
+ ## Repository downloads directory
+ # When a user clicks e.g. 'Download zip' on a project, a temporary zip file is created in the following directory.
+ # The default is 'tmp/repositories' relative to the root of the Rails app.
+ repository_downloads_path:
+
+ usage_ping_enabled:
+
+ ## Reply by email
+ # Allow users to comment on issues and merge requests by replying to notification emails.
+ # For documentation on how to set this up, see https://docs.gitlab.com/ce/administration/reply_by_email.html
+ incoming_email:
+ enabled: false
+
+ # The email address including the `%{key}` placeholder that will be replaced to reference the item being replied to.
+ # The placeholder can be omitted but if present, it must appear in the "user" part of the address (before the `@`).
+ address:
+
+ # Email account username
+ # With third party providers, this is usually the full email address.
+ # With self-hosted email servers, this is usually the user part of the email address.
+ user:
+ # Email account password
+ password:
+
+ # IMAP server host
+ host:
+ # IMAP server port
+ port:
+ # Whether the IMAP server uses SSL
+ ssl:
+ # Whether the IMAP server uses StartTLS
+ start_tls:
+
+ # The mailbox where incoming mail will end up. Usually "inbox".
+ mailbox: "inbox"
+ # The IDLE command timeout.
+ idle_timeout:
+
+ ## Build Artifacts
+ artifacts:
+ enabled: true
+ # The location where Build Artifacts are stored (default: shared/artifacts).
+ path: /gitlab-data/shared/artifacts
+ object_store:
+ enabled: false
+ background_upload: true
+ remote_directory: "artifacts"
+ connection: {}
+
+ ## Git LFS
+ lfs:
+ enabled:
+ # The location where LFS objects are stored (default: shared/lfs-objects).
+ storage_path: /gitlab-data/shared/lfs-objects
+ object_store:
+ enabled: false
+ background_upload: true
+ remote_directory: "lfs-objects"
+ connection: {}
+
+ ## Container Registry
+ registry:
+ enabled: false
+ host:
+ port:
+ api_url: # internal address to the registry, will be used by GitLab to directly communicate with API
+ path:
+ key: /var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key
+ issuer: omnibus-gitlab-issuer
+
+ mattermost:
+ enabled: false
+ host:
+
+ ## GitLab Pages
+ pages:
+ enabled: false
+ path: /gitlab-data/shared/pages
+ host:
+ port:
+ https: false
+ external_http: null
+ external_https: null
+ artifacts_server: true
+
+ ## Gravatar
+ ## For Libravatar see: https://docs.gitlab.com/ce/customization/libravatar.html
+ gravatar:
+ # gravatar urls: possible placeholders: %{hash} %{size} %{email}
+ plain_url: # default: http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon
+ ssl_url: # default: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon
+
+ ## Auxiliary jobs
+ # Periodically executed jobs, to self-heal GitLab, do external synchronizations, etc.
+ # Please read here for more information: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
+ cron_jobs:
+ # Flag stuck CI builds as failed
+ stuck_ci_jobs_worker:
+ cron:
+ # Remove expired build artifacts
+ expire_build_artifacts_worker:
+ cron:
+ # Schedule pipelines in the near future
+ pipeline_schedule_worker:
+ cron:
+ # Periodically run 'git fsck' on all repositories. If started more than
+ # once per hour you will have concurrent 'git fsck' jobs.
+ repository_check_worker:
+ cron:
+ # Send admin emails once a week
+ admin_email_worker:
+ cron:
+
+ # Remove outdated repository archives
+ repository_archive_cache_worker:
+ cron:
+
+ ##
+ # GitLab EE only jobs:
+
+ # Snapshot active users statistics
+
+ # In addition to refreshing users when they log in,
+ # periodically refresh LDAP users membership.
+ # NOTE: This will only take effect if LDAP is enabled
+
+ # GitLab LDAP group sync worker
+ # NOTE: This will only take effect if LDAP is enabled
+
+ # GitLab Geo repository sync worker
+ # NOTE: This will only take effect if Geo is enabled
+
+ # GitLab Geo file download dispatch worker
+ # NOTE: This will only take effect if Geo is enabled
+
+ #
+ # 2. GitLab CI settings
+ # ==========================
+
+ gitlab_ci:
+ # Default project notifications settings:
+ #
+ # Send emails only on broken builds (default: true)
+ all_broken_builds:
+ #
+ # Add pusher to recipients list (default: false)
+ add_pusher:
+
+ # The location where build traces are stored (default: builds/). Relative paths are relative to Rails.root
+ builds_path: /gitlab-data/builds
+
+ #
+ # 3. Auth settings
+ # ==========================
+
+ ## LDAP settings
+ # You can inspect a sample of the LDAP users with login access by running:
+ # bundle exec rake gitlab:ldap:check RAILS_ENV=production
+ ldap:
+ enabled: false
+ sync_time:
+ host:
+ port:
+ uid:
+ method: # "tls" or "ssl" or "plain"
+ bind_dn:
+ password:
+ active_directory:
+ allow_username_or_email_login:
+ base:
+ user_filter:
+
+ ## EE only
+ group_base:
+ admin_group:
+ sync_ssh_keys:
+ sync_time:
+
+ ## Kerberos settings
+ kerberos:
+ # Allow the HTTP Negotiate authentication method for Git clients
+ enabled:
+
+ # Kerberos 5 keytab file. The keytab file must be readable by the GitLab user,
+ # and should be different from other keytabs in the system.
+ # (default: use default keytab from Krb5 config)
+ keytab:
+
+ # The Kerberos service name to be used by GitLab.
+ # (default: accept any service name in keytab file)
+ service_principal_name:
+
+ # Dedicated port: Git before 2.4 does not fall back to Basic authentication if Negotiate fails.
+ # To support both Basic and Negotiate methods with older versions of Git, configure
+ # nginx to proxy GitLab on an extra port (e.g. 8443) and uncomment the following lines
+ # to dedicate this port to Kerberos authentication. (default: false)
+ use_dedicated_port:
+ port:
+ https:
+
+
+ ## OmniAuth settings
+ omniauth:
+ # Allow login via Twitter, Google, etc. using OmniAuth providers
+ enabled: false
+
+ # Uncomment this to automatically sign in with a specific omniauth provider's without
+ # showing GitLab's sign-in page (default: show the GitLab sign-in page)
+ auto_sign_in_with_provider:
+
+ # Sync user's email address from the specified Omniauth provider every time the user logs
+ # in (default: nil). And consequently make this field read-only.
+
+ # Sync user's profile from the specified Omniauth providers every time the user logs in (default: empty).
+ # Define the allowed providers using an array, e.g. ["cas3", "saml", "twitter"],
+ # or as true/false to allow all providers or none.
+ # sync_profile_from_provider: []
+
+ # Select which info to sync from the providers above. (default: email).
+ # Define the synced profile info using an array. Available options are "name", "email" and "location"
+ # e.g. ["name", "email", "location"] or as true to sync all available.
+ # This consequently will make the selected attributes read-only.
+ # sync_profile_attributes: true
+
+ # CAUTION!
+ # This allows users to login without having a user account first. Define the allowed
+ # providers using an array, e.g. ["saml", "twitter"]
+ # User accounts will be created automatically when authentication was successful.
+ allow_single_sign_on: ["saml"]
+
+ # Locks down those users until they have been cleared by the admin (default: true).
+ block_auto_created_users:
+ # Look up new users in LDAP servers. If a match is found (same uid), automatically
+ # link the omniauth identity with the LDAP account. (default: false)
+ auto_link_ldap_user:
+
+ # Allow users with existing accounts to login and auto link their account via SAML
+ # login, without having to do a manual login first and manually add SAML
+ # (default: false)
+ auto_link_saml_user: null
+
+ # Set different Omniauth providers as external so that all users creating accounts
+ # via these providers will not be able to have access to internal projects. You
+ # will need to use the full name of the provider, like `google_oauth2` for Google.
+ # Refer to the examples below for the full names of the supported providers.
+ # (default: [])
+ external_providers: null
+
+ ## Auth providers
+ # Uncomment the following lines and fill in the data of the auth provider you want to use
+ # If your favorite auth provider is not listed you can use others:
+ # see https://github.com/gitlabhq/gitlab-public-wiki/wiki/Custom-omniauth-provider-configurations
+ # The 'app_id' and 'app_secret' parameters are always passed as the first two
+ # arguments, followed by optional 'args' which can be either a hash or an array.
+ # Documentation for this is available at https://docs.gitlab.com/ce/integration/omniauth.html
+ providers:
+ # - { name: 'google_oauth2', app_id: 'YOUR APP ID',
+ # app_secret: 'YOUR APP SECRET',
+ # args: { access_type: 'offline', approval_prompt: '' } }
+ # - { name: 'twitter', app_id: 'YOUR APP ID',
+ # app_secret: 'YOUR APP SECRET'}
+ # - { name: 'github', app_id: 'YOUR APP ID',
+ # app_secret: 'YOUR APP SECRET',
+ # args: { scope: 'user:email' } }
+
+ # Shared file storage settings
+ shared:
+ path: /gitlab-data/shared
+
+ # Gitaly settings
+ # This setting controls whether GitLab uses Gitaly
+ # Eventually Gitaly use will become mandatory and
+ # this option will disappear.
+ gitaly:
+ client_path: /opt/gitlab/embedded/bin
+ token: ""
+
+
+ #
+ # 4. Advanced settings
+ # ==========================
+
+ ## Repositories settings
+ repositories:
+ # Paths where repositories can be stored. Give the canonicalized absolute pathname.
+ # NOTE: REPOS PATHS MUST NOT CONTAIN ANY SYMLINK!!!
+ storages: {"default":{"path":"/gitlab-data/git-data/repositories","gitaly_address":"unix:/var/opt/gitlab/gitaly/gitaly.socket"}}
+
+ ## Backup settings
+ backup:
+ path: "/var/opt/gitlab/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
+ archive_permissions: # Permissions for the resulting backup.tar file (default: 0600)
+ keep_time: # default: 0 (forever) (in seconds)
+ pg_schema: # default: nil, it means that all schemas will be backed up
+ upload:
+ # Fog storage connection settings, see http://fog.io/storage/ .
+ connection:
+ # The remote 'directory' to store your backups. For S3, this would be the bucket name.
+ remote_directory:
+ multipart_chunk_size:
+ encryption:
+ storage_class:
+
+ ## GitLab Shell settings
+ gitlab_shell:
+ path: /opt/gitlab/embedded/service/gitlab-shell/
+ hooks_path: /opt/gitlab/embedded/service/gitlab-shell/hooks/
+
+ # Git over HTTP
+ upload_pack:
+ receive_pack:
+
+ # If you use non-standard ssh port you need to specify it
+ ssh_port:
+
+ # Git import/fetch timeout
+ git_timeout: 10800
+
+ ## Git settings
+ # CAUTION!
+ # Use the default values unless you really know what you are doing
+ git:
+ bin_path: /opt/gitlab/embedded/bin/git
+
+ monitoring:
+ # Time between sampling of unicorn socket metrics, in seconds
+ unicorn_sampler_interval: 10
+ # IP whitelist controlling access to monitoring endpoints
+ ip_whitelist:
+ - 127.0.0.0/8
+ # Sidekiq exporter is webserver built in to Sidekiq to expose Prometheus metrics
+ sidekiq_exporter:
+ enabled: true
+ address: 127.0.0.1
+ port: 8082
+
+ #
+ # 5. Extra customization
+ # ==========================
+
+ extra:
+
+
+ rack_attack:
+ git_basic_auth:
+
+
+development:
+ <<: *base
+
+test:
+ <<: *base
+ gravatar:
+ enabled: true
+ gitlab:
+ host: localhost
+ port: 80
+
+ # When you run tests we clone and setup gitlab-shell
+ # In order to setup it correctly you need to specify
+ # your system username you use to run GitLab
+ # user: YOUR_USERNAME
+ repositories:
+ storages:
+ default: { "path": "tmp/tests/repositories/" }
+ gitlab_shell:
+ path: tmp/tests/gitlab-shell/
+ hooks_path: tmp/tests/gitlab-shell/hooks/
+ issues_tracker:
+ redmine:
+ title: "Redmine"
+ project_url: "http://redmine/projects/:issues_tracker_id "
+ issues_url: "http://redmine/:project_id/:issues_tracker_id/:id "
+ new_issue_url: "http://redmine/projects/:issues_tracker_id/issues/new "
+ jira:
+ title: "JIRA"
+ url: https://samplecompany.example.net
+ project_key: PROJECT
+ ldap:
+ enabled: false
+ servers:
+ main:
+ label: ldap
+ host: 127.0.0.1
+ port: 3890
+ uid: 'uid'
+ method: 'plain' # "tls" or "ssl" or "plain"
+ base: 'dc=example,dc=com'
+ user_filter: ''
+ group_base: 'ou=groups,dc=example,dc=com'
+ admin_group: ''
+ sync_ssh_keys: false
+
+staging:
+ <<: *base
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml

* templatesymlink[Create a rack_attack.rb and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create
- create new file /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb
- update content in file /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb from none to a61b95
--- /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb 2017-12-31 13:05:24.798928601 +0000
+++ /var/opt/gitlab/gitlab-rails/etc/.chef-rack_attack.rb20171231-30-1yq70vu 2017-12-31 13:05:24.797928594 +0000
@@ -1 +1,32 @@
+# 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`.
+
+# 1. Rename this file to rack_attack.rb
+# 2. Review the paths_to_be_protected and add any other path you need protecting
+#
+
+paths_to_be_protected = [
+ "#{Rails.application.config.relative_url_root}/users/password",
+ "#{Rails.application.config.relative_url_root}/users/sign_in",
+ "#{Rails.application.config.relative_url_root}/api/#{API::API.version}/session.json",
+ "#{Rails.application.config.relative_url_root}/api/#{API::API.version}/session",
+ "#{Rails.application.config.relative_url_root}/users",
+ "#{Rails.application.config.relative_url_root}/users/confirmation",
+ "#{Rails.application.config.relative_url_root}/unsubscribes/",
+ "#{Rails.application.config.relative_url_root}/import/github/personal_access_token",
+]
+
+# Create one big regular expression that matches strings starting with any of
+# the paths_to_be_protected.
+paths_regex = Regexp.union(paths_to_be_protected.map { |path| /\A#{Regexp.escape(path)}/ })
+rack_attack_enabled = Gitlab.config.rack_attack.git_basic_auth['enabled']
+
+unless Rails.env.test? || !rack_attack_enabled
+ Rack::Attack.throttle('protected paths', limit: 10, period: 60.seconds) do |req|
+ if req.post? && req.path =~ paths_regex
+ req.ip
+ end
+ end
+end
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb

* templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create
- create new file /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret
- update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret from none to 4582bf
- suppressed sensitive resource
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret

* templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create
- create new file /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret
- update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret from none to 2e5ee9
- suppressed sensitive resource
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret

* env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
* directory[/opt/gitlab/etc/gitlab-rails/env] action create
- create new directory /opt/gitlab/etc/gitlab-rails/env
* file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/HOME
- update content in file /opt/gitlab/etc/gitlab-rails/env/HOME from none to 205bb9
--- /opt/gitlab/etc/gitlab-rails/env/HOME 2017-12-31 13:05:24.870929081 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-HOME20171231-30-kcl7qg 2017-12-31 13:05:24.870929081 +0000
@@ -1 +1,2 @@
+/var/opt/gitlab
* file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV
- update content in file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV from none to ab8e18
--- /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV 2017-12-31 13:05:24.874929108 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-RAILS_ENV20171231-30-lto8xg 2017-12-31 13:05:24.874929108 +0000
@@ -1 +1,2 @@
+production
* file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD
- update content in file /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD from none to f79114
--- /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD 2017-12-31 13:05:24.879929141 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-LD_PRELOAD20171231-30-1qnyl2i 2017-12-31 13:05:24.879929141 +0000
@@ -1 +1,2 @@
+/opt/gitlab/embedded/lib/libjemalloc.so
* file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS
- update content in file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS from none to 6cce36
--- /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS 2017-12-31 13:05:24.888929201 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-SIDEKIQ_MEMORY_KILLER_MAX_RSS20171231-30-1b8wha3 2017-12-31 13:05:24.888929201 +0000
@@ -1 +1,2 @@
+1000000
* file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE
- update content in file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE from none to 28d586
--- /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE 2017-12-31 13:05:24.893929235 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-BUNDLE_GEMFILE20171231-30-1u563pd 2017-12-31 13:05:24.891929221 +0000
@@ -1 +1,2 @@
+/opt/gitlab/embedded/service/gitlab-rails/Gemfile
* file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/PATH
- update content in file /opt/gitlab/etc/gitlab-rails/env/PATH from none to d5dc07
--- /opt/gitlab/etc/gitlab-rails/env/PATH 2017-12-31 13:05:24.901929288 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-PATH20171231-30-ccy1tm 2017-12-31 13:05:24.901929288 +0000
@@ -1 +1,2 @@
+/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin
* file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/ICU_DATA
- update content in file /opt/gitlab/etc/gitlab-rails/env/ICU_DATA from none to a04260
--- /opt/gitlab/etc/gitlab-rails/env/ICU_DATA 2017-12-31 13:05:24.905929315 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-ICU_DATA20171231-30-1twb2zl 2017-12-31 13:05:24.905929315 +0000
@@ -1 +1,2 @@
+/opt/gitlab/embedded/share/icu/current
* file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH
- update content in file /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH from none to 990cc2
--- /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH 2017-12-31 13:05:24.908929334 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-PYTHONPATH20171231-30-1lvkh7n 2017-12-31 13:05:24.907929328 +0000
@@ -1 +1,2 @@
+/opt/gitlab/embedded/lib/python3.4/site-packages
* file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create
- create new file /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME
- update content in file /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME from none to 75081b
--- /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME 2017-12-31 13:05:24.912929362 +0000
+++ /opt/gitlab/etc/gitlab-rails/env/.chef-EXECJS_RUNTIME20171231-30-1q1v57f 2017-12-31 13:05:24.911929355 +0000
@@ -1 +1,2 @@
+Disabled

* link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/tmp to /var/opt/gitlab/gitlab-rails/tmp
* link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/public/uploads to /gitlab-data/uploads
* link[/opt/gitlab/embedded/service/gitlab-rails/log] action create
- create symlink at /opt/gitlab/embedded/service/gitlab-rails/log to /var/log/gitlab/gitlab-rails
* link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create
- create symlink at /var/log/gitlab/gitlab-rails/sidekiq.log to /var/log/gitlab/sidekiq/current
* file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create
- change owner from 'root' to 'git'
* remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create
- create new file /var/opt/gitlab/gitlab-rails/VERSION
- update content in file /var/opt/gitlab/gitlab-rails/VERSION from none to 7907dc
--- /var/opt/gitlab/gitlab-rails/VERSION 2017-12-31 13:05:24.946929588 +0000
+++ /var/opt/gitlab/gitlab-rails/.chef-VERSION20171231-30-vr3q0q 2017-12-31 13:05:24.944929575 +0000
@@ -1 +1,2 @@
+10.3.2
* remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create
- create new file /var/opt/gitlab/gitlab-rails/REVISION
- update content in file /var/opt/gitlab/gitlab-rails/REVISION from none to 879fc5
--- /var/opt/gitlab/gitlab-rails/REVISION 2017-12-31 13:05:24.953929635 +0000
+++ /var/opt/gitlab/gitlab-rails/.chef-REVISION20171231-30-n0haru 2017-12-31 13:05:24.952929628 +0000
@@ -1 +1,2 @@
+5fbc5f2
* file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create
- create new file /var/opt/gitlab/gitlab-rails/RUBY_VERSION
- update content in file /var/opt/gitlab/gitlab-rails/RUBY_VERSION from none to b44c92
--- /var/opt/gitlab/gitlab-rails/RUBY_VERSION 2017-12-31 13:05:24.957929661 +0000
+++ /var/opt/gitlab/gitlab-rails/.chef-RUBY_VERSION20171231-30-1nxlsao 2017-12-31 13:05:24.955929648 +0000
@@ -1 +1,2 @@
+ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-linux]
* execute[chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public] action run
- execute chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public
* execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
* file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
Recipe: gitlab::add_trusted_certs
* directory[/etc/gitlab/trusted-certs] action create
- create new directory /etc/gitlab/trusted-certs
- change mode from '' to '0755'
* directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
* file[/opt/gitlab/embedded/ssl/certs/README] action create
- create new file /opt/gitlab/embedded/ssl/certs/README
- update content in file /opt/gitlab/embedded/ssl/certs/README from none to 623059
--- /opt/gitlab/embedded/ssl/certs/README 2017-12-31 13:05:25.619934079 +0000
+++ /opt/gitlab/embedded/ssl/certs/.chef-README20171231-30-ll1pnb 2017-12-31 13:05:25.619934079 +0000
@@ -1 +1,4 @@
+This directory is managed by omnibus-gitlab.
+ Any file placed in this directory will be ignored
+. Place certificates in /etc/gitlab/trusted-certs.
- change mode from '' to '0644'
* ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run
* Moving existing certificates found in /opt/gitlab/embedded/ssl/certs
* Symlinking existing certificates found in /etc/gitlab/trusted-certs
- execute the ruby block Move existing certs and link to /opt/gitlab/embedded/ssl/certs
Recipe: gitlab::default
* service[create a temporary unicorn service] action nothing (skipped due to action :nothing)
* service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
* service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
Recipe: gitlab::redis_disable
* link[/opt/gitlab/service/redis] action delete (up to date)
* directory[/opt/gitlab/sv/redis] action delete (up to date)
Recipe: gitlab::postgresql_disable
* link[/opt/gitlab/service/postgresql] action delete (up to date)
* directory[/opt/gitlab/sv/postgresql] action delete (up to date)
Recipe: gitlab::database_migrations
* bash[migrate gitlab-rails database] action run
[execute] -- enable_extension("plpgsql")
-> 0.0294s
-- enable_extension("pg_trgm")
-> 0.0040s
-- create_table("abuse_reports", {:force=>:cascade})
-> 0.0685s
-- create_table("appearances", {:force=>:cascade})
-> 0.0097s
-- create_table("application_settings", {:force=>:cascade})
-> 0.1906s
-- create_table("audit_events", {:force=>:cascade})
-> 0.0384s
-- add_index("audit_events", ["entity_id", "entity_type"], {:name=>"index_audit_events_on_entity_id_and_entity_type", :using=>:btree})
-> 0.0094s
-- create_table("award_emoji", {:force=>:cascade})
-> 0.0149s
-- add_index("award_emoji", ["awardable_type", "awardable_id"], {:name=>"index_award_emoji_on_awardable_type_and_awardable_id", :using=>:btree})
-> 0.0043s
-- add_index("award_emoji", ["user_id", "name"], {:name=>"index_award_emoji_on_user_id_and_name", :using=>:btree})
-> 0.0104s
-- create_table("boards", {:force=>:cascade})
-> 0.0259s
-- add_index("boards", ["project_id"], {:name=>"index_boards_on_project_id", :using=>:btree})
-> 0.0076s
-- create_table("broadcast_messages", {:force=>:cascade})
-> 0.0269s
-- add_index("broadcast_messages", ["starts_at", "ends_at", "id"], {:name=>"index_broadcast_messages_on_starts_at_and_ends_at_and_id", :using=>:btree})
-> 0.0072s
-- create_table("chat_names", {:force=>:cascade})
-> 0.0228s
-- add_index("chat_names", ["service_id", "team_id", "chat_id"], {:name=>"index_chat_names_on_service_id_and_team_id_and_chat_id", :unique=>true, :using=>:btree})
-> 0.0103s
-- add_index("chat_names", ["user_id", "service_id"], {:name=>"index_chat_names_on_user_id_and_service_id", :unique=>true, :using=>:btree})
-> 0.0083s
-- create_table("chat_teams", {:force=>:cascade})
-> 0.0182s
-- add_index("chat_teams", ["namespace_id"], {:name=>"index_chat_teams_on_namespace_id", :unique=>true, :using=>:btree})
-> 0.0066s
-- create_table("ci_build_trace_section_names", {:force=>:cascade})
-> 0.0116s
-- add_index("ci_build_trace_section_names", ["project_id", "name"], {:name=>"index_ci_build_trace_section_names_on_project_id_and_name", :unique=>true, :using=>:btree})
-> 0.0043s
-- create_table("ci_build_trace_sections", {:force=>:cascade})
-> 0.0054s
-- add_index("ci_build_trace_sections", ["build_id", "section_name_id"], {:name=>"index_ci_build_trace_sections_on_build_id_and_section_name_id", :unique=>true, :using=>:btree})
-> 0.0227s
-- add_index("ci_build_trace_sections", ["project_id"], {:name=>"index_ci_build_trace_sections_on_project_id", :using=>:btree})
-> 0.0063s
-- create_table("ci_builds", {:force=>:cascade})
-> 0.0121s
-- add_index("ci_builds", ["auto_canceled_by_id"], {:name=>"index_ci_builds_on_auto_canceled_by_id", :using=>:btree})
-> 0.0049s
-- add_index("ci_builds", ["commit_id", "stage_idx", "created_at"], {:name=>"index_ci_builds_on_commit_id_and_stage_idx_and_created_at", :using=>:btree})
-> 0.0044s
-- add_index("ci_builds", ["commit_id", "status", "type"], {:name=>"index_ci_builds_on_commit_id_and_status_and_type", :using=>:btree})
-> 0.0084s
-- add_index("ci_builds", ["commit_id", "type", "name", "ref"], {:name=>"index_ci_builds_on_commit_id_and_type_and_name_and_ref", :using=>:btree})
-> 0.0068s
-- add_index("ci_builds", ["commit_id", "type", "ref"], {:name=>"index_ci_builds_on_commit_id_and_type_and_ref", :using=>:btree})
-> 0.0070s
-- add_index("ci_builds", ["project_id", "id"], {:name=>"index_ci_builds_on_project_id_and_id", :using=>:btree})
-> 0.0060s
-- add_index("ci_builds", ["protected"], {:name=>"index_ci_builds_on_protected", :using=>:btree})
-> 0.0078s
-- add_index("ci_builds", ["runner_id"], {:name=>"index_ci_builds_on_runner_id", :using=>:btree})
-> 0.0079s
-- add_index("ci_builds", ["stage_id"], {:name=>"index_ci_builds_on_stage_id", :using=>:btree})
-> 0.0082s
-- add_index("ci_builds", ["status", "type", "runner_id"], {:name=>"index_ci_builds_on_status_and_type_and_runner_id", :using=>:btree})
-> 0.0092s
-- add_index("ci_builds", ["status"], {:name=>"index_ci_builds_on_status", :using=>:btree})
-> 0.0068s
-- add_index("ci_builds", ["token"], {:name=>"index_ci_builds_on_token", :unique=>true, :using=>:btree})
-> 0.0052s
-- add_index("ci_builds", ["updated_at"], {:name=>"index_ci_builds_on_updated_at", :using=>:btree})
-> 0.0052s
-- add_index("ci_builds", ["user_id"], {:name=>"index_ci_builds_on_user_id", :using=>:btree})
-> 0.0047s
-- create_table("ci_group_variables", {:force=>:cascade})
-> 0.0126s
-- add_index("ci_group_variables", ["group_id", "key"], {:name=>"index_ci_group_variables_on_group_id_and_key", :unique=>true, :using=>:btree})
-> 0.0054s
-- create_table("ci_job_artifacts", {:force=>:cascade})
-> 0.0142s
-- add_index("ci_job_artifacts", ["job_id", "file_type"], {:name=>"index_ci_job_artifacts_on_job_id_and_file_type", :unique=>true, :using=>:btree})
-> 0.0100s
-- add_index("ci_job_artifacts", ["project_id"], {:name=>"index_ci_job_artifacts_on_project_id", :using=>:btree})
-> 0.0124s
-- create_table("ci_pipeline_schedule_variables", {:force=>:cascade})
-> 0.0464s
-- add_index("ci_pipeline_schedule_variables", ["pipeline_schedule_id", "key"], {:name=>"index_ci_pipeline_schedule_variables_on_schedule_id_and_key", :unique=>true, :using=>:btree})
-> 0.0167s
-- create_table("ci_pipeline_schedules", {:force=>:cascade})
-> 0.0245s
-- add_index("ci_pipeline_schedules", ["next_run_at", "active"], {:name=>"index_ci_pipeline_schedules_on_next_run_at_and_active", :using=>:btree})
-> 0.0075s
-- add_index("ci_pipeline_schedules", ["project_id"], {:name=>"index_ci_pipeline_schedules_on_project_id", :using=>:btree})
-> 0.0068s
-- create_table("ci_pipeline_variables", {:force=>:cascade})
-> 0.0184s
-- add_index("ci_pipeline_variables", ["pipeline_id", "key"], {:name=>"index_ci_pipeline_variables_on_pipeline_id_and_key", :unique=>true, :using=>:btree})
-> 0.0103s
-- create_table("ci_pipelines", {:force=>:cascade})
-> 0.0155s
-- add_index("ci_pipelines", ["auto_canceled_by_id"], {:name=>"index_ci_pipelines_on_auto_canceled_by_id", :using=>:btree})
-> 0.0064s
-- add_index("ci_pipelines", ["pipeline_schedule_id"], {:name=>"index_ci_pipelines_on_pipeline_schedule_id", :using=>:btree})
-> 0.0159s
-- add_index("ci_pipelines", ["project_id", "ref", "status", "id"], {:name=>"index_ci_pipelines_on_project_id_and_ref_and_status_and_id", :using=>:btree})
-> 0.0128s
-- add_index("ci_pipelines", ["project_id", "sha"], {:name=>"index_ci_pipelines_on_project_id_and_sha", :using=>:btree})
-> 0.0276s
-- add_index("ci_pipelines", ["project_id"], {:name=>"index_ci_pipelines_on_project_id", :using=>:btree})
-> 0.0228s
-- add_index("ci_pipelines", ["status"], {:name=>"index_ci_pipelines_on_status", :using=>:btree})
-> 0.0105s
-- add_index("ci_pipelines", ["user_id"], {:name=>"index_ci_pipelines_on_user_id", :using=>:btree})
-> 0.0112s
-- create_table("ci_runner_projects", {:force=>:cascade})
-> 0.0099s
-- add_index("ci_runner_projects", ["project_id"], {:name=>"index_ci_runner_projects_on_project_id", :using=>:btree})
-> 0.0146s
-- add_index("ci_runner_projects", ["runner_id"], {:name=>"index_ci_runner_projects_on_runner_id", :using=>:btree})
-> 0.0100s
-- create_table("ci_runners", {:force=>:cascade})
-> 0.0242s
-- add_index("ci_runners", ["contacted_at"], {:name=>"index_ci_runners_on_contacted_at", :using=>:btree})
-> 0.0140s
-- add_index("ci_runners", ["is_shared"], {:name=>"index_ci_runners_on_is_shared", :using=>:btree})
-> 0.0104s
-- add_index("ci_runners", ["locked"], {:name=>"index_ci_runners_on_locked", :using=>:btree})
-> 0.0130s
-- add_index("ci_runners", ["token"], {:name=>"index_ci_runners_on_token", :using=>:btree})
-> 0.0110s
-- create_table("ci_stages", {:force=>:cascade})
-> 0.0249s
-- add_index("ci_stages", ["pipeline_id", "name"], {:name=>"index_ci_stages_on_pipeline_id_and_name", :using=>:btree})
-> 0.0083s
-- add_index("ci_stages", ["pipeline_id"], {:name=>"index_ci_stages_on_pipeline_id", :using=>:btree})
-> 0.0064s
-- add_index("ci_stages", ["project_id"], {:name=>"index_ci_stages_on_project_id", :using=>:btree})
-> 0.0057s
-- create_table("ci_trigger_requests", {:force=>:cascade})
-> 0.0346s
-- add_index("ci_trigger_requests", ["commit_id"], {:name=>"index_ci_trigger_requests_on_commit_id", :using=>:btree})
-> 0.0133s
-- create_table("ci_triggers", {:force=>:cascade})
-> 0.0182s
-- add_index("ci_triggers", ["project_id"], {:name=>"index_ci_triggers_on_project_id", :using=>:btree})
-> 0.0116s
-- create_table("ci_variables", {:force=>:cascade})
-> 0.0305s
-- add_index("ci_variables", ["project_id", "key", "environment_scope"], {:name=>"index_ci_variables_on_project_id_and_key_and_environment_scope", :unique=>true, :using=>:btree})
-> 0.0119s
-- create_table("cluster_platforms_kubernetes", {:force=>:cascade})
-> 0.0560s
-- add_index("cluster_platforms_kubernetes", ["cluster_id"], {:name=>"index_cluster_platforms_kubernetes_on_cluster_id", :unique=>true, :using=>:btree})
-> 0.0120s
-- create_table("cluster_projects", {:force=>:cascade})
-> 0.0208s
-- add_index("cluster_projects", ["cluster_id"], {:name=>"index_cluster_projects_on_cluster_id", :using=>:btree})
-> 0.0168s
-- add_index("cluster_projects", ["project_id"], {:name=>"index_cluster_projects_on_project_id", :using=>:btree})
-> 0.0078s
-- create_table("cluster_providers_gcp", {:force=>:cascade})
-> 0.0468s
-- add_index("cluster_providers_gcp", ["cluster_id"], {:name=>"index_cluster_providers_gcp_on_cluster_id", :unique=>true, :using=>:btree})
-> 0.0144s
-- create_table("clusters", {:force=>:cascade})
-> 0.0403s
-- add_index("clusters", ["enabled"], {:name=>"index_clusters_on_enabled", :using=>:btree})
-> 0.0193s
-- add_index("clusters", ["user_id"], {:name=>"index_clusters_on_user_id", :using=>:btree})
-> 0.0482s
-- create_table("clusters_applications_helm", {:force=>:cascade})
-> 0.0337s
-- create_table("clusters_applications_ingress", {:force=>:cascade})
-> 0.0484s
-- create_table("container_repositories", {:force=>:cascade})
-> 0.0479s
-- add_index("container_repositories", ["project_id", "name"], {:name=>"index_container_repositories_on_project_id_and_name", :unique=>true, :using=>:btree})
-> 0.0201s
-- add_index("container_repositories", ["project_id"], {:name=>"index_container_repositories_on_project_id", :using=>:btree})
-> 0.0204s
-- create_table("conversational_development_index_metrics", {:force=>:cascade})
-> 0.0585s
-- create_table("deploy_keys_projects", {:force=>:cascade})
-> 0.0280s
-- add_index("deploy_keys_projects", ["project_id"], {:name=>"index_deploy_keys_projects_on_project_id", :using=>:btree})
-> 0.0418s
-- create_table("deployments", {:force=>:cascade})
-> 0.0253s
-- add_index("deployments", ["created_at"], {:name=>"index_deployments_on_created_at", :using=>:btree})
-> 0.0110s
-- add_index("deployments", ["environment_id", "id"], {:name=>"index_deployments_on_environment_id_and_id", :using=>:btree})
-> 0.0099s
-- add_index("deployments", ["environment_id", "iid", "project_id"], {:name=>"index_deployments_on_environment_id_and_iid_and_project_id", :using=>:btree})
-> 0.0077s
-- add_index("deployments", ["project_id", "iid"], {:name=>"index_deployments_on_project_id_and_iid", :unique=>true, :using=>:btree})
-> 0.0141s
-- create_table("emails", {:force=>:cascade})
-> 0.0207s
-- add_index("emails", ["confirmation_token"], {:name=>"index_emails_on_confirmation_token", :unique=>true, :using=>:btree})
-> 0.0072s
-- add_index("emails", ["email"], {:name=>"index_emails_on_email", :unique=>true, :using=>:btree})
-> 0.0259s
-- add_index("emails", ["user_id"], {:name=>"index_emails_on_user_id", :using=>:btree})
-> 0.0083s
-- create_table("environments", {:force=>:cascade})
-> 0.0189s
-- add_index("environments", ["project_id", "name"], {:name=>"index_environments_on_project_id_and_name", :unique=>true, :using=>:btree})
-> 0.0096s
-- add_index("environments", ["project_id", "slug"], {:name=>"index_environments_on_project_id_and_slug", :unique=>true, :using=>:btree})
-> 0.0162s
-- create_table("events", {:force=>:cascade})
-> 0.0288s
-- add_index("events", ["action"], {:name=>"index_events_on_action", :using=>:btree})
-> 0.0055s
-- add_index("events", ["author_id"], {:name=>"index_events_on_author_id", :using=>:btree})
-> 0.0083s
-- add_index("events", ["project_id", "id"], {:name=>"index_events_on_project_id_and_id", :using=>:btree})
-> 0.0098s
-- add_index("events", ["target_type", "target_id"], {:name=>"index_events_on_target_type_and_target_id", :using=>:btree})
-> 0.0098s
-- create_table("feature_gates", {:force=>:cascade})
-> 0.0160s
-- add_index("feature_gates", ["feature_key", "key", "value"], {:name=>"index_feature_gates_on_feature_key_and_key_and_value", :unique=>true, :using=>:btree})
-> 0.0122s
-- create_table("features", {:force=>:cascade})
-> 0.0154s
-- add_index("features", ["key"], {:name=>"index_features_on_key", :unique=>true, :using=>:btree})
-> 0.0131s
-- create_table("fork_network_members", {:force=>:cascade})
-> 0.0093s
-- add_index("fork_network_members", ["fork_network_id"], {:name=>"index_fork_network_members_on_fork_network_id", :using=>:btree})
-> 0.0135s
-- add_index("fork_network_members", ["project_id"], {:name=>"index_fork_network_members_on_project_id", :unique=>true, :using=>:btree})
-> 0.0073s
-- create_table("fork_networks", {:force=>:cascade})
-> 0.0387s
-- add_index("fork_networks", ["root_project_id"], {:name=>"index_fork_networks_on_root_project_id", :unique=>true, :using=>:btree})
-> 0.0231s
-- create_table("forked_project_links", {:force=>:cascade})
-> 0.0330s
-- add_index("forked_project_links", ["forked_to_project_id"], {:name=>"index_forked_project_links_on_forked_to_project_id", :unique=>true, :using=>:btree})
-> 0.0073s
-- create_table("gcp_clusters", {:force=>:cascade})
-> 0.0303s
-- add_index("gcp_clusters", ["project_id"], {:name=>"index_gcp_clusters_on_project_id", :unique=>true, :using=>:btree})
-> 0.0084s
-- create_table("gpg_key_subkeys", {:force=>:cascade})
-> 0.0203s
-- add_index("gpg_key_subkeys", ["fingerprint"], {:name=>"index_gpg_key_subkeys_on_fingerprint", :unique=>true, :using=>:btree})
-> 0.0069s
-- add_index("gpg_key_subkeys", ["gpg_key_id"], {:name=>"index_gpg_key_subkeys_on_gpg_key_id", :using=>:btree})
-> 0.0061s
-- add_index("gpg_key_subkeys", ["keyid"], {:name=>"index_gpg_key_subkeys_on_keyid", :unique=>true, :using=>:btree})
-> 0.0047s
-- create_table("gpg_keys", {:force=>:cascade})
-> 0.0183s
-- add_index("gpg_keys", ["fingerprint"], {:name=>"index_gpg_keys_on_fingerprint", :unique=>true, :using=>:btree})
-> 0.0051s
-- add_index("gpg_keys", ["primary_keyid"], {:name=>"index_gpg_keys_on_primary_keyid", :unique=>true, :using=>:btree})
-> 0.0061s
-- add_index("gpg_keys", ["user_id"], {:name=>"index_gpg_keys_on_user_id", :using=>:btree})
-> 0.0042s
-- create_table("gpg_signatures", {:force=>:cascade})
-> 0.0098s
-- add_index("gpg_signatures", ["commit_sha"], {:name=>"index_gpg_signatures_on_commit_sha", :unique=>true, :using=>:btree})
-> 0.0047s
-- add_index("gpg_signatures", ["gpg_key_id"], {:name=>"index_gpg_signatures_on_gpg_key_id", :using=>:btree})
-> 0.0057s
-- add_index("gpg_signatures", ["gpg_key_primary_keyid"], {:name=>"index_gpg_signatures_on_gpg_key_primary_keyid", :using=>:btree})
-> 0.0071s
-- add_index("gpg_signatures", ["gpg_key_subkey_id"], {:name=>"index_gpg_signatures_on_gpg_key_subkey_id", :using=>:btree})
-> 0.0054s
-- add_index("gpg_signatures", ["project_id"], {:name=>"index_gpg_signatures_on_project_id", :using=>:btree})
-> 0.0053s
-- create_table("group_custom_attributes", {:force=>:cascade})
-> 0.0179s
-- add_index("group_custom_attributes", ["group_id", "key"], {:name=>"index_group_custom_attributes_on_group_id_and_key", :unique=>true, :using=>:btree})
-> 0.0170s
-- add_index("group_custom_attributes", ["key", "value"], {:name=>"index_group_custom_attributes_on_key_and_value", :using=>:btree})
-> 0.0114s
-- create_table("identities", {:force=>:cascade})
-> 0.0188s
-- add_index("identities", ["user_id"], {:name=>"index_identities_on_user_id", :using=>:btree})
-> 0.0076s
-- create_table("issue_assignees", {:id=>false, :force=>:cascade})
-> 0.0042s
-- add_index("issue_assignees", ["issue_id", "user_id"], {:name=>"index_issue_assignees_on_issue_id_and_user_id", :unique=>true, :using=>:btree})
-> 0.0120s
-- add_index("issue_assignees", ["user_id"], {:name=>"index_issue_assignees_on_user_id", :using=>:btree})
-> 0.0064s
-- create_table("issue_metrics", {:force=>:cascade})
-> 0.0096s
-- add_index("issue_metrics", ["issue_id"], {:name=>"index_issue_metrics", :using=>:btree})
-> 0.0068s
-- create_table("issues", {:force=>:cascade})
-> 0.0132s
-- add_index("issues", ["assignee_id"], {:name=>"index_issues_on_assignee_id", :using=>:btree})
-> 0.0072s
-- add_index("issues", ["author_id"], {:name=>"index_issues_on_author_id", :using=>:btree})
-> 0.0133s
-- add_index("issues", ["confidential"], {:name=>"index_issues_on_confidential", :using=>:btree})
-> 0.0077s
-- add_index("issues", ["deleted_at"], {:name=>"index_issues_on_deleted_at", :using=>:btree})
-> 0.0072s
-- add_index("issues", ["description"], {:name=>"index_issues_on_description_trigram", :using=>:gin, :opclasses=>{"description"=>"gin_trgm_ops"}})
-> 0.0214s
-- add_index("issues", ["milestone_id"], {:name=>"index_issues_on_milestone_id", :using=>:btree})
-> 0.0057s
-- add_index("issues", ["moved_to_id"], {:name=>"index_issues_on_moved_to_id", :where=>"(moved_to_id IS NOT NULL)", :using=>:btree})
-> 0.0056s
-- add_index("issues", ["project_id", "created_at", "id", "state"], {:name=>"index_issues_on_project_id_and_created_at_and_id_and_state", :using=>:btree})
-> 0.0047s
-- add_index("issues", ["project_id", "due_date", "id", "state"], {:name=>"idx_issues_on_project_id_and_due_date_and_id_and_state_partial", :where=>"(due_date IS NOT NULL)", :using=>:btree})
-> 0.0075s
-- add_index("issues", ["project_id", "iid"], {:name=>"index_issues_on_project_id_and_iid", :unique=>true, :using=>:btree})
-> 0.0044s
-- add_index("issues", ["project_id", "updated_at", "id", "state"], {:name=>"index_issues_on_project_id_and_updated_at_and_id_and_state", :using=>:btree})
-> 0.0044s
-- add_index("issues", ["relative_position"], {:name=>"index_issues_on_relative_position", :using=>:btree})
-> 0.0094s
-- add_index("issues", ["state"], {:name=>"index_issues_on_state", :using=>:btree})
-> 0.0060s
-- add_index("issues", ["title"], {:name=>"index_issues_on_title_trigram", :using=>:gin, :opclasses=>{"title"=>"gin_trgm_ops"}})
-> 0.0048s
-- add_index("issues", ["updated_by_id"], {:name=>"index_issues_on_updated_by_id", :where=>"(updated_by_id IS NOT NULL)", :using=>:btree})
-> 0.0049s
-- create_table("keys", {:force=>:cascade})
-> 0.0079s
-- add_index("keys", ["fingerprint"], {:name=>"index_keys_on_fingerprint", :unique=>true, :using=>:btree})
-> 0.0061s
-- add_index("keys", ["user_id"], {:name=>"index_keys_on_user_id", :using=>:btree})
-> 0.0110s
-- create_table("label_links", {:force=>:cascade})
-> 0.0088s
-- add_index("label_links", ["label_id"], {:name=>"index_label_links_on_label_id", :using=>:btree})
-> 0.0080s
-- add_index("label_links", ["target_id", "target_type"], {:name=>"index_label_links_on_target_id_and_target_type", :using=>:btree})
-> 0.0214s
-- create_table("label_priorities", {:force=>:cascade})
-> 0.0146s
-- add_index("label_priorities", ["priority"], {:name=>"index_label_priorities_on_priority", :using=>:btree})
-> 0.0085s
-- add_index("label_priorities", ["project_id", "label_id"], {:name=>"index_label_priorities_on_project_id_and_label_id", :unique=>true, :using=>:btree})
-> 0.0038s
-- create_table("labels", {:force=>:cascade})
-> 0.0118s
-- add_index("labels", ["group_id", "project_id", "title"], {:name=>"index_labels_on_group_id_and_project_id_and_title", :unique=>true, :using=>:btree})
-> 0.0053s
-- add_index("labels", ["project_id"], {:name=>"index_labels_on_project_id", :using=>:btree})
-> 0.0056s
-- add_index("labels", ["template"], {:name=>"index_labels_on_template", :where=>"template", :using=>:btree})
-> 0.0079s
-- add_index("labels", ["title"], {:name=>"index_labels_on_title", :using=>:btree})
-> 0.0056s
-- add_index("labels", ["type", "project_id"], {:name=>"index_labels_on_type_and_project_id", :using=>:btree})
-> 0.0046s
-- create_table("lfs_objects", {:force=>:cascade})
-> 0.0062s
-- add_index("lfs_objects", ["oid"], {:name=>"index_lfs_objects_on_oid", :unique=>true, :using=>:btree})
-> 0.0041s
-- create_table("lfs_objects_projects", {:force=>:cascade})
-> 0.0052s
-- add_index("lfs_objects_projects", ["project_id"], {:name=>"index_lfs_objects_projects_on_project_id", :using=>:btree})
-> 0.0037s
-- create_table("lists", {:force=>:cascade})
-> 0.0055s
-- add_index("lists", ["board_id", "label_id"], {:name=>"index_lists_on_board_id_and_label_id", :unique=>true, :using=>:btree})
-> 0.0055s
-- add_index("lists", ["label_id"], {:name=>"index_lists_on_label_id", :using=>:btree})
-> 0.0032s
-- create_table("members", {:force=>:cascade})
-> 0.0051s
-- add_index("members", ["access_level"], {:name=>"index_members_on_access_level", :using=>:btree})
-> 0.0046s
-- add_index("members", ["invite_token"], {:name=>"index_members_on_invite_token", :unique=>true, :using=>:btree})
-> 0.0052s
-- add_index("members", ["requested_at"], {:name=>"index_members_on_requested_at", :using=>:btree})
-> 0.0036s
-- add_index("members", ["source_id", "source_type"], {:name=>"index_members_on_source_id_and_source_type", :using=>:btree})
-> 0.0036s
-- add_index("members", ["user_id"], {:name=>"index_members_on_user_id", :using=>:btree})
-> 0.0033s
-- create_table("merge_request_diff_commits", {:id=>false, :force=>:cascade})
-> 0.0058s
-- add_index("merge_request_diff_commits", ["merge_request_diff_id", "relative_order"], {:name=>"index_merge_request_diff_commits_on_mr_diff_id_and_order", :unique=>true, :using=>:btree})
-> 0.0037s
-- create_table("merge_request_diff_files", {:id=>false, :force=>:cascade})
-> 0.0041s
-- add_index("merge_request_diff_files", ["merge_request_diff_id", "relative_order"], {:name=>"index_merge_request_diff_files_on_mr_diff_id_and_order", :unique=>true, :using=>:btree})
-> 0.0046s
-- create_table("merge_request_diffs", {:force=>:cascade})
-> 0.0090s
-- add_index("merge_request_diffs", ["merge_request_id", "id"], {:name=>"index_merge_request_diffs_on_merge_request_id_and_id", :using=>:btree})
-> 0.0050s
-- create_table("merge_request_metrics", {:force=>:cascade})
-> 0.0085s
-- add_index("merge_request_metrics", ["first_deployed_to_production_at"], {:name=>"index_merge_request_metrics_on_first_deployed_to_production_at", :using=>:btree})
-> 0.0059s
-- add_index("merge_request_metrics", ["merge_request_id"], {:name=>"index_merge_request_metrics", :using=>:btree})
-> 0.0080s
-- add_index("merge_request_metrics", ["pipeline_id"], {:name=>"index_merge_request_metrics_on_pipeline_id", :using=>:btree})
-> 0.0322s
-- create_table("merge_requests", {:force=>:cascade})
-> 0.0126s
-- add_index("merge_requests", ["assignee_id"], {:name=>"index_merge_requests_on_assignee_id", :using=>:btree})
-> 0.0084s
-- add_index("merge_requests", ["author_id"], {:name=>"index_merge_requests_on_author_id", :using=>:btree})
-> 0.0057s
-- add_index("merge_requests", ["created_at"], {:name=>"index_merge_requests_on_created_at", :using=>:btree})
-> 0.0171s
-- add_index("merge_requests", ["deleted_at"], {:name=>"index_merge_requests_on_deleted_at", :using=>:btree})
-> 0.0065s
-- add_index("merge_requests", ["description"], {:name=>"index_merge_requests_on_description_trigram", :using=>:gin, :opclasses=>{"description"=>"gin_trgm_ops"}})
-> 0.0040s
-- add_index("merge_requests", ["head_pipeline_id"], {:name=>"index_merge_requests_on_head_pipeline_id", :using=>:btree})
-> 0.0031s
-- add_index("merge_requests", ["latest_merge_request_diff_id"], {:name=>"index_merge_requests_on_latest_merge_request_diff_id", :using=>:btree})
-> 0.0180s
-- add_index("merge_requests", ["merge_user_id"], {:name=>"index_merge_requests_on_merge_user_id", :where=>"(merge_user_id IS NOT NULL)", :using=>:btree})
-> 0.0072s
-- add_index("merge_requests", ["milestone_id"], {:name=>"index_merge_requests_on_milestone_id", :using=>:btree})
-> 0.0084s
-- add_index("merge_requests", ["source_branch"], {:name=>"index_merge_requests_on_source_branch", :using=>:btree})
-> 0.0047s
-- add_index("merge_requests", ["source_project_id", "source_branch"], {:name=>"index_merge_requests_on_source_project_id_and_source_branch", :using=>:btree})
-> 0.0060s
-- add_index("merge_requests", ["target_branch"], {:name=>"index_merge_requests_on_target_branch", :using=>:btree})
-> 0.0197s
-- add_index("merge_requests", ["target_project_id", "iid"], {:name=>"index_merge_requests_on_target_project_id_and_iid", :unique=>true, :using=>:btree})
-> 0.0066s
-- add_index("merge_requests", ["target_project_id", "merge_commit_sha", "id"], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id", :using=>:btree})
-> 0.0172s
-- add_index("merge_requests", ["title"], {:name=>"index_merge_requests_on_title", :using=>:btree})
-> 0.0098s
-- add_index("merge_requests", ["title"], {:name=>"index_merge_requests_on_title_trigram", :using=>:gin, :opclasses=>{"title"=>"gin_trgm_ops"}})
-> 0.0035s
-- add_index("merge_requests", ["updated_by_id"], {:name=>"index_merge_requests_on_updated_by_id", :where=>"(updated_by_id IS NOT NULL)", :using=>:btree})
-> 0.0071s
-- create_table("merge_requests_closing_issues", {:force=>:cascade})
-> 0.0075s
-- add_index("merge_requests_closing_issues", ["issue_id"], {:name=>"index_merge_requests_closing_issues_on_issue_id", :using=>:btree})
-> 0.0085s
-- add_index("merge_requests_closing_issues", ["merge_request_id"], {:name=>"index_merge_requests_closing_issues_on_merge_request_id", :using=>:btree})
-> 0.0086s
-- create_table("milestones", {:force=>:cascade})
-> 0.0100s
-- add_index("milestones", ["description"], {:name=>"index_milestones_on_description_trigram", :using=>:gin, :opclasses=>{"description"=>"gin_trgm_ops"}})
-> 0.0044s
-- add_index("milestones", ["due_date"], {:name=>"index_milestones_on_due_date", :using=>:btree})
-> 0.0093s
-- add_index("milestones", ["group_id"], {:name=>"index_milestones_on_group_id", :using=>:btree})
-> 0.0105s
-- add_index("milestones", ["project_id", "iid"], {:name=>"index_milestones_on_project_id_and_iid", :unique=>true, :using=>:btree})
-> 0.0063s
-- add_index("milestones", ["title"], {:name=>"index_milestones_on_title", :using=>:btree})
-> 0.0052s
-- add_index("milestones", ["title"], {:name=>"index_milestones_on_title_trigram", :using=>:gin, :opclasses=>{"title"=>"gin_trgm_ops"}})
-> 0.0062s
-- create_table("namespaces", {:force=>:cascade})
-> 0.0121s
-- add_index("namespaces", ["created_at"], {:name=>"index_namespaces_on_created_at", :using=>:btree})
-> 0.0043s
-- add_index("namespaces", ["deleted_at"], {:name=>"index_namespaces_on_deleted_at", :using=>:btree})
-> 0.0056s
-- add_index("namespaces", ["name", "parent_id"], {:name=>"index_namespaces_on_name_and_parent_id", :unique=>true, :using=>:btree})
-> 0.0049s
-- add_index("namespaces", ["name"], {:name=>"index_namespaces_on_name_trigram", :using=>:gin, :opclasses=>{"name"=>"gin_trgm_ops"}})
-> 0.0046s
-- add_index("namespaces", ["owner_id"], {:name=>"index_namespaces_on_owner_id", :using=>:btree})
-> 0.0063s
-- add_index("namespaces", ["parent_id", "id"], {:name=>"index_namespaces_on_parent_id_and_id", :unique=>true, :using=>:btree})
-> 0.0050s
-- add_index("namespaces", ["path"], {:name=>"index_namespaces_on_path", :using=>:btree})
-> 0.0035s
-- add_index("namespaces", ["path"], {:name=>"index_namespaces_on_path_trigram", :using=>:gin, :opclasses=>{"path"=>"gin_trgm_ops"}})
-> 0.0032s
-- add_index("namespaces", ["require_two_factor_authentication"], {:name=>"index_namespaces_on_require_two_factor_authentication", :using=>:btree})
-> 0.0154s
-- add_index("namespaces", ["type"], {:name=>"index_namespaces_on_type", :using=>:btree})
-> 0.0074s
-- create_table("notes", {:force=>:cascade})
-> 0.0060s
-- add_index("notes", ["author_id"], {:name=>"index_notes_on_author_id", :using=>:btree})
-> 0.0037s
-- add_index("notes", ["commit_id"], {:name=>"index_notes_on_commit_id", :using=>:btree})
-> 0.0162s
-- add_index("notes", ["created_at"], {:name=>"index_notes_on_created_at", :using=>:btree})
-> 0.0064s
-- add_index("notes", ["discussion_id"], {:name=>"index_notes_on_discussion_id", :using=>:btree})
-> 0.0039s
-- add_index("notes", ["line_code"], {:name=>"index_notes_on_line_code", :using=>:btree})
-> 0.0036s
-- add_index("notes", ["note"], {:name=>"index_notes_on_note_trigram", :using=>:gin, :opclasses=>{"note"=>"gin_trgm_ops"}})
-> 0.0068s
-- add_index("notes", ["noteable_id", "noteable_type"], {:name=>"index_notes_on_noteable_id_and_noteable_type", :using=>:btree})
-> 0.0182s
-- add_index("notes", ["noteable_type"], {:name=>"index_notes_on_noteable_type", :using=>:btree})
-> 0.0053s
-- add_index("notes", ["project_id", "noteable_type"], {:name=>"index_notes_on_project_id_and_noteable_type", :using=>:btree})
-> 0.0035s
-- add_index("notes", ["updated_at"], {:name=>"index_notes_on_updated_at", :using=>:btree})
-> 0.0071s
-- create_table("notification_settings", {:force=>:cascade})
-> 0.0193s
-- add_index("notification_settings", ["source_id", "source_type"], {:name=>"index_notification_settings_on_source_id_and_source_type", :using=>:btree})
-> 0.0045s
-- add_index("notification_settings", ["user_id", "source_id", "source_type"], {:name=>"index_notifications_on_user_id_and_source_id_and_source_type", :unique=>true, :using=>:btree})
-> 0.0046s
-- add_index("notification_settings", ["user_id"], {:name=>"index_notification_settings_on_user_id", :using=>:btree})
-> 0.0136s
-- create_table("oauth_access_grants", {:force=>:cascade})
-> 0.0140s
-- add_index("oauth_access_grants", ["token"], {:name=>"index_oauth_access_grants_on_token", :unique=>true, :using=>:btree})
-> 0.0092s
-- create_table("oauth_access_tokens", {:force=>:cascade})
-> 0.0101s
-- add_index("oauth_access_tokens", ["refresh_token"], {:name=>"index_oauth_access_tokens_on_refresh_token", :unique=>true, :using=>:btree})
-> 0.0040s
-- add_index("oauth_access_tokens", ["resource_owner_id"], {:name=>"index_oauth_access_tokens_on_resource_owner_id", :using=>:btree})
-> 0.0061s
-- add_index("oauth_access_tokens", ["token"], {:name=>"index_oauth_access_tokens_on_token", :unique=>true, :using=>:btree})
-> 0.0055s
-- create_table("oauth_applications", {:force=>:cascade})
-> 0.0089s
-- add_index("oauth_applications", ["owner_id", "owner_type"], {:name=>"index_oauth_applications_on_owner_id_and_owner_type", :using=>:btree})
-> 0.0041s
-- add_index("oauth_applications", ["uid"], {:name=>"index_oauth_applications_on_uid", :unique=>true, :using=>:btree})
-> 0.0044s
-- create_table("oauth_openid_requests", {:force=>:cascade})
-> 0.0065s
-- create_table("pages_domains", {:force=>:cascade})
-> 0.0072s
-- add_index("pages_domains", ["domain"], {:name=>"index_pages_domains_on_domain", :unique=>true, :using=>:btree})
-> 0.0035s
-- add_index("pages_domains", ["project_id"], {:name=>"index_pages_domains_on_project_id", :using=>:btree})
-> 0.0050s
-- create_table("personal_access_tokens", {:force=>:cascade})
-> 0.0073s
-- add_index("personal_access_tokens", ["token"], {:name=>"index_personal_access_tokens_on_token", :unique=>true, :using=>:btree})
-> 0.0038s
-- add_index("personal_access_tokens", ["user_id"], {:name=>"index_personal_access_tokens_on_user_id", :using=>:btree})
-> 0.0035s
-- create_table("project_authorizations", {:id=>false, :force=>:cascade})
-> 0.0044s
-- add_index("project_authorizations", ["project_id"], {:name=>"index_project_authorizations_on_project_id", :using=>:btree})
-> 0.0046s
-- add_index("project_authorizations", ["user_id", "project_id", "access_level"], {:name=>"index_project_authorizations_on_user_id_project_id_access_level", :unique=>true, :using=>:btree})
-> 0.0036s
-- create_table("project_auto_devops", {:force=>:cascade})
-> 0.0091s
-- add_index("project_auto_devops", ["project_id"], {:name=>"index_project_auto_devops_on_project_id", :unique=>true, :using=>:btree})
-> 0.0043s
-- create_table("project_custom_attributes", {:force=>:cascade})
-> 0.0075s
-- add_index("project_custom_attributes", ["key", "value"], {:name=>"index_project_custom_attributes_on_key_and_value", :using=>:btree})
-> 0.0057s
-- add_index("project_custom_attributes", ["project_id", "key"], {:name=>"index_project_custom_attributes_on_project_id_and_key", :unique=>true, :using=>:btree})
-> 0.0085s
-- create_table("project_features", {:force=>:cascade})
-> 0.0107s
-- add_index("project_features", ["project_id"], {:name=>"index_project_features_on_project_id", :using=>:btree})
-> 0.0434s
-- create_table("project_group_links", {:force=>:cascade})
-> 0.0106s
-- add_index("project_group_links", ["group_id"], {:name=>"index_project_group_links_on_group_id", :using=>:btree})
-> 0.0132s
-- add_index("project_group_links", ["project_id"], {:name=>"index_project_group_links_on_project_id", :using=>:btree})
-> 0.0104s
-- create_table("project_import_data", {:force=>:cascade})
-> 0.0239s
-- add_index("project_import_data", ["project_id"], {:name=>"index_project_import_data_on_project_id", :using=>:btree})
-> 0.0094s
-- create_table("project_statistics", {:force=>:cascade})
-> 0.0112s
-- add_index("project_statistics", ["namespace_id"], {:name=>"index_project_statistics_on_namespace_id", :using=>:btree})
-> 0.0074s
-- add_index("project_statistics", ["project_id"], {:name=>"index_project_statistics_on_project_id", :unique=>true, :using=>:btree})
-> 0.0075s
-- create_table("projects", {:force=>:cascade})
-> 0.0449s
-- add_index("projects", ["ci_id"], {:name=>"index_projects_on_ci_id", :using=>:btree})
-> 0.0063s
-- add_index("projects", ["created_at"], {:name=>"index_projects_on_created_at", :using=>:btree})
-> 0.0148s
-- add_index("projects", ["creator_id"], {:name=>"index_projects_on_creator_id", :using=>:btree})
-> 0.0061s
-- add_index("projects", ["description"], {:name=>"index_projects_on_description_trigram", :using=>:gin, :opclasses=>{"description"=>"gin_trgm_ops"}})
-> 0.0043s
-- add_index("projects", ["last_activity_at"], {:name=>"index_projects_on_last_activity_at", :using=>:btree})
-> 0.0047s
-- add_index("projects", ["last_repository_check_failed"], {:name=>"index_projects_on_last_repository_check_failed", :using=>:btree})
-> 0.0041s
-- add_index("projects", ["last_repository_updated_at"], {:name=>"index_projects_on_last_repository_updated_at", :using=>:btree})
-> 0.0056s
-- add_index("projects", ["name"], {:name=>"index_projects_on_name_trigram", :using=>:gin, :opclasses=>{"name"=>"gin_trgm_ops"}})
-> 0.0101s
-- add_index("projects", ["namespace_id"], {:name=>"index_projects_on_namespace_id", :using=>:btree})
-> 0.0076s
-- add_index("projects", ["path"], {:name=>"index_projects_on_path", :using=>:btree})
-> 0.0090s
-- add_index("projects", ["path"], {:name=>"index_projects_on_path_trigram", :using=>:gin, :opclasses=>{"path"=>"gin_trgm_ops"}})
-> 0.0078s
-- add_index("projects", ["pending_delete"], {:name=>"index_projects_on_pending_delete", :using=>:btree})
-> 0.0099s
-- add_index("projects", ["repository_storage"], {:name=>"index_projects_on_repository_storage", :using=>:btree})
-> 0.0092s
-- add_index("projects", ["runners_token"], {:name=>"index_projects_on_runners_token", :using=>:btree})
-> 0.0099s
-- add_index("projects", ["star_count"], {:name=>"index_projects_on_star_count", :using=>:btree})
-> 0.0146s
-- add_index("projects", ["visibility_level"], {:name=>"index_projects_on_visibility_level", :using=>:btree})
-> 0.0131s
-- create_table("protected_branch_merge_access_levels", {:force=>:cascade})
-> 0.0096s
-- add_index("protected_branch_merge_access_levels", ["protected_branch_id"], {:name=>"index_protected_branch_merge_access", :using=>:btree})
-> 0.0053s
-- create_table("protected_branch_push_access_levels", {:force=>:cascade})
-> 0.0088s
-- add_index("protected_branch_push_access_levels", ["protected_branch_id"], {:name=>"index_protected_branch_push_access", :using=>:btree})
-> 0.0052s
-- create_table("protected_branches", {:force=>:cascade})
-> 0.0138s
-- add_index("protected_branches", ["project_id"], {:name=>"index_protected_branches_on_project_id", :using=>:btree})
-> 0.0085s
-- create_table("protected_tag_create_access_levels", {:force=>:cascade})
-> 0.0342s
-- add_index("protected_tag_create_access_levels", ["protected_tag_id"], {:name=>"index_protected_tag_create_access", :using=>:btree})
-> 0.0064s
-- add_index("protected_tag_create_access_levels", ["user_id"], {:name=>"index_protected_tag_create_access_levels_on_user_id", :using=>:btree})
-> 0.0049s
-- create_table("protected_tags", {:force=>:cascade})
-> 0.0168s
-- add_index("protected_tags", ["project_id"], {:name=>"index_protected_tags_on_project_id", :using=>:btree})
-> 0.0068s
-- create_table("push_event_payloads", {:id=>false, :force=>:cascade})
-> 0.0063s
-- add_index("push_event_payloads", ["event_id"], {:name=>"index_push_event_payloads_on_event_id", :unique=>true, :using=>:btree})
-> 0.0048s
-- create_table("redirect_routes", {:force=>:cascade})
-> 0.0092s
-- add_index("redirect_routes", ["path"], {:name=>"index_redirect_routes_on_path", :unique=>true, :using=>:btree})
-> 0.0050s
-- add_index("redirect_routes", ["path"], {:name=>"index_redirect_routes_on_path_text_pattern_ops", :using=>:btree, :opclasses=>{"path"=>"varchar_pattern_ops"}})
-> 0.0063s
-- add_index("redirect_routes", ["permanent"], {:name=>"index_redirect_routes_on_permanent", :using=>:btree})
-> 0.0047s
-- add_index("redirect_routes", ["source_type", "source_id"], {:name=>"index_redirect_routes_on_source_type_and_source_id", :using=>:btree})
-> 0.0050s
-- create_table("releases", {:force=>:cascade})
-> 0.0116s
-- add_index("releases", ["project_id", "tag"], {:name=>"index_releases_on_project_id_and_tag", :using=>:btree})
-> 0.0048s
-- add_index("releases", ["project_id"], {:name=>"index_releases_on_project_id", :using=>:btree})
-> 0.0033s
-- create_table("routes", {:force=>:cascade})
-> 0.0059s
-- add_index("routes", ["path"], {:name=>"index_routes_on_path", :unique=>true, :using=>:btree})
-> 0.0041s
-- add_index("routes", ["path"], {:name=>"index_routes_on_path_text_pattern_ops", :using=>:btree, :opclasses=>{"path"=>"varchar_pattern_ops"}})
-> 0.0041s
-- add_index("routes", ["source_type", "source_id"], {:name=>"index_routes_on_source_type_and_source_id", :unique=>true, :using=>:btree})
-> 0.0048s
-- create_table("sent_notifications", {:force=>:cascade})
-> 0.0075s
-- add_index("sent_notifications", ["reply_key"], {:name=>"index_sent_notifications_on_reply_key", :unique=>true, :using=>:btree})
-> 0.0062s
-- create_table("services", {:force=>:cascade})
-> 0.0123s
-- add_index("services", ["project_id"], {:name=>"index_services_on_project_id", :using=>:btree})
-> 0.0184s
-- add_index("services", ["template"], {:name=>"index_services_on_template", :using=>:btree})
-> 0.0034s
-- create_table("snippets", {:force=>:cascade})
-> 0.0126s
-- add_index("snippets", ["author_id"], {:name=>"index_snippets_on_author_id", :using=>:btree})
-> 0.0040s
-- add_index("snippets", ["file_name"], {:name=>"index_snippets_on_file_name_trigram", :using=>:gin, :opclasses=>{"file_name"=>"gin_trgm_ops"}})
-> 0.0058s
-- add_index("snippets", ["project_id"], {:name=>"index_snippets_on_project_id", :using=>:btree})
-> 0.0066s
-- add_index("snippets", ["title"], {:name=>"index_snippets_on_title_trigram", :using=>:gin, :opclasses=>{"title"=>"gin_trgm_ops"}})
-> 0.0026s
-- add_index("snippets", ["updated_at"], {:name=>"index_snippets_on_updated_at", :using=>:btree})
-> 0.0031s
-- add_index("snippets", ["visibility_level"], {:name=>"index_snippets_on_visibility_level", :using=>:btree})
-> 0.0043s
-- create_table("spam_logs", {:force=>:cascade})
-> 0.0251s
-- create_table("subscriptions", {:force=>:cascade})
-> 0.0071s
-- add_index("subscriptions", ["subscribable_id", "subscribable_type", "user_id", "project_id"], {:name=>"index_subscriptions_on_subscribable_and_user_id_and_project_id", :unique=>true, :using=>:btree})
-> 0.0042s
-- create_table("system_note_metadata", {:force=>:cascade})
-> 0.0064s
-- add_index("system_note_metadata", ["note_id"], {:name=>"index_system_note_metadata_on_note_id", :unique=>true, :using=>:btree})
-> 0.0154s
-- create_table("taggings", {:force=>:cascade})
-> 0.0158s
-- add_index("taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], {:name=>"taggings_idx", :unique=>true, :using=>:btree})
-> 0.0091s
-- add_index("taggings", ["taggable_id", "taggable_type", "context"], {:name=>"index_taggings_on_taggable_id_and_taggable_type_and_context", :using=>:btree})
-> 0.0086s
-- create_table("tags", {:force=>:cascade})
-> 0.0156s
-- add_index("tags", ["name"], {:name=>"index_tags_on_name", :unique=>true, :using=>:btree})
-> 0.0111s
-- create_table("timelogs", {:force=>:cascade})
-> 0.0120s
-- add_index("timelogs", ["issue_id"], {:name=>"index_timelogs_on_issue_id", :using=>:btree})
-> 0.0098s
-- add_index("timelogs", ["merge_request_id"], {:name=>"index_timelogs_on_merge_request_id", :using=>:btree})
-> 0.0118s
-- add_index("timelogs", ["user_id"], {:name=>"index_timelogs_on_user_id", :using=>:btree})
-> 0.0095s
-- create_table("todos", {:force=>:cascade})
-> 0.0200s
-- add_index("todos", ["author_id"], {:name=>"index_todos_on_author_id", :using=>:btree})
-> 0.0050s
-- add_index("todos", ["commit_id"], {:name=>"index_todos_on_commit_id", :using=>:btree})
-> 0.0076s
-- add_index("todos", ["note_id"], {:name=>"index_todos_on_note_id", :using=>:btree})
-> 0.0069s
-- add_index("todos", ["project_id"], {:name=>"index_todos_on_project_id", :using=>:btree})
-> 0.0074s
-- add_index("todos", ["target_type", "target_id"], {:name=>"index_todos_on_target_type_and_target_id", :using=>:btree})
-> 0.0059s
-- add_index("todos", ["user_id"], {:name=>"index_todos_on_user_id", :using=>:btree})
-> 0.0048s
-- create_table("trending_projects", {:force=>:cascade})
-> 0.0054s
-- add_index("trending_projects", ["project_id"], {:name=>"index_trending_projects_on_project_id", :using=>:btree})
-> 0.0061s
-- create_table("u2f_registrations", {:force=>:cascade})
-> 0.0096s
-- add_index("u2f_registrations", ["key_handle"], {:name=>"index_u2f_registrations_on_key_handle", :using=>:btree})
-> 0.0194s
-- add_index("u2f_registrations", ["user_id"], {:name=>"index_u2f_registrations_on_user_id", :using=>:btree})
-> 0.0068s
-- create_table("uploads", {:force=>:cascade})
-> 0.0086s
-- add_index("uploads", ["checksum"], {:name=>"index_uploads_on_checksum", :using=>:btree})
-> 0.0155s
-- add_index("uploads", ["model_id", "model_type"], {:name=>"index_uploads_on_model_id_and_model_type", :using=>:btree})
-> 0.0062s
-- add_index("uploads", ["path"], {:name=>"index_uploads_on_path", :using=>:btree})
-> 0.0043s
-- create_table("user_agent_details", {:force=>:cascade})
-> 0.0073s
-- add_index("user_agent_details", ["subject_id", "subject_type"], {:name=>"index_user_agent_details_on_subject_id_and_subject_type", :using=>:btree})
-> 0.0104s
-- create_table("user_custom_attributes", {:force=>:cascade})
-> 0.0226s
-- add_index("user_custom_attributes", ["key", "value"], {:name=>"index_user_custom_attributes_on_key_and_value", :using=>:btree})
-> 0.0054s
-- add_index("user_custom_attributes", ["user_id", "key"], {:name=>"index_user_custom_attributes_on_user_id_and_key", :unique=>true, :using=>:btree})
-> 0.0048s
-- create_table("user_synced_attributes_metadata", {:force=>:cascade})
-> 0.0072s
-- add_index("user_synced_attributes_metadata", ["user_id"], {:name=>"index_user_synced_attributes_metadata_on_user_id", :unique=>true, :using=>:btree})
-> 0.0061s
-- create_table("users", {:force=>:cascade})
-> 0.0266s
-- add_index("users", ["admin"], {:name=>"index_users_on_admin", :using=>:btree})
-> 0.0059s
-- add_index("users", ["confirmation_token"], {:name=>"index_users_on_confirmation_token", :unique=>true, :using=>:btree})
-> 0.0055s
-- add_index("users", ["created_at"], {:name=>"index_users_on_created_at", :using=>:btree})
-> 0.0045s
-- add_index("users", ["email"], {:name=>"index_users_on_email", :unique=>true, :using=>:btree})
-> 0.0246s
-- add_index("users", ["email"], {:name=>"index_users_on_email_trigram", :using=>:gin, :opclasses=>{"email"=>"gin_trgm_ops"}})
-> 0.0030s
-- add_index("users", ["ghost"], {:name=>"index_users_on_ghost", :using=>:btree})
-> 0.0038s
-- add_index("users", ["incoming_email_token"], {:name=>"index_users_on_incoming_email_token", :using=>:btree})
-> 0.0071s
-- add_index("users", ["name"], {:name=>"index_users_on_name", :using=>:btree})
-> 0.0053s
-- add_index("users", ["name"], {:name=>"index_users_on_name_trigram", :using=>:gin, :opclasses=>{"name"=>"gin_trgm_ops"}})
-> 0.0036s
-- add_index("users", ["reset_password_token"], {:name=>"index_users_on_reset_password_token", :unique=>true, :using=>:btree})
-> 0.0176s
-- add_index("users", ["rss_token"], {:name=>"index_users_on_rss_token", :using=>:btree})
-> 0.0044s
-- add_index("users", ["state"], {:name=>"index_users_on_state", :using=>:btree})
-> 0.0055s
-- add_index("users", ["username"], {:name=>"index_users_on_username", :using=>:btree})
-> 0.0109s
-- add_index("users", ["username"], {:name=>"index_users_on_username_trigram", :using=>:gin, :opclasses=>{"username"=>"gin_trgm_ops"}})
-> 0.0060s
-- create_table("users_star_projects", {:force=>:cascade})
-> 0.0204s
-- add_index("users_star_projects", ["project_id"], {:name=>"index_users_star_projects_on_project_id", :using=>:btree})
-> 0.0076s
-- add_index("users_star_projects", ["user_id", "project_id"], {:name=>"index_users_star_projects_on_user_id_and_project_id", :unique=>true, :using=>:btree})
-> 0.0246s
-- create_table("web_hook_logs", {:force=>:cascade})
-> 0.0116s
-- add_index("web_hook_logs", ["web_hook_id"], {:name=>"index_web_hook_logs_on_web_hook_id", :using=>:btree})
-> 0.0053s
-- create_table("web_hooks", {:force=>:cascade})
-> 0.0272s
-- add_index("web_hooks", ["project_id"], {:name=>"index_web_hooks_on_project_id", :using=>:btree})
-> 0.0049s
-- add_index("web_hooks", ["type"], {:name=>"index_web_hooks_on_type", :using=>:btree})
-> 0.0086s
-- add_foreign_key("boards", "projects", {:name=>"fk_f15266b5f9", :on_delete=>:cascade})
-> 0.0130s
-- add_foreign_key("chat_teams", "namespaces", {:on_delete=>:cascade})
-> 0.0073s
-- add_foreign_key("ci_build_trace_section_names", "projects", {:on_delete=>:cascade})
-> 0.0161s
-- add_foreign_key("ci_build_trace_sections", "ci_build_trace_section_names", {:column=>"section_name_id", :name=>"fk_264e112c66", :on_delete=>:cascade})
-> 0.0029s
-- add_foreign_key("ci_build_trace_sections", "ci_builds", {:column=>"build_id", :name=>"fk_4ebe41f502", :on_delete=>:cascade})
-> 0.0085s
-- add_foreign_key("ci_build_trace_sections", "projects", {:on_delete=>:cascade})
-> 0.0024s
-- add_foreign_key("ci_builds", "ci_pipelines", {:column=>"auto_canceled_by_id", :name=>"fk_a2141b1522", :on_delete=>:nullify})
-> 0.0057s
-- add_foreign_key("ci_builds", "ci_stages", {:column=>"stage_id", :name=>"fk_3a9eaa254d", :on_delete=>:cascade})
-> 0.0056s
-- add_foreign_key("ci_builds", "projects", {:name=>"fk_befce0568a", :on_delete=>:cascade})
-> 0.0061s
-- add_foreign_key("ci_group_variables", "namespaces", {:column=>"group_id", :name=>"fk_33ae4d58d8", :on_delete=>:cascade})
-> 0.0020s
-- add_foreign_key("ci_job_artifacts", "ci_builds", {:column=>"job_id", :on_delete=>:cascade})
-> 0.0027s
-- add_foreign_key("ci_job_artifacts", "projects", {:on_delete=>:cascade})
-> 0.0024s
-- add_foreign_key("ci_pipeline_schedule_variables", "ci_pipeline_schedules", {:column=>"pipeline_schedule_id", :name=>"fk_41c35fda51", :on_delete=>:cascade})
-> 0.0030s
-- add_foreign_key("ci_pipeline_schedules", "projects", {:name=>"fk_8ead60fcc4", :on_delete=>:cascade})
-> 0.0057s
-- add_foreign_key("ci_pipeline_schedules", "users", {:column=>"owner_id", :name=>"fk_9ea99f58d2", :on_delete=>:nullify})
-> 0.0079s
-- add_foreign_key("ci_pipeline_variables", "ci_pipelines", {:column=>"pipeline_id", :name=>"fk_f29c5f4380", :on_delete=>:cascade})
-> 0.0036s
-- add_foreign_key("ci_pipelines", "ci_pipeline_schedules", {:column=>"pipeline_schedule_id", :name=>"fk_3d34ab2e06", :on_delete=>:nullify})
-> 0.0047s
-- add_foreign_key("ci_pipelines", "ci_pipelines", {:column=>"auto_canceled_by_id", :name=>"fk_262d4c2d19", :on_delete=>:nullify})
-> 0.0022s
-- add_foreign_key("ci_pipelines", "projects", {:name=>"fk_86635dbd80", :on_delete=>:cascade})
-> 0.0029s
-- add_foreign_key("ci_runner_projects", "projects", {:name=>"fk_4478a6f1e4", :on_delete=>:cascade})
-> 0.0026s
-- add_foreign_key("ci_stages", "ci_pipelines", {:column=>"pipeline_id", :name=>"fk_fb57e6cc56", :on_delete=>:cascade})
-> 0.0072s
-- add_foreign_key("ci_stages", "projects", {:name=>"fk_2360681d1d", :on_delete=>:cascade})
-> 0.0041s
-- add_foreign_key("ci_trigger_requests", "ci_triggers", {:column=>"trigger_id", :name=>"fk_b8ec8b7245", :on_delete=>:cascade})
-> 0.0027s
-- add_foreign_key("ci_triggers", "projects", {:name=>"fk_e3e63f966e", :on_delete=>:cascade})
-> 0.0041s
-- add_foreign_key("ci_triggers", "users", {:column=>"owner_id", :name=>"fk_e8e10d1964", :on_delete=>:cascade})
-> 0.0025s
-- add_foreign_key("ci_variables", "projects", {:name=>"fk_ada5eb64b3", :on_delete=>:cascade})
-> 0.0043s
-- add_foreign_key("cluster_platforms_kubernetes", "clusters", {:on_delete=>:cascade})
-> 0.0051s
-- add_foreign_key("cluster_projects", "clusters", {:on_delete=>:cascade})
-> 0.0026s
-- add_foreign_key("cluster_projects", "projects", {:on_delete=>:cascade})
-> 0.0028s
-- add_foreign_key("cluster_providers_gcp", "clusters", {:on_delete=>:cascade})
-> 0.0024s
-- add_foreign_key("clusters", "users", {:on_delete=>:nullify})
-> 0.0078s
-- add_foreign_key("clusters_applications_helm", "clusters", {:on_delete=>:cascade})
-> 0.0032s
-- add_foreign_key("container_repositories", "projects")
-> 0.0181s
-- add_foreign_key("deploy_keys_projects", "projects", {:name=>"fk_58a901ca7e", :on_delete=>:cascade})
-> 0.0103s
-- add_foreign_key("deployments", "projects", {:name=>"fk_b9a3851b82", :on_delete=>:cascade})
-> 0.0038s
-- add_foreign_key("environments", "projects", {:name=>"fk_d1c8c1da6a", :on_delete=>:cascade})
-> 0.0051s
-- add_foreign_key("events", "projects", {:on_delete=>:cascade})
-> 0.0073s
-- add_foreign_key("events", "users", {:column=>"author_id", :name=>"fk_edfd187b6f", :on_delete=>:cascade})
-> 0.0091s
-- add_foreign_key("fork_network_members", "fork_networks", {:on_delete=>:cascade})
-> 0.0071s
-- add_foreign_key("fork_network_members", "projects", {:column=>"forked_from_project_id", :name=>"fk_b01280dae4", :on_delete=>:nullify})
-> 0.0060s
-- add_foreign_key("fork_network_members", "projects", {:on_delete=>:cascade})
-> 0.0027s
-- add_foreign_key("fork_networks", "projects", {:column=>"root_project_id", :name=>"fk_e7b436b2b5", :on_delete=>:nullify})
-> 0.0041s
-- add_foreign_key("forked_project_links", "projects", {:column=>"forked_to_project_id", :name=>"fk_434510edb0", :on_delete=>:cascade})
-> 0.0080s
-- add_foreign_key("gcp_clusters", "projects", {:on_delete=>:cascade})
-> 0.0042s
-- add_foreign_key("gcp_clusters", "services", {:on_delete=>:nullify})
-> 0.0034s
-- add_foreign_key("gcp_clusters", "users", {:on_delete=>:nullify})
-> 0.0055s
-- add_foreign_key("gpg_key_subkeys", "gpg_keys", {:on_delete=>:cascade})
-> 0.0047s
-- add_foreign_key("gpg_keys", "users", {:on_delete=>:cascade})
-> 0.0037s
-- add_foreign_key("gpg_signatures", "gpg_key_subkeys", {:on_delete=>:nullify})
-> 0.0055s
-- add_foreign_key("gpg_signatures", "gpg_keys", {:on_delete=>:nullify})
-> 0.0024s
-- add_foreign_key("gpg_signatures", "projects", {:on_delete=>:cascade})
-> 0.0028s
-- add_foreign_key("group_custom_attributes", "namespaces", {:column=>"group_id", :on_delete=>:cascade})
-> 0.0031s
-- add_foreign_key("issue_assignees", "issues", {:name=>"fk_b7d881734a", :on_delete=>:cascade})
-> 0.0094s
-- add_foreign_key("issue_assignees", "users", {:name=>"fk_5e0c8d9154", :on_delete=>:cascade})
-> 0.0031s
-- add_foreign_key("issue_metrics", "issues", {:on_delete=>:cascade})
-> 0.0026s
-- add_foreign_key("issues", "issues", {:column=>"moved_to_id", :name=>"fk_a194299be1", :on_delete=>:nullify})
-> 0.0038s
-- add_foreign_key("issues", "milestones", {:name=>"fk_96b1dd429c", :on_delete=>:nullify})
-> 0.0052s
-- add_foreign_key("issues", "projects", {:name=>"fk_899c8f3231", :on_delete=>:cascade})
-> 0.0035s
-- add_foreign_key("issues", "users", {:column=>"author_id", :name=>"fk_05f1e72feb", :on_delete=>:nullify})
-> 0.0029s
-- add_foreign_key("issues", "users", {:column=>"updated_by_id", :name=>"fk_ffed080f01", :on_delete=>:nullify})
-> 0.0040s
-- add_foreign_key("label_priorities", "labels", {:on_delete=>:cascade})
-> 0.0078s
-- add_foreign_key("label_priorities", "projects", {:on_delete=>:cascade})
-> 0.0023s
-- add_foreign_key("labels", "namespaces", {:column=>"group_id", :on_delete=>:cascade})
-> 0.0017s
-- add_foreign_key("labels", "projects", {:name=>"fk_7de4989a69", :on_delete=>:cascade})
-> 0.0022s
-- add_foreign_key("lists", "boards", {:name=>"fk_0d3f677137", :on_delete=>:cascade})
-> 0.0024s
-- add_foreign_key("lists", "labels", {:name=>"fk_7a5553d60f", :on_delete=>:cascade})
-> 0.0082s
-- add_foreign_key("merge_request_diff_commits", "merge_request_diffs", {:on_delete=>:cascade})
-> 0.0025s
-- add_foreign_key("merge_request_diff_files", "merge_request_diffs", {:on_delete=>:cascade})
-> 0.0047s
-- add_foreign_key("merge_request_diffs", "merge_requests", {:name=>"fk_8483f3258f", :on_delete=>:cascade})
-> 0.0098s
-- add_foreign_key("merge_request_metrics", "ci_pipelines", {:column=>"pipeline_id", :on_delete=>:cascade})
-> 0.0034s
-- add_foreign_key("merge_request_metrics", "merge_requests", {:on_delete=>:cascade})
-> 0.0026s
-- add_foreign_key("merge_requests", "ci_pipelines", {:column=>"head_pipeline_id", :name=>"fk_fd82eae0b9", :on_delete=>:nullify})
-> 0.0023s
-- add_foreign_key("merge_requests", "merge_request_diffs", {:column=>"latest_merge_request_diff_id", :name=>"fk_06067f5644", :on_delete=>:nullify})
-> 0.0033s
-- add_foreign_key("merge_requests", "milestones", {:name=>"fk_6a5165a692", :on_delete=>:nullify})
-> 0.0026s
-- add_foreign_key("merge_requests", "projects", {:column=>"source_project_id", :name=>"fk_3308fe130c", :on_delete=>:nullify})
-> 0.0026s
-- add_foreign_key("merge_requests", "projects", {:column=>"target_project_id", :name=>"fk_a6963e8447", :on_delete=>:cascade})
-> 0.0026s
-- add_foreign_key("merge_requests", "users", {:column=>"assignee_id", :name=>"fk_6149611a04", :on_delete=>:nullify})
-> 0.0022s
-- add_foreign_key("merge_requests", "users", {:column=>"author_id", :name=>"fk_e719a85f8a", :on_delete=>:nullify})
-> 0.0024s
-- add_foreign_key("merge_requests", "users", {:column=>"merge_user_id", :name=>"fk_ad525e1f87", :on_delete=>:nullify})
-> 0.0032s
-- add_foreign_key("merge_requests", "users", {:column=>"updated_by_id", :name=>"fk_641731faff", :on_delete=>:nullify})
-> 0.0031s
-- add_foreign_key("merge_requests_closing_issues", "issues", {:on_delete=>:cascade})
-> 0.0020s
-- add_foreign_key("merge_requests_closing_issues", "merge_requests", {:on_delete=>:cascade})
-> 0.0018s
-- add_foreign_key("milestones", "namespaces", {:column=>"group_id", :name=>"fk_95650a40d4", :on_delete=>:cascade})
-> 0.0020s
-- add_foreign_key("milestones", "projects", {:name=>"fk_9bd0a0c791", :on_delete=>:cascade})
-> 0.0031s
-- add_foreign_key("notes", "projects", {:name=>"fk_99e097b079", :on_delete=>:cascade})
-> 0.0076s
-- add_foreign_key("oauth_openid_requests", "oauth_access_grants", {:column=>"access_grant_id", :name=>"fk_oauth_openid_requests_oauth_access_grants_access_grant_id"})
-> 0.0031s
-- add_foreign_key("pages_domains", "projects", {:name=>"fk_ea2f6dfc6f", :on_delete=>:cascade})
-> 0.0034s
-- add_foreign_key("personal_access_tokens", "users")
-> 0.0027s
-- add_foreign_key("project_authorizations", "projects", {:on_delete=>:cascade})
-> 0.0039s
-- add_foreign_key("project_authorizations", "users", {:on_delete=>:cascade})
-> 0.0028s
-- add_foreign_key("project_auto_devops", "projects", {:on_delete=>:cascade})
-> 0.0027s
-- add_foreign_key("project_custom_attributes", "projects", {:on_delete=>:cascade})
-> 0.0050s
-- add_foreign_key("project_features", "projects", {:name=>"fk_18513d9b92", :on_delete=>:cascade})
-> 0.0185s
-- add_foreign_key("project_group_links", "projects", {:name=>"fk_daa8cee94c", :on_delete=>:cascade})
-> 0.0067s
-- add_foreign_key("project_import_data", "projects", {:name=>"fk_ffb9ee3a10", :on_delete=>:cascade})
-> 0.0053s
-- add_foreign_key("project_statistics", "projects", {:on_delete=>:cascade})
-> 0.0053s
-- add_foreign_key("protected_branch_merge_access_levels", "protected_branches", {:name=>"fk_8a3072ccb3", :on_delete=>:cascade})
-> 0.0049s
-- add_foreign_key("protected_branch_push_access_levels", "protected_branches", {:name=>"fk_9ffc86a3d9", :on_delete=>:cascade})
-> 0.0051s
-- add_foreign_key("protected_branches", "projects", {:name=>"fk_7a9c6d93e7", :on_delete=>:cascade})
-> 0.0050s
-- add_foreign_key("protected_tag_create_access_levels", "namespaces", {:column=>"group_id"})
-> 0.0105s
-- add_foreign_key("protected_tag_create_access_levels", "protected_tags", {:name=>"fk_f7dfda8c51", :on_delete=>:cascade})
-> 0.0046s
-- add_foreign_key("protected_tag_create_access_levels", "users")
-> 0.0101s
-- add_foreign_key("protected_tags", "projects", {:name=>"fk_8e4af87648", :on_delete=>:cascade})
-> 0.0061s
-- add_foreign_key("push_event_payloads", "events", {:name=>"fk_36c74129da", :on_delete=>:cascade})
-> 0.0047s
-- add_foreign_key("releases", "projects", {:name=>"fk_47fe2a0596", :on_delete=>:cascade})
-> 0.0091s
-- add_foreign_key("services", "projects", {:name=>"fk_71cce407f9", :on_delete=>:cascade})
-> 0.0038s
-- add_foreign_key("snippets", "projects", {:name=>"fk_be41fd4bb7", :on_delete=>:cascade})
-> 0.0051s
-- add_foreign_key("subscriptions", "projects", {:on_delete=>:cascade})
-> 0.0058s
-- add_foreign_key("system_note_metadata", "notes", {:name=>"fk_d83a918cb1", :on_delete=>:cascade})
-> 0.0034s
-- add_foreign_key("timelogs", "issues", {:name=>"fk_timelogs_issues_issue_id", :on_delete=>:cascade})
-> 0.0041s
-- add_foreign_key("timelogs", "merge_requests", {:name=>"fk_timelogs_merge_requests_merge_request_id", :on_delete=>:cascade})
-> 0.0098s
-- add_foreign_key("todos", "projects", {:name=>"fk_45054f9c45", :on_delete=>:cascade})
-> 0.0064s
-- add_foreign_key("trending_projects", "projects", {:on_delete=>:cascade})
-> 0.0057s
-- add_foreign_key("u2f_registrations", "users")
-> 0.0038s
-- add_foreign_key("user_custom_attributes", "users", {:on_delete=>:cascade})
-> 0.0073s
-- add_foreign_key("user_synced_attributes_metadata", "users", {:on_delete=>:cascade})
-> 0.0068s
-- add_foreign_key("users_star_projects", "projects", {:name=>"fk_22cd27ddfc", :on_delete=>:cascade})
-> 0.0065s
-- add_foreign_key("web_hook_logs", "web_hooks", {:on_delete=>:cascade})
-> 0.0079s
-- add_foreign_key("web_hooks", "projects", {:name=>"fk_0c8ca6d9d1", :on_delete=>:cascade})
-> 0.0034s
-- initialize_schema_migrations_table()
-> 0.0395s

== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/001_admin.rb
Administrator account created:

login: root
password: ********


== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb
- execute "bash" "/tmp/chef-script20171231-30-4oly2c"
Recipe: gitlab::gitlab-rails
* execute[clear the gitlab-rails cache] action run (skipped due to not_if)
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-12-31 13:06:10.752235259 +0000
+++ /var/opt/gitlab/logrotate/.chef-logrotate.conf20171231-30-4wai7c 2017-12-31 13:06:10.751235253 +0000
@@ -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-12-31 13:06:10.761235319 +0000
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-nginx20171231-30-aw5vp5 2017-12-31 13:06:10.760235313 +0000
@@ -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-12-31 13:06:10.768235366 +0000
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-unicorn20171231-30-1psv6pe 2017-12-31 13:06:10.768235366 +0000
@@ -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-12-31 13:06:10.776235419 +0000
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-rails20171231-30-kkd0fd 2017-12-31 13:06:10.776235419 +0000
@@ -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-12-31 13:06:10.797235559 +0000
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-shell20171231-30-10f7pzk 2017-12-31 13:06:10.796235553 +0000
@@ -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-12-31 13:06:10.802235593 +0000
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-workhorse20171231-30-17ptbh 2017-12-31 13:06:10.801235586 +0000
@@ -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-12-31 13:06:10.811235653 +0000
+++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-pages20171231-30-8cx0y6 2017-12-31 13:06:10.810235646 +0000
@@ -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 2a648d
--- /var/opt/gitlab/gitlab-rails/etc/unicorn.rb 2017-12-31 13:06:10.844235873 +0000
+++ /var/opt/gitlab/gitlab-rails/etc/.chef-unicorn.rb20171231-30-ge6bjw 2017-12-31 13:06:10.843235866 +0000
@@ -1 +1,59 @@
+# 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 2
+
+# 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
+
+ ActiveRecord::Base.connection.disconnect! if defined?(ActiveRecord::Base)
+
+end
+
+# What to do after we fork a worker
+after_fork do |server, worker|
+ ActiveRecord::Base.establish_connection if defined?(ActiveRecord::Base)
+ defined?(::Prometheus::Client.reinitialize_on_pid_change) &&
+ Prometheus::Client.reinitialize_on_pid_change
+
+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 8eaf78
--- /opt/gitlab/sv/unicorn/run 2017-12-31 13:06:10.879236107 +0000
+++ /opt/gitlab/sv/unicorn/.chef-run20171231-30-qr5ged 2017-12-31 13:06:10.879236107 +0000
@@ -1 +1,19 @@
+#!/bin/bash
+
+# Let runit capture all script error messages
+exec 2>&1
+
+export prometheus_run_dir=''
+
+
+
+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 \
+ prometheus_multiproc_dir="${prometheus_run_dir}" \
+ /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-12-31 13:06:10.889236173 +0000
+++ /opt/gitlab/sv/unicorn/log/.chef-run20171231-30-yrrbtu 2017-12-31 13:06:10.888236167 +0000
@@ -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-12-31 13:06:10.898236233 +0000
+++ /var/log/gitlab/unicorn/.chef-config20171231-30-vz11kx 2017-12-31 13:06:10.898236233 +0000
@@ -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-12-31 13:06:10.914236340 +0000
+++ /opt/gitlab/sv/unicorn/control/.chef-t20171231-30-1fip7kd 2017-12-31 13:06:10.914236340 +0000
@@ -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
* directory[/opt/gitlab/sv/unicorn/supervise] action create
- change mode from '0700' to '0755'
* directory[/opt/gitlab/sv/unicorn/log/supervise] action create
- change mode from '0700' to '0755'
* file[/opt/gitlab/sv/unicorn/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/unicorn/log/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/unicorn/supervise/control] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/unicorn/log/supervise/control] action touch (skipped due to only_if)
* service[unicorn] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start unicorn] action run
[execute] ok: run: unicorn: (pid 609) 2s
- execute /opt/gitlab/bin/gitlab-ctl start unicorn
* sysctl[net.core.somaxconn] action create
* 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-12-31 13:06:15.394266237 +0000
+++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn20171231-30-dzoh5 2017-12-31 13:06:15.394266237 +0000
@@ -1 +1,2 @@
+net.core.somaxconn = 1024
* execute[load sysctl conf net.core.somaxconn] action run
[execute] sysctl: setting key "kernel.printk": Read-only file system
sysctl: setting key "net.ipv6.conf.all.use_tempaddr": Read-only file system
sysctl: setting key "net.ipv6.conf.default.use_tempaddr": Read-only file system
sysctl: setting key "kernel.kptr_restrict": Read-only file system
sysctl: setting key "fs.protected_hardlinks": Read-only file system
sysctl: setting key "fs.protected_symlinks": Read-only file system
sysctl: setting key "kernel.sysrq": Read-only file system
sysctl: setting key "net.ipv4.conf.default.rp_filter": Read-only file system
sysctl: setting key "net.ipv4.conf.all.rp_filter": Read-only file system
sysctl: setting key "kernel.yama.ptrace_scope": Read-only file system
sysctl: setting key "vm.mmap_min_addr": Read-only file system
- 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 38fc88
--- /opt/gitlab/sv/sidekiq/run 2017-12-31 13:06:15.616267718 +0000
+++ /opt/gitlab/sv/sidekiq/.chef-run20171231-30-yw0uiz 2017-12-31 13:06:15.615267711 +0000
@@ -1 +1,19 @@
+#!/bin/sh
+
+cd /var/opt/gitlab/gitlab-rails/working
+
+exec 2>&1
+export prometheus_run_dir=''
+
+
+exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \
+ -U git -u git \
+ /usr/bin/env \
+ prometheus_multiproc_dir="${prometheus_run_dir}" \
+ /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-12-31 13:06:15.667268059 +0000
+++ /opt/gitlab/sv/sidekiq/log/.chef-run20171231-30-1jx7n8v 2017-12-31 13:06:15.666268052 +0000
@@ -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-12-31 13:06:15.675268112 +0000
+++ /var/log/gitlab/sidekiq/.chef-config20171231-30-10xt52y 2017-12-31 13:06:15.674268105 +0000
@@ -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
* directory[/opt/gitlab/sv/sidekiq/supervise] action create
- change mode from '0700' to '0755'
* directory[/opt/gitlab/sv/sidekiq/log/supervise] action create
- change mode from '0700' to '0755'
* file[/opt/gitlab/sv/sidekiq/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/sidekiq/log/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/sidekiq/supervise/control] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/sidekiq/log/supervise/control] action touch (skipped due to only_if)
* service[sidekiq] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] action run
[execute] ok: run: sidekiq: (pid 643) 3s
- 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'
* env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create
* 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-12-31 13:06:22.377312836 +0000
+++ /opt/gitlab/etc/gitlab-workhorse/env/.chef-PATH20171231-30-k7ygdt 2017-12-31 13:06:22.377312836 +0000
@@ -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-12-31 13:06:22.398312977 +0000
+++ /opt/gitlab/etc/gitlab-workhorse/env/.chef-HOME20171231-30-6gp1iw 2017-12-31 13:06:22.397312970 +0000
@@ -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 275116
--- /opt/gitlab/sv/gitlab-workhorse/run 2017-12-31 13:06:22.490313591 +0000
+++ /opt/gitlab/sv/gitlab-workhorse/.chef-run20171231-30-55whj5 2017-12-31 13:06:22.490313591 +0000
@@ -1 +1,27 @@
+#!/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 ''\
+ -prometheusListenAddr localhost:9229 \
+ -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \
+ -config config.toml \
+
+# 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-12-31 13:06:22.545313958 +0000
+++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-run20171231-30-1agxzfi 2017-12-31 13:06:22.545313958 +0000
@@ -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-12-31 13:06:22.581314198 +0000
+++ /var/log/gitlab/gitlab-workhorse/.chef-config20171231-30-v3hwef 2017-12-31 13:06:22.580314191 +0000
@@ -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
* directory[/opt/gitlab/sv/gitlab-workhorse/supervise] action create
- change mode from '0700' to '0755'
* directory[/opt/gitlab/sv/gitlab-workhorse/log/supervise] action create
- change mode from '0700' to '0755'
* file[/opt/gitlab/sv/gitlab-workhorse/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/gitlab-workhorse/log/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/gitlab-workhorse/supervise/control] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/gitlab-workhorse/log/supervise/control] action touch (skipped due to only_if)
* 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 a7180a
--- /var/opt/gitlab/gitlab-workhorse/VERSION 2017-12-31 13:06:25.672334825 +0000
+++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20171231-30-bvv6zs 2017-12-31 13:06:25.671334818 +0000
@@ -1 +1,2 @@
+gitlab-workhorse v3.3.1-20171227.112239
* template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create
- create new file /var/opt/gitlab/gitlab-workhorse/config.toml
- update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from none to d5259a
--- /var/opt/gitlab/gitlab-workhorse/config.toml 2017-12-31 13:06:25.698334999 +0000
+++ /var/opt/gitlab/gitlab-workhorse/.chef-config.toml20171231-30-a9qzar 2017-12-31 13:06:25.698334999 +0000
@@ -1 +1,4 @@
+[redis]
+URL = "tcp://gitlab-ce-redis:6379/"
+Password = ""
- change owner from '' to 'git'
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
- change mode from '0755' to '0750'
- change owner from 'gitlab-www' to 'root'
* 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 d5671a
--- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2017-12-31 13:06:25.829335873 +0000
+++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http.conf20171231-30-vagtxe 2017-12-31 13:06:25.829335873 +0000
@@ -1 +1,114 @@
+# 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 gitlab.127.0.0.1.nip.io;
+ 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
+
+ ## HSTS Config
+ ## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/
+ add_header Strict-Transport-Security "max-age=31536000";
* ruby_block[supervise_nginx_sleep] action run
- execute the ruby block supervise_nginx_sleep
* directory[/opt/gitlab/sv/nginx/supervise] action create
- change mode from '0700' to '0755'
* directory[/opt/gitlab/sv/nginx/log/supervise] action create
- change mode from '0700' to '0755'
* file[/opt/gitlab/sv/nginx/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/nginx/log/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/nginx/supervise/control] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/nginx/log/supervise/control] action touch (skipped due to only_if)
* service[nginx] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start nginx] action run
[execute] ok: run: nginx: (pid 671) 4s
- 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-12-31 13:06:35.674401571 +0000
+++ /opt/gitlab/sv/logrotate/.chef-run20171231-30-et4nxu 2017-12-31 13:06:35.673401565 +0000
@@ -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-12-31 13:06:35.714401838 +0000
+++ /opt/gitlab/sv/logrotate/log/.chef-run20171231-30-1w97rmj 2017-12-31 13:06:35.713401832 +0000
@@ -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-12-31 13:06:35.738401999 +0000
+++ /var/log/gitlab/logrotate/.chef-config20171231-30-1dgaaqt 2017-12-31 13:06:35.738401999 +0000
@@ -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-12-31 13:06:35.792402359 +0000
+++ /opt/gitlab/sv/logrotate/control/.chef-t20171231-30-1mstha8 2017-12-31 13:06:35.792402359 +0000
@@ -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
* directory[/opt/gitlab/sv/logrotate/supervise] action create
- change mode from '0700' to '0755'
* directory[/opt/gitlab/sv/logrotate/log/supervise] action create
- change mode from '0700' to '0755'
* file[/opt/gitlab/sv/logrotate/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/logrotate/log/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/logrotate/supervise/control] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/logrotate/log/supervise/control] action touch (skipped due to only_if)
* service[logrotate] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start logrotate] action run
[execute] ok: run: logrotate: (pid 687) 5s
- 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-12-31 13:06:42.261445529 +0000
+++ /var/opt/gitlab/.chef-bootstrapped20171231-30-1gkxb72 2017-12-31 13:06:42.260445522 +0000
@@ -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::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::storage-check_disable
* link[/opt/gitlab/service/storage-check] action delete (up to date)
* directory[/opt/gitlab/sv/storage-check] action delete (up to date)
Recipe: registry::disable
* link[/opt/gitlab/service/registry] action delete (up to date)
* directory[/opt/gitlab/sv/registry] action delete (up to date)
Recipe: gitaly::enable
* directory[/var/opt/gitlab/gitaly] action create
- create new directory /var/opt/gitlab/gitaly
- change mode from '' to '0700'
- change owner from '' to 'git'
* directory[/var/log/gitlab/gitaly] action create
- create new directory /var/log/gitlab/gitaly
- change mode from '' to '0700'
- change owner from '' to 'git'
* env_dir[/opt/gitlab/etc/gitaly] action create
* directory[/opt/gitlab/etc/gitaly] action create
- create new directory /opt/gitlab/etc/gitaly
* file[/opt/gitlab/etc/gitaly/HOME] action create
- create new file /opt/gitlab/etc/gitaly/HOME
- update content in file /opt/gitlab/etc/gitaly/HOME from none to 205bb9
--- /opt/gitlab/etc/gitaly/HOME 2017-12-31 13:06:42.361446196 +0000
+++ /opt/gitlab/etc/gitaly/.chef-HOME20171231-30-1wn0f6h 2017-12-31 13:06:42.360446189 +0000
@@ -1 +1,2 @@
+/var/opt/gitlab
* file[/opt/gitlab/etc/gitaly/PATH] action create
- create new file /opt/gitlab/etc/gitaly/PATH
- update content in file /opt/gitlab/etc/gitaly/PATH from none to d5dc07
--- /opt/gitlab/etc/gitaly/PATH 2017-12-31 13:06:42.389446383 +0000
+++ /opt/gitlab/etc/gitaly/.chef-PATH20171231-30-1w2u5l4 2017-12-31 13:06:42.388446376 +0000
@@ -1 +1,2 @@
+/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin
* file[/opt/gitlab/etc/gitaly/TZ] action create
- create new file /opt/gitlab/etc/gitaly/TZ
- update content in file /opt/gitlab/etc/gitaly/TZ from none to 983a95
--- /opt/gitlab/etc/gitaly/TZ 2017-12-31 13:06:42.404446483 +0000
+++ /opt/gitlab/etc/gitaly/.chef-TZ20171231-30-1qoa3ae 2017-12-31 13:06:42.403446476 +0000
@@ -1 +1,2 @@
+:/etc/localtime

* template[Create Gitaly config.toml] action create
- create new file /var/opt/gitlab/gitaly/config.toml
- update content in file /var/opt/gitlab/gitaly/config.toml from none to e6dc1c
--- /var/opt/gitlab/gitaly/config.toml 2017-12-31 13:06:42.439446716 +0000
+++ /var/opt/gitlab/gitaly/.chef-Create Gitaly config.toml20171231-30-1u9ru 2017-12-31 13:06:42.439446716 +0000
@@ -1 +1,26 @@
+# Gitaly configuration file
+# 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
+
+socket_path = '/var/opt/gitlab/gitaly/gitaly.socket'
+bin_dir = '/opt/gitlab/embedded/bin'
+
+
+
+[[storage]]
+name = 'default'
+path = '/gitlab-data/git-data/repositories'
+
+[logging]
+
+
+[auth]
+
+[gitaly-ruby]
+dir = "/opt/gitlab/embedded/service/gitaly-ruby"
+
+[gitlab-shell]
+dir = "/opt/gitlab/embedded/service/gitlab-shell"
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/gitaly] action create
- create new directory /opt/gitlab/sv/gitaly
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/gitaly/log] action create
- create new directory /opt/gitlab/sv/gitaly/log
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/opt/gitlab/sv/gitaly/log/main] action create
- create new directory /opt/gitlab/sv/gitaly/log/main
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/gitaly/run] action create
- create new file /opt/gitlab/sv/gitaly/run
- update content in file /opt/gitlab/sv/gitaly/run from none to ca190e
--- /opt/gitlab/sv/gitaly/run 2017-12-31 13:06:42.573447611 +0000
+++ /opt/gitlab/sv/gitaly/.chef-run20171231-30-1zjsgs 2017-12-31 13:06:42.573447611 +0000
@@ -1 +1,15 @@
+#!/bin/sh
+set -e # fail on errors
+
+# Redirect stderr -> stdout
+exec 2>&1
+
+
+
+cd /var/opt/gitlab/gitaly
+
+exec chpst -e /opt/gitlab/etc/gitaly -P \
+ -U git \
+ -u git \
+ /opt/gitlab/embedded/bin/gitaly /var/opt/gitlab/gitaly/config.toml
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/gitlab/sv/gitaly/log/run] action create
- create new file /opt/gitlab/sv/gitaly/log/run
- update content in file /opt/gitlab/sv/gitaly/log/run from none to 0627d2
--- /opt/gitlab/sv/gitaly/log/run 2017-12-31 13:06:42.608447844 +0000
+++ /opt/gitlab/sv/gitaly/log/.chef-run20171231-30-rtweww 2017-12-31 13:06:42.608447844 +0000
@@ -1 +1,3 @@
+#!/bin/sh
+exec svlogd -tt /var/log/gitlab/gitaly
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/var/log/gitlab/gitaly/config] action create
- create new file /var/log/gitlab/gitaly/config
- update content in file /var/log/gitlab/gitaly/config from none to 623c00
--- /var/log/gitlab/gitaly/config 2017-12-31 13:06:42.640448058 +0000
+++ /var/log/gitlab/gitaly/.chef-config20171231-30-ag7x3o 2017-12-31 13:06:42.640448058 +0000
@@ -1 +1,7 @@
+s209715200
+n30
+t86400
+!gzip
+
+
- change owner from '' to 'root'
- change group from '' to 'root'
* ruby_block[reload gitaly svlogd configuration] action nothing (skipped due to action :nothing)
* file[/opt/gitlab/sv/gitaly/down] action delete (up to date)
* link[/opt/gitlab/init/gitaly] action create
- create symlink at /opt/gitlab/init/gitaly to /opt/gitlab/embedded/bin/sv
* link[/opt/gitlab/service/gitaly] action create
- create symlink at /opt/gitlab/service/gitaly to /opt/gitlab/sv/gitaly
* ruby_block[supervise_gitaly_sleep] action run
- execute the ruby block supervise_gitaly_sleep
* directory[/opt/gitlab/sv/gitaly/supervise] action create
- change mode from '0700' to '0755'
* directory[/opt/gitlab/sv/gitaly/log/supervise] action create
- change mode from '0700' to '0755'
* file[/opt/gitlab/sv/gitaly/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/gitaly/log/supervise/ok] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/gitaly/supervise/control] action touch (skipped due to only_if)
* file[/opt/gitlab/sv/gitaly/log/supervise/control] action touch (skipped due to only_if)
* service[gitaly] action nothing (skipped due to action :nothing)
* execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run
[execute] ok: run: gitaly: (pid 703) 4s
- execute /opt/gitlab/bin/gitlab-ctl start gitaly
Recipe: 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-healthcheck
* template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create
- create new file /opt/gitlab/etc/gitlab-healthcheck-rc
- update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from none to 6da55f
--- /opt/gitlab/etc/gitlab-healthcheck-rc 2017-12-31 13:06:48.041484100 +0000
+++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20171231-30-tbnwl 2017-12-31 13:06:48.040484093 +0000
@@ -1 +1,3 @@
+url='http://localhost:80/help'
+flags='--insecure'
- change owner from '' to 'root'
- change group from '' to 'root'
Recipe: gitlab::node-exporter_disable
* link[/opt/gitlab/service/node-exporter] action delete (up to date)
* directory[/opt/gitlab/sv/node-exporter] action delete (up to date)
Recipe: gitlab::gitlab-monitor_disable
* link[/opt/gitlab/service/gitlab-monitor] action delete (up to date)
* directory[/opt/gitlab/sv/gitlab-monitor] action delete (up to date)
Recipe: gitlab::redis-exporter_disable
* link[/opt/gitlab/service/redis-exporter] action delete (up to date)
* directory[/opt/gitlab/sv/redis-exporter] action delete (up to date)
Recipe: gitlab::prometheus_disable
* link[/opt/gitlab/service/prometheus] action delete (up to date)
* directory[/opt/gitlab/sv/prometheus] action delete (up to date)
Recipe: gitlab::postgres-exporter_disable
* link[/opt/gitlab/service/postgres-exporter] action delete (up to date)
* directory[/opt/gitlab/sv/postgres-exporter] action delete (up to date)
Recipe: gitlab::gitlab-rails
* execute[clear the gitlab-rails cache] action run (skipped due to not_if)
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
Recipe: gitaly::enable
* service[gitaly] action restart
- restart service service[gitaly]
* ruby_block[reload gitaly svlogd configuration] action create
- execute the ruby block reload gitaly svlogd configuration

Running handlers:
Running handlers complete
Chef Client finished, 212/324 resources updated in 01 minutes 37 seconds
gitlab Reconfigured!
No currently installed postgresql in the omnibus instance found.

Checking for an omnibus managed postgresql:
Checking for an omnibus managed postgresql: NOT OK
==> /var/log/gitlab/sshd/current <==
2017-12-31_13:05:08.06348 Server listening on 0.0.0.0 port 22.
2017-12-31_13:05:08.06353 Server listening on :: port 22.
==> /var/log/gitlab/gitlab-shell/gitlab-shell.log <==
# Logfile created on 2017-12-31 13:05:21 +0000 by logger.rb/56438
==> /var/log/gitlab/gitlab-rails/gitlab-rails-db-migrate-2017-12-31-13-05-25.log <==
-> 0.0395s
== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/001_admin.rb
Administrator account created:
login: root
password: ********
== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb
==> /var/log/gitlab/gitlab-rails/production.log <==
Raven 2.5.3 configured not to capture errors: DSN not set
==> /var/log/gitlab/gitlab-rails/grpc.log <==
# Logfile created on 2017-12-31 13:05:55 +0000 by logger.rb/56438
==> /var/log/gitlab/gitlab-rails/production_json.log <==
# Logfile created on 2017-12-31 13:05:55 +0000 by logger.rb/56438
==> /var/log/gitlab/gitlab-rails/api_json.log <==
# Logfile created on 2017-12-31 13:05:55 +0000 by logger.rb/56438
==> /var/log/gitlab/gitlab-rails/application.log <==
# Logfile created on 2017-12-31 13:06:10 +0000 by logger.rb/56438
December 31, 2017 13:06: User "Administrator" (admin@example.com) was created
==> /var/log/gitlab/logrotate/current <==
==> /var/log/gitlab/unicorn/current <==
2017-12-31_13:06:13.17001 starting new unicorn master
==> /var/log/gitlab/unicorn/unicorn_stderr.log <==
I, [2017-12-31T13:06:14.800070 #629] INFO -- : Refreshing Gem list
==> /var/log/gitlab/unicorn/unicorn_stdout.log <==
==> /var/log/gitlab/sidekiq/current <==
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-12-31_13:06:26.64295 2017/12/31 13:06:26 Starting gitlab-workhorse v3.3.1-20171227.112239
2017-12-31_13:06:26.64297 2017/12/31 13:06:26 keywatcher: starting process loop
2017-12-31_13:06:26.65183 2017/12/31 13:06:26 redis: dialing "tcp", "gitlab-ce-redis:6379"
2017-12-31_13:06:40.04174 2017/12/31 13:06:40 error: GET "/help": badgateway: failed after 0s: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: no such file or directory
2017-12-31_13:06:40.05898 172.17.0.5:80 @ - - [2017-12-31 13:06:40.02943983 +0000 UTC] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1" 0.021360
2017-12-31_13:06:48.67892 2017/12/31 13:06:48 Starting gitlab-workhorse v3.3.1-20171227.112239
2017-12-31_13:06:48.68050 2017/12/31 13:06:48 keywatcher: starting process loop
2017-12-31_13:06:48.68053 2017/12/31 13:06:48 redis: dialing "tcp", "gitlab-ce-redis:6379"
2017-12-31_13:06:50.25487 2017/12/31 13:06:50 error: GET "/help": badgateway: failed after 0s: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: no such file or directory
2017-12-31_13:06:50.25489 172.17.0.5:80 @ - - [2017-12-31 13:06:50.249763618 +0000 UTC] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1" 0.005000
==> /var/log/gitlab/nginx/current <==
==> /var/log/gitlab/nginx/error.log <==
==> /var/log/gitlab/nginx/gitlab_access.log <==
172.17.0.1 - - [31/Dec/2017:13:06:40 +0000] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1"
172.17.0.1 - - [31/Dec/2017:13:06:50 +0000] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1"
==> /var/log/gitlab/nginx/gitlab_error.log <==
==> /var/log/gitlab/nginx/access.log <==
==> /var/log/gitlab/gitaly/current <==
2017-12-31_13:06:45.27532 time="2017-12-31T13:06:45Z" level=info msg="Starting Gitaly" version="Gitaly, version 0.59.2, built 20171228.123804"
2017-12-31_13:06:45.27539 time="2017-12-31T13:06:45Z" level=warning msg="git path not configured. Using default path resolution" resolvedPath=/opt/gitlab/embedded/bin/git
2017-12-31_13:06:45.59281 time="2017-12-31T13:06:45Z" level=warning msg="git path not configured. Using default path resolution" resolvedPath=/opt/gitlab/embedded/bin/git
2017-12-31_13:06:49.24701 time="2017-12-31T13:06:49Z" level=info msg="Starting Gitaly" version="Gitaly, version 0.59.2, built 20171228.123804"
2017-12-31_13:06:49.24704 time="2017-12-31T13:06:49Z" level=warning msg="git path not configured. Using default path resolution" resolvedPath=/opt/gitlab/embedded/bin/git
2017-12-31_13:06:49.27655 time="2017-12-31T13:06:49Z" level=warning msg="git path not configured. Using default path resolution" resolvedPath=/opt/gitlab/embedded/bin/git
2017-12-31_13:06:53.17415 time="2017-12-31T13:06:53Z" level=info msg="listening on unix socket" address=/var/opt/gitlab/gitaly/gitaly.socket
2017-12-31_13:06:53.18614 time="2017-12-31T13:06:53Z" level=warning msg=spawned supervisor.args="[bundle exec bin/ruby-cd /var/opt/gitlab/gitaly /opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby 740 /tmp/gitaly-ruby182847053/socket.1]" supervisor.name=gitaly-ruby.1 supervisor.pid=753
2017-12-31_13:06:53.24207 time="2017-12-31T13:06:53Z" level=warning msg=spawned supervisor.args="[bundle exec bin/ruby-cd /var/opt/gitlab/gitaly /opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby 740 /tmp/gitaly-ruby182847053/socket.0]" supervisor.name=gitaly-ruby.0 supervisor.pid=755
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-12-31_13:07:00.03935 2017/12/31 13:07:00 error: GET "/help": badgateway: failed after 0s: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: no such file or directory
2017-12-31_13:07:00.03937 172.17.0.5:80 @ - - [2017-12-31 13:07:00.03227956 +0000 UTC] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1" 0.006983
==> /var/log/gitlab/nginx/gitlab_access.log <==
172.17.0.1 - - [31/Dec/2017:13:07:00 +0000] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1"
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-12-31_13:07:05.67863 2017/12/31 13:07:05 error: GET "/help": badgateway: failed after 0s: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: no such file or directory
2017-12-31_13:07:05.67870 localhost @ - - [2017-12-31 13:07:05.677623668 +0000 UTC] "GET /help HTTP/1.1" 502 2916 "" "curl/7.56.1" 0.000782
==> /var/log/gitlab/nginx/gitlab_access.log <==
127.0.0.1 - - [31/Dec/2017:13:07:05 +0000] "GET /help HTTP/1.1" 502 2916 "" "curl/7.56.1"
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-12-31_13:07:10.04127 2017/12/31 13:07:10 error: GET "/help": badgateway: failed after 0s: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: no such file or directory
2017-12-31_13:07:10.04130 172.17.0.5:80 @ - - [2017-12-31 13:07:10.029918833 +0000 UTC] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1" 0.001477
2017-12-31_13:07:10.04130 2017/12/31 13:07:10 error: GET "/help": badgateway: failed after 0s: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: no such file or directory
==> /var/log/gitlab/nginx/gitlab_access.log <==
172.17.0.1 - - [31/Dec/2017:13:07:10 +0000] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1"
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-12-31_13:07:10.04191 172.17.0.5:80 @ - - [2017-12-31 13:07:10.03154999 +0000 UTC] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1" 0.010283
==> /var/log/gitlab/nginx/gitlab_access.log <==
172.17.0.1 - - [31/Dec/2017:13:07:10 +0000] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1"
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-12-31_13:07:20.13002 2017/12/31 13:07:20 error: GET "/help": badgateway: failed after 0s: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: no such file or directory
2017-12-31_13:07:20.13004 172.17.0.5:80 @ - - [2017-12-31 13:07:20.129527053 +0000 UTC] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1" 0.000437
==> /var/log/gitlab/nginx/gitlab_access.log <==
172.17.0.1 - - [31/Dec/2017:13:07:20 +0000] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1"
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-12-31_13:07:20.22994 2017/12/31 13:07:20 error: GET "/help": badgateway: failed after 0s: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: no such file or directory
2017-12-31_13:07:20.22996 172.17.0.5:80 @ - - [2017-12-31 13:07:20.229133169 +0000 UTC] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1" 0.000593
==> /var/log/gitlab/nginx/gitlab_access.log <==
172.17.0.1 - - [31/Dec/2017:13:07:20 +0000] "GET /help HTTP/1.1" 502 2916 "" "Go-http-client/1.1"
==> /var/log/gitlab/sidekiq/current <==
2017-12-31_13:07:27.08981 2017-12-31T13:07:27.089Z 643 TID-ovht1hg4g INFO: Booting Sidekiq 5.0.4 with redis options {:host=>"gitlab-ce-redis", :port=>6379, :password=>nil, :namespace=>"resque:gitlab", :id=>"Sidekiq-server-PID-643", :url=>nil}
2017-12-31_13:07:27.23122 2017-12-31T13:07:27.231Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: stuck_ci_jobs_worker
2017-12-31_13:07:27.23589 2017-12-31T13:07:27.235Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: expire_build_artifacts_worker
2017-12-31_13:07:27.24184 2017-12-31T13:07:27.241Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: pipeline_schedule_worker
2017-12-31_13:07:27.25253 2017-12-31T13:07:27.252Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: repository_check_worker
2017-12-31_13:07:27.26597 2017-12-31T13:07:27.265Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: admin_email_worker
2017-12-31_13:07:27.27368 2017-12-31T13:07:27.272Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: repository_archive_cache_worker
2017-12-31_13:07:27.28104 2017-12-31T13:07:27.280Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: import_export_project_cleanup_worker
2017-12-31_13:07:27.29291 2017-12-31T13:07:27.292Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: requests_profiles_worker
2017-12-31_13:07:27.30126 2017-12-31T13:07:27.300Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: remove_expired_members_worker
2017-12-31_13:07:27.30763 2017-12-31T13:07:27.307Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: remove_expired_group_links_worker
2017-12-31_13:07:27.31273 2017-12-31T13:07:27.312Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: prune_old_events_worker
2017-12-31_13:07:27.33330 2017-12-31T13:07:27.333Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: trending_projects_worker
2017-12-31_13:07:27.34619 2017-12-31T13:07:27.345Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: remove_unreferenced_lfs_objects_worker
2017-12-31_13:07:27.36708 2017-12-31T13:07:27.366Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: stuck_import_jobs_worker
2017-12-31_13:07:27.37576 2017-12-31T13:07:27.375Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: gitlab_usage_ping_worker
2017-12-31_13:07:27.38983 2017-12-31T13:07:27.389Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: schedule_update_user_activity_worker
2017-12-31_13:07:27.40222 2017-12-31T13:07:27.401Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: remove_old_web_hook_logs_worker
2017-12-31_13:07:27.41184 2017-12-31T13:07:27.411Z 643 TID-ovht1hg4g INFO: Cron Jobs - add job with name: stuck_merge_jobs_worker

前回NGだった部分もパスし、ヘルスチェックもはしっているのでうまく行ってそうだけど。
無情なError通告
GitLab41.png

GitLab42.png

GitLab43.png

でもそのエラー内容はタイムアウトによるもの
--> Scaling gitlab-ce-5 to 1
error: update acceptor rejected gitlab-ce-5: pods for rc 'gitlab/gitlab-ce-5' took longer than 600 seconds to become available


ってことで心機一転。マシンをリブートし再度Deployをしてみたらあっさり成功♪

GitLab50.png

GitLab51.png


関連記事