· 10 years ago · Jul 17, 2016, 03:33 PM
1aaronngray@aarongray:~$ sudo apt-get install gitlab-ce
2Reading package lists... Done
3Building dependency tree
4Reading state information... Done
5The following packages were automatically installed and are no longer required:
6 libjemalloc1 redis-tools
7Use 'apt-get autoremove' to remove them.
8The following NEW packages will be installed:
9 gitlab-ce
100 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
11Need to get 0 B/278 MB of archives.
12After this operation, 768 MB of additional disk space will be used.
13Selecting previously unselected package gitlab-ce.
14(Reading database ... 289170 files and directories currently installed.)
15Preparing to unpack .../gitlab-ce_8.9.6-ce.0_amd64.deb ...
16Unpacking gitlab-ce (8.9.6-ce.0) ...
17Setting up gitlab-ce (8.9.6-ce.0) ...
18gitlab: Thank you for installing GitLab!
19gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:
20
21sudo gitlab-ctl reconfigure
22
23gitlab: GitLab should be reachable at http://aarongray.org
24gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
25gitlab: And running reconfigure again.
26gitlab:
27gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
28gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
29gitlab:
30It looks like GitLab has not been configured yet; skipping the upgrade script.
31aaronngray@aarongray:~$ sudo gitlab-ctl reconfigure
32Starting Chef Client, version 12.6.0
33[2016-07-17T17:14:52+01:00] INFO: GET /organizations/chef/nodes/aarongray.org
34[2016-07-17T17:14:52+01:00] INFO: #<ChefZero::RestErrorResponse: 404: Object not found: chefzero://localhost:8889/nodes/aarongray.org>
35/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb:91:in `rescue in get_data'
36/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb:83:in `get_data'
37/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/endpoints/rest_object_endpoint.rb:18:in `get'
38/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb:62:in `call'
39/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_router.rb:24:in `call'
40/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/server.rb:664:in `block in app'
41/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/server.rb:336:in `call'
42/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/server.rb:336:in `handle_socketless_request'
43/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/socketless_server_map.rb:87:in `request'
44/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/socketless_server_map.rb:33:in `request'
45/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http/socketless_chef_zero_client.rb:153:in `request'
46/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:275:in `block in send_http_request'
47/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:307:in `block in retrying_http_errors'
48/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:305:in `loop'
49/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:305:in `retrying_http_errors'
50/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:269:in `send_http_request'
51/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:144:in `request'
52/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/rest.rb:120:in `get'
53/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/node.rb:598:in `load'
54/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/node.rb:582:in `find_or_create'
55/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/policy_builder/dynamic.rb:73:in `load_node'
56/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/client.rb:447:in `load_node'
57/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/client.rb:257:in `run'
58/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application.rb:261:in `block in fork_chef_client'
59/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application.rb:249:in `fork'
60/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application.rb:249:in `fork_chef_client'
61/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application.rb:215:in `block in run_chef_client'
62/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/local_mode.rb:44:in `with_server_connectivity'
63/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application.rb:203:in `run_chef_client'
64/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application/client.rb:413:in `block in interval_run_chef_client'
65/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application/client.rb:403:in `loop'
66/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application/client.rb:403:in `interval_run_chef_client'
67/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application/client.rb:393:in `run_application'
68/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application.rb:58:in `run'
69/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/bin/chef-client:26:in `<top (required)>'
70/opt/gitlab/embedded/bin/chef-client:23:in `load'
71/opt/gitlab/embedded/bin/chef-client:23:in `<main>'
72[2016-07-17T17:14:52+01:00] INFO: POST /organizations/chef/nodes
73--- POST BODY ---
74{"name":"aarongray.org","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":[]}
75--- END POST BODY ---
76[2016-07-17T17:14:52+01:00] INFO: POST /organizations/chef/reports/nodes/aarongray.org/runs
77--- POST BODY ---
78{"action":"start","run_id":"628a49aa-b769-4da2-9c4a-e1eb2315057c","start_time":"2016-07-17 17:14:52 +0100"}
79--- END POST BODY ---
80resolving cookbooks for run list: ["gitlab"]
81[2016-07-17T17:14:52+01:00] INFO: POST /organizations/chef/environments/_default/cookbook_versions
82--- POST BODY ---
83{"run_list":["gitlab"]}
84--- END POST BODY ---
85Synchronizing Cookbooks:
86[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/nginx.rb
87[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/sidekiq_disable.rb
88[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/unicorn_disable.rb
89[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/sidekiq.rb
90[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/ci-redis_disable.rb
91[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/cron.rb
92[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/logrotate_disable.rb
93[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/ci-unicorn_disable.rb
94[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/mattermost.rb
95[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/mailroom_disable.rb
96[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/users.rb
97[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/postgresql.rb
98[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/registry_disable.rb
99[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/gitlab-ci-proxying.rb
100[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/database_migrations.rb
101[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/bootstrap.rb
102[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/mattermost_disable.rb
103[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/remove_accounts.rb
104[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/show_config.rb
105[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/mailroom.rb
106[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/unicorn.rb
107[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/add_trusted_certs.rb
108[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/selinux.rb
109[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/remote-syslog_disable.rb
110[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/gitlab-rails.rb
111[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/remote-syslog.rb
112[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/ci-unicorn.rb
113[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/ci-redis.rb
114[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/default.rb
115[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/gitlab-pages_disable.rb
116[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/bootstrap_disable.rb
117[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/postgresql_disable.rb
118[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/redis_disable.rb
119[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/gitlab-shell.rb
120[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/ci-sidekiq_disable.rb
121[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/logrotate.rb
122[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/nginx_disable.rb
123[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/gitlab-workhorse.rb
124[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/redis.rb
125[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/web-server.rb
126[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/registry.rb
127[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/gitlab-workhorse_disable.rb
128[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/ci-sidekiq.rb
129[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/recipes/gitlab-pages.rb
130[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/definitions/account.rb
131[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/definitions/unicorn_service.rb
132[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/definitions/template_symlink.rb
133[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/definitions/sysctl.rb
134[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/definitions/env_dir.rb
135[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/definitions/unicorn_config.rb
136[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/definitions/redis_service.rb
137[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/definitions/sidekiq_service.rb
138[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/libraries/gitlab.rb
139[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/libraries/account_helper.rb
140[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/libraries/helper.rb
141[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/attributes/default.rb
142[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/files/default/mail_room.yml
143[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/nginx-gitlab-registry-http.conf.erb
144[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-mattermost-run.erb
145[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/nginx-gitlab-mattermost-http.conf.erb
146[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/nginx-gitlab-http.conf.erb
147[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/unicorn.rb.erb
148[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/postgresql-init.erb
149[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/remote_syslog.yml.erb
150[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/resque.yml.erb
151[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/logrotate-service.erb
152[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-logrotate-control-t.erb
153[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-registry-log-run.erb
154[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-postgresql-control-t.erb
155[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-mattermost-log-config.erb
156[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/nginx.conf.erb
157[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-mattermost-log-run.erb
158[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/pg_ident.conf.erb
159[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/mount_point_check.erb
160[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-redis-log-run.erb
161[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-gitlab-workhorse-log-run.erb
162[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/secret_token.erb
163[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-logrotate-run.erb
164[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-nginx-run.erb
165[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-unicorn-log-run.erb
166[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-redis-log-config.erb
167[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/nginx-gitlab-pages-http.conf.erb
168[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-sidekiq-log-config.erb
169[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/gitconfig-system.erb
170[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/pg_hba.conf.erb
171[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-sidekiq-run.erb
172[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-postgresql-run.erb
173[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/gitlab.yml.erb
174[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-registry-run.erb
175[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-mailroom-finish.erb
176[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-nginx-log-config.erb
177[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/gitlab-rails-rc.erb
178[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/gitlab-psql-rc.erb
179[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-mailroom-log-config.erb
180[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/gitconfig.erb
181[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/redis.conf.erb
182[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-gitlab-pages-log-config.erb
183[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/secrets.yml.erb
184[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-postgresql-log-run.erb
185[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/database.yml.erb
186[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-unicorn-log-config.erb
187[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-unicorn-control-t.erb
188[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/gitlab-shell-config.yml.erb
189[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-postgresql-log-config.erb
190[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/rack_attack.rb.erb
191[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/registry-config.yml.erb
192[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/postgresql.conf.erb
193[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/gitlab-ci-rc.erb
194[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-sidekiq-log-run.erb
195[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/relative_url.rb.erb
196[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-remote-syslog-log-run.erb
197[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/nginx-gitlab-ci-http.conf.erb
198[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-remote-syslog-run.erb
199[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-mailroom-log-run.erb
200[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-gitlab-pages-log-run.erb
201[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-logrotate-log-config.erb
202[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-remote-syslog-log-config.erb
203[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-redis-run.erb
204[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/config.json.erb
205[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-nginx-log-run.erb
206[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-registry-log-config.erb
207[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/smtp_settings.rb.erb
208[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-gitlab-workhorse-run.erb
209[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/logrotate.conf.erb
210[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-logrotate-log-run.erb
211[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/aws.yml.erb
212[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-unicorn-run.erb
213[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-mailroom-run.erb
214[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-gitlab-workhorse-log-config.erb
215[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/templates/default/sv-gitlab-pages-run.erb
216[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/gitlab/metadata.rb
217[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/recipes/upstart.rb
218[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/recipes/default.rb
219[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/recipes/systemd.rb
220[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/recipes/sysvinit.rb
221[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/definitions/runit_service.rb
222[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/attributes/default.rb
223[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/files/default/gitlab-runsvdir.service
224 [2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/files/default/gitlab-runsvdir.conf
225- gitlab (0.0.1)
226[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/README.md
227[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/runit/metadata.rb
228[2016-07-17T17:14:53+01:00] INFO: GET /organizations/chef/file_store/repo/cookbooks/package/attributes/default.rb
229 - runit (0.14.2)
230 - package (0.0.0)
231Compiling Cookbooks...
232Recipe: gitlab::default
233 * directory[/etc/gitlab] action create
234 - change mode from '0755' to '0775'
235/sbin/init: unrecognized option '--version'
236 -.mount loaded active mounted /
237 Converging 288 resources
238 * directory[/etc/gitlab] action nothing (skipped due to action :nothing)
239 * directory[/var/opt/gitlab] action create
240 - create new directory /var/opt/gitlab
241 - change mode from '' to '0755'
242 - change owner from '' to 'root'
243 - change group from '' to 'root'
244 * directory[/opt/gitlab/embedded/etc] action create
245 - create new directory /opt/gitlab/embedded/etc
246 - change mode from '' to '0755'
247 - change owner from '' to 'root'
248 - change group from '' to 'root'
249 * template[/opt/gitlab/embedded/etc/gitconfig] action create
250 - create new file /opt/gitlab/embedded/etc/gitconfig
251 - update content in file /opt/gitlab/embedded/etc/gitconfig from none to 15d29f
252 --- /opt/gitlab/embedded/etc/gitconfig 2016-07-17 17:14:55.606653019 +0100
253 +++ /opt/gitlab/embedded/etc/.gitconfig20160717-7858-19pt2mr 2016-07-17 17:14:55.606653019 +0100
254 @@ -1 +1,5 @@
255 +[pack]
256 + threads = 1
257 +[receive]
258 + fsckObjects = true
259 - change mode from '' to '0755'
260Recipe: gitlab::web-server
261 * group[gitlab-www] action create (up to date)
262 * user[gitlab-www] action create (up to date)
263Recipe: gitlab::users
264 * directory[/var/opt/gitlab] action create (up to date)
265 * group[git] action create (up to date)
266 * user[git] action create (up to date)
267 * template[/var/opt/gitlab/.gitconfig] action create
268 - create new file /var/opt/gitlab/.gitconfig
269 - update content in file /var/opt/gitlab/.gitconfig from none to f6d066
270 --- /var/opt/gitlab/.gitconfig 2016-07-17 17:14:55.626653019 +0100
271 +++ /var/opt/gitlab/..gitconfig20160717-7858-kv20sl 2016-07-17 17:14:55.622653019 +0100
272 @@ -1 +1,12 @@
273 +# This file is managed by gitlab-ctl. Manual changes will be
274 +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
275 +# and run `sudo gitlab-ctl reconfigure`.
276 +
277 +[user]
278 + name = GitLab
279 + email = gitlab@aarongray.org
280 +[core]
281 + autocrlf = input
282 +[gc]
283 + auto = 0
284 - change mode from '' to '0644'
285 - change owner from '' to 'git'
286 - change group from '' to 'git'
287Recipe: gitlab::gitlab-shell
288 * directory[/var/opt/gitlab/git-data/repositories] action create
289 - create new directory /var/opt/gitlab/git-data/repositories
290 - change mode from '' to '02770'
291 - change owner from '' to 'git'
292 - change group from '' to 'git'
293 * directory[/var/opt/gitlab/git-data] action create
294 - change mode from '0755' to '0700'
295 - change owner from 'root' to 'git'
296 * directory[/var/opt/gitlab/.ssh] action create
297 - create new directory /var/opt/gitlab/.ssh
298 - change mode from '' to '0700'
299 - change owner from '' to 'git'
300 - change group from '' to 'git'
301 * file[/var/opt/gitlab/.ssh/authorized_keys] action create
302 - create new file /var/opt/gitlab/.ssh/authorized_keys
303 - change mode from '' to '0600'
304 - change owner from '' to 'git'
305 - change group from '' to 'git'
306 * directory[/opt/gitlab/embedded/service/gitlab-shell/hooks/] action create
307 - change owner from 'root' to 'git'
308 - change group from 'root' to 'git'
309 * file[/opt/gitlab/embedded/service/gitlab-shell/authorized_keys.lock] action create
310 - create new file /opt/gitlab/embedded/service/gitlab-shell/authorized_keys.lock
311 - change owner from '' to 'git'
312 - change group from '' to 'git'
313 * execute[chcon --recursive --type ssh_home_t /var/opt/gitlab/.ssh] action runid: --context (-Z) works only on an SELinux-enabled kernel
314 (skipped due to only_if)
315 * directory[/var/log/gitlab/gitlab-shell/] action create
316 - create new directory /var/log/gitlab/gitlab-shell/
317 - change mode from '' to '0700'
318 - change owner from '' to 'git'
319 * directory[/var/opt/gitlab/gitlab-shell] action create
320 - create new directory /var/opt/gitlab/gitlab-shell
321 - change mode from '' to '0700'
322 - change owner from '' to 'git'
323 * template[/var/opt/gitlab/gitlab-shell/config.yml] action create
324 - create new file /var/opt/gitlab/gitlab-shell/config.yml
325 - update content in file /var/opt/gitlab/gitlab-shell/config.yml from none to b30201
326 --- /var/opt/gitlab/gitlab-shell/config.yml 2016-07-17 17:14:55.702653020 +0100
327 +++ /var/opt/gitlab/gitlab-shell/.config.yml20160717-7858-mwx4vb 2016-07-17 17:14:55.702653020 +0100
328 @@ -1 +1,56 @@
329 +# This file is managed by gitlab-ctl. Manual changes will be
330 +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
331 +# and run `sudo gitlab-ctl reconfigure`.
332 +
333 +# GitLab user. git by default
334 +user: git
335 +
336 +# Url to gitlab instance. Used for api calls. Should end with a slash.
337 +gitlab_url: "http://127.0.0.1:8080"
338 +
339 +http_settings:
340 +
341 +# user: someone
342 +# password: somepass
343 +# ca_file: /etc/ssl/cert.pem
344 +# ca_path: /etc/pki/tls/certs
345 +# self_signed_cert: false
346 +
347 +# Repositories path
348 +# Give the canonicalized absolute pathname,
349 +# REPOS_PATH MUST NOT CONTAIN ANY SYMLINK!!!
350 +# Check twice that none of the components is a symlink, including "/home".
351 +repos_path: "/var/opt/gitlab/git-data/repositories"
352 +
353 +# File used as authorized_keys for gitlab user
354 +auth_file: "/var/opt/gitlab/.ssh/authorized_keys"
355 +
356 +# Redis settings used for pushing commit notices to gitlab
357 +redis:
358 + bin: /opt/gitlab/embedded/bin/redis-cli
359 + host: 127.0.0.1
360 + port:
361 + socket: /var/opt/gitlab/redis/redis.socket
362 + database:
363 + namespace: resque:gitlab
364 +
365 +# Log file.
366 +# Default is gitlab-shell.log in the root directory.
367 +log_file: "/var/log/gitlab/gitlab-shell/gitlab-shell.log"
368 +
369 +# Log level. INFO by default
370 +log_level:
371 +
372 +# Audit usernames.
373 +# Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but
374 +# incurs an extra API call on every gitlab-shell command.
375 +audit_usernames:
376 +
377 +# Enable git-annex support
378 +# git-annex allows managing files with git, without checking the file contents into git
379 +# See https://git-annex.branchable.com/ for documentation
380 +# If enabled, git-annex needs to be installed on the server where gitlab-shell is setup
381 +# For Debian and Ubuntu systems this can be done with: sudo apt-get install git-annex
382 +# For CentOS: sudo yum install epel-release && sudo yum install git-annex
383 +git_annex_enabled:
384 * link[/opt/gitlab/embedded/service/gitlab-shell/config.yml] action create
385 - create symlink at /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml
386 * template[/var/opt/gitlab/gitlab-shell/gitlab_shell_secret] action create
387 - create new file /var/opt/gitlab/gitlab-shell/gitlab_shell_secret
388 - update content in file /var/opt/gitlab/gitlab-shell/gitlab_shell_secret from none to 9e87f0
389 --- /var/opt/gitlab/gitlab-shell/gitlab_shell_secret 2016-07-17 17:14:55.722653021 +0100
390 +++ /var/opt/gitlab/gitlab-shell/.gitlab_shell_secret20160717-7858-iqc2i4 2016-07-17 17:14:55.722653021 +0100
391 @@ -1 +1,2 @@
392 +1e533a3524d45faa58408abab7b6e063fdc889dc69c9e18c98b0e2363da404c342389a7842dcb2bcf0bee8f7f92e4fc1c29217f75dfb9d7817498dbc1c34fa71
393 - change mode from '' to '0644'
394 - change owner from '' to 'root'
395 - change group from '' to 'root'
396 * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create
397 - create symlink at /opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret to /var/opt/gitlab/gitlab-shell/gitlab_shell_secret
398Recipe: gitlab::gitlab-rails
399 * directory[/var/log/gitlab] action create
400 - change owner from 'root' to 'git'
401 * directory[/var/opt/gitlab/gitlab-rails/shared] action create
402 - create new directory /var/opt/gitlab/gitlab-rails/shared
403 - change mode from '' to '0751'
404 - change owner from '' to 'git'
405 - change group from '' to 'gitlab-www'
406 * directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
407 - create new directory /var/opt/gitlab/gitlab-rails/shared/artifacts
408 - change mode from '' to '0700'
409 - change owner from '' to 'git'
410 * directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
411 - create new directory /var/opt/gitlab/gitlab-rails/shared/lfs-objects
412 - change mode from '' to '0700'
413 - change owner from '' to 'git'
414 * directory[/var/opt/gitlab/gitlab-rails/uploads] action create
415 - create new directory /var/opt/gitlab/gitlab-rails/uploads
416 - change mode from '' to '0700'
417 - change owner from '' to 'git'
418 * directory[/var/opt/gitlab/gitlab-ci/builds] action create
419 - create new directory /var/opt/gitlab/gitlab-ci/builds
420 - change mode from '' to '0700'
421 - change owner from '' to 'git'
422 * directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
423 - create new directory /var/opt/gitlab/gitlab-rails/shared/pages
424 - change mode from '' to '0750'
425 - change owner from '' to 'git'
426 - change group from '' to 'gitlab-www'
427 * directory[/var/opt/gitlab/gitlab-rails/etc] action create
428 - create new directory /var/opt/gitlab/gitlab-rails/etc
429 - change mode from '' to '0700'
430 - change owner from '' to 'git'
431 * directory[/opt/gitlab/etc/gitlab-rails] action create
432 - create new directory /opt/gitlab/etc/gitlab-rails
433 - change mode from '' to '0700'
434 - change owner from '' to 'git'
435 * directory[/var/opt/gitlab/gitlab-rails/working] action create
436 - create new directory /var/opt/gitlab/gitlab-rails/working
437 - change mode from '' to '0700'
438 - change owner from '' to 'git'
439 * directory[/var/opt/gitlab/gitlab-rails/tmp] action create
440 - create new directory /var/opt/gitlab/gitlab-rails/tmp
441 - change mode from '' to '0700'
442 - change owner from '' to 'git'
443 * directory[/var/opt/gitlab/gitlab-rails/upgrade-status] action create
444 - create new directory /var/opt/gitlab/gitlab-rails/upgrade-status
445 - change mode from '' to '0700'
446 - change owner from '' to 'git'
447 * directory[/var/log/gitlab/gitlab-rails] action create
448 - create new directory /var/log/gitlab/gitlab-rails
449 - change mode from '' to '0700'
450 - change owner from '' to 'git'
451 * directory[/var/opt/gitlab/backups] action create
452 - create new directory /var/opt/gitlab/backups
453 - change mode from '' to '0700'
454 - change owner from '' to 'git'
455 * directory[/var/opt/gitlab/gitlab-rails] action create
456 - change owner from 'root' to 'git'
457 * directory[/var/opt/gitlab/gitlab-ci] action create
458 - change owner from 'root' to 'git'
459 * template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create
460 - create new file /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc
461 - update content in file /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc from none to 15c7d9
462 --- /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc 2016-07-17 17:14:55.802653022 +0100
463 +++ /opt/gitlab/etc/gitlab-rails/.gitlab-rails-rc20160717-7858-5nuvsy 2016-07-17 17:14:55.802653022 +0100
464 @@ -1 +1,2 @@
465 +gitlab_user='git'
466 * template[/var/opt/gitlab/gitlab-rails/etc/secret] action create
467 - create new file /var/opt/gitlab/gitlab-rails/etc/secret
468 - update content in file /var/opt/gitlab/gitlab-rails/etc/secret from none to 03b4cc
469 --- /var/opt/gitlab/gitlab-rails/etc/secret 2016-07-17 17:14:55.810653022 +0100
470 +++ /var/opt/gitlab/gitlab-rails/etc/.secret20160717-7858-18gzzl 2016-07-17 17:14:55.810653022 +0100
471 @@ -1 +1,2 @@
472 +ff08f243c7fa1fa2b449854a1e173a817ef77eed1ba904b95e22baa1ba86f24ad21d7b43adc1fc498fe18095b381c5e0499697fbeef6f9bba7da3d2895f02275
473 - change mode from '' to '0644'
474 - change owner from '' to 'root'
475 - change group from '' to 'root'
476 * link[/opt/gitlab/embedded/service/gitlab-rails/.secret] action create
477 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.secret to /var/opt/gitlab/gitlab-rails/etc/secret
478 * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create
479 - create new file /var/opt/gitlab/gitlab-rails/etc/database.yml
480 - update content in file /var/opt/gitlab/gitlab-rails/etc/database.yml from none to 4b6682
481 --- /var/opt/gitlab/gitlab-rails/etc/database.yml 2016-07-17 17:14:55.822653022 +0100
482 +++ /var/opt/gitlab/gitlab-rails/etc/.database.yml20160717-7858-1b8zqna 2016-07-17 17:14:55.822653022 +0100
483 @@ -1 +1,19 @@
484 +# This file is managed by gitlab-ctl. Manual changes will be
485 +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
486 +# and run `sudo gitlab-ctl reconfigure`.
487 +
488 +production:
489 + adapter: postgresql
490 + encoding: unicode
491 + collation:
492 + database: gitlabhq_production
493 + pool: 10
494 + username: 'gitlab'
495 + password:
496 + host: '/var/opt/gitlab/postgresql'
497 + port: 5432
498 + socket:
499 + sslmode:
500 + sslrootcert:
501 + sslca:
502 - change mode from '' to '0644'
503 - change owner from '' to 'root'
504 - change group from '' to 'root'
505 * link[/opt/gitlab/embedded/service/gitlab-rails/config/database.yml] action create
506 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml
507 * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create
508 - create new file /var/opt/gitlab/gitlab-rails/etc/secrets.yml
509 - update content in file /var/opt/gitlab/gitlab-rails/etc/secrets.yml from none to a01a67
510 --- /var/opt/gitlab/gitlab-rails/etc/secrets.yml 2016-07-17 17:14:55.834653022 +0100
511 +++ /var/opt/gitlab/gitlab-rails/etc/.secrets.yml20160717-7858-84xe6l 2016-07-17 17:14:55.834653022 +0100
512 @@ -1 +1,8 @@
513 +# This file is managed by gitlab-ctl. Manual changes will be
514 +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
515 +# and run `sudo gitlab-ctl reconfigure`.
516 +
517 +production:
518 + db_key_base: ef678ae15a8543700a33bc849b1038a92e0ce84aab66a047d37fdbc36d44a0d4e67868f9a4a13c4ace26628b91c98e50a0092875c3cbcebc71b307341c85635e
519 + secret_key_base: ef678ae15a8543700a33bc849b1038a92e0ce84aab66a047d37fdbc36d44a0d4e67868f9a4a13c4ace26628b91c98e50a0092875c3cbcebc71b307341c85635e
520 - change mode from '' to '0644'
521 - change owner from '' to 'root'
522 - change group from '' to 'root'
523 * link[/opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml] action create
524 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml
525 * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create
526 - create new file /var/opt/gitlab/gitlab-rails/etc/resque.yml
527 - update content in file /var/opt/gitlab/gitlab-rails/etc/resque.yml from none to e3f587
528 --- /var/opt/gitlab/gitlab-rails/etc/resque.yml 2016-07-17 17:14:55.842653022 +0100
529 +++ /var/opt/gitlab/gitlab-rails/etc/.resque.yml20160717-7858-y543s0 2016-07-17 17:14:55.842653022 +0100
530 @@ -1 +1,2 @@
531 +production: unix:/var/opt/gitlab/redis/redis.socket
532 - change mode from '' to '0644'
533 - change owner from '' to 'root'
534 - change group from '' to 'root'
535 * link[/opt/gitlab/embedded/service/gitlab-rails/config/resque.yml] action create
536 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml
537 * template[/var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date)
538 * link[/opt/gitlab/embedded/service/gitlab-rails/config/aws.yml] action delete (up to date)
539 * template[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
540 * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date)
541 * template[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
542 * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
543 * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create
544 - create new file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
545 - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from none to ad2c70
546 --- /var/opt/gitlab/gitlab-rails/etc/gitlab.yml 2016-07-17 17:14:55.874653022 +0100
547 +++ /var/opt/gitlab/gitlab-rails/etc/.gitlab.yml20160717-7858-1phhac5 2016-07-17 17:14:55.874653022 +0100
548 @@ -1 +1,443 @@
549 +# This file is managed by gitlab-ctl. Manual changes will be
550 +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
551 +# and run `sudo gitlab-ctl reconfigure`.
552 +
553 +production: &base
554 + #
555 + # 1. GitLab app settings
556 + # ==========================
557 +
558 + ## GitLab settings
559 + gitlab:
560 + ## Web server settings (note: host is the FQDN, do not include http://)
561 + host: aarongray.org
562 + port: 80
563 + https: false
564 +
565 + # Uncommment this line below if your ssh host is different from HTTP/HTTPS one
566 + # (you'd obviously need to replace ssh.host_example.com with your own host).
567 + # Otherwise, ssh host will be set to the `host:` value above
568 + ssh_host:
569 +
570 + # WARNING: See config/application.rb under "Relative url support" for the list of
571 + # other files that need to be changed for relative url support
572 + relative_url_root:
573 +
574 + # Trusted Proxies
575 + # Customize if you have GitLab behind a reverse proxy which is running on a different machine.
576 + # Add the IP address for your reverse proxy to the list, otherwise users will appear signed in from that address.
577 + trusted_proxies:
578 +
579 + # Uncomment and customize if you can't use the default user to run GitLab (default: 'git')
580 + user: git
581 +
582 + ## Date & Time settings
583 + time_zone:
584 +
585 + ## Email settings
586 + # Uncomment and set to false if you need to disable email sending from GitLab (default: true)
587 + email_enabled:
588 + # Email address used in the "From" field in mails sent by GitLab
589 + email_from: gitlab@aarongray.org
590 + email_display_name:
591 + email_reply_to:
592 +
593 + # Email server smtp settings are in [a separate file](initializers/smtp_settings.rb.sample).
594 +
595 + ## User settings
596 + default_can_create_group: # default: true
597 + username_changing_enabled: # default: true - User can change her username/namespace
598 + ## Default theme
599 + ## 1 - Graphite
600 + ## 2 - Charcoal
601 + ## 3 - Green
602 + ## 4 - Gray
603 + ## 5 - Violet
604 + ## 6 - Blue
605 + default_theme: # default: 2
606 +
607 + ## Automatic issue closing
608 + # If a commit message matches this regular expression, all issues referenced from the matched text will be closed.
609 + # This happens when the commit is pushed or merged into the default branch of a project.
610 + # When not specified the default issue_closing_pattern as specified below will be used.
611 + # Tip: you can test your closing pattern at http://rubular.com
612 + issue_closing_pattern:
613 +
614 + ## Default project features settings
615 + default_projects_features:
616 + issues:
617 + merge_requests:
618 + wiki:
619 + snippets:
620 + builds:
621 + container_registry:
622 +
623 + ## Webhook settings
624 + # Number of seconds to wait for HTTP response after sending webhook HTTP POST request (default: 10)
625 + webhook_timeout:
626 +
627 + ## Repository downloads directory
628 + # When a user clicks e.g. 'Download zip' on a project, a temporary zip file is created in the following directory.
629 + # The default is 'tmp/repositories' relative to the root of the Rails app.
630 + repository_downloads_path:
631 +
632 + ## Reply by email
633 + # Allow users to comment on issues and merge requests by replying to notification emails.
634 + # For documentation on how to set this up, see http://doc.gitlab.com/ce/incoming_email/README.html
635 + incoming_email:
636 + enabled: false
637 +
638 + # The email address including the `%{key}` placeholder that will be replaced to reference the item being replied to.
639 + # The placeholder can be omitted but if present, it must appear in the "user" part of the address (before the `@`).
640 + address:
641 +
642 + # Email account username
643 + # With third party providers, this is usually the full email address.
644 + # With self-hosted email servers, this is usually the user part of the email address.
645 + user:
646 + # Email account password
647 + password:
648 +
649 + # IMAP server host
650 + host:
651 + # IMAP server port
652 + port:
653 + # Whether the IMAP server uses SSL
654 + ssl:
655 + # Whether the IMAP server uses StartTLS
656 + start_tls:
657 +
658 + # The mailbox where incoming mail will end up. Usually "inbox".
659 + mailbox: 'inbox'
660 +
661 + ## Build Artifacts
662 + artifacts:
663 + enabled: true
664 + # The location where Build Artifacts are stored (default: shared/artifacts).
665 + path: /var/opt/gitlab/gitlab-rails/shared/artifacts
666 +
667 + ## Git LFS
668 + lfs:
669 + enabled:
670 + # The location where LFS objects are stored (default: shared/lfs-objects).
671 + storage_path: /var/opt/gitlab/gitlab-rails/shared/lfs-objects
672 +
673 + ## Container Registry
674 + registry:
675 + enabled: false
676 + host:
677 + port:
678 + api_url: # internal address to the registry, will be used by GitLab to directly communicate with API
679 + path:
680 + key: /var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key
681 + issuer: omnibus-gitlab-issuer
682 +
683 + ## GitLab Pages (EE only)
684 + pages:
685 + enabled: false
686 + path: /var/opt/gitlab/gitlab-rails/shared/pages
687 + host:
688 + port:
689 + https: false
690 + external_http:
691 + external_https:
692 +
693 + ## Elasticsearch (EE only)
694 + # Enable it if you are going to use elasticsearch instead of
695 + # regular database search
696 + elasticsearch:
697 + enabled: false
698 + host:
699 + port:
700 +
701 + ## Gravatar
702 + ## For Libravatar see: http://doc.gitlab.com/ce/customization/libravatar.html
703 + gravatar:
704 + # gravatar urls: possible placeholders: %{hash} %{size} %{email}
705 + plain_url: # default: http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon
706 + ssl_url: # default: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon
707 +
708 + ## Auxiliary jobs
709 + # Periodically executed jobs, to self-heal GitLab, do external synchronizations, etc.
710 + # Please read here for more information: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
711 + cron_jobs:
712 + # Flag stuck CI builds as failed
713 + stuck_ci_builds_worker:
714 + cron:
715 + # Remove expired build artifacts
716 + expire_build_artifacts_worker:
717 + cron:
718 + # Periodically run 'git fsck' on all repositories. If started more than
719 + # once per hour you will have concurrent 'git fsck' jobs.
720 + repository_check_worker:
721 + cron:
722 + # Send admin emails once a week
723 + admin_email_worker:
724 + cron:
725 +
726 + # Remove outdated repository archives
727 + repository_archive_cache_worker:
728 + cron:
729 +
730 + ##
731 + # GitLab EE only jobs:
732 +
733 + # Snapshot active users statistics
734 + historical_data_worker:
735 + cron:
736 +
737 + # Update mirrored repositories
738 + update_all_mirrors_worker:
739 + cron:
740 +
741 + # Update remote mirrors
742 + update_all_remote_mirrors_worker:
743 + cron:
744 +
745 + # In addition to refreshing users when they log in,
746 + # periodically refresh LDAP users membership.
747 + # NOTE: This will only take effect if LDAP is enabled
748 + ldap_sync_worker:
749 + cron:
750 +
751 + # Gitlab Geo nodes notification worker
752 + # NOTE: This will only take effect if Geo is enabled
753 + geo_bulk_notify_worker:
754 + cron:
755 +
756 + #
757 + # 2. GitLab CI settings
758 + # ==========================
759 +
760 + gitlab_ci:
761 + # Default project notifications settings:
762 + #
763 + # Send emails only on broken builds (default: true)
764 + all_broken_builds:
765 + #
766 + # Add pusher to recipients list (default: false)
767 + add_pusher:
768 +
769 + # The location where build traces are stored (default: builds/). Relative paths are relative to Rails.root
770 + builds_path: /var/opt/gitlab/gitlab-ci/builds
771 +
772 + #
773 + # 3. Auth settings
774 + # ==========================
775 +
776 + ## LDAP settings
777 + # You can inspect a sample of the LDAP users with login access by running:
778 + # bundle exec rake gitlab:ldap:check RAILS_ENV=production
779 + ldap:
780 + enabled: false
781 + sync_time:
782 + host:
783 + port:
784 + uid:
785 + method: # "tls" or "ssl" or "plain"
786 + bind_dn:
787 + password:
788 + active_directory:
789 + allow_username_or_email_login:
790 + base:
791 + user_filter:
792 +
793 + ## EE only
794 + group_base:
795 + admin_group:
796 + sync_ssh_keys:
797 + sync_time:
798 +
799 + ## Kerberos settings
800 + kerberos:
801 + # Allow the HTTP Negotiate authentication method for Git clients
802 + enabled:
803 +
804 + # Kerberos 5 keytab file. The keytab file must be readable by the GitLab user,
805 + # and should be different from other keytabs in the system.
806 + # (default: use default keytab from Krb5 config)
807 + keytab:
808 +
809 + # The Kerberos service name to be used by GitLab.
810 + # (default: accept any service name in keytab file)
811 + service_principal_name:
812 +
813 + # Dedicated port: Git before 2.4 does not fall back to Basic authentication if Negotiate fails.
814 + # To support both Basic and Negotiate methods with older versions of Git, configure
815 + # nginx to proxy GitLab on an extra port (e.g. 8443) and uncomment the following lines
816 + # to dedicate this port to Kerberos authentication. (default: false)
817 + use_dedicated_port:
818 + port:
819 + https:
820 +
821 +
822 + ## OmniAuth settings
823 + omniauth:
824 + # Allow login via Twitter, Google, etc. using OmniAuth providers
825 + enabled: false
826 +
827 + # Uncomment this to automatically sign in with a specific omniauth provider's without
828 + # showing GitLab's sign-in page (default: show the GitLab sign-in page)
829 + auto_sign_in_with_provider:
830 +
831 + # CAUTION!
832 + # This allows users to login without having a user account first. Define the allowed
833 + # providers using an array, e.g. ["saml", "twitter"]
834 + # User accounts will be created automatically when authentication was successful.
835 + allow_single_sign_on: ["saml"]
836 +
837 + # Locks down those users until they have been cleared by the admin (default: true).
838 + block_auto_created_users:
839 + # Look up new users in LDAP servers. If a match is found (same uid), automatically
840 + # link the omniauth identity with the LDAP account. (default: false)
841 + auto_link_ldap_user:
842 +
843 + # Allow users with existing accounts to login and auto link their account via SAML
844 + # login, without having to do a manual login first and manually add SAML
845 + # (default: false)
846 + auto_link_saml_user: null
847 +
848 + # Set different Omniauth providers as external so that all users creating accounts
849 + # via these providers will not be able to have access to internal projects. You
850 + # will need to use the full name of the provider, like `google_oauth2` for Google.
851 + # Refer to the examples below for the full names of the supported providers.
852 + # (default: [])
853 + external_providers: null
854 +
855 + ## Auth providers
856 + # Uncomment the following lines and fill in the data of the auth provider you want to use
857 + # If your favorite auth provider is not listed you can use others:
858 + # see https://github.com/gitlabhq/gitlab-public-wiki/wiki/Custom-omniauth-provider-configurations
859 + # The 'app_id' and 'app_secret' parameters are always passed as the first two
860 + # arguments, followed by optional 'args' which can be either a hash or an array.
861 + # Documentation for this is available at http://doc.gitlab.com/ce/integration/omniauth.html
862 + providers:
863 + # - { name: 'google_oauth2', app_id: 'YOUR APP ID',
864 + # app_secret: 'YOUR APP SECRET',
865 + # args: { access_type: 'offline', approval_prompt: '' } }
866 + # - { name: 'twitter', app_id: 'YOUR APP ID',
867 + # app_secret: 'YOUR APP SECRET'}
868 + # - { name: 'github', app_id: 'YOUR APP ID',
869 + # app_secret: 'YOUR APP SECRET',
870 + # args: { scope: 'user:email' } }
871 +
872 + # Shared file storage settings
873 + shared:
874 + path: /var/opt/gitlab/gitlab-rails/shared
875 +
876 +
877 + #
878 + # 4. Advanced settings
879 + # ==========================
880 +
881 + # GitLab Satellites
882 + # Important: keep the satellites.path setting until GitLab 9.0 at
883 + # least. This setting is fed to 'rm -rf' in
884 + # db/migrate/20151023144219_remove_satellites.rb
885 + satellites:
886 + # Relative paths are relative to Rails.root (default: tmp/repo_satellites/)
887 + path: /var/opt/gitlab/git-data/gitlab-satellites
888 + timeout:
889 +
890 + ## Backup settings
891 + backup:
892 + path: "/var/opt/gitlab/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
893 + archive_permissions: # Permissions for the resulting backup.tar file (default: 0600)
894 + keep_time: # default: 0 (forever) (in seconds)
895 + pg_schema: # default: nil, it means that all schemas will be backed up
896 + upload:
897 + # Fog storage connection settings, see http://fog.io/storage/ .
898 + connection:
899 + # The remote 'directory' to store your backups. For S3, this would be the bucket name.
900 + remote_directory:
901 + multipart_chunk_size:
902 + encryption:
903 +
904 + ## GitLab Shell settings
905 + gitlab_shell:
906 + path: /opt/gitlab/embedded/service/gitlab-shell/
907 +
908 + # REPOS_PATH MUST NOT BE A SYMLINK!!!
909 + repos_path: /var/opt/gitlab/git-data/repositories
910 + hooks_path: /opt/gitlab/embedded/service/gitlab-shell/hooks/
911 +
912 + # Git over HTTP
913 + upload_pack:
914 + receive_pack:
915 +
916 + # If you use non-standard ssh port you need to specify it
917 + ssh_port:
918 +
919 + # git-annex support (EE only)
920 + # If this setting is set to true, the same setting in config.yml of
921 + # gitlab-shell needs to be set to true
922 + git_annex_enabled:
923 +
924 + ## Git settings
925 + # CAUTION!
926 + # Use the default values unless you really know what you are doing
927 + git:
928 + bin_path: /opt/gitlab/embedded/bin/git
929 + # The next value is the maximum memory size grit can use
930 + # Given in number of bytes per git object (e.g. a commit)
931 + # This value can be increased if you have very large commits
932 + max_size:
933 + # Git timeout to read a commit, in seconds
934 + timeout:
935 +
936 + #
937 + # 5. Extra customization
938 + # ==========================
939 +
940 + extra:
941 +
942 +
943 + rack_attack:
944 + git_basic_auth:
945 +
946 +
947 +development:
948 + <<: *base
949 +
950 +test:
951 + <<: *base
952 + gravatar:
953 + enabled: true
954 + gitlab:
955 + host: localhost
956 + port: 80
957 +
958 + # When you run tests we clone and setup gitlab-shell
959 + # In order to setup it correctly you need to specify
960 + # your system username you use to run GitLab
961 + # user: YOUR_USERNAME
962 + satellites:
963 + path: tmp/tests/gitlab-satellites/
964 + gitlab_shell:
965 + path: tmp/tests/gitlab-shell/
966 + repos_path: tmp/tests/repositories/
967 + hooks_path: tmp/tests/gitlab-shell/hooks/
968 + issues_tracker:
969 + redmine:
970 + title: "Redmine"
971 + project_url: "http://redmine/projects/:issues_tracker_id"
972 + issues_url: "http://redmine/:project_id/:issues_tracker_id/:id"
973 + new_issue_url: "http://redmine/projects/:issues_tracker_id/issues/new"
974 + ldap:
975 + enabled: false
976 + servers:
977 + main:
978 + label: ldap
979 + host: 127.0.0.1
980 + port: 3890
981 + uid: 'uid'
982 + method: 'plain' # "tls" or "ssl" or "plain"
983 + base: 'dc=example,dc=com'
984 + user_filter: ''
985 + group_base: 'ou=groups,dc=example,dc=com'
986 + admin_group: ''
987 + sync_ssh_keys: false
988 +
989 +staging:
990 + <<: *base
991 - change mode from '' to '0644'
992 - change owner from '' to 'root'
993 - change group from '' to 'root'
994 * link[/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml] action create
995 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
996 * template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create
997 - create new file /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb
998 - update content in file /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb from none to a60a13
999 --- /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb 2016-07-17 17:14:55.910653023 +0100
1000 +++ /var/opt/gitlab/gitlab-rails/etc/.rack_attack.rb20160717-7858-n1vzmc 2016-07-17 17:14:55.910653023 +0100
1001 @@ -1 +1,32 @@
1002 +# This file is managed by gitlab-ctl. Manual changes will be
1003 +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
1004 +# and run `sudo gitlab-ctl reconfigure`.
1005 +
1006 +# 1. Rename this file to rack_attack.rb
1007 +# 2. Review the paths_to_be_protected and add any other path you need protecting
1008 +#
1009 +
1010 +paths_to_be_protected = [
1011 + "#{Rails.application.config.relative_url_root}/users/password",
1012 + "#{Rails.application.config.relative_url_root}/users/sign_in",
1013 + "#{Rails.application.config.relative_url_root}/api/#{API::API.version}/session.json",
1014 + "#{Rails.application.config.relative_url_root}/api/#{API::API.version}/session",
1015 + "#{Rails.application.config.relative_url_root}/users",
1016 + "#{Rails.application.config.relative_url_root}/users/confirmation",
1017 + "#{Rails.application.config.relative_url_root}/unsubscribes/"
1018 +
1019 +]
1020 +
1021 +# Create one big regular expression that matches strings starting with any of
1022 +# the paths_to_be_protected.
1023 +paths_regex = Regexp.union(paths_to_be_protected.map { |path| /\A#{Regexp.escape(path)}/ })
1024 +rack_attack_enabled = Gitlab.config.rack_attack.git_basic_auth['enabled']
1025 +
1026 +unless Rails.env.test? || !rack_attack_enabled
1027 + Rack::Attack.throttle('protected paths', limit: 10, period: 60.seconds) do |req|
1028 + if req.post? && req.path =~ paths_regex
1029 + req.ip
1030 + end
1031 + end
1032 +end
1033 - change mode from '' to '0644'
1034 - change owner from '' to 'root'
1035 - change group from '' to 'root'
1036 * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb] action create
1037 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb
1038 * link[/opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret] action create
1039 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret
1040 * directory[/opt/gitlab/etc/gitlab-rails/env] action create
1041 - create new directory /opt/gitlab/etc/gitlab-rails/env
1042 * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create
1043 - create new file /opt/gitlab/etc/gitlab-rails/env/HOME
1044 - update content in file /opt/gitlab/etc/gitlab-rails/env/HOME from none to 205bb9
1045 --- /opt/gitlab/etc/gitlab-rails/env/HOME 2016-07-17 17:14:55.922653023 +0100
1046 +++ /opt/gitlab/etc/gitlab-rails/env/.HOME20160717-7858-13owvxr 2016-07-17 17:14:55.922653023 +0100
1047 @@ -1 +1,2 @@
1048 +/var/opt/gitlab
1049 * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create
1050 - create new file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV
1051 - update content in file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV from none to ab8e18
1052 --- /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV 2016-07-17 17:14:55.926653023 +0100
1053 +++ /opt/gitlab/etc/gitlab-rails/env/.RAILS_ENV20160717-7858-1wpocnx 2016-07-17 17:14:55.926653023 +0100
1054 @@ -1 +1,2 @@
1055 +production
1056 * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create
1057 - create new file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS
1058 - update content in file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS from none to 6cce36
1059 --- /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS 2016-07-17 17:14:55.930653023 +0100
1060 +++ /opt/gitlab/etc/gitlab-rails/env/.SIDEKIQ_MEMORY_KILLER_MAX_RSS20160717-7858-389q91 2016-07-17 17:14:55.930653023 +0100
1061 @@ -1 +1,2 @@
1062 +1000000
1063 * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create
1064 - create new file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE
1065 - update content in file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE from none to 28d586
1066 --- /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE 2016-07-17 17:14:55.934653023 +0100
1067 +++ /opt/gitlab/etc/gitlab-rails/env/.BUNDLE_GEMFILE20160717-7858-1jabokz 2016-07-17 17:14:55.934653023 +0100
1068 @@ -1 +1,2 @@
1069 +/opt/gitlab/embedded/service/gitlab-rails/Gemfile
1070 * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create
1071 - create new file /opt/gitlab/etc/gitlab-rails/env/PATH
1072 - update content in file /opt/gitlab/etc/gitlab-rails/env/PATH from none to d5dc07
1073 --- /opt/gitlab/etc/gitlab-rails/env/PATH 2016-07-17 17:14:55.938653023 +0100
1074 +++ /opt/gitlab/etc/gitlab-rails/env/.PATH20160717-7858-44sukm 2016-07-17 17:14:55.938653023 +0100
1075 @@ -1 +1,2 @@
1076 +/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin
1077 * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create
1078 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/tmp to /var/opt/gitlab/gitlab-rails/tmp
1079 * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create
1080 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/public/uploads to /var/opt/gitlab/gitlab-rails/uploads
1081 * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create
1082 - create symlink at /opt/gitlab/embedded/service/gitlab-rails/log to /var/log/gitlab/gitlab-rails
1083 * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create
1084 - create symlink at /var/log/gitlab/gitlab-rails/sidekiq.log to /var/log/gitlab/sidekiq/current
1085 * file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create
1086 - change owner from 'root' to 'git'
1087 * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create
1088 - create new file /var/opt/gitlab/gitlab-rails/VERSION
1089 - update content in file /var/opt/gitlab/gitlab-rails/VERSION from none to 7ea2b9
1090 --- /var/opt/gitlab/gitlab-rails/VERSION 2016-07-17 17:14:55.954653023 +0100
1091 +++ /var/opt/gitlab/gitlab-rails/.VERSION20160717-7858-ck4rmo 2016-07-17 17:14:55.954653023 +0100
1092 @@ -1 +1,2 @@
1093 +8.9.6
1094 * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create
1095 - create new file /var/opt/gitlab/gitlab-rails/REVISION
1096 - update content in file /var/opt/gitlab/gitlab-rails/REVISION from none to cf0114
1097 --- /var/opt/gitlab/gitlab-rails/REVISION 2016-07-17 17:14:55.958653023 +0100
1098 +++ /var/opt/gitlab/gitlab-rails/.REVISION20160717-7858-1mdhzqy 2016-07-17 17:14:55.958653023 +0100
1099 @@ -1 +1,2 @@
1100 +ba3d01c
1101 * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create
1102 - create new file /var/opt/gitlab/gitlab-rails/RUBY_VERSION
1103 - update content in file /var/opt/gitlab/gitlab-rails/RUBY_VERSION from none to 46d194
1104 --- /var/opt/gitlab/gitlab-rails/RUBY_VERSION 2016-07-17 17:14:55.962653023 +0100
1105 +++ /var/opt/gitlab/gitlab-rails/.RUBY_VERSION20160717-7858-jo486d 2016-07-17 17:14:55.962653023 +0100
1106 @@ -1 +1,2 @@
1107 +ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-linux]
1108 * execute[chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public] action run
1109 - execute chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public
1110 * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
1111 * bash[generate assets] action nothing (skipped due to action :nothing)
1112 * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
1113Recipe: gitlab::gitlab-ci-proxying
1114 * template[/var/opt/gitlab/nginx/conf/gitlab-ci-http.conf] action delete (up to date)
1115Recipe: gitlab::add_trusted_certs
1116 * directory[/etc/gitlab/trusted-certs] action create
1117 - create new directory /etc/gitlab/trusted-certs
1118 - change mode from '' to '0755'
1119 * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
1120 * file[/opt/gitlab/embedded/ssl/certs/README] action create
1121 - create new file /opt/gitlab/embedded/ssl/certs/README
1122 - update content in file /opt/gitlab/embedded/ssl/certs/README from none to 623059
1123 --- /opt/gitlab/embedded/ssl/certs/README 2016-07-17 17:14:56.038653024 +0100
1124 +++ /opt/gitlab/embedded/ssl/certs/.README20160717-7858-qb534y 2016-07-17 17:14:56.038653024 +0100
1125 @@ -1 +1,4 @@
1126 +This directory is managed by omnibus-gitlab.
1127 + Any file placed in this directory will be ignored
1128 +. Place certificates in /etc/gitlab/trusted-certs.
1129 - change mode from '' to '0644'
1130 * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run
1131
1132 * Moving existing certificates found in /opt/gitlab/embedded/ssl/certs
1133
1134 * Symlinking existing certificates found in /etc/gitlab/trusted-certs
1135
1136 - execute the ruby block Move existing certs and link to /opt/gitlab/embedded/ssl/certs
1137Recipe: gitlab::default
1138 * service[unicorn] action nothing (skipped due to action :nothing)
1139 * service[ci-unicorn] action nothing (skipped due to action :nothing)
1140 * service[sidekiq] action nothing (skipped due to action :nothing)
1141 * service[ci-sidekiq] action nothing (skipped due to action :nothing)
1142 * service[mailroom] action nothing (skipped due to action :nothing)
1143Recipe: runit::systemd
1144 * directory[/usr/lib/systemd/system] action create (up to date)
1145 * cookbook_file[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
1146 * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
1147 * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
1148 * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
1149 * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing)
1150Recipe: gitlab::redis
1151 * group[gitlab-redis] action create (up to date)
1152 * user[gitlab-redis] action create (up to date)
1153 * directory[/var/opt/gitlab/redis] action create
1154 - create new directory /var/opt/gitlab/redis
1155 - change mode from '' to '0750'
1156 - change owner from '' to 'gitlab-redis'
1157 - change group from '' to 'git'
1158 * directory[/var/log/gitlab/redis] action create
1159 - create new directory /var/log/gitlab/redis
1160 - change mode from '' to '0700'
1161 - change owner from '' to 'gitlab-redis'
1162 * template[/var/opt/gitlab/redis/redis.conf] action create
1163 - create new file /var/opt/gitlab/redis/redis.conf
1164 - update content in file /var/opt/gitlab/redis/redis.conf from none to b1d254
1165 --- /var/opt/gitlab/redis/redis.conf 2016-07-17 17:14:56.118653025 +0100
1166 +++ /var/opt/gitlab/redis/.redis.conf20160717-7858-1c0seuc 2016-07-17 17:14:56.114653025 +0100
1167 @@ -1 +1,1027 @@
1168 +# This file is managed by gitlab-ctl. Manual changes will be
1169 +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
1170 +# and run `sudo gitlab-ctl reconfigure`.
1171 +
1172 +# Redis configuration file example.
1173 +#
1174 +# Note that in order to read the configuration file, Redis must be
1175 +# started with the file path as first argument:
1176 +#
1177 +# ./redis-server /path/to/redis.conf
1178 +
1179 +# Note on units: when memory size is needed, it is possible to specify
1180 +# it in the usual form of 1k 5GB 4M and so forth:
1181 +#
1182 +# 1k => 1000 bytes
1183 +# 1kb => 1024 bytes
1184 +# 1m => 1000000 bytes
1185 +# 1mb => 1024*1024 bytes
1186 +# 1g => 1000000000 bytes
1187 +# 1gb => 1024*1024*1024 bytes
1188 +#
1189 +# units are case insensitive so 1GB 1Gb 1gB are all the same.
1190 +
1191 +################################## INCLUDES ###################################
1192 +
1193 +# Include one or more other config files here. This is useful if you
1194 +# have a standard template that goes to all Redis servers but also need
1195 +# to customize a few per-server settings. Include files can include
1196 +# other files, so use this wisely.
1197 +#
1198 +# Notice option "include" won't be rewritten by command "CONFIG REWRITE"
1199 +# from admin or Redis Sentinel. Since Redis always uses the last processed
1200 +# line as value of a configuration directive, you'd better put includes
1201 +# at the beginning of this file to avoid overwriting config change at runtime.
1202 +#
1203 +# If instead you are interested in using includes to override configuration
1204 +# options, it is better to use include as the last line.
1205 +#
1206 +# include /path/to/local.conf
1207 +# include /path/to/other.conf
1208 +
1209 +################################## NETWORK #####################################
1210 +
1211 +# By default, if no "bind" configuration directive is specified, Redis listens
1212 +# for connections from all the network interfaces available on the server.
1213 +# It is possible to listen to just one or multiple selected interfaces using
1214 +# the "bind" configuration directive, followed by one or more IP addresses.
1215 +#
1216 +# Examples:
1217 +#
1218 +# bind 192.168.1.100 10.0.0.1
1219 +# bind 127.0.0.1 ::1
1220 +#
1221 +# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the
1222 +# internet, binding to all the interfaces is dangerous and will expose the
1223 +# instance to everybody on the internet. So by default we uncomment the
1224 +# following bind directive, that will force Redis to listen only into
1225 +# the IPv4 lookback interface address (this means Redis will be able to
1226 +# accept connections only from clients running into the same computer it
1227 +# is running).
1228 +#
1229 +# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES
1230 +# JUST COMMENT THE FOLLOWING LINE.
1231 +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1232 +bind 127.0.0.1
1233 +
1234 +# Protected mode is a layer of security protection, in order to avoid that
1235 +# Redis instances left open on the internet are accessed and exploited.
1236 +#
1237 +# When protected mode is on and if:
1238 +#
1239 +# 1) The server is not binding explicitly to a set of addresses using the
1240 +# "bind" directive.
1241 +# 2) No password is configured.
1242 +#
1243 +# The server only accepts connections from clients connecting from the
1244 +# IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain
1245 +# sockets.
1246 +#
1247 +# By default protected mode is enabled. You should disable it only if
1248 +# you are sure you want clients from other hosts to connect to Redis
1249 +# even if no authentication is configured, nor a specific set of interfaces
1250 +# are explicitly listed using the "bind" directive.
1251 +# protected-mode yes
1252 +
1253 +# Accept connections on the specified port, default is 6379 (IANA #815344).
1254 +# If port 0 is specified Redis will not listen on a TCP socket.
1255 +port 0
1256 +
1257 +# TCP listen() backlog.
1258 +#
1259 +# In high requests-per-second environments you need an high backlog in order
1260 +# to avoid slow clients connections issues. Note that the Linux kernel
1261 +# will silently truncate it to the value of /proc/sys/net/core/somaxconn so
1262 +# make sure to raise both the value of somaxconn and tcp_max_syn_backlog
1263 +# in order to get the desired effect.
1264 +# tcp-backlog 511
1265 +
1266 +# Unix socket.
1267 +#
1268 +# Specify the path for the Unix socket that will be used to listen for
1269 +# incoming connections. There is no default, so Redis will not listen
1270 +# on a unix socket when not specified.
1271 +#
1272 +unixsocket /var/opt/gitlab/redis/redis.socket
1273 +unixsocketperm 777
1274 +
1275 +# Close the connection after a client is idle for N seconds (0 to disable)
1276 +timeout 60
1277 +
1278 +# TCP keepalive.
1279 +#
1280 +# If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence
1281 +# of communication. This is useful for two reasons:
1282 +#
1283 +# 1) Detect dead peers.
1284 +# 2) Take the connection alive from the point of view of network
1285 +# equipment in the middle.
1286 +#
1287 +# On Linux, the specified value (in seconds) is the period used to send ACKs.
1288 +# Note that to close the connection the double of the time is needed.
1289 +# On other kernels the period depends on the kernel configuration.
1290 +#
1291 +# A reasonable value for this option is 60 seconds.
1292 +tcp-keepalive 0
1293 +
1294 +################################# GENERAL #####################################
1295 +
1296 +# By default Redis does not run as a daemon. Use 'yes' if you need it.
1297 +# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
1298 +daemonize no
1299 +
1300 +# If you run Redis from upstart or systemd, Redis can interact with your
1301 +# supervision tree. Options:
1302 +# supervised no - no supervision interaction
1303 +# supervised upstart - signal upstart by putting Redis into SIGSTOP mode
1304 +# supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET
1305 +# supervised auto - detect upstart or systemd method based on
1306 +# UPSTART_JOB or NOTIFY_SOCKET environment variables
1307 +# Note: these supervision methods only signal "process is ready."
1308 +# They do not enable continuous liveness pings back to your supervisor.
1309 +# supervised no
1310 +
1311 +# If a pid file is specified, Redis writes it where specified at startup
1312 +# and removes it at exit.
1313 +#
1314 +# When the server runs non daemonized, no pid file is created if none is
1315 +# specified in the configuration. When the server is daemonized, the pid file
1316 +# is used even if not specified, defaulting to "/var/run/redis.pid".
1317 +#
1318 +# Creating a pid file is best effort: if Redis is not able to create it
1319 +# nothing bad happens, the server will start and run normally.
1320 +pidfile /var/run/redis.pid
1321 +
1322 +# Specify the server verbosity level.
1323 +# This can be one of:
1324 +# debug (a lot of information, useful for development/testing)
1325 +# verbose (many rarely useful info, but not a mess like the debug level)
1326 +# notice (moderately verbose, what you want in production probably)
1327 +# warning (only very important / critical messages are logged)
1328 +loglevel notice
1329 +
1330 +# Specify the log file name. Also the empty string can be used to force
1331 +# Redis to log on the standard output. Note that if you use standard
1332 +# output for logging but daemonize, logs will be sent to /dev/null
1333 +logfile ""
1334 +
1335 +# To enable logging to the system logger, just set 'syslog-enabled' to yes,
1336 +# and optionally update the other syslog parameters to suit your needs.
1337 +# syslog-enabled no
1338 +
1339 +# Specify the syslog identity.
1340 +# syslog-ident redis
1341 +
1342 +# Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.
1343 +# syslog-facility local0
1344 +
1345 +# Set the number of databases. The default database is DB 0, you can select
1346 +# a different one on a per-connection basis using SELECT <dbid> where
1347 +# dbid is a number between 0 and 'databases'-1
1348 +databases 16
1349 +
1350 +################################ SNAPSHOTTING ################################
1351 +#
1352 +# Save the DB on disk:
1353 +#
1354 +# save <seconds> <changes>
1355 +#
1356 +# Will save the DB if both the given number of seconds and the given
1357 +# number of write operations against the DB occurred.
1358 +#
1359 +# In the example below the behaviour will be to save:
1360 +# after 900 sec (15 min) if at least 1 key changed
1361 +# after 300 sec (5 min) if at least 10 keys changed
1362 +# after 60 sec if at least 10000 keys changed
1363 +#
1364 +# Note: you can disable saving completely by commenting out all "save" lines.
1365 +#
1366 +# It is also possible to remove all the previously configured save
1367 +# points by adding a save directive with a single empty string argument
1368 +# like in the following example:
1369 +#
1370 +# save ""
1371 +
1372 +save 900 1
1373 +save 300 10
1374 +save 60 10000
1375 +
1376 +# By default Redis will stop accepting writes if RDB snapshots are enabled
1377 +# (at least one save point) and the latest background save failed.
1378 +# This will make the user aware (in a hard way) that data is not persisting
1379 +# on disk properly, otherwise chances are that no one will notice and some
1380 +# disaster will happen.
1381 +#
1382 +# If the background saving process will start working again Redis will
1383 +# automatically allow writes again.
1384 +#
1385 +# However if you have setup your proper monitoring of the Redis server
1386 +# and persistence, you may want to disable this feature so that Redis will
1387 +# continue to work as usual even if there are problems with disk,
1388 +# permissions, and so forth.
1389 +stop-writes-on-bgsave-error yes
1390 +
1391 +# Compress string objects using LZF when dump .rdb databases?
1392 +# For default that's set to 'yes' as it's almost always a win.
1393 +# If you want to save some CPU in the saving child set it to 'no' but
1394 +# the dataset will likely be bigger if you have compressible values or keys.
1395 +rdbcompression yes
1396 +
1397 +# Since version 5 of RDB a CRC64 checksum is placed at the end of the file.
1398 +# This makes the format more resistant to corruption but there is a performance
1399 +# hit to pay (around 10%) when saving and loading RDB files, so you can disable it
1400 +# for maximum performances.
1401 +#
1402 +# RDB files created with checksum disabled have a checksum of zero that will
1403 +# tell the loading code to skip the check.
1404 +rdbchecksum yes
1405 +
1406 +# The filename where to dump the DB
1407 +dbfilename dump.rdb
1408 +
1409 +# The working directory.
1410 +#
1411 +# The DB will be written inside this directory, with the filename specified
1412 +# above using the 'dbfilename' configuration directive.
1413 +#
1414 +# The Append Only File will also be created inside this directory.
1415 +#
1416 +# Note that you must specify a directory here, not a file name.
1417 +dir /var/opt/gitlab/redis
1418 +
1419 +################################# REPLICATION #################################
1420 +
1421 +# Master-Slave replication. Use slaveof to make a Redis instance a copy of
1422 +# another Redis server. A few things to understand ASAP about Redis replication.
1423 +#
1424 +# 1) Redis replication is asynchronous, but you can configure a master to
1425 +# stop accepting writes if it appears to be not connected with at least
1426 +# a given number of slaves.
1427 +# 2) Redis slaves are able to perform a partial resynchronization with the
1428 +# master if the replication link is lost for a relatively small amount of
1429 +# time. You may want to configure the replication backlog size (see the next
1430 +# sections of this file) with a sensible value depending on your needs.
1431 +# 3) Replication is automatic and does not need user intervention. After a
1432 +# network partition slaves automatically try to reconnect to masters
1433 +# and resynchronize with them.
1434 +#
1435 +# slaveof <masterip> <masterport>
1436 +
1437 +# If the master is password protected (using the "requirepass" configuration
1438 +# directive below) it is possible to tell the slave to authenticate before
1439 +# starting the replication synchronization process, otherwise the master will
1440 +# refuse the slave request.
1441 +#
1442 +# masterauth <master-password>
1443 +
1444 +# When a slave loses its connection with the master, or when the replication
1445 +# is still in progress, the slave can act in two different ways:
1446 +#
1447 +# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
1448 +# still reply to client requests, possibly with out of date data, or the
1449 +# data set may just be empty if this is the first synchronization.
1450 +#
1451 +# 2) if slave-serve-stale-data is set to 'no' the slave will reply with
1452 +# an error "SYNC with master in progress" to all the kind of commands
1453 +# but to INFO and SLAVEOF.
1454 +#
1455 +slave-serve-stale-data yes
1456 +
1457 +# You can configure a slave instance to accept writes or not. Writing against
1458 +# a slave instance may be useful to store some ephemeral data (because data
1459 +# written on a slave will be easily deleted after resync with the master) but
1460 +# may also cause problems if clients are writing to it because of a
1461 +# misconfiguration.
1462 +#
1463 +# Since Redis 2.6 by default slaves are read-only.
1464 +#
1465 +# Note: read only slaves are not designed to be exposed to untrusted clients
1466 +# on the internet. It's just a protection layer against misuse of the instance.
1467 +# Still a read only slave exports by default all the administrative commands
1468 +# such as CONFIG, DEBUG, and so forth. To a limited extent you can improve
1469 +# security of read only slaves using 'rename-command' to shadow all the
1470 +# administrative / dangerous commands.
1471 +slave-read-only yes
1472 +
1473 +# Replication SYNC strategy: disk or socket.
1474 +#
1475 +# -------------------------------------------------------
1476 +# WARNING: DISKLESS REPLICATION IS EXPERIMENTAL CURRENTLY
1477 +# -------------------------------------------------------
1478 +#
1479 +# New slaves and reconnecting slaves that are not able to continue the replication
1480 +# process just receiving differences, need to do what is called a "full
1481 +# synchronization". An RDB file is transmitted from the master to the slaves.
1482 +# The transmission can happen in two different ways:
1483 +#
1484 +# 1) Disk-backed: The Redis master creates a new process that writes the RDB
1485 +# file on disk. Later the file is transferred by the parent
1486 +# process to the slaves incrementally.
1487 +# 2) Diskless: The Redis master creates a new process that directly writes the
1488 +# RDB file to slave sockets, without touching the disk at all.
1489 +#
1490 +# With disk-backed replication, while the RDB file is generated, more slaves
1491 +# can be queued and served with the RDB file as soon as the current child producing
1492 +# the RDB file finishes its work. With diskless replication instead once
1493 +# the transfer starts, new slaves arriving will be queued and a new transfer
1494 +# will start when the current one terminates.
1495 +#
1496 +# When diskless replication is used, the master waits a configurable amount of
1497 +# time (in seconds) before starting the transfer in the hope that multiple slaves
1498 +# will arrive and the transfer can be parallelized.
1499 +#
1500 +# With slow disks and fast (large bandwidth) networks, diskless replication
1501 +# works better.
1502 +# repl-diskless-sync no
1503 +
1504 +# When diskless replication is enabled, it is possible to configure the delay
1505 +# the server waits in order to spawn the child that transfers the RDB via socket
1506 +# to the slaves.
1507 +#
1508 +# This is important since once the transfer starts, it is not possible to serve
1509 +# new slaves arriving, that will be queued for the next RDB transfer, so the server
1510 +# waits a delay in order to let more slaves arrive.
1511 +#
1512 +# The delay is specified in seconds, and by default is 5 seconds. To disable
1513 +# it entirely just set it to 0 seconds and the transfer will start ASAP.
1514 +# repl-diskless-sync-delay 5
1515 +
1516 +# Slaves send PINGs to server in a predefined interval. It's possible to change
1517 +# this interval with the repl_ping_slave_period option. The default value is 10
1518 +# seconds.
1519 +#
1520 +# repl-ping-slave-period 10
1521 +
1522 +# The following option sets the replication timeout for:
1523 +#
1524 +# 1) Bulk transfer I/O during SYNC, from the point of view of slave.
1525 +# 2) Master timeout from the point of view of slaves (data, pings).
1526 +# 3) Slave timeout from the point of view of masters (REPLCONF ACK pings).
1527 +#
1528 +# It is important to make sure that this value is greater than the value
1529 +# specified for repl-ping-slave-period otherwise a timeout will be detected
1530 +# every time there is low traffic between the master and the slave.
1531 +#
1532 +# repl-timeout 60
1533 +
1534 +# Disable TCP_NODELAY on the slave socket after SYNC?
1535 +#
1536 +# If you select "yes" Redis will use a smaller number of TCP packets and
1537 +# less bandwidth to send data to slaves. But this can add a delay for
1538 +# the data to appear on the slave side, up to 40 milliseconds with
1539 +# Linux kernels using a default configuration.
1540 +#
1541 +# If you select "no" the delay for data to appear on the slave side will
1542 +# be reduced but more bandwidth will be used for replication.
1543 +#
1544 +# By default we optimize for low latency, but in very high traffic conditions
1545 +# or when the master and slaves are many hops away, turning this to "yes" may
1546 +# be a good idea.
1547 +repl-disable-tcp-nodelay no
1548 +
1549 +# Set the replication backlog size. The backlog is a buffer that accumulates
1550 +# slave data when slaves are disconnected for some time, so that when a slave
1551 +# wants to reconnect again, often a full resync is not needed, but a partial
1552 +# resync is enough, just passing the portion of data the slave missed while
1553 +# disconnected.
1554 +#
1555 +# The bigger the replication backlog, the longer the time the slave can be
1556 +# disconnected and later be able to perform a partial resynchronization.
1557 +#
1558 +# The backlog is only allocated once there is at least a slave connected.
1559 +#
1560 +# repl-backlog-size 1mb
1561 +
1562 +# After a master has no longer connected slaves for some time, the backlog
1563 +# will be freed. The following option configures the amount of seconds that
1564 +# need to elapse, starting from the time the last slave disconnected, for
1565 +# the backlog buffer to be freed.
1566 +#
1567 +# A value of 0 means to never release the backlog.
1568 +#
1569 +# repl-backlog-ttl 3600
1570 +
1571 +# The slave priority is an integer number published by Redis in the INFO output.
1572 +# It is used by Redis Sentinel in order to select a slave to promote into a
1573 +# master if the master is no longer working correctly.
1574 +#
1575 +# A slave with a low priority number is considered better for promotion, so
1576 +# for instance if there are three slaves with priority 10, 100, 25 Sentinel will
1577 +# pick the one with priority 10, that is the lowest.
1578 +#
1579 +# However a special priority of 0 marks the slave as not able to perform the
1580 +# role of master, so a slave with priority of 0 will never be selected by
1581 +# Redis Sentinel for promotion.
1582 +#
1583 +# By default the priority is 100.
1584 +slave-priority 100
1585 +
1586 +# It is possible for a master to stop accepting writes if there are less than
1587 +# N slaves connected, having a lag less or equal than M seconds.
1588 +#
1589 +# The N slaves need to be in "online" state.
1590 +#
1591 +# The lag in seconds, that must be <= the specified value, is calculated from
1592 +# the last ping received from the slave, that is usually sent every second.
1593 +#
1594 +# This option does not GUARANTEE that N replicas will accept the write, but
1595 +# will limit the window of exposure for lost writes in case not enough slaves
1596 +# are available, to the specified number of seconds.
1597 +#
1598 +# For example to require at least 3 slaves with a lag <= 10 seconds use:
1599 +#
1600 +# min-slaves-to-write 3
1601 +# min-slaves-max-lag 10
1602 +#
1603 +# Setting one or the other to 0 disables the feature.
1604 +#
1605 +# By default min-slaves-to-write is set to 0 (feature disabled) and
1606 +# min-slaves-max-lag is set to 10.
1607 +
1608 +################################## SECURITY ###################################
1609 +
1610 +# Require clients to issue AUTH <PASSWORD> before processing any other
1611 +# commands. This might be useful in environments in which you do not trust
1612 +# others with access to the host running redis-server.
1613 +#
1614 +# This should stay commented out for backward compatibility and because most
1615 +# people do not need auth (e.g. they run their own servers).
1616 +#
1617 +# Warning: since Redis is pretty fast an outside user can try up to
1618 +# 150k passwords per second against a good box. This means that you should
1619 +# use a very strong password otherwise it will be very easy to break.
1620 +#
1621 +
1622 +
1623 +# Command renaming.
1624 +#
1625 +# It is possible to change the name of dangerous commands in a shared
1626 +# environment. For instance the CONFIG command may be renamed into something
1627 +# hard to guess so that it will still be available for internal-use tools
1628 +# but not available for general clients.
1629 +#
1630 +# Example:
1631 +#
1632 +# rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52
1633 +#
1634 +# It is also possible to completely kill a command by renaming it into
1635 +# an empty string:
1636 +#
1637 +# rename-command CONFIG ""
1638 +#
1639 +# Please note that changing the name of commands that are logged into the
1640 +# AOF file or transmitted to slaves may cause problems.
1641 +
1642 +################################### LIMITS ####################################
1643 +
1644 +# Set the max number of connected clients at the same time. By default
1645 +# this limit is set to 10000 clients, however if the Redis server is not
1646 +# able to configure the process file limit to allow for the specified limit
1647 +# the max number of allowed clients is set to the current file limit
1648 +# minus 32 (as Redis reserves a few file descriptors for internal uses).
1649 +#
1650 +# Once the limit is reached Redis will close all the new connections sending
1651 +# an error 'max number of clients reached'.
1652 +#
1653 +maxclients 10000
1654 +
1655 +# Don't use more memory than the specified amount of bytes.
1656 +# When the memory limit is reached Redis will try to remove keys
1657 +# according to the eviction policy selected (see maxmemory-policy).
1658 +#
1659 +# If Redis can't remove keys according to the policy, or if the policy is
1660 +# set to 'noeviction', Redis will start to reply with errors to commands
1661 +# that would use more memory, like SET, LPUSH, and so on, and will continue
1662 +# to reply to read-only commands like GET.
1663 +#
1664 +# This option is usually useful when using Redis as an LRU cache, or to set
1665 +# a hard memory limit for an instance (using the 'noeviction' policy).
1666 +#
1667 +# WARNING: If you have slaves attached to an instance with maxmemory on,
1668 +# the size of the output buffers needed to feed the slaves are subtracted
1669 +# from the used memory count, so that network problems / resyncs will
1670 +# not trigger a loop where keys are evicted, and in turn the output
1671 +# buffer of slaves is full with DELs of keys evicted triggering the deletion
1672 +# of more keys, and so forth until the database is completely emptied.
1673 +#
1674 +# In short... if you have slaves attached it is suggested that you set a lower
1675 +# limit for maxmemory so that there is some free RAM on the system for slave
1676 +# output buffers (but this is not needed if the policy is 'noeviction').
1677 +#
1678 +# maxmemory <bytes>
1679 +
1680 +# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
1681 +# is reached. You can select among five behaviors:
1682 +#
1683 +# volatile-lru -> remove the key with an expire set using an LRU algorithm
1684 +# allkeys-lru -> remove any key according to the LRU algorithm
1685 +# volatile-random -> remove a random key with an expire set
1686 +# allkeys-random -> remove a random key, any key
1687 +# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
1688 +# noeviction -> don't expire at all, just return an error on write operations
1689 +#
1690 +# Note: with any of the above policies, Redis will return an error on write
1691 +# operations, when there are no suitable keys for eviction.
1692 +#
1693 +# At the date of writing these commands are: set setnx setex append
1694 +# incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd
1695 +# sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby
1696 +# zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby
1697 +# getset mset msetnx exec sort
1698 +#
1699 +# The default is:
1700 +#
1701 +# maxmemory-policy noeviction
1702 +
1703 +# LRU and minimal TTL algorithms are not precise algorithms but approximated
1704 +# algorithms (in order to save memory), so you can tune it for speed or
1705 +# accuracy. For default Redis will check five keys and pick the one that was
1706 +# used less recently, you can change the sample size using the following
1707 +# configuration directive.
1708 +#
1709 +# The default of 5 produces good enough results. 10 Approximates very closely
1710 +# true LRU but costs a bit more CPU. 3 is very fast but not very accurate.
1711 +#
1712 +# maxmemory-samples 5
1713 +
1714 +############################## APPEND ONLY MODE ###############################
1715 +
1716 +# By default Redis asynchronously dumps the dataset on disk. This mode is
1717 +# good enough in many applications, but an issue with the Redis process or
1718 +# a power outage may result into a few minutes of writes lost (depending on
1719 +# the configured save points).
1720 +#
1721 +# The Append Only File is an alternative persistence mode that provides
1722 +# much better durability. For instance using the default data fsync policy
1723 +# (see later in the config file) Redis can lose just one second of writes in a
1724 +# dramatic event like a server power outage, or a single write if something
1725 +# wrong with the Redis process itself happens, but the operating system is
1726 +# still running correctly.
1727 +#
1728 +# AOF and RDB persistence can be enabled at the same time without problems.
1729 +# If the AOF is enabled on startup Redis will load the AOF, that is the file
1730 +# with the better durability guarantees.
1731 +#
1732 +# Please check http://redis.io/topics/persistence for more information.
1733 +
1734 +appendonly no
1735 +
1736 +# The name of the append only file (default: "appendonly.aof")
1737 +
1738 +# appendfilename "appendonly.aof"
1739 +
1740 +# The fsync() call tells the Operating System to actually write data on disk
1741 +# instead of waiting for more data in the output buffer. Some OS will really flush
1742 +# data on disk, some other OS will just try to do it ASAP.
1743 +#
1744 +# Redis supports three different modes:
1745 +#
1746 +# no: don't fsync, just let the OS flush the data when it wants. Faster.
1747 +# always: fsync after every write to the append only log. Slow, Safest.
1748 +# everysec: fsync only one time every second. Compromise.
1749 +#
1750 +# The default is "everysec", as that's usually the right compromise between
1751 +# speed and data safety. It's up to you to understand if you can relax this to
1752 +# "no" that will let the operating system flush the output buffer when
1753 +# it wants, for better performances (but if you can live with the idea of
1754 +# some data loss consider the default persistence mode that's snapshotting),
1755 +# or on the contrary, use "always" that's very slow but a bit safer than
1756 +# everysec.
1757 +#
1758 +# More details please check the following article:
1759 +# http://antirez.com/post/redis-persistence-demystified.html
1760 +#
1761 +# If unsure, use "everysec".
1762 +
1763 +# appendfsync always
1764 +appendfsync everysec
1765 +# appendfsync no
1766 +
1767 +# When the AOF fsync policy is set to always or everysec, and a background
1768 +# saving process (a background save or AOF log background rewriting) is
1769 +# performing a lot of I/O against the disk, in some Linux configurations
1770 +# Redis may block too long on the fsync() call. Note that there is no fix for
1771 +# this currently, as even performing fsync in a different thread will block
1772 +# our synchronous write(2) call.
1773 +#
1774 +# In order to mitigate this problem it's possible to use the following option
1775 +# that will prevent fsync() from being called in the main process while a
1776 +# BGSAVE or BGREWRITEAOF is in progress.
1777 +#
1778 +# This means that while another child is saving, the durability of Redis is
1779 +# the same as "appendfsync none". In practical terms, this means that it is
1780 +# possible to lose up to 30 seconds of log in the worst scenario (with the
1781 +# default Linux settings).
1782 +#
1783 +# If you have latency problems turn this to "yes". Otherwise leave it as
1784 +# "no" that is the safest pick from the point of view of durability.
1785 +
1786 +no-appendfsync-on-rewrite no
1787 +
1788 +# Automatic rewrite of the append only file.
1789 +# Redis is able to automatically rewrite the log file implicitly calling
1790 +# BGREWRITEAOF when the AOF log size grows by the specified percentage.
1791 +#
1792 +# This is how it works: Redis remembers the size of the AOF file after the
1793 +# latest rewrite (if no rewrite has happened since the restart, the size of
1794 +# the AOF at startup is used).
1795 +#
1796 +# This base size is compared to the current size. If the current size is
1797 +# bigger than the specified percentage, the rewrite is triggered. Also
1798 +# you need to specify a minimal size for the AOF file to be rewritten, this
1799 +# is useful to avoid rewriting the AOF file even if the percentage increase
1800 +# is reached but it is still pretty small.
1801 +#
1802 +# Specify a percentage of zero in order to disable the automatic AOF
1803 +# rewrite feature.
1804 +
1805 +auto-aof-rewrite-percentage 100
1806 +auto-aof-rewrite-min-size 64mb
1807 +
1808 +# An AOF file may be found to be truncated at the end during the Redis
1809 +# startup process, when the AOF data gets loaded back into memory.
1810 +# This may happen when the system where Redis is running
1811 +# crashes, especially when an ext4 filesystem is mounted without the
1812 +# data=ordered option (however this can't happen when Redis itself
1813 +# crashes or aborts but the operating system still works correctly).
1814 +#
1815 +# Redis can either exit with an error when this happens, or load as much
1816 +# data as possible (the default now) and start if the AOF file is found
1817 +# to be truncated at the end. The following option controls this behavior.
1818 +#
1819 +# If aof-load-truncated is set to yes, a truncated AOF file is loaded and
1820 +# the Redis server starts emitting a log to inform the user of the event.
1821 +# Otherwise if the option is set to no, the server aborts with an error
1822 +# and refuses to start. When the option is set to no, the user requires
1823 +# to fix the AOF file using the "redis-check-aof" utility before to restart
1824 +# the server.
1825 +#
1826 +# Note that if the AOF file will be found to be corrupted in the middle
1827 +# the server will still exit with an error. This option only applies when
1828 +# Redis will try to read more data from the AOF file but not enough bytes
1829 +# will be found.
1830 +# aof-load-truncated yes
1831 +
1832 +################################ LUA SCRIPTING ###############################
1833 +
1834 +# Max execution time of a Lua script in milliseconds.
1835 +#
1836 +# If the maximum execution time is reached Redis will log that a script is
1837 +# still in execution after the maximum allowed time and will start to
1838 +# reply to queries with an error.
1839 +#
1840 +# When a long running script exceeds the maximum execution time only the
1841 +# SCRIPT KILL and SHUTDOWN NOSAVE commands are available. The first can be
1842 +# used to stop a script that did not yet called write commands. The second
1843 +# is the only way to shut down the server in the case a write command was
1844 +# already issued by the script but the user doesn't want to wait for the natural
1845 +# termination of the script.
1846 +#
1847 +# Set it to 0 or a negative value for unlimited execution without warnings.
1848 +lua-time-limit 5000
1849 +
1850 +################################ REDIS CLUSTER ###############################
1851 +#
1852 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1853 +# WARNING EXPERIMENTAL: Redis Cluster is considered to be stable code, however
1854 +# in order to mark it as "mature" we need to wait for a non trivial percentage
1855 +# of users to deploy it in production.
1856 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1857 +#
1858 +# Normal Redis instances can't be part of a Redis Cluster; only nodes that are
1859 +# started as cluster nodes can. In order to start a Redis instance as a
1860 +# cluster node enable the cluster support uncommenting the following:
1861 +#
1862 +# cluster-enabled yes
1863 +
1864 +# Every cluster node has a cluster configuration file. This file is not
1865 +# intended to be edited by hand. It is created and updated by Redis nodes.
1866 +# Every Redis Cluster node requires a different cluster configuration file.
1867 +# Make sure that instances running in the same system do not have
1868 +# overlapping cluster configuration file names.
1869 +#
1870 +# cluster-config-file nodes-6379.conf
1871 +
1872 +# Cluster node timeout is the amount of milliseconds a node must be unreachable
1873 +# for it to be considered in failure state.
1874 +# Most other internal time limits are multiple of the node timeout.
1875 +#
1876 +# cluster-node-timeout 15000
1877 +
1878 +# A slave of a failing master will avoid to start a failover if its data
1879 +# looks too old.
1880 +#
1881 +# There is no simple way for a slave to actually have a exact measure of
1882 +# its "data age", so the following two checks are performed:
1883 +#
1884 +# 1) If there are multiple slaves able to failover, they exchange messages
1885 +# in order to try to give an advantage to the slave with the best
1886 +# replication offset (more data from the master processed).
1887 +# Slaves will try to get their rank by offset, and apply to the start
1888 +# of the failover a delay proportional to their rank.
1889 +#
1890 +# 2) Every single slave computes the time of the last interaction with
1891 +# its master. This can be the last ping or command received (if the master
1892 +# is still in the "connected" state), or the time that elapsed since the
1893 +# disconnection with the master (if the replication link is currently down).
1894 +# If the last interaction is too old, the slave will not try to failover
1895 +# at all.
1896 +#
1897 +# The point "2" can be tuned by user. Specifically a slave will not perform
1898 +# the failover if, since the last interaction with the master, the time
1899 +# elapsed is greater than:
1900 +#
1901 +# (node-timeout * slave-validity-factor) + repl-ping-slave-period
1902 +#
1903 +# So for example if node-timeout is 30 seconds, and the slave-validity-factor
1904 +# is 10, and assuming a default repl-ping-slave-period of 10 seconds, the
1905 +# slave will not try to failover if it was not able to talk with the master
1906 +# for longer than 310 seconds.
1907 +#
1908 +# A large slave-validity-factor may allow slaves with too old data to failover
1909 +# a master, while a too small value may prevent the cluster from being able to
1910 +# elect a slave at all.
1911 +#
1912 +# For maximum availability, it is possible to set the slave-validity-factor
1913 +# to a value of 0, which means, that slaves will always try to failover the
1914 +# master regardless of the last time they interacted with the master.
1915 +# (However they'll always try to apply a delay proportional to their
1916 +# offset rank).
1917 +#
1918 +# Zero is the only value able to guarantee that when all the partitions heal
1919 +# the cluster will always be able to continue.
1920 +#
1921 +# cluster-slave-validity-factor 10
1922 +
1923 +# Cluster slaves are able to migrate to orphaned masters, that are masters
1924 +# that are left without working slaves. This improves the cluster ability
1925 +# to resist to failures as otherwise an orphaned master can't be failed over
1926 +# in case of failure if it has no working slaves.
1927 +#
1928 +# Slaves migrate to orphaned masters only if there are still at least a
1929 +# given number of other working slaves for their old master. This number
1930 +# is the "migration barrier". A migration barrier of 1 means that a slave
1931 +# will migrate only if there is at least 1 other working slave for its master
1932 +# and so forth. It usually reflects the number of slaves you want for every
1933 +# master in your cluster.
1934 +#
1935 +# Default is 1 (slaves migrate only if their masters remain with at least
1936 +# one slave). To disable migration just set it to a very large value.
1937 +# A value of 0 can be set but is useful only for debugging and dangerous
1938 +# in production.
1939 +#
1940 +# cluster-migration-barrier 1
1941 +
1942 +# By default Redis Cluster nodes stop accepting queries if they detect there
1943 +# is at least an hash slot uncovered (no available node is serving it).
1944 +# This way if the cluster is partially down (for example a range of hash slots
1945 +# are no longer covered) all the cluster becomes, eventually, unavailable.
1946 +# It automatically returns available as soon as all the slots are covered again.
1947 +#
1948 +# However sometimes you want the subset of the cluster which is working,
1949 +# to continue to accept queries for the part of the key space that is still
1950 +# covered. In order to do so, just set the cluster-require-full-coverage
1951 +# option to no.
1952 +#
1953 +# cluster-require-full-coverage yes
1954 +
1955 +# In order to setup your cluster make sure to read the documentation
1956 +# available at http://redis.io web site.
1957 +
1958 +################################## SLOW LOG ###################################
1959 +
1960 +# The Redis Slow Log is a system to log queries that exceeded a specified
1961 +# execution time. The execution time does not include the I/O operations
1962 +# like talking with the client, sending the reply and so forth,
1963 +# but just the time needed to actually execute the command (this is the only
1964 +# stage of command execution where the thread is blocked and can not serve
1965 +# other requests in the meantime).
1966 +#
1967 +# You can configure the slow log with two parameters: one tells Redis
1968 +# what is the execution time, in microseconds, to exceed in order for the
1969 +# command to get logged, and the other parameter is the length of the
1970 +# slow log. When a new command is logged the oldest one is removed from the
1971 +# queue of logged commands.
1972 +
1973 +# The following time is expressed in microseconds, so 1000000 is equivalent
1974 +# to one second. Note that a negative number disables the slow log, while
1975 +# a value of zero forces the logging of every command.
1976 +slowlog-log-slower-than 10000
1977 +
1978 +# There is no limit to this length. Just be aware that it will consume memory.
1979 +# You can reclaim memory used by the slow log with SLOWLOG RESET.
1980 +slowlog-max-len 128
1981 +
1982 +################################ LATENCY MONITOR ##############################
1983 +
1984 +# The Redis latency monitoring subsystem samples different operations
1985 +# at runtime in order to collect data related to possible sources of
1986 +# latency of a Redis instance.
1987 +#
1988 +# Via the LATENCY command this information is available to the user that can
1989 +# print graphs and obtain reports.
1990 +#
1991 +# The system only logs operations that were performed in a time equal or
1992 +# greater than the amount of milliseconds specified via the
1993 +# latency-monitor-threshold configuration directive. When its value is set
1994 +# to zero, the latency monitor is turned off.
1995 +#
1996 +# By default latency monitoring is disabled since it is mostly not needed
1997 +# if you don't have latency issues, and collecting data has a performance
1998 +# impact, that while very small, can be measured under big load. Latency
1999 +# monitoring can easily be enabled at runtime using the command
2000 +# "CONFIG SET latency-monitor-threshold <milliseconds>" if needed.
2001 +# latency-monitor-threshold 0
2002 +
2003 +############################# EVENT NOTIFICATION ##############################
2004 +
2005 +# Redis can notify Pub/Sub clients about events happening in the key space.
2006 +# This feature is documented at http://redis.io/topics/notifications
2007 +#
2008 +# For instance if keyspace events notification is enabled, and a client
2009 +# performs a DEL operation on key "foo" stored in the Database 0, two
2010 +# messages will be published via Pub/Sub:
2011 +#
2012 +# PUBLISH __keyspace@0__:foo del
2013 +# PUBLISH __keyevent@0__:del foo
2014 +#
2015 +# It is possible to select the events that Redis will notify among a set
2016 +# of classes. Every class is identified by a single character:
2017 +#
2018 +# K Keyspace events, published with __keyspace@<db>__ prefix.
2019 +# E Keyevent events, published with __keyevent@<db>__ prefix.
2020 +# g Generic commands (non-type specific) like DEL, EXPIRE, RENAME, ...
2021 +# $ String commands
2022 +# l List commands
2023 +# s Set commands
2024 +# h Hash commands
2025 +# z Sorted set commands
2026 +# x Expired events (events generated every time a key expires)
2027 +# e Evicted events (events generated when a key is evicted for maxmemory)
2028 +# A Alias for g$lshzxe, so that the "AKE" string means all the events.
2029 +#
2030 +# The "notify-keyspace-events" takes as argument a string that is composed
2031 +# of zero or multiple characters. The empty string means that notifications
2032 +# are disabled.
2033 +#
2034 +# Example: to enable list and generic events, from the point of view of the
2035 +# event name, use:
2036 +#
2037 +# notify-keyspace-events Elg
2038 +#
2039 +# Example 2: to get the stream of the expired keys subscribing to channel
2040 +# name __keyevent@0__:expired use:
2041 +#
2042 +# notify-keyspace-events Ex
2043 +#
2044 +# By default all notifications are disabled because most users don't need
2045 +# this feature and the feature has some overhead. Note that if you don't
2046 +# specify at least one of K or E, no events will be delivered.
2047 +notify-keyspace-events ""
2048 +
2049 +############################### ADVANCED CONFIG ###############################
2050 +
2051 +# Hashes are encoded using a memory efficient data structure when they have a
2052 +# small number of entries, and the biggest entry does not exceed a given
2053 +# threshold. These thresholds can be configured using the following directives.
2054 +hash-max-ziplist-entries 512
2055 +hash-max-ziplist-value 64
2056 +
2057 +# Lists are also encoded in a special way to save a lot of space.
2058 +# The number of entries allowed per internal list node can be specified
2059 +# as a fixed maximum size or a maximum number of elements.
2060 +# For a fixed maximum size, use -5 through -1, meaning:
2061 +# -5: max size: 64 Kb <-- not recommended for normal workloads
2062 +# -4: max size: 32 Kb <-- not recommended
2063 +# -3: max size: 16 Kb <-- probably not recommended
2064 +# -2: max size: 8 Kb <-- good
2065 +# -1: max size: 4 Kb <-- good
2066 +# Positive numbers mean store up to _exactly_ that number of elements
2067 +# per list node.
2068 +# The highest performing option is usually -2 (8 Kb size) or -1 (4 Kb size),
2069 +# but if your use case is unique, adjust the settings as necessary.
2070 +# list-max-ziplist-size -2
2071 +
2072 +# Lists may also be compressed.
2073 +# Compress depth is the number of quicklist ziplist nodes from *each* side of
2074 +# the list to *exclude* from compression. The head and tail of the list
2075 +# are always uncompressed for fast push/pop operations. Settings are:
2076 +# 0: disable all list compression
2077 +# 1: depth 1 means "don't start compressing until after 1 node into the list,
2078 +# going from either the head or tail"
2079 +# So: [head]->node->node->...->node->[tail]
2080 +# [head], [tail] will always be uncompressed; inner nodes will compress.
2081 +# 2: [head]->[next]->node->node->...->node->[prev]->[tail]
2082 +# 2 here means: don't compress head or head->next or tail->prev or tail,
2083 +# but compress all nodes between them.
2084 +# 3: [head]->[next]->[next]->node->node->...->node->[prev]->[prev]->[tail]
2085 +# etc.
2086 +# list-compress-depth 0
2087 +
2088 +# Sets have a special encoding in just one case: when a set is composed
2089 +# of just strings that happen to be integers in radix 10 in the range
2090 +# of 64 bit signed integers.
2091 +# The following configuration setting sets the limit in the size of the
2092 +# set in order to use this special memory saving encoding.
2093 +set-max-intset-entries 512
2094 +
2095 +# Similarly to hashes and lists, sorted sets are also specially encoded in
2096 +# order to save a lot of space. This encoding is only used when the length and
2097 +# elements of a sorted set are below the following limits:
2098 +zset-max-ziplist-entries 128
2099 +zset-max-ziplist-value 64
2100 +
2101 +# HyperLogLog sparse representation bytes limit. The limit includes the
2102 +# 16 bytes header. When an HyperLogLog using the sparse representation crosses
2103 +# this limit, it is converted into the dense representation.
2104 +#
2105 +# A value greater than 16000 is totally useless, since at that point the
2106 +# dense representation is more memory efficient.
2107 +#
2108 +# The suggested value is ~ 3000 in order to have the benefits of
2109 +# the space efficient encoding without slowing down too much PFADD,
2110 +# which is O(N) with the sparse encoding. The value can be raised to
2111 +# ~ 10000 when CPU is not a concern, but space is, and the data set is
2112 +# composed of many HyperLogLogs with cardinality in the 0 - 15000 range.
2113 +# hll-sparse-max-bytes 3000
2114 +
2115 +# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in
2116 +# order to help rehashing the main Redis hash table (the one mapping top-level
2117 +# keys to values). The hash table implementation Redis uses (see dict.c)
2118 +# performs a lazy rehashing: the more operation you run into a hash table
2119 +# that is rehashing, the more rehashing "steps" are performed, so if the
2120 +# server is idle the rehashing is never complete and some more memory is used
2121 +# by the hash table.
2122 +#
2123 +# The default is to use this millisecond 10 times every second in order to
2124 +# actively rehash the main dictionaries, freeing memory when possible.
2125 +#
2126 +# If unsure:
2127 +# use "activerehashing no" if you have hard latency requirements and it is
2128 +# not a good thing in your environment that Redis can reply from time to time
2129 +# to queries with 2 milliseconds delay.
2130 +#
2131 +# use "activerehashing yes" if you don't have such hard requirements but
2132 +# want to free memory asap when possible.
2133 +activerehashing yes
2134 +
2135 +# The client output buffer limits can be used to force disconnection of clients
2136 +# that are not reading data from the server fast enough for some reason (a
2137 +# common reason is that a Pub/Sub client can't consume messages as fast as the
2138 +# publisher can produce them).
2139 +#
2140 +# The limit can be set differently for the three different classes of clients:
2141 +#
2142 +# normal -> normal clients including MONITOR clients
2143 +# slave -> slave clients
2144 +# pubsub -> clients subscribed to at least one pubsub channel or pattern
2145 +#
2146 +# The syntax of every client-output-buffer-limit directive is the following:
2147 +#
2148 +# client-output-buffer-limit <class> <hard limit> <soft limit> <soft seconds>
2149 +#
2150 +# A client is immediately disconnected once the hard limit is reached, or if
2151 +# the soft limit is reached and remains reached for the specified number of
2152 +# seconds (continuously).
2153 +# So for instance if the hard limit is 32 megabytes and the soft limit is
2154 +# 16 megabytes / 10 seconds, the client will get disconnected immediately
2155 +# if the size of the output buffers reach 32 megabytes, but will also get
2156 +# disconnected if the client reaches 16 megabytes and continuously overcomes
2157 +# the limit for 10 seconds.
2158 +#
2159 +# By default normal clients are not limited because they don't receive data
2160 +# without asking (in a push way), but just after a request, so only
2161 +# asynchronous clients may create a scenario where data is requested faster
2162 +# than it can read.
2163 +#
2164 +# Instead there is a default limit for pubsub and slave clients, since
2165 +# subscribers and slaves receive data in a push fashion.
2166 +#
2167 +# Both the hard or the soft limit can be disabled by setting them to zero.
2168 +client-output-buffer-limit normal 0 0 0
2169 +client-output-buffer-limit slave 256mb 64mb 60
2170 +client-output-buffer-limit pubsub 32mb 8mb 60
2171 +
2172 +# Redis calls an internal function to perform many background tasks, like
2173 +# closing connections of clients in timeout, purging expired keys that are
2174 +# never requested, and so forth.
2175 +#
2176 +# Not all tasks are performed with the same frequency, but Redis checks for
2177 +# tasks to perform according to the specified "hz" value.
2178 +#
2179 +# By default "hz" is set to 10. Raising the value will use more CPU when
2180 +# Redis is idle, but at the same time will make Redis more responsive when
2181 +# there are many keys expiring at the same time, and timeouts may be
2182 +# handled with more precision.
2183 +#
2184 +# The range is between 1 and 500, however a value over 100 is usually not
2185 +# a good idea. Most users should use the default of 10 and raise this up to
2186 +# 100 only in environments where very low latency is required.
2187 +hz 10
2188 +
2189 +# When a child rewrites the AOF file, if the following option is enabled
2190 +# the file will be fsync-ed every 32 MB of data generated. This is useful
2191 +# in order to commit the file to the disk more incrementally and avoid
2192 +# big latency spikes.
2193 +aof-rewrite-incremental-fsync yes
2194 - change mode from '' to '0644'
2195 - change owner from '' to 'gitlab-redis'
2196 * directory[/opt/gitlab/sv/redis] action create
2197 - create new directory /opt/gitlab/sv/redis
2198 - change mode from '' to '0755'
2199 - change owner from '' to 'root'
2200 - change group from '' to 'root'
2201 * directory[/opt/gitlab/sv/redis/log] action create
2202 - create new directory /opt/gitlab/sv/redis/log
2203 - change mode from '' to '0755'
2204 - change owner from '' to 'root'
2205 - change group from '' to 'root'
2206 * directory[/opt/gitlab/sv/redis/log/main] action create
2207 - create new directory /opt/gitlab/sv/redis/log/main
2208 - change mode from '' to '0755'
2209 - change owner from '' to 'root'
2210 - change group from '' to 'root'
2211 * template[/opt/gitlab/sv/redis/run] action create
2212 - create new file /opt/gitlab/sv/redis/run
2213 - update content in file /opt/gitlab/sv/redis/run from none to 535f80
2214 --- /opt/gitlab/sv/redis/run 2016-07-17 17:14:56.210653027 +0100
2215 +++ /opt/gitlab/sv/redis/.run20160717-7858-16j4jir 2016-07-17 17:14:56.210653027 +0100
2216 @@ -1 +1,6 @@
2217 +#!/bin/sh
2218 +exec 2>&1
2219 +
2220 +umask 077
2221 +exec chpst -P -U gitlab-redis -u gitlab-redis /opt/gitlab/embedded/bin/redis-server /var/opt/gitlab/redis/redis.conf
2222 - change mode from '' to '0755'
2223 - change owner from '' to 'root'
2224 - change group from '' to 'root'
2225 * template[/opt/gitlab/sv/redis/log/run] action create
2226 - create new file /opt/gitlab/sv/redis/log/run
2227 - update content in file /opt/gitlab/sv/redis/log/run from none to af1017
2228 --- /opt/gitlab/sv/redis/log/run 2016-07-17 17:14:56.218653027 +0100
2229 +++ /opt/gitlab/sv/redis/log/.run20160717-7858-1j4mjwc 2016-07-17 17:14:56.218653027 +0100
2230 @@ -1 +1,3 @@
2231 +#!/bin/sh
2232 +exec svlogd -tt /var/log/gitlab/redis
2233 - change mode from '' to '0755'
2234 - change owner from '' to 'root'
2235 - change group from '' to 'root'
2236 * template[/var/log/gitlab/redis/config] action create
2237 - create new file /var/log/gitlab/redis/config
2238 - update content in file /var/log/gitlab/redis/config from none to 623c00
2239 --- /var/log/gitlab/redis/config 2016-07-17 17:14:56.226653027 +0100
2240 +++ /var/log/gitlab/redis/.config20160717-7858-phmcaq 2016-07-17 17:14:56.226653027 +0100
2241 @@ -1 +1,7 @@
2242 +s209715200
2243 +n30
2244 +t86400
2245 +!gzip
2246 +
2247 +
2248 - change owner from '' to 'root'
2249 - change group from '' to 'root'
2250 * ruby_block[reload redis svlogd configuration] action nothing (skipped due to action :nothing)
2251 * file[/opt/gitlab/sv/redis/down] action delete (up to date)
2252 * link[/opt/gitlab/init/redis] action create
2253 - create symlink at /opt/gitlab/init/redis to /opt/gitlab/embedded/bin/sv
2254 * link[/opt/gitlab/service/redis] action create
2255 - create symlink at /opt/gitlab/service/redis to /opt/gitlab/sv/redis
2256 * ruby_block[supervise_redis_sleep] action run
2257^C/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.6/lib/omnibus-ctl.rb:208:in `system': Interrupt
2258 from /opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.6/lib/omnibus-ctl.rb:208:in `run_command'
2259 from /opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.6/lib/omnibus-ctl.rb:405:in `run_chef'
2260 from /opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.6/lib/omnibus-ctl.rb:418:in `reconfigure'
2261 from /opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.6/lib/omnibus-ctl.rb:575:in `run'
2262 from /opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.6/bin/omnibus-ctl:31:in `<top (required)>'
2263 from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `load'
2264 from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `<main>'
2265
2266
2267 ================================================================================
2268 Error executing action `run` on resource 'ruby_block[supervise_redis_sleep]'
2269 ================================================================================
2270
2271 SystemExit
2272 ----------
2273 exit
2274
2275 Cookbook Trace:
2276 ---------------
2277 /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:184:in `call'
2278 /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:184:in `sleep'
2279 /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:184:in `block (3 levels) in from_file'
2280
2281 Resource Declaration:
2282 ---------------------
2283 # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb
2284
2285 180: ruby_block "supervise_#{params[:name]}_sleep" do
2286 181: block do
2287 182: Chef::Log.debug("Waiting until named pipe #{sv_dir_name}/supervise/ok exists.")
2288 183: until ::FileTest.pipe?("#{sv_dir_name}/supervise/ok") do
2289 184: sleep 1
2290 185: Chef::Log.debug(".")
2291 186: end
2292 187: end
2293 188: not_if { FileTest.pipe?("#{sv_dir_name}/supervise/ok") }
2294 189: end
2295 190:
2296
2297 Compiled Resource:
2298 ------------------
2299 # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:180:in `block in from_file'
2300
2301 ruby_block("supervise_redis_sleep") do
2302 params {:directory=>"/opt/gitlab/sv", :only_if=>false, :finish_script=>false, :control=>[], :run_restart=>true, :active_directory=>"/opt/gitlab/service", :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"redis", :start_command=>"start", :stop_command=>"stop", :restart_command=>"restart", :status_command=>"status", :options=>{:service=>"redis", :log_directory=>"/var/log/gitlab/redis", :directory=>nil, :only_if=>false, :finish_script=>false, :control=>[], :run_restart=>true, :active_directory=>nil, :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"redis", :start_command=>"start", :stop_command=>"stop", :restart_command=>"restart", :status_command=>"status", :options=>{}, :log_options=>{}, :env=>{}, :action=>:enable, :down=>false}, :log_options=>{"svlogd_size"=>209715200, "svlogd_num"=>30, "svlogd_timeout"=>86400, "svlogd_filter"=>"gzip", "svlogd_udp"=>nil, "svlogd_prefix"=>nil, "udp_log_shipping_host"=>nil, "udp_log_shipping_port"=>514, "logrotate_frequency"=>"daily", "logrotate_size"=>nil, "logrotate_rotate"=>30, "logrotate_compress"=>"compress", "logrotate_method"=>"copytruncate", "logrotate_postrotate"=>nil, "logrotate_dateformat"=>nil, "enable"=>true, "ha"=>false, "dir"=>"/var/opt/gitlab/redis", "log_directory"=>"/var/log/gitlab/redis", "username"=>"gitlab-redis", "uid"=>nil, "gid"=>nil, "shell"=>"/bin/nologin", "home"=>"/var/opt/gitlab/redis", "bind"=>"127.0.0.1", "port"=>0, "maxclients"=>"10000", "tcp_timeout"=>60, "tcp_keepalive"=>0, "password"=>nil, "unixsocket"=>"/var/opt/gitlab/redis/redis.socket", "unixsocketperm"=>"777"}, :env=>{}, :action=>:enable, :down=>false, :name=>"redis"}
2303 action [:run]
2304 retries 0
2305 retry_delay 2
2306 default_guard_interpreter :default
2307 block_name "supervise_redis_sleep"
2308 declared_type :ruby_block
2309 cookbook_name "gitlab"
2310 recipe_name "redis"
2311 block #<Proc:0x000000052b4918@/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:181>
2312 not_if { #code block }
2313 end
2314
2315Recipe: gitlab::gitlab-rails
2316 * execute[clear the gitlab-rails cache] action runaaronngray@aarongray:~$
2317 [execute] rake aborted!
2318 Errno::ENOENT: No such file or directory - connect(2) for /var/opt/gitlab/redis/redis.socket
2319 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:180:in `connect_nonblock'
2320 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:180:in `connect'
2321 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:209:in `connect'
2322 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:323:in `establish_connection'
2323 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:94:in `block in connect'
2324 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:280:in `with_reconnect'
2325 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:93:in `connect'
2326 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:351:in `ensure_connected'
2327 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:208:in `block in process'
2328 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:293:in `logging'
2329 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:207:in `process'
2330 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:113:in `call'
2331 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis.rb:822:in `block in get'
2332 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis.rb:57:in `block in synchronize'
2333 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis.rb:57:in `synchronize'
2334 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis.rb:821:in `get'
2335 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/interface.rb:5:in `get'
2336 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/marshalling.rb:17:in `get'
2337 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:21:in `block in get'
2338 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:74:in `namespace'
2339 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:21:in `get'
2340 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:230:in `block in read_entry'
2341 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:212:in `call'
2342 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:212:in `with'
2343 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:230:in `read_entry'
2344 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:315:in `block in read'
2345 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:547:in `block in instrument'
2346 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
2347 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:547:in `instrument'
2348 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:314:in `read'
2349 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:302:in `fetch'
2350 /opt/gitlab/embedded/service/gitlab-rails/app/models/application_setting.rb:106:in `cached'
2351 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:12:in `ensure_application_settings!'
2352 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:7:in `current_application_settings'
2353 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:11:in `settings'
2354 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:23:in `enabled?'
2355 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:129:in `<module:Metrics>'
2356 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:2:in `<module:Gitlab>'
2357 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:1:in `<top (required)>'
2358 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2359 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
2360 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2361 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2362 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:360:in `require_or_load'
2363 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:494:in `load_missing_constant'
2364 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:184:in `const_missing'
2365 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/metrics.rb:1:in `<top (required)>'
2366 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
2367 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `block in load'
2368 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2369 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
2370 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:652:in `block in load_config_initializer'
2371 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
2372 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:651:in `load_config_initializer'
2373 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
2374 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `each'
2375 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `block in <class:Engine>'
2376 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
2377 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
2378 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
2379 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `each'
2380 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `tsort_each_child'
2381 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2382 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
2383 /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in `<top (required)>'
2384 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2385 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
2386 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2387 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2388 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application.rb:328:in `require_environment!'
2389 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application.rb:457:in `block in run_tasks_blocks'
2390 Tasks: TOP => cache:clear => environment
2391 (See full trace by running task with --trace)
2392
2393 ================================================================================
2394 Error executing action `run` on resource 'execute[clear the gitlab-rails cache]'
2395 ================================================================================
2396
2397 Mixlib::ShellOut::ShellCommandFailed
2398 ------------------------------------
2399 Expected process to exit with [0], but received '1'
2400 ---- Begin output of /opt/gitlab/bin/gitlab-rake cache:clear ----
2401 STDOUT:
2402 STDERR: rake aborted!
2403 Errno::ENOENT: No such file or directory - connect(2) for /var/opt/gitlab/redis/redis.socket
2404 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:180:in `connect_nonblock'
2405 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:180:in `connect'
2406 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:209:in `connect'
2407 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:323:in `establish_connection'
2408 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:94:in `block in connect'
2409 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:280:in `with_reconnect'
2410 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:93:in `connect'
2411 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:351:in `ensure_connected'
2412 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:208:in `block in process'
2413 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:293:in `logging'
2414 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:207:in `process'
2415 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis/client.rb:113:in `call'
2416 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis.rb:822:in `block in get'
2417 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis.rb:57:in `block in synchronize'
2418 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis.rb:57:in `synchronize'
2419 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.2/lib/redis.rb:821:in `get'
2420 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/interface.rb:5:in `get'
2421 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/marshalling.rb:17:in `get'
2422 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:21:in `block in get'
2423 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:74:in `namespace'
2424 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:21:in `get'
2425 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:230:in `block in read_entry'
2426 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:212:in `call'
2427 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:212:in `with'
2428 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:230:in `read_entry'
2429 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:315:in `block in read'
2430 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:547:in `block in instrument'
2431 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
2432 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:547:in `instrument'
2433 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:314:in `read'
2434 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:302:in `fetch'
2435 /opt/gitlab/embedded/service/gitlab-rails/app/models/application_setting.rb:106:in `cached'
2436 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:12:in `ensure_application_settings!'
2437 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:7:in `current_application_settings'
2438 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:11:in `settings'
2439 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:23:in `enabled?'
2440 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:129:in `<module:Metrics>'
2441 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:2:in `<module:Gitlab>'
2442 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:1:in `<top (required)>'
2443 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2444 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
2445 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2446 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2447 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:360:in `require_or_load'
2448 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:494:in `load_missing_constant'
2449 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:184:in `const_missing'
2450 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/metrics.rb:1:in `<top (required)>'
2451 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
2452 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `block in load'
2453 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2454 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
2455 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:652:in `block in load_config_initializer'
2456 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
2457 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:651:in `load_config_initializer'
2458 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
2459 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `each'
2460 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `block in <class:Engine>'
2461 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
2462 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
2463 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
2464 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `each'
2465 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `tsort_each_child'
2466 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2467 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
2468 /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in `<top (required)>'
2469 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2470 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
2471 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2472 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2473 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application.rb:328:in `require_environment!'
2474 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.6/lib/rails/application.rb:457:in `block in run_tasks_blocks'
2475 Tasks: TOP => cache:clear => environment
2476 (See full trace by running task with --trace)
2477 ---- End output of /opt/gitlab/bin/gitlab-rake cache:clear ----
2478 Ran /opt/gitlab/bin/gitlab-rake cache:clear returned 1
2479
2480 Resource Declaration:
2481 ---------------------
2482 # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb
2483
2484 316: execute "clear the gitlab-rails cache" do
2485 317: command "/opt/gitlab/bin/gitlab-rake cache:clear"
2486 318: action :nothing
2487 319: end
2488 320:
2489
2490 Compiled Resource:
2491 ------------------
2492 # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:316:in `from_file'
2493
2494 execute("clear the gitlab-rails cache") do
2495 action [:nothing]
2496 retries 0
2497 retry_delay 2
2498 default_guard_interpreter :execute
2499 command "/opt/gitlab/bin/gitlab-rake cache:clear"
2500 backup 5
2501 returns 0
2502 declared_type :execute
2503 cookbook_name "gitlab"
2504 recipe_name "gitlab-rails"
2505 end
2506
2507Recipe: gitlab::unicorn
2508 * service[unicorn] action restart
2509
2510 ================================================================================
2511 Error executing action `restart` on resource 'service[unicorn]'
2512 ================================================================================
2513
2514 Mixlib::ShellOut::ShellCommandFailed
2515 ------------------------------------
2516 Expected process to exit with [0], but received '1'
2517 ---- Begin output of /opt/gitlab/embedded/bin/chpst -u root /opt/gitlab/embedded/bin/sv 2 /opt/gitlab/service/unicorn ----
2518 STDOUT: fail: /opt/gitlab/service/unicorn: unable to change to service directory: file does not exist
2519 STDERR:
2520 ---- End output of /opt/gitlab/embedded/bin/chpst -u root /opt/gitlab/embedded/bin/sv 2 /opt/gitlab/service/unicorn ----
2521 Ran /opt/gitlab/embedded/bin/chpst -u root /opt/gitlab/embedded/bin/sv 2 /opt/gitlab/service/unicorn returned 1
2522
2523 Resource Declaration:
2524 ---------------------
2525 # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb
2526
2527 191: service params[:name] do
2528 192: control_cmd = node[:runit][:sv_bin]
2529 193: if params[:owner]
2530 194: control_cmd = "#{node[:runit][:chpst_bin]} -u #{params[:owner]} #{control_cmd}"
2531 195: end
2532 196: provider Chef::Provider::Service::Simple
2533
2534 Compiled Resource:
2535 ------------------
2536 # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:191:in `block in from_file'
2537
2538 service("unicorn") do
2539 params {:directory=>"/opt/gitlab/sv", :only_if=>false, :finish_script=>false, :control=>["t"], :run_restart=>true, :active_directory=>"/opt/gitlab/service", :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"unicorn", :start_command=>"start", :stop_command=>"stop", :restart_command=>2, :status_command=>"status", :options=>{:service=>"unicorn", :user=>"git", :rails_app=>"gitlab-rails", :unicorn_rb=>"/var/opt/gitlab/gitlab-rails/etc/unicorn.rb", :log_directory=>"/var/log/gitlab/unicorn", :directory=>nil, :only_if=>false, :finish_script=>false, :control=>["t"], :run_restart=>true, :active_directory=>nil, :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"unicorn", :start_command=>"start", :stop_command=>"stop", :restart_command=>2, :status_command=>"status", :options=>{}, :log_options=>{}, :env=>{}, :action=>:enable, :down=>false}, :log_options=>{"svlogd_size"=>209715200, "svlogd_num"=>30, "svlogd_timeout"=>86400, "svlogd_filter"=>"gzip", "svlogd_udp"=>nil, "svlogd_prefix"=>nil, "udp_log_shipping_host"=>nil, "udp_log_shipping_port"=>514, "logrotate_frequency"=>"daily", "logrotate_size"=>nil, "logrotate_rotate"=>30, "logrotate_compress"=>"compress", "logrotate_method"=>"copytruncate", "logrotate_postrotate"=>nil, "logrotate_dateformat"=>nil, "enable"=>true, "ha"=>false, "log_directory"=>"/var/log/gitlab/unicorn", "worker_processes"=>5, "listen"=>"127.0.0.1", "port"=>8080, "socket"=>"/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket", "pidfile"=>"/opt/gitlab/var/unicorn/unicorn.pid", "tcp_nopush"=>true, "backlog_socket"=>1024, "somaxconn"=>1024, "worker_timeout"=>60, "worker_memory_limit_min"=>"400 * 1 << 20", "worker_memory_limit_max"=>"650 * 1 << 20"}, :env=>{}, :action=>:enable, :down=>false, :name=>"unicorn"}
2540 provider Chef::Provider::Service::Simple
2541 action [:nothing]
2542 supports {:restart=>true, :status=>true}
2543 retries 0
2544 retry_delay 2
2545 default_guard_interpreter :default
2546 service_name "unicorn"
2547 pattern "unicorn"
2548 start_command "/opt/gitlab/embedded/bin/chpst -u root /opt/gitlab/embedded/bin/sv start /opt/gitlab/service/unicorn"
2549 stop_command "/opt/gitlab/embedded/bin/chpst -u root /opt/gitlab/embedded/bin/sv stop /opt/gitlab/service/unicorn"
2550 status_command "/opt/gitlab/embedded/bin/chpst -u root /opt/gitlab/embedded/bin/sv status /opt/gitlab/service/unicorn"
2551 restart_command "/opt/gitlab/embedded/bin/chpst -u root /opt/gitlab/embedded/bin/sv 2 /opt/gitlab/service/unicorn"
2552 declared_type :service
2553 cookbook_name "gitlab"
2554 recipe_name "unicorn"
2555 end
2556
2557Recipe: gitlab::redis
2558 * ruby_block[reload redis svlogd configuration] action create
2559
2560 ================================================================================
2561 Error executing action `create` on resource 'ruby_block[reload redis svlogd configuration]'
2562 ================================================================================
2563
2564 Errno::ENOENT
2565 -------------
2566 No such file or directory @ rb_sysopen - /opt/gitlab/sv/redis/log/supervise/control
2567
2568 Cookbook Trace:
2569 ---------------
2570 /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:91:in `initialize'
2571 /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:91:in `open'
2572 /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:91:in `block (3 levels) in from_file'
2573
2574 Resource Declaration:
2575 ---------------------
2576 # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb
2577
2578 89: ruby_block "reload #{params[:name]} svlogd configuration" do
2579 90: block do
2580 91: File.open(File.join(sv_dir_name, "log/supervise/control"), "w") do |control|
2581 92: control.print "h"
2582 93: end
2583 94: end
2584 95: action :nothing
2585 96: end
2586 97:
2587
2588 Compiled Resource:
2589 ------------------
2590 # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:89:in `block in from_file'
2591
2592 ruby_block("reload redis svlogd configuration") do
2593 params {:directory=>"/opt/gitlab/sv", :only_if=>false, :finish_script=>false, :control=>[], :run_restart=>true, :active_directory=>"/opt/gitlab/service", :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"redis", :start_command=>"start", :stop_command=>"stop", :restart_command=>"restart", :status_command=>"status", :options=>{:service=>"redis", :log_directory=>"/var/log/gitlab/redis", :directory=>nil, :only_if=>false, :finish_script=>false, :control=>[], :run_restart=>true, :active_directory=>nil, :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"redis", :start_command=>"start", :stop_command=>"stop", :restart_command=>"restart", :status_command=>"status", :options=>{}, :log_options=>{}, :env=>{}, :action=>:enable, :down=>false}, :log_options=>{"svlogd_size"=>209715200, "svlogd_num"=>30, "svlogd_timeout"=>86400, "svlogd_filter"=>"gzip", "svlogd_udp"=>nil, "svlogd_prefix"=>nil, "udp_log_shipping_host"=>nil, "udp_log_shipping_port"=>514, "logrotate_frequency"=>"daily", "logrotate_size"=>nil, "logrotate_rotate"=>30, "logrotate_compress"=>"compress", "logrotate_method"=>"copytruncate", "logrotate_postrotate"=>nil, "logrotate_dateformat"=>nil, "enable"=>true, "ha"=>false, "dir"=>"/var/opt/gitlab/redis", "log_directory"=>"/var/log/gitlab/redis", "username"=>"gitlab-redis", "uid"=>nil, "gid"=>nil, "shell"=>"/bin/nologin", "home"=>"/var/opt/gitlab/redis", "bind"=>"127.0.0.1", "port"=>0, "maxclients"=>"10000", "tcp_timeout"=>60, "tcp_keepalive"=>0, "password"=>nil, "unixsocket"=>"/var/opt/gitlab/redis/redis.socket", "unixsocketperm"=>"777"}, :env=>{}, :action=>:enable, :down=>false, :name=>"redis"}
2594 action [:nothing]
2595 retries 0
2596 retry_delay 2
2597 default_guard_interpreter :default
2598 block_name "reload redis svlogd configuration"
2599 declared_type :ruby_block
2600 cookbook_name "gitlab"
2601 recipe_name "redis"
2602 block #<Proc:0x000000052e91e0@/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:90>
2603 end
2604
2605
2606Running handlers:
2607Running handlers complete
2608Chef Client failed. 76 resources updated in 04 minutes 01 seconds