Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@gitlab:/etc/gitlab# gitlab-ctl reconfigure
- [2023-06-12T08:51:10+00:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook)
- Cinc Client, version 17.10.0
- Patents: https://www.chef.io/patents
- Infra Phase starting
- [2023-06-12T08:51:10+00:00] INFO: *** Cinc Client 17.10.0 ***
- [2023-06-12T08:51:10+00:00] INFO: Platform: x86_64-linux
- [2023-06-12T08:51:10+00:00] INFO: Cinc-client pid: 2522091
- [2023-06-12T08:51:11+00:00] INFO: Setting the run_list to ["recipe[gitlab-ee]"] from CLI options
- [2023-06-12T08:51:11+00:00] INFO: Run List is [recipe[gitlab-ee]]
- [2023-06-12T08:51:11+00:00] INFO: Run List expands to [gitlab-ee]
- [2023-06-12T08:51:11+00:00] INFO: Starting Cinc Client Run for gitlab.domain
- [2023-06-12T08:51:11+00:00] INFO: Running start handlers
- [2023-06-12T08:51:11+00:00] INFO: Start handlers complete.
- Resolving cookbooks for run list: ["gitlab-ee"]
- [2023-06-12T08:51:11+00:00] INFO: Loading cookbooks [gitlab-ee@0.0.1, package@0.1.0, gitlab@0.0.1, consul@0.1.0, patroni@0.1.0, pgbouncer@0.1.0, spamcheck@0.1.0, runit@5.1.7, logrotate@0.1.0, postgresql@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, gitaly@0.1.0, praefect@0.1.0, gitlab-kas@0.1.0, gitlab-pages@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, acme@4.1.6, crond@0.1.0]
- Synchronizing cookbooks:
- - gitlab-ee (0.0.1)
- - package (0.1.0)
- - gitlab (0.0.1)
- - consul (0.1.0)
- - patroni (0.1.0)
- - pgbouncer (0.1.0)
- - spamcheck (0.1.0)
- - postgresql (0.1.0)
- - runit (5.1.7)
- - logrotate (0.1.0)
- - redis (0.1.0)
- - monitoring (0.1.0)
- - registry (0.1.0)
- - mattermost (0.1.0)
- - gitaly (0.1.0)
- - praefect (0.1.0)
- - gitlab-kas (0.1.0)
- - gitlab-pages (0.1.0)
- - letsencrypt (0.1.0)
- - nginx (0.1.0)
- - acme (4.1.6)
- - crond (0.1.0)
- Installing cookbook gem dependencies:
- Compiling cookbooks...
- Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
- Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
- Loading Cinc Auditor profile files:
- Loading Cinc Auditor input files:
- Loading Cinc Auditor waiver files:
- [2023-06-12T08:51:13+00:00] WARN: Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
- Recipe: gitlab::default
- * directory[/etc/gitlab] action create (up to date)
- [2023-06-12T08:51:13+00:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: Selected systemd because /run/systemd/system/ exists
- [2023-06-12T08:51:13+00:00] WARN: gitlab-shell does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-sshd does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: logrotate does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: logrotate does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: puma does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-shell does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-workhorse does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-pages does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-kas does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitaly does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: mailroom does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitaly does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: postgresql does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: postgresql does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] INFO: /opt/gitlab/init/postgresql status does not exist.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-kas does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: puma does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: sidekiq does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-workhorse does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: node-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: gitlab-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: redis-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:13+00:00] WARN: prometheus does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:14+00:00] WARN: alertmanager does not have a log_group or default logdir mode defined. Setting to 0700.
- [2023-06-12T08:51:14+00:00] WARN: postgres-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
- /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:25: warning: already initialized constant MACROS_MARKER
- /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:25: warning: previous definition of MACROS_MARKER was here
- /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:27: warning: already initialized constant DO_NOT_SPLIT
- /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:27: warning: previous definition of DO_NOT_SPLIT was here
- Converging 304 resources
- * directory[/etc/gitlab] action create (up to date)
- * directory[Create /var/opt/gitlab] action create (up to date)
- * directory[Create /var/log/gitlab] action create (up to date)
- * directory[/opt/gitlab/embedded/etc] action create (up to date)
- * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date)
- Recipe: gitlab::web-server
- * account[Webserver user and group] action create
- * group[Webserver user and group] action create (up to date)
- * linux_user[Webserver user and group] action create (up to date)
- (up to date)
- Recipe: gitlab::users
- * directory[/var/opt/gitlab] action create (up to date)
- * account[GitLab user and group] action create
- * group[GitLab user and group] action create (up to date)
- * linux_user[GitLab user and group] action create (up to date)
- (up to date)
- * template[/var/opt/gitlab/.gitconfig] action create[2023-06-12T08:51:14+00:00] INFO: template[/var/opt/gitlab/.gitconfig] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/.gitconfig.chef-20230612085114.409760
- [2023-06-12T08:51:14+00:00] INFO: template[/var/opt/gitlab/.gitconfig] updated file contents /var/opt/gitlab/.gitconfig
- - update content in file /var/opt/gitlab/.gitconfig from cbd37b to 24783d
- --- /var/opt/gitlab/.gitconfig 2023-06-08 17:23:57.709198852 +0000
- +++ /var/opt/gitlab/.chef-.gitconfig20230612-2522091-sxu4dc.gitconfig 2023-06-12 08:51:14.399777780 +0000
- @@ -4,7 +4,7 @@
- [user]
- name = GitLab
- - email = gitlab@git.domain.com
- + email = gitlab@192.168.100.33
- [core]
- autocrlf = input
- * directory[/var/opt/gitlab/.bundle] action create (up to date)
- Recipe: gitlab::gitlab-rails
- * storage_directory[/var/opt/gitlab/git-data] action create
- * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/git-data/repositories] action create
- * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if)
- (up to date)
- Recipe: gitlab::rails_pages_shared_path
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if)
- (up to date)
- Recipe: gitlab::gitlab-rails
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/terraform_state] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/terraform_state] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if)
- (up to date)
- * storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if)
- * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date)
- * directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date)
- * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date)
- * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date)
- * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date)
- * directory[/var/log/gitlab/gitlab-rails] action create (up to date)
- * storage_directory[/var/opt/gitlab/backups] action create
- * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if)
- (up to date)
- * directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
- * directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
- * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
- * template[/opt/gitlab/etc/gitlab-rails-rc] action create[2023-06-12T08:51:15+00:00] INFO: template[/opt/gitlab/etc/gitlab-rails-rc] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/opt/gitlab/etc/gitlab-rails-rc.chef-20230612085115.203015
- [2023-06-12T08:51:15+00:00] INFO: template[/opt/gitlab/etc/gitlab-rails-rc] updated file contents /opt/gitlab/etc/gitlab-rails-rc
- - update content in file /opt/gitlab/etc/gitlab-rails-rc from 000a09 to 7b16c8
- --- /opt/gitlab/etc/gitlab-rails-rc 2023-06-08 17:24:00.873186764 +0000
- +++ /opt/gitlab/etc/.chef-gitlab-rails-rc20230612-2522091-qv30p3 2023-06-12 08:51:15.199775672 +0000
- @@ -1,6 +1,6 @@
- gitlab_user='git'
- gitlab_group='git'
- -registry_dir='/var/opt/gitlab/gitlab-rails/shared/registry'
- +registry_dir=''
- registry_user='registry'
- registry_group='registry'
- * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
- * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
- * templatesymlink[Create a database.yml and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
- (up to date)
- * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
- (up to date)
- * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
- (up to date)
- * templatesymlink[Create an override redis.yml and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/redis.yml] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/redis.yml to /var/opt/gitlab/gitlab-rails/etc/redis.yml] action create (up to date)
- (up to date)
- * templatesymlink[Create a cable.yml and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/cable.yml to /var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date)
- (up to date)
- * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date)
- (up to date)
- * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date)
- (up to date)
- * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date)
- (up to date)
- * templatesymlink[Create a redis.trace_chunks.yml and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.trace_chunks.yml] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.trace_chunks.yml] action delete (up to date)
- (up to date)
- * templatesymlink[Create a redis.rate_limiting.yml and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.rate_limiting.yml] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.rate_limiting.yml] action delete (up to date)
- (up to date)
- * templatesymlink[Create a redis.sessions.yml and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.sessions.yml] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.sessions.yml] action delete (up to date)
- (up to date)
- * templatesymlink[Create a redis.repository_cache.yml and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.repository_cache.yml] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.repository_cache.yml] action delete (up to date)
- (up to date)
- * templatesymlink[Create a redis.cluster_rate_limiting.yml and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.cluster_rate_limiting.yml] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cluster_rate_limiting.yml] action delete (up to date)
- (up to date)
- * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete
- * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date)
- (up to date)
- * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create[2023-06-12T08:51:15+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitlab-rails/etc/gitlab.yml.chef-20230612085115.453657
- [2023-06-12T08:51:15+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] updated file contents /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
- - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from 0a686e to c48272
- - suppressed sensitive resource
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)
- * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
- (up to date)
- * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
- (up to date)
- * templatesymlink[Create a gitlab_incoming_email_secret and create a symlink to Rails root] action create (skipped due to only_if)
- * templatesymlink[Create a gitlab_service_desk_email_secret and create a symlink to Rails root] action create (skipped due to only_if)
- * templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] action create[2023-06-12T08:51:15+00:00] WARN: only_if block for templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] returned a string, did you mean to run a command?
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date)
- (up to date)
- * templatesymlink[Create a gitlab_kas_secret and create a symlink to Rails root] action create[2023-06-12T08:51:15+00:00] WARN: only_if block for templatesymlink[Create a gitlab_kas_secret and create a symlink to Rails root] returned a string, did you mean to run a command?
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date)
- (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
- * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
- * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
- * directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/PUMA_WORKER_MAX_MEMORY] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_DIR] action create (up to date)
- * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_FILE] action create (up to date)
- (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)
- * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action delete (skipped due to only_if)
- * file[/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql] action create (up to date)
- * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date)
- * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date)
- * version_file[Create version file for Rails] action create
- * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date)
- (up to date)
- * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
- * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
- Recipe: gitlab::selinux
- * bash[Set proper security context on ssh files for selinux] action nothing (skipped due to action :nothing)
- Recipe: gitlab::add_trusted_certs
- * directory[/etc/gitlab/trusted-certs] action create (up to date)
- * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
- * file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date)
- * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if)
- Recipe: gitlab::default
- * service[create a temporary puma service] action nothing (skipped due to action :nothing)
- * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
- * service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
- Recipe: package::runit_systemd
- * directory[/usr/lib/systemd/system] action create (up to date)
- * template[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
- * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
- * file[/etc/systemd/system/basic.target.wants/gitlab-runsvdir.service] action delete (up to date)
- * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
- * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
- * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing)
- Recipe: gitlab::gitlab-shell
- * storage_directory[/var/opt/gitlab/.ssh] action create
- * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if)
- (up to date)
- * directory[/var/opt/gitlab/gitlab-shell] action create (up to date)
- * directory[/var/log/gitlab/gitlab-shell] action create (up to date)
- * bash[generate gitlab-sshd host keys] action run (skipped due to only_if)
- * templatesymlink[Create a config.yml and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
- (up to date)
- * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
- * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date)
- * env_dir[/opt/gitlab/etc/gitlab-sshd/env] action nothing (skipped due to action :nothing)
- * service[gitlab-sshd] action nothing (skipped due to action :nothing)
- * runit_service[gitlab-sshd] action disable
- * ruby_block[disable gitlab-sshd] action run (skipped due to only_if)
- (up to date)
- Recipe: package::sysctl
- * execute[reload all sysctl conf] action nothing (skipped due to action :nothing)
- Recipe: logrotate::folders_and_configs
- * directory[/var/opt/gitlab/logrotate] action create (up to date)
- * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date)
- * directory[/var/log/gitlab/logrotate] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/puma] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-kas] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitaly] action create (up to date)
- * template[/var/opt/gitlab/logrotate/logrotate.d/mailroom] action create (up to date)
- Recipe: logrotate::enable
- * service[logrotate] action nothing (skipped due to action :nothing)
- * runit_service[logrotate] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/logrotate] action create (up to date)
- * template[/opt/gitlab/sv/logrotate/run] action create (up to date)
- * directory[/opt/gitlab/sv/logrotate/log] action create (up to date)
- * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date)
- * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/logrotate/config] action create (up to date)
- * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/logrotate/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/logrotate/control] action create (up to date)
- * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date)
- * link[/opt/gitlab/init/logrotate] action create (up to date)
- * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/logrotate] action create (up to date)
- * ruby_block[wait for logrotate service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/logrotate/current] action touch (skipped due to only_if)
- (up to date)
- * execute[/opt/gitlab/bin/gitlab-ctl start logrotate] action run
- [execute] ok: run: logrotate: (pid 2496851) 1627s
- [2023-06-12T08:51:16+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start logrotate] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start logrotate
- Recipe: redis::enable
- * redis_service[redis] action create[2023-06-12T08:51:16+00:00] WARN: redis does not have a log_group or default logdir mode defined. Setting to 0700.
- * account[user and group for redis] action create
- * group[user and group for redis] action create (up to date)
- * linux_user[user and group for redis] action create (up to date)
- (up to date)
- * group[Socket group] action create (up to date)
- * directory[/var/opt/gitlab/redis] action create (up to date)
- * directory[/var/log/gitlab/redis] action create (up to date)
- * template[/var/opt/gitlab/redis/redis.conf] action create (up to date)
- * service[redis] action nothing (skipped due to action :nothing)
- * runit_service[redis] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/redis] action create (up to date)
- * template[/opt/gitlab/sv/redis/run] action create (up to date)
- * directory[/opt/gitlab/sv/redis/log] action create (up to date)
- * directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
- * template[/opt/gitlab/sv/redis/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/redis/config] action create (up to date)
- * template[/opt/gitlab/sv/redis/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/redis/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/redis/control] action create (up to date)
- * link[/opt/gitlab/init/redis] action create (up to date)
- * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/redis] action create (up to date)
- * ruby_block[wait for redis service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/redis/current] action touch (skipped due to only_if)
- (up to date)
- * execute[/opt/gitlab/bin/gitlab-ctl start redis] action run
- [execute] ok: run: redis: (pid 30925) 314825s
- [2023-06-12T08:51:17+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start redis] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start redis
- * ruby_block[warn pending redis restart] action run (skipped due to only_if)
- * template[/opt/gitlab/etc/gitlab-redis-cli-rc] action create (up to date)
- Recipe: gitaly::enable
- * directory[/var/opt/gitlab/gitaly] action create (up to date)
- * directory[/var/opt/gitlab/gitaly/run] action create (up to date)
- * directory[/var/log/gitlab/gitaly] action create (up to date)
- * directory[/var/opt/gitlab/gitaly/internal_sockets] action delete (up to date)
- * env_dir[/opt/gitlab/etc/gitaly/env] action create
- * directory[/opt/gitlab/etc/gitaly/env] action create (up to date)
- * file[/opt/gitlab/etc/gitaly/env/HOME] action create (up to date)
- * file[/opt/gitlab/etc/gitaly/env/PATH] action create (up to date)
- * file[/opt/gitlab/etc/gitaly/env/TZ] action create (up to date)
- * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create (up to date)
- * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create (up to date)
- * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create (up to date)
- * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create (up to date)
- * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create (up to date)
- (up to date)
- * template[Create Gitaly config.toml] action create (up to date)
- * service[gitaly] action nothing (skipped due to action :nothing)
- * runit_service[gitaly] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitaly] action create (up to date)
- * template[/opt/gitlab/sv/gitaly/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitaly/log] action create (up to date)
- * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date)
- * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitaly/config] action create (up to date)
- * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitaly/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitaly/control] action create (up to date)
- * link[/opt/gitlab/init/gitaly] action create (up to date)
- * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitaly] action create (up to date)
- * ruby_block[wait for gitaly service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/gitaly/current] action touch (skipped due to only_if)
- (up to date)
- * execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run
- [execute] ok: run: gitaly: (pid 31291) 314793s
- [2023-06-12T08:51:18+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start gitaly] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start gitaly
- * version_file[Create version file for Gitaly] action create
- * file[/var/opt/gitlab/gitaly/VERSION] action create (up to date)
- (up to date)
- * consul_service[gitaly] action delete
- * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date)
- (up to date)
- Recipe: postgresql::bin
- * ruby_block[check_postgresql_version] action run (skipped due to not_if)
- * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if)
- * ruby_block[Link postgresql bin files to the correct version] action run[2023-06-12T08:51:19+00:00] INFO: ruby_block[Link postgresql bin files to the correct version] called
- - execute the ruby block Link postgresql bin files to the correct version
- * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
- Recipe: postgresql::user
- * account[Postgresql user and group] action create
- * group[Postgresql user and group] action create (up to date)
- * linux_user[Postgresql user and group] action create (up to date)
- (up to date)
- * directory[/var/opt/gitlab/postgresql] action create (up to date)
- * file[/var/opt/gitlab/postgresql/.profile] action create (up to date)
- Recipe: postgresql::sysctl
- * gitlab_sysctl[kernel.shmmax] action create
- * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date)
- * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date)
- * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date)
- * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing)
- (up to date)
- * gitlab_sysctl[kernel.shmall] action create
- * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date)
- * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date)
- * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date)
- * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing)
- (up to date)
- * gitlab_sysctl[kernel.sem] action create
- * directory[create /etc/sysctl.d for kernel.sem] action create (up to date)
- * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date)
- * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date)
- * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing)
- (up to date)
- Recipe: postgresql::enable
- * directory[/var/opt/gitlab/postgresql] action create (up to date)
- * directory[/var/opt/gitlab/postgresql/data] action create[2023-06-12T08:51:19+00:00] INFO: directory[/var/opt/gitlab/postgresql/data] created directory /var/opt/gitlab/postgresql/data
- - create new directory /var/opt/gitlab/postgresql/data[2023-06-12T08:51:19+00:00] INFO: directory[/var/opt/gitlab/postgresql/data] owner changed to 995
- [2023-06-12T08:51:19+00:00] INFO: directory[/var/opt/gitlab/postgresql/data] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-psql'
- * directory[/var/opt/gitlab/postgresql/data] action create (up to date)
- * directory[/var/log/gitlab/postgresql] action create[2023-06-12T08:51:19+00:00] INFO: directory[/var/log/gitlab/postgresql] created directory /var/log/gitlab/postgresql
- - create new directory /var/log/gitlab/postgresql[2023-06-12T08:51:19+00:00] INFO: directory[/var/log/gitlab/postgresql] owner changed to 995
- [2023-06-12T08:51:19+00:00] INFO: directory[/var/log/gitlab/postgresql] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-psql'
- * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run
- [execute] The files belonging to this database system will be owned by user "gitlab-psql".
- This user must also own the server process.
- The database cluster will be initialized with locale "C".
- The default text search configuration will be set to "english".
- Data page checksums are disabled.
- fixing permissions on existing directory /var/opt/gitlab/postgresql/data ... ok
- creating subdirectories ... ok
- selecting dynamic shared memory implementation ... posix
- selecting default max_connections ... 100
- selecting default shared_buffers ... 128MB
- selecting default time zone ... Etc/UTC
- creating configuration files ... ok
- running bootstrap script ... ok
- performing post-bootstrap initialization ... ok
- syncing data to disk ... ok
- Success. You can now start the database server using:
- /opt/gitlab/embedded/bin/pg_ctl -D /var/opt/gitlab/postgresql/data -l logfile start
- initdb: warning: enabling "trust" authentication for local connections
- You can change this by editing pg_hba.conf or using the option -A, or
- --auth-local and --auth-host, the next time you run initdb.
- [2023-06-12T08:51:23+00:00] INFO: execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] ran successfully
- - execute /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8
- * file[/var/opt/gitlab/postgresql/data/server.crt] action create[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] created file /var/opt/gitlab/postgresql/data/server.crt
- - create new file /var/opt/gitlab/postgresql/data/server.crt[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] updated file contents /var/opt/gitlab/postgresql/data/server.crt
- - update content in file /var/opt/gitlab/postgresql/data/server.crt from none to 11600b
- - suppressed sensitive resource[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] owner changed to 995
- [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] group changed to 995
- [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] mode changed to 600
- - change mode from '' to '0600'
- - change owner from '' to 'gitlab-psql'
- - change group from '' to 'gitlab-psql'
- * file[/var/opt/gitlab/postgresql/data/server.key] action create[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] created file /var/opt/gitlab/postgresql/data/server.key
- - create new file /var/opt/gitlab/postgresql/data/server.key[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] updated file contents /var/opt/gitlab/postgresql/data/server.key
- - update content in file /var/opt/gitlab/postgresql/data/server.key from none to b520be
- - suppressed sensitive resource[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] owner changed to 995
- [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] group changed to 995
- [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] mode changed to 600
- - change mode from '' to '0600'
- - change owner from '' to 'gitlab-psql'
- - change group from '' to 'gitlab-psql'
- * postgresql_config[gitlab] action create
- * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/postgresql.conf] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/postgresql/data/postgresql.conf.chef-20230612085123.627552
- [2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/postgresql.conf] updated file contents /var/opt/gitlab/postgresql/data/postgresql.conf
- - update content in file /var/opt/gitlab/postgresql/data/postgresql.conf from 345513 to e0d332
- --- /var/opt/gitlab/postgresql/data/postgresql.conf 2023-06-12 08:51:19.947763143 +0000
- +++ /var/opt/gitlab/postgresql/data/.chef-postgresql20230612-2522091-hzdfsa.conf 2023-06-12 08:51:23.611753451 +0000
- @@ -1,3 +1,7 @@
- +# This file is managed by gitlab-ctl. Manual changes will be
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
- +# and run `sudo gitlab-ctl reconfigure`.
- +
- # -----------------------------
- # PostgreSQL configuration file
- # -----------------------------
- @@ -16,19 +20,18 @@
- #
- # This file is read on server startup and when the server receives a SIGHUP
- # signal. If you edit the file on a running system, you have to SIGHUP the
- -# server for the changes to take effect, run "pg_ctl reload", or execute
- -# "SELECT pg_reload_conf()". Some parameters, which are marked below,
- -# require a server shutdown and restart to take effect.
- +# server for the changes to take effect, or use "pg_ctl reload". Some
- +# parameters, which are marked below, require a server shutdown and restart to
- +# take effect.
- #
- # Any parameter can also be given as a command-line option to the server, e.g.,
- # "postgres -c log_connections=on". Some parameters can be changed at run time
- # with the "SET" SQL command.
- #
- -# Memory units: B = bytes Time units: us = microseconds
- -# kB = kilobytes ms = milliseconds
- +# Memory units: kB = kilobytes Time units: ms = milliseconds
- # MB = megabytes s = seconds
- # GB = gigabytes min = minutes
- -# TB = terabytes h = hours
- +# h = hours
- # d = days
- @@ -39,16 +42,16 @@
- # The default values of these variables are driven from the -D command-line
- # option or PGDATA environment variable, represented here as ConfigDir.
- -#data_directory = 'ConfigDir' # use data in another directory
- - # (change requires restart)
- -#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
- - # (change requires restart)
- -#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
- - # (change requires restart)
- +#data_directory = 'ConfigDir' # use data in another directory
- + # (change requires restart)
- +#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
- + # (change requires restart)
- +#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
- + # (change requires restart)
- # If external_pid_file is not explicitly set, no extra PID file is written.
- -#external_pid_file = '' # write an extra PID file
- - # (change requires restart)
- +#external_pid_file = '(none)' # write an extra PID file
- + # (change requires restart)
- #------------------------------------------------------------------------------
- @@ -57,60 +60,57 @@
- # - Connection Settings -
- -#listen_addresses = 'localhost' # what IP address(es) to listen on;
- - # comma-separated list of addresses;
- - # defaults to 'localhost'; use '*' for all
- - # (change requires restart)
- -#port = 5432 # (change requires restart)
- -max_connections = 100 # (change requires restart)
- -#superuser_reserved_connections = 3 # (change requires restart)
- -#unix_socket_directories = '/tmp' # comma-separated list of directories
- - # (change requires restart)
- -#unix_socket_group = '' # (change requires restart)
- -#unix_socket_permissions = 0777 # begin with 0 to use octal notation
- - # (change requires restart)
- -#bonjour = off # advertise server via Bonjour
- - # (change requires restart)
- -#bonjour_name = '' # defaults to the computer name
- - # (change requires restart)
- +listen_addresses = '' # what IP address(es) to listen on;
- + # comma-separated list of addresses;
- + # defaults to 'localhost', '*' = all
- + # (change requires restart)
- +port = 5432 # (change requires restart)
- +max_connections = 400 # (change requires restart)
- +# Note: Increasing max_connections costs ~400 bytes of shared memory per
- +# connection slot, plus lock space (see max_locks_per_transaction).
- +#superuser_reserved_connections = 3 # (change requires restart)
- +unix_socket_directories = '/var/opt/gitlab/postgresql' # (change requires restart)
- +#unix_socket_group = '' # (change requires restart)
- +#unix_socket_permissions = 0777 # begin with 0 to use octal notation
- + # (change requires restart)
- +#bonjour = off # advertise server via Bonjour
- + # (change requires restart)
- +#bonjour_name = '' # defaults to the computer name
- + # (change requires restart)
- -# - TCP settings -
- -# see "man tcp" for details
- +# - Security and Authentication -
- -#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
- - # 0 selects the system default
- -#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
- - # 0 selects the system default
- -#tcp_keepalives_count = 0 # TCP_KEEPCNT;
- - # 0 selects the system default
- -#tcp_user_timeout = 0 # TCP_USER_TIMEOUT, in milliseconds;
- - # 0 selects the system default
- +#authentication_timeout = 1min # 1s-600s
- -# - Authentication -
- +# change requires restart
- +ssl = on
- -#authentication_timeout = 1min # 1s-600s
- -#password_encryption = md5 # md5 or scram-sha-256
- +# allowed SSL ciphers
- +ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL:!SSLv3:!TLSv1'
- +
- +ssl_cert_file = 'server.crt'
- +ssl_key_file = 'server.key'
- +ssl_ca_file = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
- +
- +
- +#ssl_renegotiation_limit = 512MB # amount of data between renegotiations
- +#password_encryption = on
- #db_user_namespace = off
- -# GSSAPI using Kerberos
- -#krb_server_keyfile = 'FILE:${sysconfdir}/krb5.keytab'
- +# Kerberos and GSSAPI
- +#krb_server_keyfile = ''
- +#krb_srvname = 'postgres' # (Kerberos only)
- #krb_caseins_users = off
- -# - SSL -
- +# - TCP Keepalives -
- +# see "man 7 tcp" for details
- -#ssl = off
- -#ssl_ca_file = ''
- -#ssl_cert_file = 'server.crt'
- -#ssl_crl_file = ''
- -#ssl_key_file = 'server.key'
- -#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
- -#ssl_prefer_server_ciphers = on
- -#ssl_ecdh_curve = 'prime256v1'
- -#ssl_min_protocol_version = 'TLSv1.2'
- -#ssl_max_protocol_version = ''
- -#ssl_dh_params_file = ''
- -#ssl_passphrase_command = ''
- -#ssl_passphrase_command_supports_reload = off
- +#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
- + # 0 selects the system default
- +#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
- + # 0 selects the system default
- +#tcp_keepalives_count = 0 # TCP_KEEPCNT;
- + # 0 selects the system default
- #------------------------------------------------------------------------------
- @@ -119,233 +119,105 @@
- # - Memory -
- -shared_buffers = 128MB # min 128kB
- - # (change requires restart)
- -#huge_pages = try # on, off, or try
- - # (change requires restart)
- -#temp_buffers = 8MB # min 800kB
- -#max_prepared_transactions = 0 # zero disables the feature
- - # (change requires restart)
- -# Caution: it is not advisable to set max_prepared_transactions nonzero unless
- -# you actively intend to use prepared transactions.
- -#work_mem = 4MB # min 64kB
- -#hash_mem_multiplier = 1.0 # 1-1000.0 multiplier on hash table work_mem
- -#maintenance_work_mem = 64MB # min 1MB
- -#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
- -#logical_decoding_work_mem = 64MB # min 64kB
- -#max_stack_depth = 2MB # min 100kB
- -#shared_memory_type = mmap # the default is the first option
- - # supported by the operating system:
- - # mmap
- - # sysv
- - # windows
- - # (change requires restart)
- -dynamic_shared_memory_type = posix # the default is the first option
- - # supported by the operating system:
- - # posix
- - # sysv
- - # windows
- - # mmap
- - # (change requires restart)
- +shared_buffers = 2048MB # min 128kB
- + # (change requires restart)
- +#temp_buffers = 8MB # min 800kB
- +#max_prepared_transactions = 0 # zero disables the feature
- + # (change requires restart)
- +# Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
- +# per transaction slot, plus lock space (see max_locks_per_transaction).
- +# It is not advisable to set max_prepared_transactions nonzero unless you
- +# actively intend to use prepared transactions.
- +#max_stack_depth = 2MB # min 100kB
- -# - Disk -
- +# - Kernel Resource Usage -
- -#temp_file_limit = -1 # limits per-process temp file space
- - # in kilobytes, or -1 for no limit
- +#max_files_per_process = 1000 # min 25
- + # (change requires restart)
- +shared_preload_libraries = '' # (change requires restart)
- -# - Kernel Resources -
- -
- -#max_files_per_process = 1000 # min 64
- - # (change requires restart)
- -
- # - Cost-Based Vacuum Delay -
- -#vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables)
- -#vacuum_cost_page_hit = 1 # 0-10000 credits
- -#vacuum_cost_page_miss = 10 # 0-10000 credits
- -#vacuum_cost_page_dirty = 20 # 0-10000 credits
- -#vacuum_cost_limit = 200 # 1-10000 credits
- +#vacuum_cost_delay = 0ms # 0-100 milliseconds
- +#vacuum_cost_page_hit = 1 # 0-10000 credits
- +#vacuum_cost_page_miss = 10 # 0-10000 credits
- +#vacuum_cost_page_dirty = 20 # 0-10000 credits
- +#vacuum_cost_limit = 200 # 1-10000 credits
- # - Background Writer -
- -#bgwriter_delay = 200ms # 10-10000ms between rounds
- -#bgwriter_lru_maxpages = 100 # max buffers written/round, 0 disables
- -#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round
- -#bgwriter_flush_after = 512kB # measured in pages, 0 disables
- +#bgwriter_delay = 200ms # 10-10000ms between rounds
- +#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
- +#bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
- # - Asynchronous Behavior -
- -#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
- -#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
- -#max_worker_processes = 8 # (change requires restart)
- -#max_parallel_maintenance_workers = 2 # taken from max_parallel_workers
- -#max_parallel_workers_per_gather = 2 # taken from max_parallel_workers
- -#parallel_leader_participation = on
- -#max_parallel_workers = 8 # maximum number of max_worker_processes that
- - # can be used in parallel operations
- -#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
- - # (change requires restart)
- -#backend_flush_after = 0 # measured in pages, 0 disables
- +#effective_io_concurrency = 1 # 1-1000. 0 disables prefetching
- #------------------------------------------------------------------------------
- -# WRITE-AHEAD LOG
- +# WRITE AHEAD LOG
- #------------------------------------------------------------------------------
- # - Settings -
- -#wal_level = replica # minimal, replica, or logical
- - # (change requires restart)
- -#fsync = on # flush data to disk for crash safety
- - # (turning this off can cause
- - # unrecoverable data corruption)
- -#synchronous_commit = on # synchronization level;
- - # off, local, remote_write, remote_apply, or on
- -#wal_sync_method = fsync # the default is the first option
- - # supported by the operating system:
- - # open_datasync
- - # fdatasync (default on Linux and FreeBSD)
- - # fsync
- - # fsync_writethrough
- - # open_sync
- -#full_page_writes = on # recover from partial page writes
- -#wal_compression = off # enable compression of full-page writes
- -#wal_log_hints = off # also do full page writes of non-critical updates
- - # (change requires restart)
- -#wal_init_zero = on # zero-fill new WAL files
- -#wal_recycle = on # recycle WAL files
- -#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
- - # (change requires restart)
- -#wal_writer_delay = 200ms # 1-10000 milliseconds
- -#wal_writer_flush_after = 1MB # measured in pages, 0 disables
- -#wal_skip_threshold = 2MB
- +wal_level = minimal
- +wal_log_hints = off # also do full page writes of non-critical updates
- + # (change requires restart)
- +#fsync = on # turns forced synchronization on or off
- +#wal_sync_method = fsync # the default is the first option
- + # supported by the operating system:
- + # open_datasync
- + # fdatasync (default on Linux)
- + # fsync
- + # fsync_writethrough
- + # open_sync
- +#full_page_writes = on # recover from partial page writes
- +wal_buffers = -1 # -1 # min 32kB, -1 sets based on shared_buffers
- + # (change requires restart)
- +#wal_writer_delay = 200ms # 1-10000 milliseconds
- -#commit_delay = 0 # range 0-100000, in microseconds
- -#commit_siblings = 5 # range 1-1000
- +#commit_delay = 0 # range 0-100000, in microseconds
- +#commit_siblings = 5 # range 1-1000
- -# - Checkpoints -
- -
- -#checkpoint_timeout = 5min # range 30s-1d
- -max_wal_size = 1GB
- min_wal_size = 80MB
- -#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
- -#checkpoint_flush_after = 256kB # measured in pages, 0 disables
- -#checkpoint_warning = 30s # 0 disables
- +max_wal_size = 1GB
- -# - Archiving -
- +# The number of replication slots to reserve.
- +max_replication_slots = 0
- -#archive_mode = off # enables archiving; off, on, or always
- - # (change requires restart)
- -#archive_command = '' # command to use to archive a logfile segment
- - # placeholders: %p = path of file to archive
- - # %f = file name only
- - # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
- -#archive_timeout = 0 # force a logfile segment switch after this
- - # number of seconds; 0 disables
- -# - Archive Recovery -
- +# - Archiving -
- -# These are only used in recovery mode.
- +archive_mode = off # allows archiving to be done
- + # (change requires restart, also requires 'wal_level' of 'hot_standby' OR 'replica')
- -#restore_command = '' # command to use to restore an archived logfile segment
- - # placeholders: %p = path of file to restore
- - # %f = file name only
- - # e.g. 'cp /mnt/server/archivedir/%f %p'
- - # (change requires restart)
- -#archive_cleanup_command = '' # command to execute at every restartpoint
- -#recovery_end_command = '' # command to execute at completion of recovery
- -
- -# - Recovery Target -
- -
- -# Set these only when performing a targeted recovery.
- -
- -#recovery_target = '' # 'immediate' to end recovery as soon as a
- - # consistent state is reached
- - # (change requires restart)
- -#recovery_target_name = '' # the named restore point to which recovery will proceed
- - # (change requires restart)
- -#recovery_target_time = '' # the time stamp up to which recovery will proceed
- - # (change requires restart)
- -#recovery_target_xid = '' # the transaction ID up to which recovery will proceed
- - # (change requires restart)
- -#recovery_target_lsn = '' # the WAL LSN up to which recovery will proceed
- - # (change requires restart)
- -#recovery_target_inclusive = on # Specifies whether to stop:
- - # just after the specified recovery target (on)
- - # just before the recovery target (off)
- - # (change requires restart)
- -#recovery_target_timeline = 'latest' # 'current', 'latest', or timeline ID
- - # (change requires restart)
- -#recovery_target_action = 'pause' # 'pause', 'promote', 'shutdown'
- - # (change requires restart)
- -
- -
- #------------------------------------------------------------------------------
- # REPLICATION
- #------------------------------------------------------------------------------
- -# - Sending Servers -
- -
- -# Set these on the master and on any standby that will send replication data.
- -
- -#max_wal_senders = 10 # max number of walsender processes
- - # (change requires restart)
- -#wal_keep_size = 0 # in megabytes; 0 disables
- -#max_slot_wal_keep_size = -1 # in megabytes; -1 disables
- -#wal_sender_timeout = 60s # in milliseconds; 0 disables
- -
- -#max_replication_slots = 10 # max number of replication slots
- - # (change requires restart)
- -#track_commit_timestamp = off # collect timestamp of transaction commit
- - # (change requires restart)
- -
- # - Master Server -
- -# These settings are ignored on a standby server.
- +# These settings are ignored on a standby server
- -#synchronous_standby_names = '' # standby servers that provide sync rep
- - # method to choose sync standbys, number of sync standbys,
- - # and comma-separated list of application_name
- - # from standby(s); '*' = all
- -#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
- +max_wal_senders = 0
- + # (change requires restart)
- +#wal_sender_delay = 1s # walsender cycle time, 1-10000 milliseconds
- +#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
- +#replication_timeout = 60s # in milliseconds; 0 disables
- +#synchronous_standby_names = '' # standby servers that provide sync rep
- + # comma-separated list of application_name
- + # from standby(s); '*' = all
- # - Standby Servers -
- -# These settings are ignored on a master server.
- +# These settings are ignored on a master server
- -#primary_conninfo = '' # connection string to sending server
- -#primary_slot_name = '' # replication slot on sending server
- -#promote_trigger_file = '' # file name whose presence ends recovery
- -#hot_standby = on # "off" disallows queries during recovery
- - # (change requires restart)
- -#max_standby_archive_delay = 30s # max delay before canceling queries
- - # when reading WAL from archive;
- - # -1 allows indefinite delay
- -#max_standby_streaming_delay = 30s # max delay before canceling queries
- - # when reading streaming WAL;
- - # -1 allows indefinite delay
- -#wal_receiver_create_temp_slot = off # create temp slot if primary_slot_name
- - # is not set
- -#wal_receiver_status_interval = 10s # send replies at least this often
- - # 0 disables
- -#hot_standby_feedback = off # send info from standby to prevent
- - # query conflicts
- -#wal_receiver_timeout = 60s # time that receiver waits for
- - # communication from master
- - # in milliseconds; 0 disables
- -#wal_retrieve_retry_interval = 5s # time to wait before retrying to
- - # retrieve WAL after a failed attempt
- -#recovery_min_apply_delay = 0 # minimum delay for applying changes during recovery
- +hot_standby = off
- + # (change requires restart)
- +#wal_receiver_status_interval = 10s # send replies at least this often
- + # 0 disables
- -# - Subscribers -
- -
- -# These settings are ignored on a publisher.
- -
- -#max_logical_replication_workers = 4 # taken from max_worker_processes
- - # (change requires restart)
- -#max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers
- -
- -
- #------------------------------------------------------------------------------
- # QUERY TUNING
- #------------------------------------------------------------------------------
- @@ -356,237 +228,126 @@
- #enable_hashagg = on
- #enable_hashjoin = on
- #enable_indexscan = on
- -#enable_indexonlyscan = on
- #enable_material = on
- #enable_mergejoin = on
- #enable_nestloop = on
- -#enable_parallel_append = on
- #enable_seqscan = on
- #enable_sort = on
- -#enable_incremental_sort = on
- #enable_tidscan = on
- -#enable_partitionwise_join = off
- -#enable_partitionwise_aggregate = off
- -#enable_parallel_hash = on
- -#enable_partition_pruning = on
- # - Planner Cost Constants -
- -#seq_page_cost = 1.0 # measured on an arbitrary scale
- -#random_page_cost = 4.0 # same scale as above
- -#cpu_tuple_cost = 0.01 # same scale as above
- -#cpu_index_tuple_cost = 0.005 # same scale as above
- -#cpu_operator_cost = 0.0025 # same scale as above
- -#parallel_tuple_cost = 0.1 # same scale as above
- -#parallel_setup_cost = 1000.0 # same scale as above
- +#cpu_tuple_cost = 0.01 # same scale as above
- +#cpu_index_tuple_cost = 0.005 # same scale as above
- +#cpu_operator_cost = 0.0025 # same scale as above
- -#jit_above_cost = 100000 # perform JIT compilation if available
- - # and query more expensive than this;
- - # -1 disables
- -#jit_inline_above_cost = 500000 # inline small functions if query is
- - # more expensive than this; -1 disables
- -#jit_optimize_above_cost = 500000 # use expensive JIT optimizations if
- - # query is more expensive than this;
- - # -1 disables
- -
- -#min_parallel_table_scan_size = 8MB
- -#min_parallel_index_scan_size = 512kB
- -#effective_cache_size = 4GB
- -
- # - Genetic Query Optimizer -
- #geqo = on
- #geqo_threshold = 12
- -#geqo_effort = 5 # range 1-10
- -#geqo_pool_size = 0 # selects default based on effort
- -#geqo_generations = 0 # selects default based on effort
- -#geqo_selection_bias = 2.0 # range 1.5-2.0
- -#geqo_seed = 0.0 # range 0.0-1.0
- +#geqo_effort = 5 # range 1-10
- +#geqo_pool_size = 0 # selects default based on effort
- +#geqo_generations = 0 # selects default based on effort
- +#geqo_selection_bias = 2.0 # range 1.5-2.0
- +#geqo_seed = 0.0 # range 0.0-1.0
- # - Other Planner Options -
- -#default_statistics_target = 100 # range 1-10000
- -#constraint_exclusion = partition # on, off, or partition
- -#cursor_tuple_fraction = 0.1 # range 0.0-1.0
- +#default_statistics_target = 100 # range 1-10000
- +#constraint_exclusion = partition # on, off, or partition
- +#cursor_tuple_fraction = 0.1 # range 0.0-1.0
- #from_collapse_limit = 8
- -#join_collapse_limit = 8 # 1 disables collapsing of explicit
- - # JOIN clauses
- -#force_parallel_mode = off
- -#jit = on # allow JIT compilation
- -#plan_cache_mode = auto # auto, force_generic_plan or
- - # force_custom_plan
- +#join_collapse_limit = 8 # 1 disables collapsing of explicit
- + # JOIN clauses
- #------------------------------------------------------------------------------
- -# REPORTING AND LOGGING
- +# ERROR REPORTING AND LOGGING
- #------------------------------------------------------------------------------
- -# - Where to Log -
- -#log_destination = 'stderr' # Valid values are combinations of
- - # stderr, csvlog, syslog, and eventlog,
- - # depending on platform. csvlog
- - # requires logging_collector to be on.
- -
- -# This is used when logging to stderr:
- -#logging_collector = off # Enable capturing of stderr and csvlog
- - # into log files. Required to be on for
- - # csvlogs.
- - # (change requires restart)
- -
- -# These are only used if logging_collector is on:
- -#log_directory = 'log' # directory where log files are written,
- - # can be absolute or relative to PGDATA
- -#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
- - # can include strftime() escapes
- -#log_file_mode = 0600 # creation mode for log files,
- - # begin with 0 to use octal notation
- -#log_truncate_on_rotation = off # If on, an existing log file with the
- - # same name as the new log file will be
- - # truncated rather than appended to.
- - # But such truncation only occurs on
- - # time-driven rotation, not on restarts
- - # or size-driven rotation. Default is
- - # off, meaning append to existing files
- - # in all cases.
- -#log_rotation_age = 1d # Automatic rotation of logfiles will
- - # happen after that time. 0 disables.
- -#log_rotation_size = 10MB # Automatic rotation of logfiles will
- - # happen after that much log output.
- - # 0 disables.
- -
- # These are relevant when logging to syslog:
- #syslog_facility = 'LOCAL0'
- #syslog_ident = 'postgres'
- -#syslog_sequence_numbers = on
- -#syslog_split_messages = on
- -# This is only relevant when logging to eventlog (win32):
- -# (change requires restart)
- -#event_source = 'PostgreSQL'
- +#silent_mode = off # Run server silently.
- + # DO NOT USE without syslog or
- + # logging_collector
- + # (change requires restart)
- +
- # - When to Log -
- -#log_min_messages = warning # values in order of decreasing detail:
- - # debug5
- - # debug4
- - # debug3
- - # debug2
- - # debug1
- - # info
- - # notice
- - # warning
- - # error
- - # log
- - # fatal
- - # panic
- +#client_min_messages = notice # values in order of decreasing detail:
- + # debug5
- + # debug4
- + # debug3
- + # debug2
- + # debug1
- + # log
- + # notice
- + # warning
- + # error
- -#log_min_error_statement = error # values in order of decreasing detail:
- - # debug5
- - # debug4
- - # debug3
- - # debug2
- - # debug1
- - # info
- - # notice
- - # warning
- - # error
- - # log
- - # fatal
- - # panic (effectively off)
- +#log_min_messages = warning # values in order of decreasing detail:
- + # debug5
- + # debug4
- + # debug3
- + # debug2
- + # debug1
- + # info
- + # notice
- + # warning
- + # error
- + # log
- + # fatal
- + # panic
- -#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
- - # and their durations, > 0 logs only
- - # statements running at least this number
- - # of milliseconds
- +#log_min_error_statement = error # values in order of decreasing detail:
- + # debug5
- + # debug4
- + # debug3
- + # debug2
- + # debug1
- + # info
- + # notice
- + # warning
- + # error
- + # log
- + # fatal
- + # panic (effectively off)
- -#log_min_duration_sample = -1 # -1 is disabled, 0 logs a sample of statements
- - # and their durations, > 0 logs only a sample of
- - # statements running at least this number
- - # of milliseconds;
- - # sample fraction is determined by log_statement_sample_rate
- -
- -#log_statement_sample_rate = 1.0 # fraction of logged statements exceeding
- - # log_min_duration_sample to be logged;
- - # 1.0 logs all such statements, 0.0 never logs
- -
- -
- -#log_transaction_sample_rate = 0.0 # fraction of transactions whose statements
- - # are logged regardless of their duration; 1.0 logs all
- - # statements from all transactions, 0.0 never logs
- -
- # - What to Log -
- #debug_print_parse = off
- #debug_print_rewritten = off
- #debug_print_plan = off
- #debug_pretty_print = on
- -#log_checkpoints = off
- #log_connections = off
- #log_disconnections = off
- #log_duration = off
- -#log_error_verbosity = default # terse, default, or verbose messages
- +#log_error_verbosity = default # terse, default, or verbose messages
- #log_hostname = off
- -#log_line_prefix = '%m [%p] ' # special values:
- - # %a = application name
- - # %u = user name
- - # %d = database name
- - # %r = remote host and port
- - # %h = remote host
- - # %b = backend type
- - # %p = process ID
- - # %t = timestamp without milliseconds
- - # %m = timestamp with milliseconds
- - # %n = timestamp with milliseconds (as a Unix epoch)
- - # %i = command tag
- - # %e = SQL state
- - # %c = session ID
- - # %l = session line number
- - # %s = session start timestamp
- - # %v = virtual transaction ID
- - # %x = transaction ID (0 if none)
- - # %q = stop here in non-session
- - # processes
- - # %% = '%'
- - # e.g. '<%u%%%d> '
- -#log_lock_waits = off # log lock waits >= deadlock_timeout
- -#log_parameter_max_length = -1 # when logging statements, limit logged
- - # bind-parameter values to N bytes;
- - # -1 means print in full, 0 disables
- -#log_parameter_max_length_on_error = 0 # when logging an error, limit logged
- - # bind-parameter values to N bytes;
- - # -1 means print in full, 0 disables
- -#log_statement = 'none' # none, ddl, mod, all
- -#log_replication_commands = off
- -#log_temp_files = -1 # log temporary files equal or larger
- - # than the specified size in kilobytes;
- - # -1 disables, 0 logs all temp files
- -log_timezone = 'Etc/UTC'
- +#log_lock_waits = off # log lock waits >= deadlock_timeout
- +#log_statement = 'none' # none, ddl, mod, all
- +#log_timezone = '(defaults to server environment setting)'
- -#------------------------------------------------------------------------------
- -# PROCESS TITLE
- -#------------------------------------------------------------------------------
- -#cluster_name = '' # added to process titles if nonempty
- - # (change requires restart)
- -#update_process_title = on
- -
- -
- #------------------------------------------------------------------------------
- -# STATISTICS
- +# RUNTIME STATISTICS
- #------------------------------------------------------------------------------
- -# - Query and Index Statistics Collector -
- +# - Query/Index Statistics Collector -
- #track_activities = on
- #track_counts = on
- -#track_io_timing = off
- -#track_functions = none # none, pl, all
- -#track_activity_query_size = 1024 # (change requires restart)
- +#track_functions = none # none, pl, all
- +track_activity_query_size = 1024 # (change requires restart)
- +#update_process_title = on
- #stats_temp_directory = 'pg_stat_tmp'
- -# - Monitoring -
- +# - Statistics Monitoring -
- #log_parser_stats = off
- #log_planner_stats = off
- @@ -595,122 +356,53 @@
- #------------------------------------------------------------------------------
- -# AUTOVACUUM
- +# AUTOVACUUM PARAMETERS
- #------------------------------------------------------------------------------
- -#autovacuum = on # Enable autovacuum subprocess? 'on'
- - # requires track_counts to also be on.
- -#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
- - # their durations, > 0 logs only
- - # actions running at least this number
- - # of milliseconds.
- -#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
- - # (change requires restart)
- -#autovacuum_naptime = 1min # time between autovacuum runs
- -#autovacuum_vacuum_threshold = 50 # min number of row updates before
- - # vacuum
- -#autovacuum_vacuum_insert_threshold = 1000 # min number of row inserts
- - # before vacuum; -1 disables insert
- - # vacuums
- -#autovacuum_analyze_threshold = 50 # min number of row updates before
- - # analyze
- -#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
- -#autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of inserts over table
- - # size before insert vacuum
- -#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
- -#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
- - # (change requires restart)
- -#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
- - # before forced vacuum
- - # (change requires restart)
- -#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
- - # autovacuum, in milliseconds;
- - # -1 means use vacuum_cost_delay
- -#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
- - # autovacuum, -1 means use
- - # vacuum_cost_limit
- -
- -
- +autovacuum_max_workers = 3 # max number of autovacuum subprocesses
- + # (change requires restart)
- +autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
- + # (change requires restart)
- #------------------------------------------------------------------------------
- # CLIENT CONNECTION DEFAULTS
- #------------------------------------------------------------------------------
- # - Statement Behavior -
- -#client_min_messages = notice # values in order of decreasing detail:
- - # debug5
- - # debug4
- - # debug3
- - # debug2
- - # debug1
- - # log
- - # notice
- - # warning
- - # error
- -#search_path = '"$user", public' # schema names
- -#row_security = on
- -#default_tablespace = '' # a tablespace name, '' uses the default
- -#temp_tablespaces = '' # a list of tablespace names, '' uses
- - # only default tablespace
- -#default_table_access_method = 'heap'
- +#search_path = '"$user",public' # schema names
- +#default_tablespace = '' # a tablespace name, '' uses the default
- +#temp_tablespaces = '' # a list of tablespace names, '' uses
- + # only default tablespace
- #check_function_bodies = on
- #default_transaction_isolation = 'read committed'
- #default_transaction_read_only = off
- #default_transaction_deferrable = off
- #session_replication_role = 'origin'
- -#statement_timeout = 0 # in milliseconds, 0 is disabled
- -#lock_timeout = 0 # in milliseconds, 0 is disabled
- -#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
- #vacuum_freeze_min_age = 50000000
- #vacuum_freeze_table_age = 150000000
- -#vacuum_multixact_freeze_min_age = 5000000
- -#vacuum_multixact_freeze_table_age = 150000000
- -#vacuum_cleanup_index_scale_factor = 0.1 # fraction of total number of tuples
- - # before index cleanup, 0 always performs
- - # index cleanup
- -#bytea_output = 'hex' # hex, escape
- +#bytea_output = 'hex' # hex, escape
- #xmlbinary = 'base64'
- #xmloption = 'content'
- -#gin_fuzzy_search_limit = 0
- -#gin_pending_list_limit = 4MB
- # - Locale and Formatting -
- -datestyle = 'iso, mdy'
- #intervalstyle = 'postgres'
- -timezone = 'Etc/UTC'
- +#timezone = '(defaults to server environment setting)'
- #timezone_abbreviations = 'Default' # Select the set of available time zone
- - # abbreviations. Currently, there are
- - # Default
- - # Australia (historical usage)
- - # India
- - # You can create your own file in
- - # share/timezonesets/.
- -#extra_float_digits = 1 # min -15, max 3; any value >0 actually
- - # selects precise output mode
- -#client_encoding = sql_ascii # actually, defaults to database
- - # encoding
- + # abbreviations. Currently, there are
- + # Default
- + # Australia
- + # India
- + # You can create your own file in
- + # share/timezonesets/.
- +#extra_float_digits = 0 # min -15, max 3
- +#client_encoding = sql_ascii # actually, defaults to database
- + # encoding
- -# These settings are initialized by initdb, but they can be changed.
- -lc_messages = 'C' # locale for system error message
- - # strings
- -lc_monetary = 'C' # locale for monetary formatting
- -lc_numeric = 'C' # locale for number formatting
- -lc_time = 'C' # locale for time formatting
- -
- -# default configuration for text search
- -default_text_search_config = 'pg_catalog.english'
- -
- -# - Shared Library Preloading -
- -
- -#shared_preload_libraries = '' # (change requires restart)
- -#local_preload_libraries = ''
- -#session_preload_libraries = ''
- -#jit_provider = 'llvmjit' # JIT library to use
- -
- # - Other Defaults -
- #dynamic_library_path = '$libdir'
- +#local_preload_libraries = ''
- #------------------------------------------------------------------------------
- @@ -718,28 +410,27 @@
- #------------------------------------------------------------------------------
- #deadlock_timeout = 1s
- -#max_locks_per_transaction = 64 # min 10
- - # (change requires restart)
- -#max_pred_locks_per_transaction = 64 # min 10
- - # (change requires restart)
- -#max_pred_locks_per_relation = -2 # negative values mean
- - # (max_pred_locks_per_transaction
- - # / -max_pred_locks_per_relation) - 1
- -#max_pred_locks_per_page = 2 # min 0
- +max_locks_per_transaction = 128 # min 10
- + # (change requires restart)
- +# Note: Each lock table slot uses ~270 bytes of shared memory, and there are
- +# max_locks_per_transaction * (max_connections + max_prepared_transactions)
- +# lock table slots.
- +#max_pred_locks_per_transaction = 64 # min 10
- + # (change requires restart)
- -
- #------------------------------------------------------------------------------
- -# VERSION AND PLATFORM COMPATIBILITY
- +# VERSION/PLATFORM COMPATIBILITY
- #------------------------------------------------------------------------------
- # - Previous PostgreSQL Versions -
- #array_nulls = on
- -#backslash_quote = safe_encoding # on, off, or safe_encoding
- +#backslash_quote = safe_encoding # on, off, or safe_encoding
- +#default_with_oids = off
- #escape_string_warning = on
- #lo_compat_privileges = off
- -#operator_precedence_warning = off
- #quote_all_identifiers = off
- +#sql_inheritance = on
- #standard_conforming_strings = on
- #synchronize_seqscans = on
- @@ -752,30 +443,15 @@
- # ERROR HANDLING
- #------------------------------------------------------------------------------
- -#exit_on_error = off # terminate session on any error?
- -#restart_after_crash = on # reinitialize after backend crash?
- -#data_sync_retry = off # retry or panic on failure to fsync
- - # data?
- - # (change requires restart)
- +#exit_on_error = off # terminate session on any error?
- +#restart_after_crash = on # reinitialize after backend crash?
- #------------------------------------------------------------------------------
- -# CONFIG FILE INCLUDES
- -#------------------------------------------------------------------------------
- -
- -# These options allow settings to be loaded from files other than the
- -# default postgresql.conf. Note that these are directives, not variable
- -# assignments, so they can usefully be given more than once.
- -
- -#include_dir = '...' # include files ending in '.conf' from
- - # a directory, e.g., 'conf.d'
- -#include_if_exists = '...' # include file only if it exists
- -#include = '...' # include file
- -
- -
- -#------------------------------------------------------------------------------
- # CUSTOMIZED OPTIONS
- #------------------------------------------------------------------------------
- -# Add settings for extensions here
- +#custom_variable_classes = '' # list of custom variable class names
- +
- +include 'runtime.conf'[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/postgresql.conf] mode changed to 644
- - change mode from '0600' to '0644'
- * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] created file /var/opt/gitlab/postgresql/data/runtime.conf
- - create new file /var/opt/gitlab/postgresql/data/runtime.conf[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] updated file contents /var/opt/gitlab/postgresql/data/runtime.conf
- - update content in file /var/opt/gitlab/postgresql/data/runtime.conf from none to 27284b
- --- /var/opt/gitlab/postgresql/data/runtime.conf 2023-06-12 08:51:23.651753344 +0000
- +++ /var/opt/gitlab/postgresql/data/.chef-runtime20230612-2522091-6rnzb4.conf 2023-06-12 08:51:23.651753344 +0000
- @@ -1,134 +1,268 @@
- +# This file is managed by gitlab-ctl. Manual changes will be
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
- +# and run `sudo gitlab-ctl reconfigure`.
- +
- +# Changing variables in this file should only require a reload of PostgreSQL
- +# As the gitlab-psql user, run:
- +# /opt/gitlab/embedded/bin/pg_ctl reload -D /var/opt/gitlab/postgresql/data
- +work_mem = 16MB # min 64kB
- +maintenance_work_mem = 16MB # 16MB # min 1MB
- +synchronous_commit = on # synchronization level; on, off, or local
- +synchronous_standby_names = ''
- +
- +# - Checkpoints -
- +min_wal_size = 80MB
- +max_wal_size = 1GB
- +
- +checkpoint_timeout = 5min # range 30s-1h, default 5min
- +checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0, default 0.5
- +checkpoint_warning = 30s # 0 disables, default 30s
- +
- +# - Logging -
- +log_directory = '/var/log/gitlab/postgresql'
- +
- +# - Archiving -
- +archive_command = '' # command to use to archive a logfile segment
- +archive_timeout = 0 # force a logfile segment switch after this
- + # number of seconds; 0 disables
- +
- +# - Replication
- +wal_keep_size = 160
- +
- +max_standby_archive_delay = 30s # max delay before canceling queries
- + # when reading WAL from archive;
- + # -1 allows indefinite delay
- +max_standby_streaming_delay = 30s # max delay before canceling queries
- + # when reading streaming WAL;
- + # -1 allows indefinite delay
- +
- +hot_standby_feedback = off # send info from standby to prevent
- + # query conflicts
- +
- +# - Planner Cost Constants -
- +#seq_page_cost = 1.0 # measured on an arbitrary scale
- +random_page_cost = 2.0 # same scale as above
- +
- +effective_cache_size = 4096MB # Default 128MB
- +
- +log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
- + # and their durations, > 0 logs only
- + # statements running at least this number
- + # of milliseconds
- +
- +log_checkpoints = off
- +
- +log_line_prefix = '' # default '', special values:
- + # %a = application name
- + # %u = user name
- + # %d = database name
- + # %r = remote host and port
- + # %h = remote host
- + # %p = process ID
- + # %t = timestamp without milliseconds
- + # %m = timestamp with milliseconds
- + # %i = command tag
- + # %e = SQL state
- + # %c = session ID
- + # %l = session line number
- + # %s = session start timestamp
- + # %v = virtual transaction ID
- + # %x = transaction ID (0 if none)
- + # %q = stop here in non-session
- + # processes
- + # %% = '%'
- +
- +log_temp_files = -1 # log temporary files equal or larger
- + # than the specified size in kilobytes;
- + # -1 disables, 0 logs all temp files
- +
- +
- +# - Autovacuum parameters -
- +autovacuum = on # Enable autovacuum subprocess? 'on'
- + # requires track_counts to also be on.
- +
- +log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
- + # their durations, > 0 logs only
- + # actions running at least this number
- + # of milliseconds.
- +
- +autovacuum_naptime = 1min # time between autovacuum runs
- +autovacuum_vacuum_threshold = 50 # min number of row updates before
- + # vacuum
- +autovacuum_analyze_threshold = 50 # min number of row updates before
- + # analyze
- +autovacuum_vacuum_scale_factor = 0.02 # fraction of table size before vacuum
- +autovacuum_analyze_scale_factor = 0.01 # fraction of table size before analyze
- +autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
- + # autovacuum, in milliseconds;
- + # -1 means use vacuum_cost_delay
- +autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
- + # autovacuum, -1 means use
- + # vacuum_cost_limit
- +
- +# Parameters for gathering statistics
- +default_statistics_target = 1000
- +
- +# - Client connection timeouts
- +statement_timeout = 60000
- +
- +idle_in_transaction_session_timeout = 60000
- +
- +# IO settings
- +effective_io_concurrency = 1
- +track_io_timing = 'off'
- +
- +# Parallel worker settings
- +max_worker_processes = 8
- +max_parallel_workers_per_gather = 0
- +
- +# Deadlock handling and logging
- +deadlock_timeout = '5s'
- +log_lock_waits = 1
- +
- +# - Locale and Formatting -
- +datestyle = 'iso, mdy'
- +
- +# These settings are initialized by initdb, but they can be changed.
- +lc_messages = 'C' # locale for system error message
- + # strings
- +lc_monetary = 'C' # locale for monetary formatting
- +lc_numeric = 'C' # locale for number formatting
- +lc_time = 'C' # locale for time formatting
- +
- +# default configuration for text search
- +default_text_search_config = 'pg_catalog.english'[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] owner changed to 995
- [2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'gitlab-psql'
- * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_hba.conf] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/postgresql/data/pg_hba.conf.chef-20230612085123.674770
- [2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_hba.conf] updated file contents /var/opt/gitlab/postgresql/data/pg_hba.conf
- - update content in file /var/opt/gitlab/postgresql/data/pg_hba.conf from 98c8d4 to 40e348
- --- /var/opt/gitlab/postgresql/data/pg_hba.conf 2023-06-12 08:51:19.947763143 +0000
- +++ /var/opt/gitlab/postgresql/data/.chef-pg_hba20230612-2522091-g44no7.conf 2023-06-12 08:51:23.667753303 +0000
- @@ -1,98 +1,74 @@
- +# This file is managed by gitlab-ctl. Manual changes will be
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
- +# and run `sudo gitlab-ctl reconfigure`.
- +
- # PostgreSQL Client Authentication Configuration File
- # ===================================================
- #
- -# Refer to the "Client Authentication" section in the PostgreSQL
- -# documentation for a complete description of this file. A short
- -# synopsis follows.
- +# Refer to the "Client Authentication" section in the
- +# PostgreSQL documentation for a complete description
- +# of this file. A short synopsis follows.
- #
- # This file controls: which hosts are allowed to connect, how clients
- # are authenticated, which PostgreSQL user names they can use, which
- # databases they can access. Records take one of these forms:
- #
- -# local DATABASE USER METHOD [OPTIONS]
- -# host DATABASE USER ADDRESS METHOD [OPTIONS]
- -# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
- -# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
- -# hostgssenc DATABASE USER ADDRESS METHOD [OPTIONS]
- -# hostnogssenc DATABASE USER ADDRESS METHOD [OPTIONS]
- +# local DATABASE USER METHOD [OPTION]
- +# host DATABASE USER CIDR-ADDRESS METHOD [OPTION]
- +# hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
- +# hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
- #
- # (The uppercase items must be replaced by actual values.)
- #
- -# The first field is the connection type: "local" is a Unix-domain
- -# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
- -# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
- -# non-SSL TCP/IP socket. Similarly, "hostgssenc" uses a
- -# GSSAPI-encrypted TCP/IP socket, while "hostnogssenc" uses a
- -# non-GSSAPI socket.
- +# The first field is the connection type: "local" is a Unix-domain socket,
- +# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
- +# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
- #
- -# DATABASE can be "all", "sameuser", "samerole", "replication", a
- -# database name, or a comma-separated list thereof. The "all"
- -# keyword does not match "replication". Access to replication
- -# must be enabled in a separate record (see example below).
- +# DATABASE can be "all", "sameuser", "samerole", a database name, or
- +# a comma-separated list thereof.
- #
- -# USER can be "all", a user name, a group name prefixed with "+", or a
- -# comma-separated list thereof. In both the DATABASE and USER fields
- -# you can also write a file name prefixed with "@" to include names
- -# from a separate file.
- +# USER can be "all", a user name, a group name prefixed with "+", or
- +# a comma-separated list thereof. In both the DATABASE and USER fields
- +# you can also write a file name prefixed with "@" to include names from
- +# a separate file.
- #
- -# ADDRESS specifies the set of hosts the record matches. It can be a
- -# host name, or it is made up of an IP address and a CIDR mask that is
- -# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that
- -# specifies the number of significant bits in the mask. A host name
- -# that starts with a dot (.) matches a suffix of the actual host name.
- -# Alternatively, you can write an IP address and netmask in separate
- -# columns to specify the set of hosts. Instead of a CIDR-address, you
- -# can write "samehost" to match any of the server's own IP addresses,
- -# or "samenet" to match any address in any subnet that the server is
- -# directly connected to.
- +# CIDR-ADDRESS specifies the set of hosts the record matches.
- +# It is made up of an IP address and a CIDR mask that is an integer
- +# (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
- +# the number of significant bits in the mask. Alternatively, you can write
- +# an IP address and netmask in separate columns to specify the set of hosts.
- #
- -# METHOD can be "trust", "reject", "md5", "password", "scram-sha-256",
- -# "gss", "sspi", "ident", "peer", "pam", "ldap", "radius" or "cert".
- -# Note that "password" sends passwords in clear text; "md5" or
- -# "scram-sha-256" are preferred since they send encrypted passwords.
- +# METHOD can be "trust", "reject", "md5", "crypt", "password", "gss", "sspi",
- +# "krb5", "ident", "pam" or "ldap". Note that "password" sends passwords
- +# in clear text; "md5" is preferred since it sends encrypted passwords.
- #
- -# OPTIONS are a set of options for the authentication in the format
- -# NAME=VALUE. The available options depend on the different
- -# authentication methods -- refer to the "Client Authentication"
- -# section in the documentation for a list of which options are
- -# available for which authentication methods.
- +# OPTION is the ident map or the name of the PAM service, depending on METHOD.
- #
- -# Database and user names containing spaces, commas, quotes and other
- -# special characters must be quoted. Quoting one of the keywords
- -# "all", "sameuser", "samerole" or "replication" makes the name lose
- -# its special character, and just match a database or username with
- -# that name.
- +# Database and user names containing spaces, commas, quotes and other special
- +# characters must be quoted. Quoting one of the keywords "all", "sameuser" or
- +# "samerole" makes the name lose its special character, and just match a
- +# database or username with that name.
- #
- -# This file is read on server startup and when the server receives a
- -# SIGHUP signal. If you edit the file on a running system, you have to
- -# SIGHUP the server for the changes to take effect, run "pg_ctl reload",
- -# or execute "SELECT pg_reload_conf()".
- -#
- +# This file is read on server startup and when the postmaster receives
- +# a SIGHUP signal. If you edit the file on a running system, you have
- +# to SIGHUP the postmaster for the changes to take effect. You can use
- +# "pg_ctl reload" to do that.
- +
- # Put your actual configuration here
- # ----------------------------------
- #
- # If you want to allow non-local connections, you need to add more
- -# "host" records. In that case you will also need to make PostgreSQL
- -# listen on a non-local interface via the listen_addresses
- -# configuration parameter, or via the -i or -h command line switches.
- +# "host" records. In that case you will also need to make PostgreSQL listen
- +# on a non-local interface via the listen_addresses configuration parameter,
- +# or via the -i or -h command line switches.
- +#
- -# CAUTION: Configuring the system for local "trust" authentication
- -# allows any local user to connect as any PostgreSQL user, including
- -# the database superuser. If you do not trust all your local users,
- -# use another authentication method.
- +# TYPE DATABASE USER CIDR-ADDRESS METHOD
- -# TYPE DATABASE USER ADDRESS METHOD
- -
- # "local" is for Unix domain socket connections only
- -local all all trust
- -# IPv4 local connections:
- -host all all 127.0.0.1/32 trust
- -# IPv6 local connections:
- -host all all ::1/128 trust
- -# Allow replication connections from localhost, by a user with the
- -# replication privilege.
- -local replication all trust
- -host replication all 127.0.0.1/32 trust
- -host replication all ::1/128 trust
- +local all all peer map=gitlab
- +
- +
- +[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_hba.conf] mode changed to 644
- - change mode from '0600' to '0644'
- * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_ident.conf] backed up to /opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/postgresql/data/pg_ident.conf.chef-20230612085123.690923
- [2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_ident.conf] updated file contents /var/opt/gitlab/postgresql/data/pg_ident.conf
- - update content in file /var/opt/gitlab/postgresql/data/pg_ident.conf from 297f46 to 5399a1
- --- /var/opt/gitlab/postgresql/data/pg_ident.conf 2023-06-12 08:51:19.947763143 +0000
- +++ /var/opt/gitlab/postgresql/data/.chef-pg_ident20230612-2522091-l24mg2.conf 2023-06-12 08:51:23.687753249 +0000
- @@ -40,4 +40,8 @@
- # ----------------------------------
- # MAPNAME SYSTEM-USERNAME PG-USERNAME
- +gitlab git gitlab
- +gitlab mattermost gitlab_mattermost
- +# Default to a 1-1 mapping between system usernames and Postgres usernames
- +gitlab /^(.*)$ \1[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_ident.conf] mode changed to 644
- - change mode from '0600' to '0644'
- Recipe: postgresql::standalone
- * service[postgresql] action nothing (skipped due to action :nothing)
- * runit_service[postgresql] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/postgresql] action create[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] created directory /opt/gitlab/sv/postgresql
- - create new directory /opt/gitlab/sv/postgresql[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/postgresql/run] action create[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] created file /opt/gitlab/sv/postgresql/run
- - create new file /opt/gitlab/sv/postgresql/run[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] updated file contents /opt/gitlab/sv/postgresql/run
- - update content in file /opt/gitlab/sv/postgresql/run from none to dc5689
- --- /opt/gitlab/sv/postgresql/run 2023-06-12 08:51:23.707753196 +0000
- +++ /opt/gitlab/sv/postgresql/.chef-run20230612-2522091-omjpma 2023-06-12 08:51:23.707753196 +0000
- @@ -1,4 +1,8 @@
- +#!/bin/sh
- +exec 2>&1
- +
- +exec chpst -P -U gitlab-psql:gitlab-psql -u gitlab-psql:gitlab-psql /opt/gitlab/embedded/bin/postgres -D /var/opt/gitlab/postgresql/data[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/postgresql/log] action create[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log] created directory /opt/gitlab/sv/postgresql/log
- - create new directory /opt/gitlab/sv/postgresql/log[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/postgresql/log/main] action create[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log/main] created directory /opt/gitlab/sv/postgresql/log/main
- - create new directory /opt/gitlab/sv/postgresql/log/main[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log/main] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log/main] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/postgresql/log/config] action create[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] created file /opt/gitlab/sv/postgresql/log/config
- - create new file /opt/gitlab/sv/postgresql/log/config[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] updated file contents /opt/gitlab/sv/postgresql/log/config
- - update content in file /opt/gitlab/sv/postgresql/log/config from none to 623c00
- --- /opt/gitlab/sv/postgresql/log/config 2023-06-12 08:51:23.727753144 +0000
- +++ /opt/gitlab/sv/postgresql/log/.chef-config20230612-2522091-9uadtc 2023-06-12 08:51:23.723753154 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] sending create action to ruby_block[verify_chown_persisted_on_postgresql] (immediate)
- * ruby_block[verify_chown_persisted_on_postgresql] action create[2023-06-12T08:51:23+00:00] INFO: ruby_block[verify_chown_persisted_on_postgresql] called
- - execute the ruby block verify_chown_persisted_on_postgresql
- * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/postgresql/config] action create[2023-06-12T08:51:23+00:00] INFO: link[/var/log/gitlab/postgresql/config] created
- - create symlink at /var/log/gitlab/postgresql/config to /opt/gitlab/sv/postgresql/log/config
- * template[/opt/gitlab/sv/postgresql/log/run] action create[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] created file /opt/gitlab/sv/postgresql/log/run
- - create new file /opt/gitlab/sv/postgresql/log/run[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] updated file contents /opt/gitlab/sv/postgresql/log/run
- - update content in file /opt/gitlab/sv/postgresql/log/run from none to 9c7bfd
- --- /opt/gitlab/sv/postgresql/log/run 2023-06-12 08:51:23.743753101 +0000
- +++ /opt/gitlab/sv/postgresql/log/.chef-run20230612-2522091-x9zlga 2023-06-12 08:51:23.743753101 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/postgresql[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/postgresql/env] action create[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/env] created directory /opt/gitlab/sv/postgresql/env
- - create new directory /opt/gitlab/sv/postgresql/env[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/env] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/env] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/postgresql/control] action create[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/control] created directory /opt/gitlab/sv/postgresql/control
- - create new directory /opt/gitlab/sv/postgresql/control[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/control] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/control] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/postgresql/control/t] action create[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] created file /opt/gitlab/sv/postgresql/control/t
- - create new file /opt/gitlab/sv/postgresql/control/t[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] updated file contents /opt/gitlab/sv/postgresql/control/t
- - update content in file /opt/gitlab/sv/postgresql/control/t from none to 05ae12
- --- /opt/gitlab/sv/postgresql/control/t 2023-06-12 08:51:23.759753059 +0000
- +++ /opt/gitlab/sv/postgresql/control/.chef-t20230612-2522091-ixpiq5 2023-06-12 08:51:23.759753059 +0000
- @@ -1,3 +1,6 @@
- +#!/bin/sh
- +echo "received TERM from runit, sending INT instead to force quit connections"
- +/opt/gitlab/embedded/bin/sv interrupt postgresql[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] owner changed to 0
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] group changed to 0
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/postgresql] action create[2023-06-12T08:51:23+00:00] INFO: link[/opt/gitlab/init/postgresql] created
- - create symlink at /opt/gitlab/init/postgresql to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/postgresql] action create (up to date)
- * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
- * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
- * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
- * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/postgresql/config] action create (up to date)
- * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
- * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
- * link[/opt/gitlab/init/postgresql] action create (up to date)
- * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/postgresql] action create[2023-06-12T08:51:23+00:00] INFO: link[/opt/gitlab/service/postgresql] created
- - create symlink at /opt/gitlab/service/postgresql to /opt/gitlab/sv/postgresql
- * ruby_block[wait for postgresql service socket] action run[2023-06-12T08:51:28+00:00] INFO: ruby_block[wait for postgresql service socket] called
- - execute the ruby block wait for postgresql service socket
- * directory[/opt/gitlab/service/postgresql/supervise] action create[2023-06-12T08:51:28+00:00] INFO: directory[/opt/gitlab/service/postgresql/supervise] mode changed to 755
- - change mode from '0700' to '0755'
- * directory[/opt/gitlab/service/postgresql/log/supervise] action create[2023-06-12T08:51:28+00:00] INFO: directory[/opt/gitlab/service/postgresql/log/supervise] mode changed to 755
- - change mode from '0700' to '0755'
- * file[/opt/gitlab/service/postgresql/supervise/ok] action touch[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/ok] created file /opt/gitlab/service/postgresql/supervise/ok
- - create new file /opt/gitlab/service/postgresql/supervise/ok[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/ok] owner changed to 995
- [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/ok] group changed to 995
- - change owner from '' to 'gitlab-psql'
- - change group from '' to 'gitlab-psql'[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/ok] updated atime and mtime to 2023-06-12 08:51:28 +0000
- - update utime on file /opt/gitlab/service/postgresql/supervise/ok
- * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/ok] created file /opt/gitlab/service/postgresql/log/supervise/ok
- - create new file /opt/gitlab/service/postgresql/log/supervise/ok[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/ok] owner changed to 995
- [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/ok] group changed to 995
- - change owner from '' to 'gitlab-psql'
- - change group from '' to 'gitlab-psql'[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/ok] updated atime and mtime to 2023-06-12 08:51:28 +0000
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/ok
- * file[/opt/gitlab/service/postgresql/supervise/status] action touch[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] owner changed to 995
- [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] group changed to 995
- - change owner from 'root' to 'gitlab-psql'
- - change group from 'root' to 'gitlab-psql'[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] updated atime and mtime to 2023-06-12 08:51:28 +0000
- - update utime on file /opt/gitlab/service/postgresql/supervise/status
- * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] owner changed to 995
- [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
- - change owner from 'root' to 'gitlab-psql'
- - change group from 'root' to 'gitlab-psql'[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] updated atime and mtime to 2023-06-12 08:51:28 +0000
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
- * file[/opt/gitlab/service/postgresql/supervise/control] action touch[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/control] created file /opt/gitlab/service/postgresql/supervise/control
- - create new file /opt/gitlab/service/postgresql/supervise/control[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/control] owner changed to 995
- [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/control] group changed to 995
- - change owner from '' to 'gitlab-psql'
- - change group from '' to 'gitlab-psql'[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/control] updated atime and mtime to 2023-06-12 08:51:28 +0000
- - update utime on file /opt/gitlab/service/postgresql/supervise/control
- * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/control] created file /opt/gitlab/service/postgresql/log/supervise/control
- - create new file /opt/gitlab/service/postgresql/log/supervise/control[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/control] owner changed to 995
- [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/control] group changed to 995
- - change owner from '' to 'gitlab-psql'
- - change group from '' to 'gitlab-psql'[2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/control] updated atime and mtime to 2023-06-12 08:51:28 +0000
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/control
- * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
- [2023-06-12T08:51:29+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:51:29+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/postgresql] action create (up to date)
- * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
- * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
- * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
- * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/postgresql/config] action create (up to date)
- * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
- * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
- * link[/opt/gitlab/init/postgresql] action create (up to date)
- * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/postgresql] action create (up to date)
- * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
- * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
- * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
- * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if)
- * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if)
- * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if)
- * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch[2023-06-12T08:51:29+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] owner changed to 995
- [2023-06-12T08:51:29+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
- - change owner from 'root' to 'gitlab-psql'
- - change group from 'root' to 'gitlab-psql'[2023-06-12T08:51:29+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] updated atime and mtime to 2023-06-12 08:51:29 +0000
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
- * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if)
- * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if)
- * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
- [2023-06-12T08:51:30+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/postgresql] action create (up to date)
- * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
- * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
- * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
- * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if)
- * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if)
- * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if)
- * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch[2023-06-12T08:51:30+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] owner changed to 995
- [2023-06-12T08:51:30+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
- - change owner from 'root' to 'gitlab-psql'
- - change group from 'root' to 'gitlab-psql'[2023-06-12T08:51:30+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] updated atime and mtime to 2023-06-12 08:51:30 +0000
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
- * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if)
- * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if)
- * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
- * execute[/opt/gitlab/bin/gitlab-ctl start postgresql] action run
- [execute] ok: run: postgresql: (pid 2522511) 4s
- [2023-06-12T08:51:31+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start postgresql] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start postgresql
- * database_objects[postgresql] action create
- * postgresql_user[gitlab] action create
- * execute[create gitlab postgresql user] action run
- [execute] CREATE ROLE
- [2023-06-12T08:51:31+00:00] INFO: execute[create gitlab postgresql user] ran successfully
- - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER \"gitlab\""
- * postgresql_user[gitlab_replicator] action create
- * execute[create gitlab_replicator postgresql user] action run
- [execute] CREATE ROLE
- [2023-06-12T08:51:31+00:00] INFO: execute[create gitlab_replicator postgresql user] ran successfully
- - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER \"gitlab_replicator\""
- * execute[set options for gitlab_replicator postgresql user] action run
- [execute] ALTER ROLE
- [2023-06-12T08:51:31+00:00] INFO: execute[set options for gitlab_replicator postgresql user] ran successfully
- - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "ALTER USER \"gitlab_replicator\" replication"
- * postgresql_database[gitlabhq_production] action create
- * execute[create database gitlabhq_production] action run[2023-06-12T08:51:33+00:00] INFO: execute[create database gitlabhq_production] ran successfully
- - execute /opt/gitlab/embedded/bin/createdb --port 5432 -h /var/opt/gitlab/postgresql -O gitlab gitlabhq_production
- * postgresql_extension[pg_trgm] action enable
- * postgresql_query[enable pg_trgm extension] action run
- * execute[enable pg_trgm extension (postgresql)] action run
- [execute] CREATE EXTENSION
- [2023-06-12T08:51:33+00:00] INFO: execute[enable pg_trgm extension (postgresql)] ran successfully
- - execute /opt/gitlab/bin/gitlab-psql -d gitlabhq_production -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
- * postgresql_extension[btree_gist] action enable
- * postgresql_query[enable btree_gist extension] action run
- * execute[enable btree_gist extension (postgresql)] action run
- [execute] CREATE EXTENSION
- [2023-06-12T08:51:33+00:00] INFO: execute[enable btree_gist extension (postgresql)] ran successfully
- - execute /opt/gitlab/bin/gitlab-psql -d gitlabhq_production -c "CREATE EXTENSION IF NOT EXISTS btree_gist"
- * version_file[Create version file for PostgreSQL] action create
- * file[/var/opt/gitlab/postgresql/VERSION] action create[2023-06-12T08:51:33+00:00] INFO: file[/var/opt/gitlab/postgresql/VERSION] created file /var/opt/gitlab/postgresql/VERSION
- - create new file /var/opt/gitlab/postgresql/VERSION[2023-06-12T08:51:33+00:00] INFO: file[/var/opt/gitlab/postgresql/VERSION] updated file contents /var/opt/gitlab/postgresql/VERSION
- - update content in file /var/opt/gitlab/postgresql/VERSION from none to cfc50c
- --- /var/opt/gitlab/postgresql/VERSION 2023-06-12 08:51:33.895726132 +0000
- +++ /var/opt/gitlab/postgresql/.chef-VERSION20230612-2522091-hnp3ds 2023-06-12 08:51:33.891726144 +0000
- @@ -1 +1,2 @@
- +postgres (PostgreSQL) 13.11
- * ruby_block[warn pending postgresql restart] action run (skipped due to only_if)
- * execute[reload postgresql] action nothing (skipped due to action :nothing)
- * execute[start postgresql] action nothing (skipped due to action :nothing)
- Recipe: praefect::disable
- * service[praefect] action nothing (skipped due to action :nothing)
- * runit_service[praefect] action disable
- * ruby_block[disable praefect] action run (skipped due to only_if)
- (up to date)
- * consul_service[praefect] action delete
- * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date)
- (up to date)
- Recipe: gitlab-kas::enable
- * directory[/var/opt/gitlab/gitlab-kas] action create[2023-06-12T08:51:33+00:00] INFO: directory[/var/opt/gitlab/gitlab-kas] created directory /var/opt/gitlab/gitlab-kas
- - create new directory /var/opt/gitlab/gitlab-kas[2023-06-12T08:51:33+00:00] INFO: directory[/var/opt/gitlab/gitlab-kas] owner changed to 997
- [2023-06-12T08:51:33+00:00] INFO: directory[/var/opt/gitlab/gitlab-kas] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * directory[/opt/gitlab/etc/gitlab-kas] action create[2023-06-12T08:51:33+00:00] INFO: directory[/opt/gitlab/etc/gitlab-kas] created directory /opt/gitlab/etc/gitlab-kas
- - create new directory /opt/gitlab/etc/gitlab-kas[2023-06-12T08:51:33+00:00] INFO: directory[/opt/gitlab/etc/gitlab-kas] owner changed to 997
- [2023-06-12T08:51:33+00:00] INFO: directory[/opt/gitlab/etc/gitlab-kas] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * directory[/var/log/gitlab/gitlab-kas] action create[2023-06-12T08:51:33+00:00] INFO: directory[/var/log/gitlab/gitlab-kas] created directory /var/log/gitlab/gitlab-kas
- - create new directory /var/log/gitlab/gitlab-kas[2023-06-12T08:51:33+00:00] INFO: directory[/var/log/gitlab/gitlab-kas] owner changed to 997
- [2023-06-12T08:51:33+00:00] INFO: directory[/var/log/gitlab/gitlab-kas] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * ruby_block[websocket TLS termination] action run (skipped due to only_if)
- * version_file[Create version file for Gitlab KAS] action create
- * file[/var/opt/gitlab/gitlab-kas/VERSION] action create[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/VERSION] created file /var/opt/gitlab/gitlab-kas/VERSION
- - create new file /var/opt/gitlab/gitlab-kas/VERSION[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/VERSION] updated file contents /var/opt/gitlab/gitlab-kas/VERSION
- - update content in file /var/opt/gitlab/gitlab-kas/VERSION from none to 3e4d4b
- --- /var/opt/gitlab/gitlab-kas/VERSION 2023-06-12 08:51:34.027725781 +0000
- +++ /var/opt/gitlab/gitlab-kas/.chef-VERSION20230612-2522091-3w4sxd 2023-06-12 08:51:34.027725781 +0000
- @@ -1 +1,2 @@
- +kas version v16.0.1, commit: 27e3eb8e, built: 20230608.113856
- * file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] action create[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] created file /var/opt/gitlab/gitlab-kas/authentication_secret_file
- - create new file /var/opt/gitlab/gitlab-kas/authentication_secret_file[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] updated file contents /var/opt/gitlab/gitlab-kas/authentication_secret_file
- - update content in file /var/opt/gitlab/gitlab-kas/authentication_secret_file from none to c5258b
- --- /var/opt/gitlab/gitlab-kas/authentication_secret_file 2023-06-12 08:51:34.043725738 +0000
- +++ /var/opt/gitlab/gitlab-kas/.chef-authentication_secret_file20230612-2522091-9jxw6q 2023-06-12 08:51:34.043725738 +0000
- @@ -1 +1,2 @@
- +M2ZiNGFkNmNhYTI1MmE5Y2ExNTE5NTFjZjFkZmQzOWQ=[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] group changed to 997
- [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] mode changed to 640
- - change mode from '' to '0640'
- - change owner from '' to 'root'
- - change group from '' to 'git'
- [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] not queuing delayed action restart on runit_service[gitlab-kas] (delayed), as it's already been queued
- * file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] action create[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] created file /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file
- - create new file /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] updated file contents /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file
- - update content in file /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file from none to 6df2ef
- --- /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file 2023-06-12 08:51:34.059725696 +0000
- +++ /var/opt/gitlab/gitlab-kas/.chef-private_api_authentication_secret_file20230612-2522091-1xwyut 2023-06-12 08:51:34.059725696 +0000
- @@ -1 +1,2 @@
- +ZmE1ODc4MWU5MzY0YmNjMWEwZGMwNGIzOTQwMDY0NGY=[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] group changed to 997
- [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] mode changed to 640
- - change mode from '' to '0640'
- - change owner from '' to 'root'
- - change group from '' to 'git'
- [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] not queuing delayed action restart on runit_service[gitlab-kas] (delayed), as it's already been queued
- * file[/var/opt/gitlab/gitlab-kas/redis_password_file] action create (skipped due to only_if)
- * template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] action create[2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] created file /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml
- - create new file /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml[2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] updated file contents /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml
- - update content in file /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml from none to 67eff7
- --- /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml 2023-06-12 08:51:34.075725653 +0000
- +++ /var/opt/gitlab/gitlab-kas/.chef-gitlab-kas-config20230612-2522091-ht08q5.yml 2023-06-12 08:51:34.075725653 +0000
- @@ -1,44 +1,88 @@
- +agent:
- + listen:
- + address: localhost:8150
- + network: tcp
- + websocket: true
- + configuration:
- + poll_period: 20s
- + gitops:
- + poll_period: 20s
- + project_info_cache_ttl: 300s
- + project_info_cache_error_ttl: 60s
- + kubernetes_api:
- + listen:
- + address: localhost:8154
- + url_path_prefix: /
- + info_cache_ttl: 300s
- + info_cache_error_ttl: 60s
- +gitlab:
- + address: http://192.168.100.33
- + external_url: http://192.168.100.33
- + authentication_secret_file: /var/opt/gitlab/gitlab-kas/authentication_secret_file
- +observability:
- + listen:
- + address: localhost:8151
- + network: tcp
- + usage_reporting_period: 60s
- + logging:
- + level: info
- +redis:
- + network: unix
- + tls:
- + enabled: false
- + server:
- + address: '/var/opt/gitlab/redis/redis.socket'
- +api:
- + listen:
- + network: tcp
- + address: localhost:8153
- + authentication_secret_file: /var/opt/gitlab/gitlab-kas/authentication_secret_file
- +private_api:
- + listen:
- + network: tcp
- + address: localhost:8155
- + authentication_secret_file: /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file[2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] group changed to 997
- [2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] mode changed to 640
- - change mode from '' to '0640'
- - change owner from '' to 'root'
- - change group from '' to 'git'
- [2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] not queuing delayed action restart on runit_service[gitlab-kas] (delayed), as it's already been queued
- * env_dir[/opt/gitlab/etc/gitlab-kas/env] action create
- * directory[/opt/gitlab/etc/gitlab-kas/env] action create[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/etc/gitlab-kas/env] created directory /opt/gitlab/etc/gitlab-kas/env
- - create new directory /opt/gitlab/etc/gitlab-kas/env
- * file[/opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR] action create[2023-06-12T08:51:34+00:00] INFO: file[/opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR] created file /opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR
- - create new file /opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR[2023-06-12T08:51:34+00:00] INFO: file[/opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR] updated file contents /opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR
- - update content in file /opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR from none to 4f45cf
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL] action create[2023-06-12T08:51:34+00:00] INFO: file[/opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL] created file /opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL
- - create new file /opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL[2023-06-12T08:51:34+00:00] INFO: file[/opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL] updated file contents /opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL
- - update content in file /opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL from none to 45b898
- - suppressed sensitive resource
- * service[gitlab-kas] action nothing (skipped due to action :nothing)
- * runit_service[gitlab-kas] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-kas] action create[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas] created directory /opt/gitlab/sv/gitlab-kas
- - create new directory /opt/gitlab/sv/gitlab-kas[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas] group changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/gitlab-kas/run] action create[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] created file /opt/gitlab/sv/gitlab-kas/run
- - create new file /opt/gitlab/sv/gitlab-kas/run[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] updated file contents /opt/gitlab/sv/gitlab-kas/run
- - update content in file /opt/gitlab/sv/gitlab-kas/run from none to ac037b
- --- /opt/gitlab/sv/gitlab-kas/run 2023-06-12 08:51:34.131725504 +0000
- +++ /opt/gitlab/sv/gitlab-kas/.chef-run20230612-2522091-h4rsos 2023-06-12 08:51:34.131725504 +0000
- @@ -1,11 +1,22 @@
- +#!/bin/bash
- +
- +# Let runit capture all script error messages
- +exec 2>&1
- +
- +
- +
- +exec chpst -e /opt/gitlab/etc/gitlab-kas/env -P \
- + -u git:git \
- + -U git:git \
- + /opt/gitlab/embedded/bin/gitlab-kas --configuration-file /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] group changed to 0
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-kas/log] action create[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log] created directory /opt/gitlab/sv/gitlab-kas/log
- - create new directory /opt/gitlab/sv/gitlab-kas/log[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log] group changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log/main] created directory /opt/gitlab/sv/gitlab-kas/log/main
- - create new directory /opt/gitlab/sv/gitlab-kas/log/main[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log/main] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log/main] group changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/gitlab-kas/log/config] action create[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] created file /opt/gitlab/sv/gitlab-kas/log/config
- - create new file /opt/gitlab/sv/gitlab-kas/log/config[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] updated file contents /opt/gitlab/sv/gitlab-kas/log/config
- - update content in file /opt/gitlab/sv/gitlab-kas/log/config from none to 623c00
- --- /opt/gitlab/sv/gitlab-kas/log/config 2023-06-12 08:51:34.151725451 +0000
- +++ /opt/gitlab/sv/gitlab-kas/log/.chef-config20230612-2522091-i9j01s 2023-06-12 08:51:34.151725451 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] group changed to 0
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] sending create action to ruby_block[verify_chown_persisted_on_gitlab-kas] (immediate)
- * ruby_block[verify_chown_persisted_on_gitlab-kas] action create[2023-06-12T08:51:34+00:00] INFO: ruby_block[verify_chown_persisted_on_gitlab-kas] called
- - execute the ruby block verify_chown_persisted_on_gitlab-kas
- * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-kas/config] action create[2023-06-12T08:51:34+00:00] INFO: link[/var/log/gitlab/gitlab-kas/config] created
- - create symlink at /var/log/gitlab/gitlab-kas/config to /opt/gitlab/sv/gitlab-kas/log/config
- * template[/opt/gitlab/sv/gitlab-kas/log/run] action create[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] created file /opt/gitlab/sv/gitlab-kas/log/run
- - create new file /opt/gitlab/sv/gitlab-kas/log/run[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] updated file contents /opt/gitlab/sv/gitlab-kas/log/run
- - update content in file /opt/gitlab/sv/gitlab-kas/log/run from none to 22436c
- --- /opt/gitlab/sv/gitlab-kas/log/run 2023-06-12 08:51:34.167725408 +0000
- +++ /opt/gitlab/sv/gitlab-kas/log/.chef-run20230612-2522091-va16ps 2023-06-12 08:51:34.167725408 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/gitlab-kas[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] group changed to 0
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-kas/env] action create[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/env] created directory /opt/gitlab/sv/gitlab-kas/env
- - create new directory /opt/gitlab/sv/gitlab-kas/env[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/env] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/env] group changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-kas/control] action create[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/control] created directory /opt/gitlab/sv/gitlab-kas/control
- - create new directory /opt/gitlab/sv/gitlab-kas/control[2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/control] owner changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/control] group changed to 0
- [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/gitlab-kas] action create[2023-06-12T08:51:34+00:00] INFO: link[/opt/gitlab/init/gitlab-kas] created
- - create symlink at /opt/gitlab/init/gitlab-kas to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-kas] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-kas/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-kas/log] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-kas/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-kas/config] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-kas/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-kas/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-kas/control] action create (up to date)
- * link[/opt/gitlab/init/gitlab-kas] action create (up to date)
- * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-kas] action create[2023-06-12T08:51:34+00:00] INFO: link[/opt/gitlab/service/gitlab-kas] created
- - create symlink at /opt/gitlab/service/gitlab-kas to /opt/gitlab/sv/gitlab-kas
- * ruby_block[wait for gitlab-kas service socket] action run[2023-06-12T08:51:39+00:00] INFO: ruby_block[wait for gitlab-kas service socket] called
- - execute the ruby block wait for gitlab-kas service socket
- * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
- [2023-06-12T08:51:40+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:51:40+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-kas] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-kas/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-kas/log] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-kas/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-kas/config] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-kas/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-kas/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-kas/control] action create (up to date)
- * link[/opt/gitlab/init/gitlab-kas] action create (up to date)
- * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-kas] action create (up to date)
- * ruby_block[wait for gitlab-kas service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
- [2023-06-12T08:51:40+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-kas] action create (up to date)
- * ruby_block[wait for gitlab-kas service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
- Recipe: gitlab::database_migrations
- * ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
- * rails_migration[gitlab-rails] action run[2023-06-12T08:51:40+00:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
- * bash_hide_env[migrate gitlab-rails database] action run
- [execute] Running db:schema:load rake task
- psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:9: NOTICE: extension "btree_gist" already exists, skipping
- psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:11: NOTICE: extension "pg_trgm" already exists, skipping
- == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/001_application_settings.rb
- Creating the default ApplicationSetting record.
- == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/002_admin.rb
- Administrator account created:
- login: root
- password: ******
- == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/003_create_base_work_item_types.rb
- OK
- == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/004_add_security_training_providers.rb
- OK
- == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb
- Saved CI JWT signing key
- == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/020_create_work_item_hierarchy_restrictions.rb
- OK
- == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/999_common_metrics.rb
- == Seed from ee/db/fixtures/production/010_license.rb
- == Seed from ee/db/fixtures/production/027_plans.rb
- OK
- [2023-06-12T08:52:14+00:00] INFO: bash_hide_env[migrate gitlab-rails database] ran successfully
- - execute "bash"
- [2023-06-12T08:52:14+00:00] INFO: rails_migration[gitlab-rails] sending run action to execute[clear the gitlab-rails cache] (immediate)
- Recipe: gitlab::gitlab-rails
- * execute[clear the gitlab-rails cache] action run[2023-06-12T08:52:35+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully
- - execute /opt/gitlab/bin/gitlab-rake cache:clear
- [2023-06-12T08:52:35+00:00] INFO: rails_migration[gitlab-rails] sending run action to ruby_block[check remote PG version] (immediate)
- Recipe: gitlab::database_migrations
- * ruby_block[check remote PG version] action run (skipped due to only_if)
- Recipe: crond::disable
- * service[crond] action nothing (skipped due to action :nothing)
- * runit_service[crond] action disable
- * ruby_block[disable crond] action run (skipped due to only_if)
- (up to date)
- Recipe: gitlab::puma
- * directory[/opt/gitlab/var/puma] action create[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/var/puma] created directory /opt/gitlab/var/puma
- - create new directory /opt/gitlab/var/puma[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/var/puma] owner changed to 997
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/var/puma] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * directory[/var/log/gitlab/puma] action create[2023-06-12T08:52:35+00:00] INFO: directory[/var/log/gitlab/puma] created directory /var/log/gitlab/puma
- - create new directory /var/log/gitlab/puma[2023-06-12T08:52:35+00:00] INFO: directory[/var/log/gitlab/puma] owner changed to 997
- [2023-06-12T08:52:35+00:00] INFO: directory[/var/log/gitlab/puma] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * directory[/var/opt/gitlab/gitlab-rails/sockets] action create[2023-06-12T08:52:35+00:00] INFO: directory[/var/opt/gitlab/gitlab-rails/sockets] created directory /var/opt/gitlab/gitlab-rails/sockets
- - create new directory /var/opt/gitlab/gitlab-rails/sockets[2023-06-12T08:52:35+00:00] INFO: directory[/var/opt/gitlab/gitlab-rails/sockets] owner changed to 997
- [2023-06-12T08:52:35+00:00] INFO: directory[/var/opt/gitlab/gitlab-rails/sockets] group changed to 998
- [2023-06-12T08:52:35+00:00] INFO: directory[/var/opt/gitlab/gitlab-rails/sockets] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'git'
- - change group from '' to 'gitlab-www'
- * puma_config[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create
- * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date)
- * template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create[2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] created file /var/opt/gitlab/gitlab-rails/etc/puma.rb
- - create new file /var/opt/gitlab/gitlab-rails/etc/puma.rb[2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] updated file contents /var/opt/gitlab/gitlab-rails/etc/puma.rb
- - update content in file /var/opt/gitlab/gitlab-rails/etc/puma.rb from none to f597e7
- --- /var/opt/gitlab/gitlab-rails/etc/puma.rb 2023-06-12 08:52:35.119560204 +0000
- +++ /var/opt/gitlab/gitlab-rails/etc/.chef-puma20230612-2522091-9obfb7.rb 2023-06-12 08:52:35.119560204 +0000
- @@ -1,109 +1,218 @@
- +# frozen_string_literal: true
- +
- +# This file is managed by gitlab-ctl. Manual changes will be
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
- +# and run `sudo gitlab-ctl reconfigure`.
- +
- +# Load "path" as a rackup file.
- +#
- +# The default is "config.ru".
- +#
- +environment 'production'
- +rackup '/opt/gitlab/embedded/service/gitlab-rails/config.ru'
- +pidfile '/opt/gitlab/var/puma/puma.pid'
- +state_path '/opt/gitlab/var/puma/puma.state'
- +
- +stdout_redirect '/var/log/gitlab/puma/puma_stdout.log', '/var/log/gitlab/puma/puma_stderr.log', true
- +
- +# Configure "min" to be the minimum number of threads to use to answer
- +# requests and "max" the maximum.
- +#
- +# The default is "0, 16".
- +#
- +threads 4, 4
- +
- +# By default, workers accept all requests and queue them to pass to handlers.
- +# When false, workers accept the number of simultaneous requests configured.
- +#
- +# Queueing requests generally improves performance, but can cause deadlocks if
- +# the app is waiting on a request to itself. See https://github.com/puma/puma/issues/612
- +#
- +# When set to false this may require a reverse proxy to handle slow clients and
- +# queue requests before they reach puma. This is due to disabling HTTP keepalive
- +queue_requests false
- +
- +# Bind the server to "url". "tcp://", "unix://" and "ssl://" are the only
- +# accepted protocols.
- +bind 'unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
- +
- +bind 'tcp://127.0.0.1:8080'
- +
- +
- +directory '/var/opt/gitlab/gitlab-rails/working'
- +
- +workers 2
- +
- +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/lifecycle_events"
- +
- +on_restart do
- + # Signal application hooks that we're about to restart
- + Gitlab::Cluster::LifecycleEvents.do_before_master_restart
- +end
- +
- +options = { workers: 2 }
- +
- +before_fork do
- + # Signal application hooks that we're about to fork
- + Gitlab::Cluster::LifecycleEvents.do_before_fork
- +end
- +
- +Gitlab::Cluster::LifecycleEvents.set_puma_options options
- +on_worker_boot do
- + # Signal application hooks of worker start
- + Gitlab::Cluster::LifecycleEvents.do_worker_start
- +end
- +
- +on_worker_shutdown do
- + # Signal application hooks that a worker is shutting down
- + Gitlab::Cluster::LifecycleEvents.do_worker_stop
- +end
- +
- +# Preload the application before starting the workers; this conflicts with
- +# phased restart feature. (off by default)
- +
- +preload_app!
- +
- +tag 'gitlab-puma-worker'
- +
- +# Verifies that all workers have checked in to the master process within
- +# the given timeout. If not the worker process will be restarted. Default
- +# value is 60 seconds.
- +#
- +worker_timeout 60
- +
- +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput
- +wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
- +
- +# nakayoshi_fork was removed in Puma 6.0: https://github.com/puma/puma/issues/2258
- +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork
- +if Gem::Version.new(Puma::Const::PUMA_VERSION).canonical_segments.first == 5 &&
- + ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] != 'true'
- + nakayoshi_fork
- +end
- +
- +# Use customised JSON formatter for Puma log
- +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/puma_logging/json_formatter"
- +
- +json_formatter = Gitlab::PumaLogging::JSONFormatter.new
- +log_formatter do |str|
- + json_formatter.call(str)
- +end
- +
- +lowlevel_error_handler do |ex, env|
- + if Raven.configuration.capture_allowed?
- + Raven.capture_exception(ex, tags: { 'handler': 'puma_low_level' }, extra: { puma_env: env })
- + end
- +
- + # note the below is just a Rack response
- + [500, {}, ["An error has occurred and reported in the system's low-level error handler."]]
- +end[2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * service[puma] action nothing (skipped due to action :nothing)
- * runit_service[puma] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/puma] action create[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] created directory /opt/gitlab/sv/puma
- - create new directory /opt/gitlab/sv/puma[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/puma/run] action create[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] created file /opt/gitlab/sv/puma/run
- - create new file /opt/gitlab/sv/puma/run[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] updated file contents /opt/gitlab/sv/puma/run
- - update content in file /opt/gitlab/sv/puma/run from none to d9c6f4
- --- /opt/gitlab/sv/puma/run 2023-06-12 08:52:35.155560104 +0000
- +++ /opt/gitlab/sv/puma/.chef-run20230612-2522091-t2yz31 2023-06-12 08:52:35.155560104 +0000
- @@ -1,22 +1,44 @@
- +#!/bin/bash
- +
- +# Let runit capture all script error messages
- +exec 2>&1
- +
- +# Setup run directory.
- +mkdir -p /run/gitlab/puma
- +chmod 0700 /run/gitlab/puma
- +chown git /run/gitlab/puma
- +export prometheus_run_dir='/run/gitlab/puma'
- +
- +
- +
- +
- +exec chpst -P \
- + -u git:git \
- + -U git:git \
- + -e /opt/gitlab/etc/gitlab-rails/env \
- + /usr/bin/env \
- + prometheus_multiproc_dir="${prometheus_run_dir}" \
- + ACTION_CABLE_WORKER_POOL_SIZE=4 \
- + /opt/gitlab/embedded/bin/bundle exec puma -C /var/opt/gitlab/gitlab-rails/etc/puma.rb[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/puma/log] action create[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log] created directory /opt/gitlab/sv/puma/log
- - create new directory /opt/gitlab/sv/puma/log[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/puma/log/main] action create[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log/main] created directory /opt/gitlab/sv/puma/log/main
- - create new directory /opt/gitlab/sv/puma/log/main[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log/main] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log/main] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/puma/log/config] action create[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] created file /opt/gitlab/sv/puma/log/config
- - create new file /opt/gitlab/sv/puma/log/config[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] updated file contents /opt/gitlab/sv/puma/log/config
- - update content in file /opt/gitlab/sv/puma/log/config from none to 623c00
- --- /opt/gitlab/sv/puma/log/config 2023-06-12 08:52:35.183560027 +0000
- +++ /opt/gitlab/sv/puma/log/.chef-config20230612-2522091-z7jvlw 2023-06-12 08:52:35.183560027 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] sending create action to ruby_block[verify_chown_persisted_on_puma] (immediate)
- * ruby_block[verify_chown_persisted_on_puma] action create[2023-06-12T08:52:35+00:00] INFO: ruby_block[verify_chown_persisted_on_puma] called
- - execute the ruby block verify_chown_persisted_on_puma
- * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/puma/config] action create[2023-06-12T08:52:35+00:00] INFO: link[/var/log/gitlab/puma/config] created
- - create symlink at /var/log/gitlab/puma/config to /opt/gitlab/sv/puma/log/config
- * template[/opt/gitlab/sv/puma/log/run] action create[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] created file /opt/gitlab/sv/puma/log/run
- - create new file /opt/gitlab/sv/puma/log/run[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] updated file contents /opt/gitlab/sv/puma/log/run
- - update content in file /opt/gitlab/sv/puma/log/run from none to b9d2d5
- --- /opt/gitlab/sv/puma/log/run 2023-06-12 08:52:35.203559973 +0000
- +++ /opt/gitlab/sv/puma/log/.chef-run20230612-2522091-it29bt 2023-06-12 08:52:35.203559973 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/puma[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/puma/env] action create[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/env] created directory /opt/gitlab/sv/puma/env
- - create new directory /opt/gitlab/sv/puma/env[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/env] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/env] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/puma/control] action create[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/control] created directory /opt/gitlab/sv/puma/control
- - create new directory /opt/gitlab/sv/puma/control[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/control] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/control] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/puma/control/t] action create[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] created file /opt/gitlab/sv/puma/control/t
- - create new file /opt/gitlab/sv/puma/control/t[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] updated file contents /opt/gitlab/sv/puma/control/t
- - update content in file /opt/gitlab/sv/puma/control/t from none to d8e9e7
- --- /opt/gitlab/sv/puma/control/t 2023-06-12 08:52:35.219559928 +0000
- +++ /opt/gitlab/sv/puma/control/.chef-t20230612-2522091-mgnhjm 2023-06-12 08:52:35.219559928 +0000
- @@ -1,3 +1,6 @@
- +#!/bin/sh
- +echo "Received TERM from runit, sending to process group (-PID)"
- +kill -- -$(cat /opt/gitlab/service/puma/supervise/pid)[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/puma/control/h] action create[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] created file /opt/gitlab/sv/puma/control/h
- - create new file /opt/gitlab/sv/puma/control/h[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] updated file contents /opt/gitlab/sv/puma/control/h
- - update content in file /opt/gitlab/sv/puma/control/h from none to 22e721
- --- /opt/gitlab/sv/puma/control/h 2023-06-12 08:52:35.235559885 +0000
- +++ /opt/gitlab/sv/puma/control/.chef-h20230612-2522091-j89l6i 2023-06-12 08:52:35.235559885 +0000
- @@ -1,47 +1,94 @@
- +#!/bin/sh
- +
- +# This control handler is meant to be invoked by omnibus-gitlab via Runit
- +
- +# Let runit capture all script error messages
- +exec 2>&1
- +
- +PID=$(cat /opt/gitlab/service/puma/supervise/pid)
- +
- +readonly puma_graceful_shutdown_sec=90
- +readonly puma_forceful_shutdown_sec=20
- +readonly puma_kill_shutdown_sec=10
- +
- +echo "Received HUP from runit, sending INT signal to perform graceful restart"
- +
- +signal() {
- + local pid="$1"
- + local signal="$2"
- + local tries="$3"
- +
- + echo "Sending $signal signal to Puma $pid..."
- + kill "-$signal" "$pid"
- +
- + for i in $(seq 1 "$tries"); do
- + echo "Waiting for Puma $pid to exit ($i)..."
- + if ! kill -0 "$pid"; then
- + echo "Puma $pid did exit."
- + return 0
- + fi
- +
- + sleep 1
- + done
- +
- + echo "Puma $pid did not exit after $signal."
- + return 1
- +}
- +
- +(
- + # we run it in subshell, as `runit` requires
- + # the process it runs to exit in order to reap
- + # the service
- + signal "$PID" "INT" "$puma_graceful_shutdown_sec" ||
- + signal "$PID" "TERM" "$puma_forceful_shutdown_sec" ||
- + signal "$PID" "KILL" "$puma_kill_shutdown_sec"
- +) &
- +
- +exit 0[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] owner changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] group changed to 0
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/puma] action create[2023-06-12T08:52:35+00:00] INFO: link[/opt/gitlab/init/puma] created
- - create symlink at /opt/gitlab/init/puma to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/puma] action create (up to date)
- * template[/opt/gitlab/sv/puma/run] action create (up to date)
- * directory[/opt/gitlab/sv/puma/log] action create (up to date)
- * directory[/opt/gitlab/sv/puma/log/main] action create (up to date)
- * template[/opt/gitlab/sv/puma/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/puma/config] action create (up to date)
- * template[/opt/gitlab/sv/puma/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/puma/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/puma/control] action create (up to date)
- * template[/opt/gitlab/sv/puma/control/t] action create (up to date)
- * template[/opt/gitlab/sv/puma/control/h] action create (up to date)
- * link[/opt/gitlab/init/puma] action create (up to date)
- * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/puma] action create[2023-06-12T08:52:35+00:00] INFO: link[/opt/gitlab/service/puma] created
- - create symlink at /opt/gitlab/service/puma to /opt/gitlab/sv/puma
- * ruby_block[wait for puma service socket] action run[2023-06-12T08:52:40+00:00] INFO: ruby_block[wait for puma service socket] called
- - execute the ruby block wait for puma service socket
- * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
- [2023-06-12T08:52:40+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:52:40+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/puma] action create (up to date)
- * template[/opt/gitlab/sv/puma/run] action create (up to date)
- * directory[/opt/gitlab/sv/puma/log] action create (up to date)
- * directory[/opt/gitlab/sv/puma/log/main] action create (up to date)
- * template[/opt/gitlab/sv/puma/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/puma/config] action create (up to date)
- * template[/opt/gitlab/sv/puma/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/puma/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/puma/control] action create (up to date)
- * template[/opt/gitlab/sv/puma/control/t] action create (up to date)
- * template[/opt/gitlab/sv/puma/control/h] action create (up to date)
- * link[/opt/gitlab/init/puma] action create (up to date)
- * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/puma] action create (up to date)
- * ruby_block[wait for puma service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
- [2023-06-12T08:52:41+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/puma] action create (up to date)
- * ruby_block[wait for puma service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
- * execute[/opt/gitlab/bin/gitlab-ctl start puma] action run
- [execute] ok: run: puma: (pid 2523282) 2s
- [2023-06-12T08:52:42+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start puma] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start puma
- * consul_service[rails] action delete
- * file[/var/opt/gitlab/consul/config.d/rails-service.json] action delete (up to date)
- (up to date)
- * gitlab_sysctl[net.core.somaxconn] action create
- * directory[create /etc/sysctl.d for net.core.somaxconn] action create (up to date)
- * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create[2023-06-12T08:52:42+00:00] INFO: file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] created file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf
- - create new file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf[2023-06-12T08:52:42+00:00] INFO: file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] updated file contents /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf
- - update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf from none to 353a75
- --- /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf 2023-06-12 08:52:42.511539808 +0000
- +++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-net20230612-2522091-5dk65q.core.somaxconn.conf 2023-06-12 08:52:42.511539808 +0000
- @@ -1 +1,2 @@
- +net.core.somaxconn = 1024
- * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create[2023-06-12T08:52:42+00:00] INFO: link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] created
- - create symlink at /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf to /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf
- [2023-06-12T08:52:42+00:00] INFO: link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] not queuing delayed action run on execute[load sysctl conf net.core.somaxconn] (delayed), as it's already been queued
- [2023-06-12T08:52:42+00:00] INFO: link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] not queuing delayed action run on execute[reload all sysctl conf] (delayed), as it's already been queued
- * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing)
- [2023-06-12T08:52:42+00:00] INFO: file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] sending run action to execute[load sysctl conf net.core.somaxconn] (delayed)
- * execute[load sysctl conf net.core.somaxconn] action run[2023-06-12T08:52:42+00:00] INFO: execute[load sysctl conf net.core.somaxconn] ran successfully
- - execute sysctl -e -p /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf
- Recipe: gitlab::sidekiq
- * sidekiq_service[sidekiq] action enable[2023-06-12T08:52:42+00:00] WARN: sidekiq does not have a log_group or default logdir mode defined. Setting to 0700.
- * directory[/var/log/gitlab/sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: directory[/var/log/gitlab/sidekiq] created directory /var/log/gitlab/sidekiq
- - create new directory /var/log/gitlab/sidekiq[2023-06-12T08:52:42+00:00] INFO: directory[/var/log/gitlab/sidekiq] owner changed to 997
- [2023-06-12T08:52:42+00:00] INFO: directory[/var/log/gitlab/sidekiq] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * service[sidekiq] action nothing (skipped due to action :nothing)
- * runit_service[sidekiq] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] created directory /opt/gitlab/sv/sidekiq
- - create new directory /opt/gitlab/sv/sidekiq[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] owner changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] group changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/sidekiq/run] action create[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] created file /opt/gitlab/sv/sidekiq/run
- - create new file /opt/gitlab/sv/sidekiq/run[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] updated file contents /opt/gitlab/sv/sidekiq/run
- - update content in file /opt/gitlab/sv/sidekiq/run from none to 68cc5b
- --- /opt/gitlab/sv/sidekiq/run 2023-06-12 08:52:42.579539620 +0000
- +++ /opt/gitlab/sv/sidekiq/.chef-run20230612-2522091-m8mdui 2023-06-12 08:52:42.579539620 +0000
- @@ -1,27 +1,54 @@
- +#!/bin/sh
- +
- +cd /var/opt/gitlab/gitlab-rails/working
- +
- +exec 2>&1
- +# Setup run directory.
- +mkdir -p /run/gitlab/sidekiq
- +rm /run/gitlab/sidekiq/*.db 2> /dev/null
- +chmod 0700 /run/gitlab/sidekiq
- +chown git /run/gitlab/sidekiq
- +export prometheus_run_dir='/run/gitlab/sidekiq'
- +
- +
- +
- +exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \
- + -U git:git \
- + -u git:git \
- + /usr/bin/env \
- + prometheus_multiproc_dir="${prometheus_run_dir}" \
- + /opt/gitlab/embedded/service/gitlab-rails/bin/sidekiq-cluster \
- + -e production \
- + -r /opt/gitlab/embedded/service/gitlab-rails \
- + -m 20 \
- + --timeout 25 \
- + "*" \
- +
- +# Do not remove this line; it prevents trouble with the trailing backslashes above.[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] owner changed to 0
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] group changed to 0
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/sidekiq/log] action create[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log] created directory /opt/gitlab/sv/sidekiq/log
- - create new directory /opt/gitlab/sv/sidekiq/log[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log] owner changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log] group changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/sidekiq/log/main] action create[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log/main] created directory /opt/gitlab/sv/sidekiq/log/main
- - create new directory /opt/gitlab/sv/sidekiq/log/main[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log/main] owner changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log/main] group changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/sidekiq/log/config] action create[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] created file /opt/gitlab/sv/sidekiq/log/config
- - create new file /opt/gitlab/sv/sidekiq/log/config[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] updated file contents /opt/gitlab/sv/sidekiq/log/config
- - update content in file /opt/gitlab/sv/sidekiq/log/config from none to 623c00
- --- /opt/gitlab/sv/sidekiq/log/config 2023-06-12 08:52:42.599539564 +0000
- +++ /opt/gitlab/sv/sidekiq/log/.chef-config20230612-2522091-7gjz9p 2023-06-12 08:52:42.599539564 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] owner changed to 0
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] group changed to 0
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] sending create action to ruby_block[verify_chown_persisted_on_sidekiq] (immediate)
- * ruby_block[verify_chown_persisted_on_sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: ruby_block[verify_chown_persisted_on_sidekiq] called
- - execute the ruby block verify_chown_persisted_on_sidekiq
- * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/sidekiq/config] action create[2023-06-12T08:52:42+00:00] INFO: link[/var/log/gitlab/sidekiq/config] created
- - create symlink at /var/log/gitlab/sidekiq/config to /opt/gitlab/sv/sidekiq/log/config
- * template[/opt/gitlab/sv/sidekiq/log/run] action create[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] created file /opt/gitlab/sv/sidekiq/log/run
- - create new file /opt/gitlab/sv/sidekiq/log/run[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] updated file contents /opt/gitlab/sv/sidekiq/log/run
- - update content in file /opt/gitlab/sv/sidekiq/log/run from none to 421ac5
- --- /opt/gitlab/sv/sidekiq/log/run 2023-06-12 08:52:42.619539509 +0000
- +++ /opt/gitlab/sv/sidekiq/log/.chef-run20230612-2522091-7ijph6 2023-06-12 08:52:42.619539509 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd /var/log/gitlab/sidekiq[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] owner changed to 0
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] group changed to 0
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/sidekiq/env] action create[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/env] created directory /opt/gitlab/sv/sidekiq/env
- - create new directory /opt/gitlab/sv/sidekiq/env[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/env] owner changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/env] group changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/sidekiq/control] action create[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/control] created directory /opt/gitlab/sv/sidekiq/control
- - create new directory /opt/gitlab/sv/sidekiq/control[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/control] owner changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/control] group changed to 0
- [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: link[/opt/gitlab/init/sidekiq] created
- - create symlink at /opt/gitlab/init/sidekiq to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/sidekiq] action create (up to date)
- * template[/opt/gitlab/sv/sidekiq/run] action create (up to date)
- * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date)
- * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date)
- * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/sidekiq/config] action create (up to date)
- * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date)
- * link[/opt/gitlab/init/sidekiq] action create (up to date)
- * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: link[/opt/gitlab/service/sidekiq] created
- - create symlink at /opt/gitlab/service/sidekiq to /opt/gitlab/sv/sidekiq
- * ruby_block[wait for sidekiq service socket] action run[2023-06-12T08:52:46+00:00] INFO: ruby_block[wait for sidekiq service socket] called
- - execute the ruby block wait for sidekiq service socket
- * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
- [2023-06-12T08:52:46+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:52:46+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/sidekiq] action create (up to date)
- * template[/opt/gitlab/sv/sidekiq/run] action create (up to date)
- * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date)
- * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date)
- * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/sidekiq/config] action create (up to date)
- * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date)
- * link[/opt/gitlab/init/sidekiq] action create (up to date)
- * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/sidekiq] action create (up to date)
- * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
- [2023-06-12T08:52:48+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/sidekiq] action create (up to date)
- * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
- * execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] action run
- [execute] ok: run: sidekiq: (pid 2523347) 2s
- [2023-06-12T08:52:48+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start sidekiq
- * consul_service[sidekiq] action delete
- * file[/var/opt/gitlab/consul/config.d/sidekiq-service.json] action delete (up to date)
- (up to date)
- Recipe: gitlab::gitlab-workhorse
- * directory[/var/opt/gitlab/gitlab-workhorse] action create[2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse] created directory /var/opt/gitlab/gitlab-workhorse
- - create new directory /var/opt/gitlab/gitlab-workhorse[2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse] owner changed to 997
- [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse] group changed to 998
- [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'git'
- - change group from '' to 'gitlab-www'
- * directory[/var/opt/gitlab/gitlab-workhorse/sockets] action create[2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] created directory /var/opt/gitlab/gitlab-workhorse/sockets
- - create new directory /var/opt/gitlab/gitlab-workhorse/sockets[2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] owner changed to 997
- [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] group changed to 998
- [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'git'
- - change group from '' to 'gitlab-www'
- * directory[/var/log/gitlab/gitlab-workhorse] action create[2023-06-12T08:52:48+00:00] INFO: directory[/var/log/gitlab/gitlab-workhorse] created directory /var/log/gitlab/gitlab-workhorse
- - create new directory /var/log/gitlab/gitlab-workhorse[2023-06-12T08:52:48+00:00] INFO: directory[/var/log/gitlab/gitlab-workhorse] owner changed to 997
- [2023-06-12T08:52:48+00:00] INFO: directory[/var/log/gitlab/gitlab-workhorse] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * directory[/opt/gitlab/etc/gitlab-workhorse] action create[2023-06-12T08:52:48+00:00] INFO: directory[/opt/gitlab/etc/gitlab-workhorse] created directory /opt/gitlab/etc/gitlab-workhorse
- - create new directory /opt/gitlab/etc/gitlab-workhorse[2023-06-12T08:52:48+00:00] INFO: directory[/opt/gitlab/etc/gitlab-workhorse] owner changed to 997
- [2023-06-12T08:52:48+00:00] INFO: directory[/opt/gitlab/etc/gitlab-workhorse] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create
- * directory[/opt/gitlab/etc/gitlab-workhorse/env] action create[2023-06-12T08:52:48+00:00] INFO: directory[/opt/gitlab/etc/gitlab-workhorse/env] created directory /opt/gitlab/etc/gitlab-workhorse/env
- - create new directory /opt/gitlab/etc/gitlab-workhorse/env
- * file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] action create[2023-06-12T08:52:48+00:00] INFO: file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] created file /opt/gitlab/etc/gitlab-workhorse/env/PATH
- - create new file /opt/gitlab/etc/gitlab-workhorse/env/PATH[2023-06-12T08:52:48+00:00] INFO: file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] updated file contents /opt/gitlab/etc/gitlab-workhorse/env/PATH
- - update content in file /opt/gitlab/etc/gitlab-workhorse/env/PATH from none to d5dc07
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] action create[2023-06-12T08:52:49+00:00] INFO: file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] created file /opt/gitlab/etc/gitlab-workhorse/env/HOME
- - create new file /opt/gitlab/etc/gitlab-workhorse/env/HOME[2023-06-12T08:52:49+00:00] INFO: file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] updated file contents /opt/gitlab/etc/gitlab-workhorse/env/HOME
- - update content in file /opt/gitlab/etc/gitlab-workhorse/env/HOME from none to 205bb9
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR] action create[2023-06-12T08:52:49+00:00] INFO: file[/opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR] created file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR
- - create new file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR[2023-06-12T08:52:49+00:00] INFO: file[/opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR] updated file contents /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR
- - update content in file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR from none to 4f45cf
- - suppressed sensitive resource
- [2023-06-12T08:52:49+00:00] INFO: env_dir[/opt/gitlab/etc/gitlab-workhorse/env] not queuing delayed action restart on runit_service[gitlab-workhorse] (delayed), as it's already been queued
- * service[gitlab-workhorse] action nothing (skipped due to action :nothing)
- * runit_service[gitlab-workhorse] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-workhorse] action create[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse] created directory /opt/gitlab/sv/gitlab-workhorse
- - create new directory /opt/gitlab/sv/gitlab-workhorse[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse] owner changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse] group changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/gitlab-workhorse/run] action create[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] created file /opt/gitlab/sv/gitlab-workhorse/run
- - create new file /opt/gitlab/sv/gitlab-workhorse/run[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] updated file contents /opt/gitlab/sv/gitlab-workhorse/run
- - update content in file /opt/gitlab/sv/gitlab-workhorse/run from none to b1d72f
- --- /opt/gitlab/sv/gitlab-workhorse/run 2023-06-12 08:52:49.043521722 +0000
- +++ /opt/gitlab/sv/gitlab-workhorse/.chef-run20230612-2522091-o8lp8y 2023-06-12 08:52:49.043521722 +0000
- @@ -1,27 +1,54 @@
- +#!/bin/sh
- +set -e # fail on errors
- +
- +# Redirect stderr -> stdout
- +exec 2>&1
- +
- +
- +
- +cd /var/opt/gitlab/gitlab-workhorse
- +
- +exec chpst -e /opt/gitlab/etc/gitlab-workhorse/env -P \
- + -U git:git \
- + -u git:git \
- + /opt/gitlab/embedded/bin/gitlab-workhorse \
- + -listenNetwork unix \
- + -listenUmask 0 \
- + -listenAddr /var/opt/gitlab/gitlab-workhorse/sockets/socket \
- + -authBackend http://localhost:8080 \
- + -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket \
- + -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public \
- + -pprofListenAddr ''\
- + -prometheusListenAddr localhost:9229 \
- + -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \
- + -logFormat json \
- + -config config.toml \
- +
- +# Do not remove this line; it prevents trouble with the trailing backslashes above.[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] owner changed to 0
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] group changed to 0
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log] created directory /opt/gitlab/sv/gitlab-workhorse/log
- - create new directory /opt/gitlab/sv/gitlab-workhorse/log[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log] owner changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log] group changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log/main] created directory /opt/gitlab/sv/gitlab-workhorse/log/main
- - create new directory /opt/gitlab/sv/gitlab-workhorse/log/main[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log/main] owner changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log/main] group changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] created file /opt/gitlab/sv/gitlab-workhorse/log/config
- - create new file /opt/gitlab/sv/gitlab-workhorse/log/config[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] updated file contents /opt/gitlab/sv/gitlab-workhorse/log/config
- - update content in file /opt/gitlab/sv/gitlab-workhorse/log/config from none to 623c00
- --- /opt/gitlab/sv/gitlab-workhorse/log/config 2023-06-12 08:52:49.067521656 +0000
- +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-config20230612-2522091-xtsi5l 2023-06-12 08:52:49.067521656 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] owner changed to 0
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] group changed to 0
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] sending create action to ruby_block[verify_chown_persisted_on_gitlab-workhorse] (immediate)
- * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action create[2023-06-12T08:52:49+00:00] INFO: ruby_block[verify_chown_persisted_on_gitlab-workhorse] called
- - execute the ruby block verify_chown_persisted_on_gitlab-workhorse
- * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-workhorse/config] action create[2023-06-12T08:52:49+00:00] INFO: link[/var/log/gitlab/gitlab-workhorse/config] created
- - create symlink at /var/log/gitlab/gitlab-workhorse/config to /opt/gitlab/sv/gitlab-workhorse/log/config
- * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] created file /opt/gitlab/sv/gitlab-workhorse/log/run
- - create new file /opt/gitlab/sv/gitlab-workhorse/log/run[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] updated file contents /opt/gitlab/sv/gitlab-workhorse/log/run
- - update content in file /opt/gitlab/sv/gitlab-workhorse/log/run from none to b3b03a
- --- /opt/gitlab/sv/gitlab-workhorse/log/run 2023-06-12 08:52:49.091521589 +0000
- +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-run20230612-2522091-le1jfs 2023-06-12 08:52:49.091521589 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd /var/log/gitlab/gitlab-workhorse[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] owner changed to 0
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] group changed to 0
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/env] created directory /opt/gitlab/sv/gitlab-workhorse/env
- - create new directory /opt/gitlab/sv/gitlab-workhorse/env[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/env] owner changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/env] group changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/control] created directory /opt/gitlab/sv/gitlab-workhorse/control
- - create new directory /opt/gitlab/sv/gitlab-workhorse/control[2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/control] owner changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/control] group changed to 0
- [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/gitlab-workhorse] action create[2023-06-12T08:52:49+00:00] INFO: link[/opt/gitlab/init/gitlab-workhorse] created
- - create symlink at /opt/gitlab/init/gitlab-workhorse to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date)
- * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date)
- * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-workhorse] action create[2023-06-12T08:52:49+00:00] INFO: link[/opt/gitlab/service/gitlab-workhorse] created
- - create symlink at /opt/gitlab/service/gitlab-workhorse to /opt/gitlab/sv/gitlab-workhorse
- * ruby_block[wait for gitlab-workhorse service socket] action run[2023-06-12T08:52:53+00:00] INFO: ruby_block[wait for gitlab-workhorse service socket] called
- - execute the ruby block wait for gitlab-workhorse service socket
- * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
- [2023-06-12T08:52:53+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date)
- * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date)
- * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date)
- * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
- [2023-06-12T08:52:53+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date)
- * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
- * consul_service[workhorse] action delete
- * file[/var/opt/gitlab/consul/config.d/workhorse-service.json] action delete (up to date)
- (up to date)
- * version_file[Create version file for Workhorse] action create
- * file[/var/opt/gitlab/gitlab-workhorse/VERSION] action create[2023-06-12T08:52:53+00:00] INFO: file[/var/opt/gitlab/gitlab-workhorse/VERSION] created file /var/opt/gitlab/gitlab-workhorse/VERSION
- - create new file /var/opt/gitlab/gitlab-workhorse/VERSION[2023-06-12T08:52:53+00:00] INFO: file[/var/opt/gitlab/gitlab-workhorse/VERSION] updated file contents /var/opt/gitlab/gitlab-workhorse/VERSION
- - update content in file /var/opt/gitlab/gitlab-workhorse/VERSION from none to 885f2f
- --- /var/opt/gitlab/gitlab-workhorse/VERSION 2023-06-12 08:52:53.775508584 +0000
- +++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20230612-2522091-pzhlfs 2023-06-12 08:52:53.775508584 +0000
- @@ -1 +1,2 @@
- +gitlab-workhorse (v16.0.4-ee)-(20230608.114126)
- [2023-06-12T08:52:53+00:00] INFO: version_file[Create version file for Workhorse] not queuing delayed action restart on runit_service[gitlab-workhorse] (delayed), as it's already been queued
- * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] created file /var/opt/gitlab/gitlab-workhorse/config.toml
- - create new file /var/opt/gitlab/gitlab-workhorse/config.toml[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] updated file contents /var/opt/gitlab/gitlab-workhorse/config.toml
- - update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from none to 4f571b
- - suppressed sensitive resource[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] group changed to 997
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] mode changed to 640
- - change mode from '' to '0640'
- - change owner from '' to 'root'
- - change group from '' to 'git'
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] not queuing delayed action restart on runit_service[gitlab-workhorse] (delayed), as it's already been queued
- Recipe: gitlab::mailroom_disable
- * service[mailroom] action nothing (skipped due to action :nothing)
- * runit_service[mailroom] action disable
- * ruby_block[disable mailroom] action run (skipped due to only_if)
- (up to date)
- Recipe: gitlab::nginx
- * directory[/var/opt/gitlab/nginx] action create[2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] created directory /var/opt/gitlab/nginx
- - create new directory /var/opt/gitlab/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] group changed to 998
- [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'root'
- - change group from '' to 'gitlab-www'
- * directory[/var/opt/gitlab/nginx/conf] action create[2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx/conf] created directory /var/opt/gitlab/nginx/conf
- - create new directory /var/opt/gitlab/nginx/conf[2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx/conf] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx/conf] group changed to 998
- [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx/conf] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'root'
- - change group from '' to 'gitlab-www'
- * directory[/var/log/gitlab/nginx] action create[2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] created directory /var/log/gitlab/nginx
- - create new directory /var/log/gitlab/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] group changed to 998
- [2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'root'
- - change group from '' to 'gitlab-www'
- * link[/var/opt/gitlab/nginx/logs] action create[2023-06-12T08:52:53+00:00] INFO: link[/var/opt/gitlab/nginx/logs] created
- - create symlink at /var/opt/gitlab/nginx/logs to /var/log/gitlab/nginx
- * template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] action create[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] created file /var/opt/gitlab/nginx/conf/gitlab-http.conf
- - create new file /var/opt/gitlab/nginx/conf/gitlab-http.conf[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] updated file contents /var/opt/gitlab/nginx/conf/gitlab-http.conf
- - update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from none to 45c6c2
- --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2023-06-12 08:52:53.823508451 +0000
- +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20230612-2522091-i69cpk.conf 2023-06-12 08:52:53.819508462 +0000
- @@ -1,142 +1,284 @@
- +# This file is managed by gitlab-ctl. Manual changes will be
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
- +# and run `sudo gitlab-ctl reconfigure`.
- +
- +## GitLab
- +## Modified from https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/support/nginx/gitlab-ssl & https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/support/nginx/gitlab
- +##
- +## Lines starting with two hashes (##) are comments with information.
- +## Lines starting with one hash (#) are configuration parameters that can be uncommented.
- +##
- +##################################
- +## CHUNKED TRANSFER ##
- +##################################
- +##
- +## It is a known issue that Git-over-HTTP requires chunked transfer encoding [0]
- +## which is not supported by Nginx < 1.3.9 [1]. As a result, pushing a large object
- +## with Git (i.e. a single large file) can lead to a 411 error. In theory you can get
- +## around this by tweaking this configuration file and either:
- +## - installing an old version of Nginx with the chunkin module [2] compiled in, or
- +## - using a newer version of Nginx.
- +##
- +## At the time of writing we do not know if either of these theoretical solutions works.
- +## As a workaround users can use Git over SSH to push large files.
- +##
- +## [0] https://git.kernel.org/cgit/git/git.git/tree/Documentation/technical/http-protocol.txt#n99
- +## [1] https://github.com/agentzh/chunkin-nginx-module#status
- +## [2] https://github.com/agentzh/chunkin-nginx-module
- +##
- +###################################
- +## configuration ##
- +###################################
- +
- +
- +server { ## HTTPS server
- + listen *:80;
- +
- +
- + server_name 192.168.100.33;
- + server_tokens off; ## Don't show the nginx version number, a security best practice
- +
- + ## Increase this if you want to upload large attachments
- + ## Or if you want to accept large git objects over http
- + client_max_body_size 0;
- +
- +
- + ## Real IP Module Config
- + ## http://nginx.org/en/docs/http/ngx_http_realip_module.html
- +
- + ## HSTS Config
- + ## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/
- + add_header Strict-Transport-Security "max-age=63072000";
- +
- + # Rails sets a default policy of strict-origin-when-cross-origin, so
- + # hide that and just send the one we've configured for nginx
- + proxy_hide_header Referrer-Policy;
- + add_header Referrer-Policy strict-origin-when-cross-origin;
- +
- + ## Individual nginx logs for this GitLab vhost
- + access_log /var/log/gitlab/nginx/gitlab_access.log gitlab_access;
- + error_log /var/log/gitlab/nginx/gitlab_error.log error;
- +
- + if ($http_host = "") {
- + set $http_host_with_default "192.168.100.33";
- + }
- +
- + if ($http_host != "") {
- + set $http_host_with_default $http_host;
- + }
- +
- + gzip on;
- + gzip_static on;
- + gzip_comp_level 2;
- + gzip_http_version 1.1;
- + gzip_vary on;
- + gzip_disable "msie6";
- + gzip_min_length 250;
- + gzip_proxied no-cache no-store private expired auth;
- + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
- +
- + ## https://github.com/gitlabhq/gitlabhq/issues/694
- + ## Some requests take more than 30 seconds.
- + proxy_read_timeout 3600;
- + proxy_connect_timeout 300;
- + proxy_redirect off;
- + proxy_http_version 1.1;
- +
- + proxy_set_header Host $http_host_with_default;
- + proxy_set_header X-Real-IP $remote_addr;
- + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- + proxy_set_header Upgrade $http_upgrade;
- + proxy_set_header Connection $connection_upgrade;
- + proxy_set_header X-Forwarded-Proto http;
- +
- + location ~ (/api/v\d/jobs/\d+/artifacts$|/import/gitlab_project$|\.git/git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$) {
- + proxy_cache off;
- + proxy_pass http://gitlab-workhorse;
- + proxy_request_buffering off;
- + }
- +
- + location ~ ^/api/v\d {
- + proxy_cache off;
- + proxy_pass http://gitlab-workhorse;
- + proxy_intercept_errors off;
- + }
- +
- +
- + location = /-/kubernetes-agent/ {
- + proxy_pass http://localhost:8150/;
- + proxy_intercept_errors off;
- + }
- +
- + location /-/kubernetes-agent/k8s-proxy/ {
- + proxy_pass http://localhost:8154/;
- + proxy_buffering off;
- + proxy_intercept_errors off;
- + }
- +
- + # health checks configuration
- + include /var/opt/gitlab/nginx/conf/gitlab-health.conf;
- +
- +
- + location / {
- + proxy_cache off;
- + proxy_pass http://gitlab-workhorse;
- + }
- +
- + location /assets {
- + add_header X-Content-Type-Options nosniff;
- + proxy_cache gitlab;
- + proxy_pass http://gitlab-workhorse;
- + }
- +
- + error_page 404 /404.html;
- + error_page 500 /500.html;
- + error_page 502 /502.html;
- + location ~ ^/(404|500|502)(-custom)?\.html$ {
- + root /opt/gitlab/embedded/service/gitlab-rails/public;
- + internal;
- + }
- +
- +
- +} ## end HTTPS server[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/var/opt/gitlab/nginx/conf/gitlab-smartcard-http.conf] action delete (up to date)
- * template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] action create[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] created file /var/opt/gitlab/nginx/conf/gitlab-health.conf
- - create new file /var/opt/gitlab/nginx/conf/gitlab-health.conf[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] updated file contents /var/opt/gitlab/nginx/conf/gitlab-health.conf
- - update content in file /var/opt/gitlab/nginx/conf/gitlab-health.conf from none to 92d04b
- --- /var/opt/gitlab/nginx/conf/gitlab-health.conf 2023-06-12 08:52:53.851508373 +0000
- +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-health20230612-2522091-murp3t.conf 2023-06-12 08:52:53.851508373 +0000
- @@ -1,29 +1,58 @@
- +# This file is managed by gitlab-ctl. Manual changes will be
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
- +# and run `sudo gitlab-ctl reconfigure`.
- +
- +location /error.txt {
- + # return code here is ignored by the error_page directive
- + return 500 'nginx returned $status when communicating with gitlab-workhorse\n';
- +}
- +
- +location /error.json {
- + # return code here is ignored by the error_page directive
- + return 500 '{"error":"nginx returned $status when communicating with gitlab-workhorse","status":$status}\n';
- +}
- +
- +location = /-/health {
- + proxy_cache off;
- + proxy_pass http://gitlab-workhorse;
- + error_page 404 500 502 /error.txt;
- +}
- +location = /-/readiness {
- + proxy_cache off;
- + proxy_pass http://gitlab-workhorse;
- + error_page 404 500 502 /error.json;
- +}
- +location = /-/liveness {
- + proxy_cache off;
- + proxy_pass http://gitlab-workhorse;
- + error_page 404 500 502 /error.json;
- +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date)
- * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date)
- * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date)
- * template[/var/opt/gitlab/nginx/conf/gitlab-kas.conf] action delete (up to date)
- * template[/var/opt/gitlab/nginx/conf/nginx-status.conf] action create[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] created file /var/opt/gitlab/nginx/conf/nginx-status.conf
- - create new file /var/opt/gitlab/nginx/conf/nginx-status.conf[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] updated file contents /var/opt/gitlab/nginx/conf/nginx-status.conf
- - update content in file /var/opt/gitlab/nginx/conf/nginx-status.conf from none to 74440c
- --- /var/opt/gitlab/nginx/conf/nginx-status.conf 2023-06-12 08:52:53.907508217 +0000
- +++ /var/opt/gitlab/nginx/conf/.chef-nginx-status20230612-2522091-hjco70.conf 2023-06-12 08:52:53.907508217 +0000
- @@ -1,28 +1,56 @@
- +server {
- + listen *:8060;
- + server_name localhost;
- + location /nginx_status {
- + stub_status;
- + server_tokens off;
- + access_log off;
- + allow 127.0.0.1;
- + deny all;
- + }
- + location /metrics {
- + vhost_traffic_status_display;
- + vhost_traffic_status_display_format prometheus;
- + server_tokens off;
- + access_log off;
- + allow 127.0.0.1;
- + deny all;
- + }
- +
- + location /rails-metrics {
- + proxy_cache off;
- + proxy_pass http://gitlab-workhorse/-/metrics;
- + server_tokens off;
- + access_log off;
- + allow 127.0.0.1;
- + deny all;
- + }
- +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * consul_service[nginx] action delete
- * file[/var/opt/gitlab/consul/config.d/nginx-service.json] action delete (up to date)
- (up to date)
- * template[/var/opt/gitlab/nginx/conf/nginx.conf] action create[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] created file /var/opt/gitlab/nginx/conf/nginx.conf
- - create new file /var/opt/gitlab/nginx/conf/nginx.conf[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] updated file contents /var/opt/gitlab/nginx/conf/nginx.conf
- - update content in file /var/opt/gitlab/nginx/conf/nginx.conf from none to dd81f1
- --- /var/opt/gitlab/nginx/conf/nginx.conf 2023-06-12 08:52:53.935508140 +0000
- +++ /var/opt/gitlab/nginx/conf/.chef-nginx20230612-2522091-kyz5o6.conf 2023-06-12 08:52:53.935508140 +0000
- @@ -1,94 +1,188 @@
- +# This file is managed by gitlab-ctl. Manual changes will be
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
- +# and run `sudo gitlab-ctl reconfigure`.
- +
- +user gitlab-www gitlab-www;
- +worker_processes 1;
- +error_log stderr;
- +pid nginx.pid;
- +
- +daemon off;
- +
- +events {
- + worker_connections 10240;
- +}
- +
- +http {
- + log_format gitlab_access '$remote_addr - $remote_user [$time_local] "$request_method $filtered_request_uri $server_protocol" $status $body_bytes_sent "$filtered_http_referer" "$http_user_agent" $gzip_ratio';
- + log_format gitlab_mattermost_access '$remote_addr - $remote_user [$time_local] "$request_method $filtered_request_uri $server_protocol" $status $body_bytes_sent "$filtered_http_referer" "$http_user_agent" $gzip_ratio';
- +
- + hide_server_tokens off;
- +
- + server_names_hash_bucket_size 64;
- +
- + sendfile on;
- + tcp_nopush on;
- + tcp_nodelay on;
- +
- + keepalive_timeout 65;
- + keepalive_time 1h;
- +
- + gzip on;
- + gzip_http_version 1.1;
- + gzip_comp_level 2;
- + gzip_proxied no-cache no-store private expired auth;
- + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
- +
- + include /opt/gitlab/embedded/conf/mime.types;
- +
- + proxy_cache_path proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2;
- + proxy_cache gitlab;
- +
- + map $http_upgrade $connection_upgrade {
- + default upgrade;
- + '' close;
- + }
- +
- + # Remove private_token from the request URI
- + # In: /foo?private_token=unfiltered&authenticity_token=unfiltered&rss_token=unfiltered&...
- + # Out: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...
- + map $request_uri $temp_request_uri_1 {
- + default $request_uri;
- + ~(?i)^(?<start>.*)(?<temp>[\?&]private[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
- + }
- +
- + # Remove authenticity_token from the request URI
- + # In: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...
- + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...
- + map $temp_request_uri_1 $temp_request_uri_2 {
- + default $temp_request_uri_1;
- + ~(?i)^(?<start>.*)(?<temp>[\?&]authenticity[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
- + }
- +
- + # Remove rss_token from the request URI
- + # In: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...
- + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=[FILTERED]&...
- + map $temp_request_uri_2 $filtered_request_uri {
- + default $temp_request_uri_2;
- + ~(?i)^(?<start>.*)(?<temp>[\?&]rss[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
- + }
- +
- + # A version of the referer without the query string
- + map $http_referer $filtered_http_referer {
- + default $http_referer;
- + ~^(?<temp>.*)\? $temp;
- + }
- +
- + # Enable vts status module.
- + vhost_traffic_status_zone;
- +
- + upstream gitlab-workhorse {
- + server unix:/var/opt/gitlab/gitlab-workhorse/sockets/socket;
- + }
- +
- + include /var/opt/gitlab/nginx/conf/gitlab-http.conf;
- +
- +
- +
- +
- +
- +
- + include /var/opt/gitlab/nginx/conf/nginx-status.conf;
- +
- +
- +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- Recipe: nginx::enable
- * service[nginx] action nothing (skipped due to action :nothing)
- * runit_service[nginx] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/nginx] action create[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] created directory /opt/gitlab/sv/nginx
- - create new directory /opt/gitlab/sv/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/nginx/run] action create[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] created file /opt/gitlab/sv/nginx/run
- - create new file /opt/gitlab/sv/nginx/run[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] updated file contents /opt/gitlab/sv/nginx/run
- - update content in file /opt/gitlab/sv/nginx/run from none to d75aea
- --- /opt/gitlab/sv/nginx/run 2023-06-12 08:52:53.959508073 +0000
- +++ /opt/gitlab/sv/nginx/.chef-run20230612-2522091-c9f36h 2023-06-12 08:52:53.959508073 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec 2>&1
- +
- +cd /var/opt/gitlab/nginx
- +exec chpst -P /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/nginx/log] action create[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log] created directory /opt/gitlab/sv/nginx/log
- - create new directory /opt/gitlab/sv/nginx/log[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/nginx/log/main] action create[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log/main] created directory /opt/gitlab/sv/nginx/log/main
- - create new directory /opt/gitlab/sv/nginx/log/main[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log/main] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log/main] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/nginx/log/config] action create[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] created file /opt/gitlab/sv/nginx/log/config
- - create new file /opt/gitlab/sv/nginx/log/config[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] updated file contents /opt/gitlab/sv/nginx/log/config
- - update content in file /opt/gitlab/sv/nginx/log/config from none to 623c00
- --- /opt/gitlab/sv/nginx/log/config 2023-06-12 08:52:53.979508017 +0000
- +++ /opt/gitlab/sv/nginx/log/.chef-config20230612-2522091-xqkqpj 2023-06-12 08:52:53.975508028 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] sending create action to ruby_block[verify_chown_persisted_on_nginx] (immediate)
- * ruby_block[verify_chown_persisted_on_nginx] action create[2023-06-12T08:52:53+00:00] INFO: ruby_block[verify_chown_persisted_on_nginx] called
- - execute the ruby block verify_chown_persisted_on_nginx
- * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/nginx/config] action create[2023-06-12T08:52:53+00:00] INFO: link[/var/log/gitlab/nginx/config] created
- - create symlink at /var/log/gitlab/nginx/config to /opt/gitlab/sv/nginx/log/config
- * template[/opt/gitlab/sv/nginx/log/run] action create[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] created file /opt/gitlab/sv/nginx/log/run
- - create new file /opt/gitlab/sv/nginx/log/run[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] updated file contents /opt/gitlab/sv/nginx/log/run
- - update content in file /opt/gitlab/sv/nginx/log/run from none to 2d00df
- --- /opt/gitlab/sv/nginx/log/run 2023-06-12 08:52:53.991507984 +0000
- +++ /opt/gitlab/sv/nginx/log/.chef-run20230612-2522091-ml6z7r 2023-06-12 08:52:53.991507984 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/nginx[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] owner changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] group changed to 0
- [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/nginx/env] action create[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/env] created directory /opt/gitlab/sv/nginx/env
- - create new directory /opt/gitlab/sv/nginx/env[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/env] owner changed to 0
- [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/env] group changed to 0
- [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/nginx/control] action create[2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/control] created directory /opt/gitlab/sv/nginx/control
- - create new directory /opt/gitlab/sv/nginx/control[2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/control] owner changed to 0
- [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/control] group changed to 0
- [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/nginx] action create[2023-06-12T08:52:54+00:00] INFO: link[/opt/gitlab/init/nginx] created
- - create symlink at /opt/gitlab/init/nginx to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:52:54+00:00] INFO: template[/opt/gitlab/sv/nginx/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:52:54+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/nginx] action create (up to date)
- * template[/opt/gitlab/sv/nginx/run] action create (up to date)
- * directory[/opt/gitlab/sv/nginx/log] action create (up to date)
- * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date)
- * template[/opt/gitlab/sv/nginx/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/nginx/config] action create (up to date)
- * template[/opt/gitlab/sv/nginx/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/nginx/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/nginx/control] action create (up to date)
- * link[/opt/gitlab/init/nginx] action create (up to date)
- * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/nginx] action create[2023-06-12T08:52:54+00:00] INFO: link[/opt/gitlab/service/nginx] created
- - create symlink at /opt/gitlab/service/nginx to /opt/gitlab/sv/nginx
- * ruby_block[wait for nginx service socket] action run[2023-06-12T08:52:59+00:00] INFO: ruby_block[wait for nginx service socket] called
- - execute the ruby block wait for nginx service socket
- * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:00+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:53:00+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/nginx] action create (up to date)
- * template[/opt/gitlab/sv/nginx/run] action create (up to date)
- * directory[/opt/gitlab/sv/nginx/log] action create (up to date)
- * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date)
- * template[/opt/gitlab/sv/nginx/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/nginx/config] action create (up to date)
- * template[/opt/gitlab/sv/nginx/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/nginx/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/nginx/control] action create (up to date)
- * link[/opt/gitlab/init/nginx] action create (up to date)
- * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/nginx] action create (up to date)
- * ruby_block[wait for nginx service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:00+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/nginx] action create (up to date)
- * ruby_block[wait for nginx service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
- * execute[reload nginx] action nothing (skipped due to action :nothing)
- Recipe: gitlab::nginx
- * execute[/opt/gitlab/bin/gitlab-ctl start nginx] action run
- [execute] ok: run: nginx: (pid 2523525) 3s
- [2023-06-12T08:53:01+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start nginx] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start nginx
- Recipe: gitlab::remote-syslog_disable
- * service[remote-syslog] action nothing (skipped due to action :nothing)
- * runit_service[remote-syslog] action disable
- * ruby_block[disable remote-syslog] action run (skipped due to only_if)
- (up to date)
- Recipe: gitlab::bootstrap
- * file[/var/opt/gitlab/bootstrapped] action create[2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] created file /var/opt/gitlab/bootstrapped
- - create new file /var/opt/gitlab/bootstrapped[2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] updated file contents /var/opt/gitlab/bootstrapped
- - update content in file /var/opt/gitlab/bootstrapped from none to 4ae00c
- --- /var/opt/gitlab/bootstrapped 2023-06-12 08:53:01.211487880 +0000
- +++ /var/opt/gitlab/.chef-bootstrapped20230612-2522091-e8pveq 2023-06-12 08:53:01.211487880 +0000
- @@ -1 +1,2 @@
- +All your bootstraps are belong to Chef[2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] mode changed to 600
- - change mode from '' to '0600'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- Recipe: gitlab::storage-check_disable
- * service[storage-check] action nothing (skipped due to action :nothing)
- * runit_service[storage-check] action disable
- * ruby_block[disable storage-check] action run (skipped due to only_if)
- (up to date)
- Recipe: gitlab-pages::disable
- * service[gitlab-pages] action nothing (skipped due to action :nothing)
- * runit_service[gitlab-pages] action disable
- * ruby_block[disable gitlab-pages] action run (skipped due to only_if)
- (up to date)
- Recipe: registry::disable
- * service[registry] action nothing (skipped due to action :nothing)
- * runit_service[registry] action disable
- * ruby_block[disable registry] action run (skipped due to only_if)
- (up to date)
- Recipe: mattermost::disable
- * service[mattermost] action nothing (skipped due to action :nothing)
- * runit_service[mattermost] action disable
- * ruby_block[disable mattermost] action run (skipped due to only_if)
- (up to date)
- Recipe: letsencrypt::disable
- * crond_job[letsencrypt-renew] action delete
- * file[/var/opt/gitlab/crond/letsencrypt-renew] action delete (up to date)
- (up to date)
- Recipe: gitlab::gitlab-healthcheck
- * template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] created file /opt/gitlab/etc/gitlab-healthcheck-rc
- - create new file /opt/gitlab/etc/gitlab-healthcheck-rc[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] updated file contents /opt/gitlab/etc/gitlab-healthcheck-rc
- - update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from none to f612c8
- --- /opt/gitlab/etc/gitlab-healthcheck-rc 2023-06-12 08:53:01.243487791 +0000
- +++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20230612-2522091-va0903 2023-06-12 08:53:01.243487791 +0000
- @@ -1,2 +1,4 @@
- +url='http://localhost:80/help'
- +flags=(--insecure)[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] group changed to 0
- - change owner from '' to 'root'
- - change group from '' to 'root'
- Recipe: monitoring::pgbouncer-exporter_disable
- * service[pgbouncer-exporter] action nothing (skipped due to action :nothing)
- * runit_service[pgbouncer-exporter] action disable
- * ruby_block[disable pgbouncer-exporter] action run (skipped due to only_if)
- (up to date)
- Recipe: monitoring::user
- * account[Prometheus user and group] action create
- * group[Prometheus user and group] action create[2023-06-12T08:53:01+00:00] INFO: group[Prometheus user and group] created
- - create group gitlab-prometheus
- * linux_user[Prometheus user and group] action create[2023-06-12T08:53:01+00:00] INFO: linux_user[Prometheus user and group] created
- - create user gitlab-prometheus
- Recipe: monitoring::node-exporter
- * directory[/var/log/gitlab/node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: directory[/var/log/gitlab/node-exporter] created directory /var/log/gitlab/node-exporter
- - create new directory /var/log/gitlab/node-exporter[2023-06-12T08:53:01+00:00] INFO: directory[/var/log/gitlab/node-exporter] owner changed to 994
- [2023-06-12T08:53:01+00:00] INFO: directory[/var/log/gitlab/node-exporter] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-prometheus'
- * directory[/opt/gitlab/etc/node-exporter/env] action create[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/etc/node-exporter/env] created directory /opt/gitlab/etc/node-exporter/env
- - create new directory /opt/gitlab/etc/node-exporter/env[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/etc/node-exporter/env] owner changed to 994
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/etc/node-exporter/env] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-prometheus'
- * env_dir[/opt/gitlab/etc/node-exporter/env] action create
- * directory[/opt/gitlab/etc/node-exporter/env] action create (up to date)
- * file[/opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR] action create[2023-06-12T08:53:01+00:00] INFO: file[/opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR] created file /opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR
- - create new file /opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR[2023-06-12T08:53:01+00:00] INFO: file[/opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR] updated file contents /opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR
- - update content in file /opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR from none to 4f45cf
- - suppressed sensitive resource
- * directory[/var/opt/gitlab/node-exporter/textfile_collector] action create[2023-06-12T08:53:01+00:00] INFO: directory[/var/opt/gitlab/node-exporter/textfile_collector] created directory /var/opt/gitlab/node-exporter/textfile_collector
- - create new directory /var/opt/gitlab/node-exporter/textfile_collector[2023-06-12T08:53:01+00:00] INFO: directory[/var/opt/gitlab/node-exporter/textfile_collector] owner changed to 994
- [2023-06-12T08:53:01+00:00] INFO: directory[/var/opt/gitlab/node-exporter/textfile_collector] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'gitlab-prometheus'
- * service[node-exporter] action nothing (skipped due to action :nothing)
- * runit_service[node-exporter] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter] created directory /opt/gitlab/sv/node-exporter
- - create new directory /opt/gitlab/sv/node-exporter[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/node-exporter/run] action create[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] created file /opt/gitlab/sv/node-exporter/run
- - create new file /opt/gitlab/sv/node-exporter/run[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] updated file contents /opt/gitlab/sv/node-exporter/run
- - update content in file /opt/gitlab/sv/node-exporter/run from none to 744544
- --- /opt/gitlab/sv/node-exporter/run 2023-06-12 08:53:01.499487076 +0000
- +++ /opt/gitlab/sv/node-exporter/.chef-run20230612-2522091-xiuwyk 2023-06-12 08:53:01.499487076 +0000
- @@ -1,8 +1,16 @@
- +#!/bin/sh
- +exec 2>&1
- +
- +umask 077
- +exec chpst -P -e /opt/gitlab/etc/node-exporter/env \
- + -U gitlab-prometheus:gitlab-prometheus \
- + -u gitlab-prometheus:gitlab-prometheus \
- + /opt/gitlab/embedded/bin/node_exporter --web.listen-address=localhost:9100 --collector.mountstats --collector.runit --collector.runit.servicedir=/opt/gitlab/sv --collector.textfile.directory=/var/opt/gitlab/node-exporter/textfile_collector[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/node-exporter/log] action create[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log] created directory /opt/gitlab/sv/node-exporter/log
- - create new directory /opt/gitlab/sv/node-exporter/log[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/node-exporter/log/main] action create[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log/main] created directory /opt/gitlab/sv/node-exporter/log/main
- - create new directory /opt/gitlab/sv/node-exporter/log/main[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log/main] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log/main] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/node-exporter/log/config] action create[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] created file /opt/gitlab/sv/node-exporter/log/config
- - create new file /opt/gitlab/sv/node-exporter/log/config[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] updated file contents /opt/gitlab/sv/node-exporter/log/config
- - update content in file /opt/gitlab/sv/node-exporter/log/config from none to 623c00
- --- /opt/gitlab/sv/node-exporter/log/config 2023-06-12 08:53:01.519487021 +0000
- +++ /opt/gitlab/sv/node-exporter/log/.chef-config20230612-2522091-y8ojao 2023-06-12 08:53:01.519487021 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] sending create action to ruby_block[verify_chown_persisted_on_node-exporter] (immediate)
- * ruby_block[verify_chown_persisted_on_node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: ruby_block[verify_chown_persisted_on_node-exporter] called
- - execute the ruby block verify_chown_persisted_on_node-exporter
- * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/node-exporter/config] action create[2023-06-12T08:53:01+00:00] INFO: link[/var/log/gitlab/node-exporter/config] created
- - create symlink at /var/log/gitlab/node-exporter/config to /opt/gitlab/sv/node-exporter/log/config
- * template[/opt/gitlab/sv/node-exporter/log/run] action create[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] created file /opt/gitlab/sv/node-exporter/log/run
- - create new file /opt/gitlab/sv/node-exporter/log/run[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] updated file contents /opt/gitlab/sv/node-exporter/log/run
- - update content in file /opt/gitlab/sv/node-exporter/log/run from none to ed81f2
- --- /opt/gitlab/sv/node-exporter/log/run 2023-06-12 08:53:01.539486965 +0000
- +++ /opt/gitlab/sv/node-exporter/log/.chef-run20230612-2522091-fihvtr 2023-06-12 08:53:01.539486965 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/node-exporter[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/node-exporter/env] action create[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/env] created directory /opt/gitlab/sv/node-exporter/env
- - create new directory /opt/gitlab/sv/node-exporter/env[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/env] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/env] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/node-exporter/control] action create[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/control] created directory /opt/gitlab/sv/node-exporter/control
- - create new directory /opt/gitlab/sv/node-exporter/control[2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/control] owner changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/control] group changed to 0
- [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: link[/opt/gitlab/init/node-exporter] created
- - create symlink at /opt/gitlab/init/node-exporter to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/node-exporter] action create (up to date)
- * template[/opt/gitlab/sv/node-exporter/run] action create (up to date)
- * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date)
- * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date)
- * template[/opt/gitlab/sv/node-exporter/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/node-exporter/config] action create (up to date)
- * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/node-exporter/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/node-exporter/control] action create (up to date)
- * link[/opt/gitlab/init/node-exporter] action create (up to date)
- * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: link[/opt/gitlab/service/node-exporter] created
- - create symlink at /opt/gitlab/service/node-exporter to /opt/gitlab/sv/node-exporter
- * ruby_block[wait for node-exporter service socket] action run[2023-06-12T08:53:04+00:00] INFO: ruby_block[wait for node-exporter service socket] called
- - execute the ruby block wait for node-exporter service socket
- * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:04+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:53:04+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/node-exporter] action create (up to date)
- * template[/opt/gitlab/sv/node-exporter/run] action create (up to date)
- * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date)
- * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date)
- * template[/opt/gitlab/sv/node-exporter/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/node-exporter/config] action create (up to date)
- * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/node-exporter/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/node-exporter/control] action create (up to date)
- * link[/opt/gitlab/init/node-exporter] action create (up to date)
- * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/node-exporter] action create (up to date)
- * ruby_block[wait for node-exporter service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:06+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/node-exporter] action create (up to date)
- * ruby_block[wait for node-exporter service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
- * execute[/opt/gitlab/bin/gitlab-ctl start node-exporter] action run
- [execute] ok: run: node-exporter: (pid 2523620) 2s
- [2023-06-12T08:53:06+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start node-exporter] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start node-exporter
- * consul_service[node-exporter] action delete
- * file[/var/opt/gitlab/consul/config.d/node-exporter-service.json] action delete (up to date)
- (up to date)
- Recipe: monitoring::gitlab-exporter
- * directory[/var/opt/gitlab/gitlab-exporter] action create[2023-06-12T08:53:06+00:00] INFO: directory[/var/opt/gitlab/gitlab-exporter] created directory /var/opt/gitlab/gitlab-exporter
- - create new directory /var/opt/gitlab/gitlab-exporter[2023-06-12T08:53:06+00:00] INFO: directory[/var/opt/gitlab/gitlab-exporter] owner changed to 997
- [2023-06-12T08:53:06+00:00] INFO: directory[/var/opt/gitlab/gitlab-exporter] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'git'
- * directory[/var/log/gitlab/gitlab-exporter] action create[2023-06-12T08:53:06+00:00] INFO: directory[/var/log/gitlab/gitlab-exporter] created directory /var/log/gitlab/gitlab-exporter
- - create new directory /var/log/gitlab/gitlab-exporter[2023-06-12T08:53:06+00:00] INFO: directory[/var/log/gitlab/gitlab-exporter] owner changed to 997
- [2023-06-12T08:53:06+00:00] INFO: directory[/var/log/gitlab/gitlab-exporter] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'git'
- * env_dir[/opt/gitlab/etc/gitlab-exporter/env] action create
- * directory[/opt/gitlab/etc/gitlab-exporter/env] action create[2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/etc/gitlab-exporter/env] created directory /opt/gitlab/etc/gitlab-exporter/env
- - create new directory /opt/gitlab/etc/gitlab-exporter/env
- * file[/opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF] action create[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF] created file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF
- - create new file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF] updated file contents /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF from none to 2ea29b
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS] action create[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS] created file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS
- - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS] updated file contents /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS from none to 47b250
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO] action create[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO] created file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO
- - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO] updated file contents /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO from none to c945fb
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO] action create[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO] created file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO
- - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO] updated file contents /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO from none to 8a60e9
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR] action create[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR] created file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR
- - create new file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR] updated file contents /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR from none to 4f45cf
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE] action create[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE] created file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE
- - create new file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE[2023-06-12T08:53:06+00:00] INFO: file[/opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE] updated file contents /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE from none to f7ce84
- - suppressed sensitive resource
- * template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] action create[2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] created file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml
- - create new file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml[2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] updated file contents /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml
- - update content in file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml from none to d60133
- - suppressed sensitive resource[2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] owner changed to 997
- [2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] mode changed to 600
- - change mode from '' to '0600'
- - change owner from '' to 'git'
- [2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] not queuing delayed action restart on runit_service[gitlab-exporter] (delayed), as it's already been queued
- * version_file[Create version file for GitLab-Exporter] action create
- * file[/var/opt/gitlab/gitlab-exporter/RUBY_VERSION] action create[2023-06-12T08:53:06+00:00] INFO: file[/var/opt/gitlab/gitlab-exporter/RUBY_VERSION] created file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION
- - create new file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION[2023-06-12T08:53:06+00:00] INFO: file[/var/opt/gitlab/gitlab-exporter/RUBY_VERSION] updated file contents /var/opt/gitlab/gitlab-exporter/RUBY_VERSION
- - update content in file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION from none to b4a021
- --- /var/opt/gitlab/gitlab-exporter/RUBY_VERSION 2023-06-12 08:53:06.971471792 +0000
- +++ /var/opt/gitlab/gitlab-exporter/.chef-RUBY_VERSION20230612-2522091-17e8qb 2023-06-12 08:53:06.967471804 +0000
- @@ -1 +1,2 @@
- +ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux]
- [2023-06-12T08:53:06+00:00] INFO: version_file[Create version file for GitLab-Exporter] not queuing delayed action restart on runit_service[gitlab-exporter] (delayed), as it's already been queued
- * service[gitlab-exporter] action nothing (skipped due to action :nothing)
- * runit_service[gitlab-exporter] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-exporter] action create[2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter] created directory /opt/gitlab/sv/gitlab-exporter
- - create new directory /opt/gitlab/sv/gitlab-exporter[2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter] owner changed to 0
- [2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter] group changed to 0
- [2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/gitlab-exporter/run] action create[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] created file /opt/gitlab/sv/gitlab-exporter/run
- - create new file /opt/gitlab/sv/gitlab-exporter/run[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] updated file contents /opt/gitlab/sv/gitlab-exporter/run
- - update content in file /opt/gitlab/sv/gitlab-exporter/run from none to 455cb2
- --- /opt/gitlab/sv/gitlab-exporter/run 2023-06-12 08:53:06.995471725 +0000
- +++ /opt/gitlab/sv/gitlab-exporter/.chef-run20230612-2522091-c8olqx 2023-06-12 08:53:06.995471725 +0000
- @@ -1,9 +1,18 @@
- +#!/bin/sh
- +exec 2>&1
- +
- +umask 077
- +exec chpst -P -e /opt/gitlab/etc/gitlab-exporter/env \
- + -U git:git \
- + -u git:git \
- + /opt/gitlab/embedded/bin/gitlab-exporter web \
- + -c /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] owner changed to 0
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] group changed to 0
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-exporter/log] action create[2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log] created directory /opt/gitlab/sv/gitlab-exporter/log
- - create new directory /opt/gitlab/sv/gitlab-exporter/log[2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log] owner changed to 0
- [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log] group changed to 0
- [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create[2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log/main] created directory /opt/gitlab/sv/gitlab-exporter/log/main
- - create new directory /opt/gitlab/sv/gitlab-exporter/log/main[2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log/main] owner changed to 0
- [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log/main] group changed to 0
- [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] created file /opt/gitlab/sv/gitlab-exporter/log/config
- - create new file /opt/gitlab/sv/gitlab-exporter/log/config[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] updated file contents /opt/gitlab/sv/gitlab-exporter/log/config
- - update content in file /opt/gitlab/sv/gitlab-exporter/log/config from none to 623c00
- --- /opt/gitlab/sv/gitlab-exporter/log/config 2023-06-12 08:53:07.015471669 +0000
- +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-config20230612-2522091-bjelua 2023-06-12 08:53:07.015471669 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] owner changed to 0
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] group changed to 0
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] sending create action to ruby_block[verify_chown_persisted_on_gitlab-exporter] (immediate)
- * ruby_block[verify_chown_persisted_on_gitlab-exporter] action create[2023-06-12T08:53:07+00:00] INFO: ruby_block[verify_chown_persisted_on_gitlab-exporter] called
- - execute the ruby block verify_chown_persisted_on_gitlab-exporter
- * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-exporter/config] action create[2023-06-12T08:53:07+00:00] INFO: link[/var/log/gitlab/gitlab-exporter/config] created
- - create symlink at /var/log/gitlab/gitlab-exporter/config to /opt/gitlab/sv/gitlab-exporter/log/config
- * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] created file /opt/gitlab/sv/gitlab-exporter/log/run
- - create new file /opt/gitlab/sv/gitlab-exporter/log/run[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] updated file contents /opt/gitlab/sv/gitlab-exporter/log/run
- - update content in file /opt/gitlab/sv/gitlab-exporter/log/run from none to 0b0a31
- --- /opt/gitlab/sv/gitlab-exporter/log/run 2023-06-12 08:53:07.035471613 +0000
- +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-run20230612-2522091-4b3h7j 2023-06-12 08:53:07.035471613 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/gitlab-exporter[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] owner changed to 0
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] group changed to 0
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/gitlab-exporter/env] action create[2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/env] created directory /opt/gitlab/sv/gitlab-exporter/env
- - create new directory /opt/gitlab/sv/gitlab-exporter/env[2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/env] owner changed to 0
- [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/env] group changed to 0
- [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-exporter/control] action create[2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/control] created directory /opt/gitlab/sv/gitlab-exporter/control
- - create new directory /opt/gitlab/sv/gitlab-exporter/control[2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/control] owner changed to 0
- [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/control] group changed to 0
- [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/gitlab-exporter] action create[2023-06-12T08:53:07+00:00] INFO: link[/opt/gitlab/init/gitlab-exporter] created
- - create symlink at /opt/gitlab/init/gitlab-exporter to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date)
- * link[/opt/gitlab/init/gitlab-exporter] action create (up to date)
- * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-exporter] action create[2023-06-12T08:53:07+00:00] INFO: link[/opt/gitlab/service/gitlab-exporter] created
- - create symlink at /opt/gitlab/service/gitlab-exporter to /opt/gitlab/sv/gitlab-exporter
- * ruby_block[wait for gitlab-exporter service socket] action run[2023-06-12T08:53:11+00:00] INFO: ruby_block[wait for gitlab-exporter service socket] called
- - execute the ruby block wait for gitlab-exporter service socket
- * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:12+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:53:12+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date)
- * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date)
- * link[/opt/gitlab/init/gitlab-exporter] action create (up to date)
- * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-exporter] action create (up to date)
- * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:12+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/gitlab-exporter] action create (up to date)
- * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
- * execute[/opt/gitlab/bin/gitlab-ctl start gitlab-exporter] action run
- [execute] ok: run: gitlab-exporter: (pid 2523688) 3s
- [2023-06-12T08:53:13+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start gitlab-exporter] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start gitlab-exporter
- * consul_service[gitlab-exporter] action delete
- * file[/var/opt/gitlab/consul/config.d/gitlab-exporter-service.json] action delete (up to date)
- (up to date)
- Recipe: monitoring::redis-exporter
- * directory[/var/log/gitlab/redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: directory[/var/log/gitlab/redis-exporter] created directory /var/log/gitlab/redis-exporter
- - create new directory /var/log/gitlab/redis-exporter[2023-06-12T08:53:13+00:00] INFO: directory[/var/log/gitlab/redis-exporter] owner changed to 996
- [2023-06-12T08:53:13+00:00] INFO: directory[/var/log/gitlab/redis-exporter] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-redis'
- * directory[/opt/gitlab/etc/redis-exporter/env] action create[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/etc/redis-exporter/env] created directory /opt/gitlab/etc/redis-exporter/env
- - create new directory /opt/gitlab/etc/redis-exporter/env[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/etc/redis-exporter/env] owner changed to 996
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/etc/redis-exporter/env] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-redis'
- * env_dir[/opt/gitlab/etc/redis-exporter/env] action create
- * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date)
- * file[/opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR] action create[2023-06-12T08:53:13+00:00] INFO: file[/opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR] created file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR
- - create new file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR[2023-06-12T08:53:13+00:00] INFO: file[/opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR] updated file contents /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR
- - update content in file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR from none to 4f45cf
- - suppressed sensitive resource
- * service[redis-exporter] action nothing (skipped due to action :nothing)
- * runit_service[redis-exporter] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter] created directory /opt/gitlab/sv/redis-exporter
- - create new directory /opt/gitlab/sv/redis-exporter[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter] owner changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter] group changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/redis-exporter/run] action create[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] created file /opt/gitlab/sv/redis-exporter/run
- - create new file /opt/gitlab/sv/redis-exporter/run[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] updated file contents /opt/gitlab/sv/redis-exporter/run
- - update content in file /opt/gitlab/sv/redis-exporter/run from none to a21d3f
- --- /opt/gitlab/sv/redis-exporter/run 2023-06-12 08:53:13.415453743 +0000
- +++ /opt/gitlab/sv/redis-exporter/.chef-run20230612-2522091-gjk8bi 2023-06-12 08:53:13.411453754 +0000
- @@ -1,8 +1,16 @@
- +#!/bin/sh
- +exec 2>&1
- +
- +umask 077
- +exec chpst -P -e /opt/gitlab/etc/redis-exporter/env \
- + -U gitlab-redis:git \
- + -u gitlab-redis:git \
- + /opt/gitlab/embedded/bin/redis_exporter --web.listen-address=localhost:9121 --redis.addr=unix:///var/opt/gitlab/redis/redis.socket[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] owner changed to 0
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] group changed to 0
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/redis-exporter/log] action create[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log] created directory /opt/gitlab/sv/redis-exporter/log
- - create new directory /opt/gitlab/sv/redis-exporter/log[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log] owner changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log] group changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/redis-exporter/log/main] action create[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log/main] created directory /opt/gitlab/sv/redis-exporter/log/main
- - create new directory /opt/gitlab/sv/redis-exporter/log/main[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log/main] owner changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log/main] group changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/redis-exporter/log/config] action create[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] created file /opt/gitlab/sv/redis-exporter/log/config
- - create new file /opt/gitlab/sv/redis-exporter/log/config[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] updated file contents /opt/gitlab/sv/redis-exporter/log/config
- - update content in file /opt/gitlab/sv/redis-exporter/log/config from none to 623c00
- --- /opt/gitlab/sv/redis-exporter/log/config 2023-06-12 08:53:13.431453698 +0000
- +++ /opt/gitlab/sv/redis-exporter/log/.chef-config20230612-2522091-8ng2or 2023-06-12 08:53:13.431453698 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] owner changed to 0
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] group changed to 0
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] sending create action to ruby_block[verify_chown_persisted_on_redis-exporter] (immediate)
- * ruby_block[verify_chown_persisted_on_redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: ruby_block[verify_chown_persisted_on_redis-exporter] called
- - execute the ruby block verify_chown_persisted_on_redis-exporter
- * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/redis-exporter/config] action create[2023-06-12T08:53:13+00:00] INFO: link[/var/log/gitlab/redis-exporter/config] created
- - create symlink at /var/log/gitlab/redis-exporter/config to /opt/gitlab/sv/redis-exporter/log/config
- * template[/opt/gitlab/sv/redis-exporter/log/run] action create[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] created file /opt/gitlab/sv/redis-exporter/log/run
- - create new file /opt/gitlab/sv/redis-exporter/log/run[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] updated file contents /opt/gitlab/sv/redis-exporter/log/run
- - update content in file /opt/gitlab/sv/redis-exporter/log/run from none to 2dc23f
- --- /opt/gitlab/sv/redis-exporter/log/run 2023-06-12 08:53:13.447453653 +0000
- +++ /opt/gitlab/sv/redis-exporter/log/.chef-run20230612-2522091-9vd2z0 2023-06-12 08:53:13.447453653 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/redis-exporter[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] owner changed to 0
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] group changed to 0
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/redis-exporter/env] action create[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/env] created directory /opt/gitlab/sv/redis-exporter/env
- - create new directory /opt/gitlab/sv/redis-exporter/env[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/env] owner changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/env] group changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/redis-exporter/control] action create[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/control] created directory /opt/gitlab/sv/redis-exporter/control
- - create new directory /opt/gitlab/sv/redis-exporter/control[2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/control] owner changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/control] group changed to 0
- [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: link[/opt/gitlab/init/redis-exporter] created
- - create symlink at /opt/gitlab/init/redis-exporter to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/redis-exporter] action create (up to date)
- * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date)
- * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date)
- * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date)
- * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/redis-exporter/config] action create (up to date)
- * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date)
- * link[/opt/gitlab/init/redis-exporter] action create (up to date)
- * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: link[/opt/gitlab/service/redis-exporter] created
- - create symlink at /opt/gitlab/service/redis-exporter to /opt/gitlab/sv/redis-exporter
- * ruby_block[wait for redis-exporter service socket] action run[2023-06-12T08:53:17+00:00] INFO: ruby_block[wait for redis-exporter service socket] called
- - execute the ruby block wait for redis-exporter service socket
- * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:18+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:53:18+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/redis-exporter] action create (up to date)
- * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date)
- * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date)
- * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date)
- * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/redis-exporter/config] action create (up to date)
- * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date)
- * link[/opt/gitlab/init/redis-exporter] action create (up to date)
- * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/redis-exporter] action create (up to date)
- * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:19+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/redis-exporter] action create (up to date)
- * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
- * execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] action run
- [execute] ok: run: redis-exporter: (pid 2523749) 4s
- [2023-06-12T08:53:20+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start redis-exporter
- * consul_service[redis-exporter] action delete
- * file[/var/opt/gitlab/consul/config.d/redis-exporter-service.json] action delete (up to date)
- (up to date)
- Recipe: monitoring::prometheus
- * directory[/var/opt/gitlab/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus] created directory /var/opt/gitlab/prometheus
- - create new directory /var/opt/gitlab/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus] owner changed to 994
- [2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'gitlab-prometheus'
- * directory[/var/opt/gitlab/prometheus/rules] action create[2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus/rules] created directory /var/opt/gitlab/prometheus/rules
- - create new directory /var/opt/gitlab/prometheus/rules[2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus/rules] owner changed to 994
- [2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus/rules] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'gitlab-prometheus'
- * directory[/var/log/gitlab/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: directory[/var/log/gitlab/prometheus] created directory /var/log/gitlab/prometheus
- - create new directory /var/log/gitlab/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/var/log/gitlab/prometheus] owner changed to 994
- [2023-06-12T08:53:20+00:00] INFO: directory[/var/log/gitlab/prometheus] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-prometheus'
- * directory[/opt/gitlab/etc/prometheus/env] action create[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/etc/prometheus/env] created directory /opt/gitlab/etc/prometheus/env
- - create new directory /opt/gitlab/etc/prometheus/env[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/etc/prometheus/env] owner changed to 994
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/etc/prometheus/env] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-prometheus'
- * env_dir[/opt/gitlab/etc/prometheus/env] action create
- * directory[/opt/gitlab/etc/prometheus/env] action create (up to date)
- * file[/opt/gitlab/etc/prometheus/env/SSL_CERT_DIR] action create[2023-06-12T08:53:20+00:00] INFO: file[/opt/gitlab/etc/prometheus/env/SSL_CERT_DIR] created file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR
- - create new file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR[2023-06-12T08:53:20+00:00] INFO: file[/opt/gitlab/etc/prometheus/env/SSL_CERT_DIR] updated file contents /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR
- - update content in file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR from none to 4f45cf
- - suppressed sensitive resource
- * execute[reload prometheus] action nothing (skipped due to action :nothing)
- * file[Prometheus config] action create[2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] created file /var/opt/gitlab/prometheus/prometheus.yml
- - create new file /var/opt/gitlab/prometheus/prometheus.yml[2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] updated file contents /var/opt/gitlab/prometheus/prometheus.yml
- - update content in file /var/opt/gitlab/prometheus/prometheus.yml from none to 0fbf9e
- --- /var/opt/gitlab/prometheus/prometheus.yml 2023-06-12 08:53:20.199434685 +0000
- +++ /var/opt/gitlab/prometheus/.chef-prometheus20230612-2522091-a82mwm.yml 2023-06-12 08:53:20.199434685 +0000
- @@ -1,171 +1,342 @@
- +---
- +global:
- + scrape_interval: 15s
- + scrape_timeout: 15s
- + external_labels: {}
- +remote_read: []
- +remote_write: []
- +rule_files:
- +- "/var/opt/gitlab/prometheus/rules/*.rules"
- +scrape_configs:
- +- job_name: prometheus
- + static_configs:
- + - targets:
- + - localhost:9090
- +- job_name: nginx
- + static_configs:
- + - targets:
- + - localhost:8060
- +- job_name: redis
- + static_configs:
- + - targets:
- + - localhost:9121
- +- job_name: postgres
- + static_configs:
- + - targets:
- + - localhost:9187
- +- job_name: node
- + static_configs:
- + - targets:
- + - localhost:9100
- +- job_name: gitlab-workhorse
- + static_configs:
- + - targets:
- + - localhost:9229
- +- job_name: gitlab-rails
- + metrics_path: "/-/metrics"
- + static_configs:
- + - targets:
- + - 127.0.0.1:8080
- + relabel_configs:
- + - source_labels:
- + - __address__
- + regex: 127.0.0.1:(.*)
- + replacement: localhost:$1
- + target_label: instance
- +- job_name: gitlab-sidekiq
- + static_configs:
- + - targets:
- + - 127.0.0.1:8082
- + relabel_configs:
- + - source_labels:
- + - __address__
- + regex: 127.0.0.1:(.*)
- + replacement: localhost:$1
- + target_label: instance
- +- job_name: gitlab_exporter_database
- + metrics_path: "/database"
- + static_configs:
- + - targets:
- + - localhost:9168
- +- job_name: gitlab_exporter_sidekiq
- + metrics_path: "/sidekiq"
- + static_configs:
- + - targets:
- + - localhost:9168
- +- job_name: gitlab_exporter_ruby
- + metrics_path: "/ruby"
- + static_configs:
- + - targets:
- + - localhost:9168
- +- job_name: gitaly
- + static_configs:
- + - targets:
- + - localhost:9236
- +- job_name: kubernetes-cadvisor
- + scheme: https
- + tls_config:
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- + insecure_skip_verify: true
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
- + kubernetes_sd_configs:
- + - role: node
- + api_server: https://kubernetes.default.svc:443
- + tls_config:
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
- + relabel_configs:
- + - action: labelmap
- + regex: __meta_kubernetes_node_label_(.+)
- + - target_label: __address__
- + replacement: kubernetes.default.svc:443
- + - source_labels:
- + - __meta_kubernetes_node_name
- + regex: "(.+)"
- + target_label: __metrics_path__
- + replacement: "/api/v1/nodes/${1}/proxy/metrics/cadvisor"
- + metric_relabel_configs:
- + - source_labels:
- + - pod_name
- + target_label: environment
- + regex: "(.+)-.+-.+"
- +- job_name: kubernetes-nodes
- + scheme: https
- + tls_config:
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- + insecure_skip_verify: true
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
- + kubernetes_sd_configs:
- + - role: node
- + api_server: https://kubernetes.default.svc:443
- + tls_config:
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
- + relabel_configs:
- + - action: labelmap
- + regex: __meta_kubernetes_node_label_(.+)
- + - target_label: __address__
- + replacement: kubernetes.default.svc:443
- + - source_labels:
- + - __meta_kubernetes_node_name
- + regex: "(.+)"
- + target_label: __metrics_path__
- + replacement: "/api/v1/nodes/${1}/proxy/metrics"
- + metric_relabel_configs:
- + - source_labels:
- + - pod_name
- + target_label: environment
- + regex: "(.+)-.+-.+"
- +- job_name: kubernetes-pods
- + tls_config:
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- + insecure_skip_verify: true
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
- + kubernetes_sd_configs:
- + - role: pod
- + api_server: https://kubernetes.default.svc:443
- + tls_config:
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
- + relabel_configs:
- + - source_labels:
- + - __meta_kubernetes_pod_annotation_prometheus_io_scrape
- + action: keep
- + regex: 'true'
- + - source_labels:
- + - __meta_kubernetes_pod_annotation_prometheus_io_path
- + action: replace
- + target_label: __metrics_path__
- + regex: "(.+)"
- + - source_labels:
- + - __address__
- + - __meta_kubernetes_pod_annotation_prometheus_io_port
- + action: replace
- + regex: "([^:]+)(?::[0-9]+)?;([0-9]+)"
- + replacement: "$1:$2"
- + target_label: __address__
- + - action: labelmap
- + regex: __meta_kubernetes_pod_label_(.+)
- + - source_labels:
- + - __meta_kubernetes_namespace
- + action: replace
- + target_label: kubernetes_namespace
- + - source_labels:
- + - __meta_kubernetes_pod_name
- + action: replace
- + target_label: kubernetes_pod_name
- +alerting:
- + alertmanagers:
- + - static_configs:
- + - targets:
- + - localhost:9093[2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] owner changed to 994
- [2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'gitlab-prometheus'
- * service[prometheus] action nothing (skipped due to action :nothing)
- * runit_service[prometheus] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] created directory /opt/gitlab/sv/prometheus
- - create new directory /opt/gitlab/sv/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] owner changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] group changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/prometheus/run] action create[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] created file /opt/gitlab/sv/prometheus/run
- - create new file /opt/gitlab/sv/prometheus/run[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] updated file contents /opt/gitlab/sv/prometheus/run
- - update content in file /opt/gitlab/sv/prometheus/run from none to 60f91b
- --- /opt/gitlab/sv/prometheus/run 2023-06-12 08:53:20.235434583 +0000
- +++ /opt/gitlab/sv/prometheus/.chef-run20230612-2522091-4xsf6q 2023-06-12 08:53:20.235434583 +0000
- @@ -1,8 +1,16 @@
- +#!/bin/sh
- +exec 2>&1
- +
- +umask 077
- +exec chpst -P -e /opt/gitlab/etc/prometheus/env \
- + -U gitlab-prometheus:gitlab-prometheus \
- + -u gitlab-prometheus:gitlab-prometheus \
- + /opt/gitlab/embedded/bin/prometheus --web.listen-address=localhost:9090 --storage.tsdb.path=/var/opt/gitlab/prometheus/data --config.file=/var/opt/gitlab/prometheus/prometheus.yml[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] owner changed to 0
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] group changed to 0
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/prometheus/log] action create[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log] created directory /opt/gitlab/sv/prometheus/log
- - create new directory /opt/gitlab/sv/prometheus/log[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log] owner changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log] group changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/prometheus/log/main] action create[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log/main] created directory /opt/gitlab/sv/prometheus/log/main
- - create new directory /opt/gitlab/sv/prometheus/log/main[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log/main] owner changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log/main] group changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/prometheus/log/config] action create[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] created file /opt/gitlab/sv/prometheus/log/config
- - create new file /opt/gitlab/sv/prometheus/log/config[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] updated file contents /opt/gitlab/sv/prometheus/log/config
- - update content in file /opt/gitlab/sv/prometheus/log/config from none to 623c00
- --- /opt/gitlab/sv/prometheus/log/config 2023-06-12 08:53:20.255434527 +0000
- +++ /opt/gitlab/sv/prometheus/log/.chef-config20230612-2522091-wrx527 2023-06-12 08:53:20.255434527 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] owner changed to 0
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] group changed to 0
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] sending create action to ruby_block[verify_chown_persisted_on_prometheus] (immediate)
- * ruby_block[verify_chown_persisted_on_prometheus] action create[2023-06-12T08:53:20+00:00] INFO: ruby_block[verify_chown_persisted_on_prometheus] called
- - execute the ruby block verify_chown_persisted_on_prometheus
- * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/prometheus/config] action create[2023-06-12T08:53:20+00:00] INFO: link[/var/log/gitlab/prometheus/config] created
- - create symlink at /var/log/gitlab/prometheus/config to /opt/gitlab/sv/prometheus/log/config
- * template[/opt/gitlab/sv/prometheus/log/run] action create[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] created file /opt/gitlab/sv/prometheus/log/run
- - create new file /opt/gitlab/sv/prometheus/log/run[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] updated file contents /opt/gitlab/sv/prometheus/log/run
- - update content in file /opt/gitlab/sv/prometheus/log/run from none to 8afdb7
- --- /opt/gitlab/sv/prometheus/log/run 2023-06-12 08:53:20.279434459 +0000
- +++ /opt/gitlab/sv/prometheus/log/.chef-run20230612-2522091-hai0om 2023-06-12 08:53:20.279434459 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/prometheus[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] owner changed to 0
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] group changed to 0
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/prometheus/env] action create[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/env] created directory /opt/gitlab/sv/prometheus/env
- - create new directory /opt/gitlab/sv/prometheus/env[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/env] owner changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/env] group changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/prometheus/control] action create[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/control] created directory /opt/gitlab/sv/prometheus/control
- - create new directory /opt/gitlab/sv/prometheus/control[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/control] owner changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/control] group changed to 0
- [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: link[/opt/gitlab/init/prometheus] created
- - create symlink at /opt/gitlab/init/prometheus to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/prometheus] action create (up to date)
- * template[/opt/gitlab/sv/prometheus/run] action create (up to date)
- * directory[/opt/gitlab/sv/prometheus/log] action create (up to date)
- * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date)
- * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/prometheus/config] action create (up to date)
- * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/prometheus/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/prometheus/control] action create (up to date)
- * link[/opt/gitlab/init/prometheus] action create (up to date)
- * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: link[/opt/gitlab/service/prometheus] created
- - create symlink at /opt/gitlab/service/prometheus to /opt/gitlab/sv/prometheus
- * ruby_block[wait for prometheus service socket] action run[2023-06-12T08:53:23+00:00] INFO: ruby_block[wait for prometheus service socket] called
- - execute the ruby block wait for prometheus service socket
- * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:24+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:53:24+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/prometheus] action create (up to date)
- * template[/opt/gitlab/sv/prometheus/run] action create (up to date)
- * directory[/opt/gitlab/sv/prometheus/log] action create (up to date)
- * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date)
- * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/prometheus/config] action create (up to date)
- * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/prometheus/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/prometheus/control] action create (up to date)
- * link[/opt/gitlab/init/prometheus] action create (up to date)
- * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/prometheus] action create (up to date)
- * ruby_block[wait for prometheus service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:26+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/prometheus] action create (up to date)
- * ruby_block[wait for prometheus service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
- * consul_service[prometheus] action delete
- * file[/var/opt/gitlab/consul/config.d/prometheus-service.json] action delete (up to date)
- (up to date)
- * execute[/opt/gitlab/bin/gitlab-ctl start prometheus] action run
- [execute] ok: run: prometheus: (pid 2523816) 4s
- [2023-06-12T08:53:26+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start prometheus] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start prometheus
- * template[/var/opt/gitlab/prometheus/rules/gitlab.rules] action create[2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/gitlab.rules] created file /var/opt/gitlab/prometheus/rules/gitlab.rules
- - create new file /var/opt/gitlab/prometheus/rules/gitlab.rules[2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/gitlab.rules] updated file contents /var/opt/gitlab/prometheus/rules/gitlab.rules
- - update content in file /var/opt/gitlab/prometheus/rules/gitlab.rules from none to a55956
- --- /var/opt/gitlab/prometheus/rules/gitlab.rules 2023-06-12 08:53:26.755416211 +0000
- +++ /var/opt/gitlab/prometheus/rules/.chef-gitlab20230612-2522091-6099nd.rules 2023-06-12 08:53:26.755416211 +0000
- @@ -1,492 +1,984 @@
- +---
- +groups:
- +- name: GitLab
- + rules:
- + - record: instance:puma_utilization:ratio
- + expr: >
- + sum by (instance) (
- + puma_active_connections
- + ) /
- + sum by (instance) (
- + puma_max_threads
- + )
- + - record: job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
- + expr: >
- + sum by (job, route, method, code) (
- + rate(gitlab_workhorse_http_request_duration_seconds_count[5m])
- + )
- +
- + - alert: ServiceDown
- + expr: avg_over_time(up[5m]) * 100 < 50
- + annotations:
- + description: The service {{ $labels.job }} instance {{ $labels.instance }} is
- + not responding for more than 50% of the time for 5 minutes.
- + summary: The service {{ $labels.job }} is not responding
- + - alert: RedisDown
- + expr: avg_over_time(redis_up[5m]) * 100 < 50
- + annotations:
- + description: The Redis service {{ $labels.job }} instance {{ $labels.instance
- + }} is not responding for more than 50% of the time for 5 minutes.
- + summary: The Redis service {{ $labels.job }} is not responding
- + - alert: PostgresDown
- + expr: avg_over_time(pg_up[5m]) * 100 < 50
- + annotations:
- + description: The Postgres service {{ $labels.job }} instance {{ $labels.instance
- + }} is not responding for more than 50% of the time for 5 minutes.
- + summary: The Postgres service {{ $labels.job }} is not responding
- + - alert: PumaQueueing
- + expr: avg_over_time(puma_queued_connections[30m]) > 1
- + annotations:
- + description: Puma instance {{ $labels.instance }} is queueing requests with
- + an average of {{ $value | printf "%.1f" }} over the last 30 minutes.
- + summary: Puma is queueing requests
- + - alert: HighPumaUtilization
- + expr: instance:puma_utilization:ratio * 100 > 90
- + for: 60m
- + annotations:
- + description: Puma instance {{ $labels.instance }} has more than 90% thread utilization ({{ $value | printf "%.1f" }}%) over the last 60 minutes.
- + summary: Puma is has high utilization
- + - alert: SidekiqJobsQueuing
- + expr: sum by (name) (sidekiq_queue_size) > 0
- + for: 60m
- + annotations:
- + summary: Sidekiq has jobs queued
- + description: Sidekiq queue {{ $labels.name }} has {{ $value }} jobs queued for 60 minutes.
- + - alert: HighgRPCResourceExhaustedRate
- + expr: >
- + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (
- + rate(grpc_server_handled_total{grpc_code="ResourceExhausted"}[5m])
- + ) /
- + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (
- + rate(grpc_server_handled_total[5m])
- + ) * 100 > 1
- + for: 60m
- + annotations:
- + summary: High gRPC ResourceExhausted error rate
- + description: Job {{ $labels.job }} instance {{ $labels.instance }} gRPC is returning more than 1% ({{ $value | printf "%.1f" }}%) ResourceExhausted errors over the last 60 minutes.
- + - alert: PostgresDatabaseDeadlocks
- + expr: increase(pg_stat_database_deadlocks[5m]) > 0
- + annotations:
- + summary: Postgres database has deadlocks
- + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} deadlocks in the last 5 minutes.
- + - alert: PostgresDatabaseDeadlockCancels
- + expr: increase(pg_stat_database_deadlocks[5m]) > 0
- + annotations:
- + summary: Postgres database has queries canceled due to deadlocks
- + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} queries canceled due to deadlocks in the last 5 minutes.
- + # Low-traffic - < 10 QPS (600 RPM)
- + - alert: WorkhorseHighErrorRate
- + expr: >
- + (
- + sum without (job, code) (
- + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."}
- + ) /
- + sum without (job,code) (
- + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
- + ) < 10
- + ) * 100 > 50
- + annotations:
- + summary: Workhorse has high error rates
- + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 50% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.
- + # High-traffic - >= 10 QPS (600 RPM)
- + - alert: WorkhorseHighErrorRate
- + expr: >
- + (
- + sum without (job, code) (
- + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."}
- + ) /
- + sum without (job,code) (
- + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
- + ) > 10
- + ) * 100 > 10
- + annotations:
- + summary: Workhorse has high error rates
- + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 10% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.
- +
- +###
- +# These metrics are top-level GitLab Service Level Indicators (SLIs). They can
- +# be used to monitor the overall health of a GitLab instance.
- +- name: Service Level Indicators
- + interval: 30s
- + rules:
- + # Service availability.
- + - record: gitlab_sli:job:availability:ratio
- + expr: >
- + avg by (job) (
- + avg_over_time(up[30s])
- + )
- + # Rails worker/thread capacity.
- + - record: gitlab_sli:rails_active_connections:avg30s
- + expr: >
- + sum(avg_over_time(puma_active_connections[30s]))
- + - record: gitlab_sli:rails_queued_connections:avg30s
- + expr: >
- + sum(avg_over_time(puma_queued_connections[30s]))
- + - record: gitlab_sli:rails_active_connections:max30s
- + expr: >
- + sum(max_over_time(puma_active_connections[30s]))
- + - record: gitlab_sli:rails_queued_connections:max30s
- + expr: >
- + sum(max_over_time(puma_queued_connections[30s]))
- + - record: gitlab_sli:rails_workers:avg30s
- + expr: >
- + count(avg_over_time(ruby_memory_bytes[30s])) or
- + sum(avg_over_time(puma_max_threads[30s]))
- + # Redis CPU use.
- + - record: gitlab_sli:redis_cpu_seconds:rate1m
- + expr: >
- + (sum(rate(redis_used_cpu_sys[1m])) + sum(rate(redis_used_cpu_user[1m]))) or
- + (sum(rate(redis_cpu_sys_seconds_total[1m])) + sum(rate(redis_cpu_user_seconds_total[1m])))
- + # Workhorse traffic.
- + - record: gitlab_sli:code_method_route:workhorse_http_request_count:rate1m
- + expr: >
- + sum by (code,method,route) (
- + rate(gitlab_workhorse_http_request_duration_seconds_count[1m])
- + )
- + - record: gitlab_sli:code_method_route:workhorse_http_request_duration_seconds:rate1m
- + expr: >
- + sum by (code,method,route) (
- + rate(gitlab_workhorse_http_request_duration_seconds_sum[1m])
- + )
- +# SLI - Apdex
- +- name: Service Level Indicators - Apdex
- + interval: 1m
- + rules:
- + # Gitaly goserver
- + # Satisfied -> 0.5 seconds
- + # Acceptable -> 1 seconds
- + - record: gitlab_sli:gitlab_component_apdex:ratio
- + labels:
- + job: gitaly
- + expr: >
- + (
- + sum(rate(grpc_server_handling_seconds_bucket{job="gitaly",grpc_type="unary",le="0.5",grpc_method!~"GarbageCollect|Fsck|RepackFull|RepackIncremental|CommitLanguages|CreateRepositoryFromURL|UserRebase|UserSquash|CreateFork|UserUpdateBranch|FindRemoteRepository|UserCherryPick|FetchRemote|UserRevert|FindRemoteRootRef"}[1m]))
- + +
- + sum(rate(grpc_server_handling_seconds_bucket{job="gitaly",grpc_type="unary",le="1",grpc_method!~"GarbageCollect|Fsck|RepackFull|RepackIncremental|CommitLanguages|CreateRepositoryFromURL|UserRebase|UserSquash|CreateFork|UserUpdateBranch|FindRemoteRepository|UserCherryPick|FetchRemote|UserRevert|FindRemoteRootRef"}[1m]))
- + )
- + /
- + 2 / sum(rate(grpc_server_handling_seconds_count{job="gitaly",grpc_type="unary",grpc_method!~"GarbageCollect|Fsck|RepackFull|RepackIncremental|CommitLanguages|CreateRepositoryFromURL|UserRebase|UserSquash|CreateFork|UserUpdateBranch|FindRemoteRepository|UserCherryPick|FetchRemote|UserRevert|FindRemoteRootRef"}[1m]))
- + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752
- + # - record: gitlab_sli:gitlab_component_apdex:ratio
- + # labels:
- + # job: gitlab-sidekiq
- + # expr: >
- + # (
- + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="25"}[1m]))
- + # +
- + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="50"}[1m]))
- + # )
- + # / 2
- + # /
- + # sum(rate(sidekiq_jobs_completion_time_seconds_count[1m]))
- +
- + # Workhorse
- + # Satisfied -> 1 seconds
- + # Acceptable -> 10 seconds
- + - record: gitlab_sli:gitlab_component_apdex:ratio
- + labels:
- + job: gitlab-workhorse
- + expr: >
- + (
- + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="1",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
- + +
- + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="10",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
- + )
- + /
- + 2 / sum(rate(gitlab_workhorse_http_request_duration_seconds_count{route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
- +
- +# SLI - Errors
- +- name: Service Level Indicators - Errors
- + interval: 1m
- + rules:
- + # PostgreSQL
- + - record: gitlab_sli:gitlab_component_ops:rate
- + labels:
- + job: postgres
- + expr: >
- + sum(rate(pg_stat_database_xact_commit[1m])) +
- + sum(rate(pg_stat_database_xact_rollback[1m]))
- + - record: gitlab_sli:gitlab_component_errors:rate
- + labels:
- + job: postgres
- + expr: sum(rate(pg_stat_database_xact_rollback[1m]))
- + # Rails (Puma)
- + - record: gitlab_sli:gitlab_component_ops:rate
- + labels:
- + job: gitlab-rails
- + expr: >
- + sum(
- + rate(http_request_duration_seconds_count{job="gitlab-rails"}[1m])
- + )
- + - record: gitlab_sli:gitlab_component_errors:rate
- + labels:
- + job: gitlab-rails
- + expr: >
- + sum(
- + rate(http_request_duration_seconds_count{job="gitlab-rails",status=~"5.."}[1m])
- + )
- + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752
- + # - record: gitlab_sli:gitlab_component_ops:rate
- + # labels:
- + # job: gitlab-sidekiq
- + # expr: >
- + # sum (
- + # rate(sidekiq_jobs_started_total{job="gitlab-sidekiq"}[1m])
- + # )
- + # - record: gitlab_sli:gitlab_component_errors:rate
- + # labels:
- + # job: gitlab-sidekiq
- + # expr: >
- + # sum (
- + # rate(sidekiq_jobs_failed_total{job="gitlab-sidekiq"}[1m])
- + # )
- + # Workhorse
- + - record: gitlab_sli:gitlab_component_ops:rate
- + labels:
- + job: gitlab-workhorse
- + expr: >
- + sum(
- + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse"}[1m])
- + )
- + - record: gitlab_sli:gitlab_component_errors:rate
- + labels:
- + job: gitlab-workhorse
- + expr: >
- + sum(
- + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse",code=~"5.."}[1m])
- + )
- + ###
- + # Calculate service error ratios
- + - record: gitlab_sli:gitlab_component_errors:ratio
- + expr: >
- + gitlab_sli:gitlab_component_errors:rate /
- + gitlab_sli:gitlab_component_ops:rate
- +
- +- name: GitLab Saturation Ratios
- + interval: 1m
- + rules:
- + # type: *, component: cpu
- + # this measures average CPU across all the cores for the entire fleet for the given service
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'cpu'
- + expr: >
- + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))
- +
- + # type: *, component: single_node_cpu
- + # this measures the maximum cpu availability across all the codes on a single server
- + # this can be helpful if CPU is not even distributed across the fleet.
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'single_node_cpu'
- + expr: >
- + max(
- + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))
- + )
- +
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'disk_space'
- + expr: >
- + max(
- + (
- + (
- + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"}
- + -
- + node_filesystem_free_bytes{fstype=~"ext.|xfs|nfs.?"}
- + )
- + /
- + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"}
- + )
- + )
- +
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'memory'
- + expr: max (instance:node_memory_utilization:ratio)
- +
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'single_threaded_cpu'
- + expr: >
- + clamp_max(
- + max (
- + (rate(redis_cpu_user_seconds_total[1m]) + rate(redis_cpu_sys_seconds_total[1m])) or
- + (rate(redis_used_cpu_user[1m]) + rate(redis_used_cpu_sys[1m]))
- + ),
- + 1
- + )
- +
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'connection_pool'
- + expr: >
- + clamp_max(
- + max(
- + max_over_time(pgbouncer_pools_server_active_connections{user="gitlab"}[1m]) /
- + (
- + (
- + pgbouncer_pools_server_idle_connections{user="gitlab"} +
- + pgbouncer_pools_server_active_connections{user="gitlab"} +
- + pgbouncer_pools_server_testing_connections{user="gitlab"} +
- + pgbouncer_pools_server_used_connections{user="gitlab"} +
- + pgbouncer_pools_server_login_connections{user="gitlab"}
- + )
- + > 0
- + )
- + ), 1)
- +
- + # type: postgres-delayed, postgres-archive, patroni
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'active_db_connections'
- + expr: >
- + clamp_max(
- + max(
- + sum without(state) (pg_stat_activity_count{datname="gitlabhq_production", state!="idle"})
- + /
- + (sum without(state) (pg_stat_activity_count{datname="gitlabhq_production"}) > 0)
- + ), 1)
- +
- + # type: redis, redis-cache, component: redis_clients
- + # Records the saturation of redis client connections against a redis fleet
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'redis_clients'
- + expr: >
- + max(
- + max_over_time(redis_connected_clients[1m])
- + /
- + redis_config_maxclients
- + )
- +
- + # Aggregate over all components within a service using max
- + - record: gitlab_sli:gitlab_service_saturation:ratio
- + expr: >
- + max by (component) (gitlab_sli:gitlab_component_saturation:ratio)
- +
- + # Calculate the "sapdex" - the saturation apdex for the metric. 1 < less then soft limit, 0.5 < hard limit, else 0
- + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex
- + expr: >
- + clamp_min(gitlab_sli:gitlab_component_saturation:ratio <= on(component) group_left slo:max:soft:gitlab_sli:gitlab_component_saturation:ratio, 1)
- + or
- + clamp_min(clamp_max(gitlab_sli:gitlab_component_saturation:ratio > on(component) group_left slo:max:soft:gitlab_sli:gitlab_component_saturation:ratio, 0.5), 0.5)
- + or
- + clamp_max(gitlab_sli:gitlab_component_saturation:ratio > on(component) group_left slo:max:hard:gitlab_sli:gitlab_component_saturation:ratio, 0)
- +
- + # Open file descriptors
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'open_fds'
- + expr: >
- + max(
- + max_over_time(process_open_fds[1m])
- + /
- + max_over_time(process_max_fds[1m])
- + )
- + - record: gitlab_sli:gitlab_component_saturation:ratio
- + labels:
- + component: 'open_ruby_fds'
- + expr: >
- + max(
- + max_over_time(ruby_file_descriptors[1m])
- + /
- + max_over_time(ruby_process_max_fds[1m])
- + )
- +
- +# Unlike other service metrics, we record the stats for each component independently
- +- name: GitLab Saturation Ratios Stats
- + interval: 5m
- + rules:
- + # Average values for each service, over a week
- + - record: gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w
- + expr: >
- + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio[1w])
- +
- + # Using linear week-on-week growth, what prediction to we have for 2w from now?
- + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_2w
- + expr: >
- + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 14)
- +
- + # Using linear week-on-week growth, what prediction to we have for 30d from now?
- + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_30d
- + expr: >
- + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 30)
- +
- + # Sapdex, average for week
- + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w
- + expr: >
- + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio:sapdex[1w])
- +
- + # Sapdex long term trend forecasting
- + # Using linear week-on-week growth, what prediction to we have for 30d from now?
- + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w:predict_linear_30d
- + expr: >
- + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w[1w], 86400 * 30)
- +
- +###
- +# Metrics used by Usage Ping reports. These are primarily for self-managed installations.
- +# See https://docs.gitlab.com/ee/development/telemetry/usage_ping.html#prometheus-queries
- +#
- +- name: GitLab Usage Ping
- + interval: 5m
- + rules:
- + ###
- + # Application wide metrics
- + #
- + - record: gitlab_usage_ping:ops:rate5m
- + labels:
- + service: workhorse
- + component: http_requests
- + expr: sum (rate (gitlab_workhorse_http_requests_total[5m]))
- +
- + # Database Primary Performance Indicator: Query apdex
- + # Target -> 100ms
- + # Tolerable -> 250ms
- + - record: gitlab_usage_ping:sql_duration_apdex:ratio_rate5m
- + expr: >
- + (
- + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.1"}[5m]))
- + +
- + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.25"}[5m]))
- + )
- + /
- + 2
- + /
- + (
- + sum(rate(gitlab_sql_duration_seconds_count[5m])) > 0
- + )
- +
- + - record: gitlab_usage_ping:gitaly_apdex:ratio_avg_over_time_5m
- + expr: avg_over_time(gitlab_sli:gitlab_component_apdex:ratio{job="gitaly"}[5m])
- +
- + ###
- + # Node level metrics
- + #
- + - record: gitlab_usage_ping:node_cpus:count
- + expr: max (instance:node_cpus:count) by (instance)
- + - record: gitlab_usage_ping:node_memory_total_bytes:max
- + expr: max (node_memory_MemTotal_bytes) by (instance)
- + - record: gitlab_usage_ping:node_cpu_utilization:avg
- + expr: avg (instance:node_cpu_utilization:ratio) by (instance)
- + - record: gitlab_usage_ping:node_memory_utilization:avg
- + expr: avg (instance:node_memory_utilization:ratio) by (instance)
- +
- + ###
- + # Service level metrics
- + #
- + - record: gitlab_usage_ping:node_service_process_resident_memory_bytes:avg
- + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_resident_memory_bytes", job != "gitlab_exporter_process"})
- + - record: gitlab_usage_ping:node_service_process_unique_memory_bytes:avg
- + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_unique_memory_bytes", job != "gitlab_exporter_process"})
- + - record: gitlab_usage_ping:node_service_process_proportional_memory_bytes:avg
- + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_proportional_memory_bytes", job != "gitlab_exporter_process"})
- + - record: gitlab_usage_ping:node_service_process:count
- + expr: >
- + count by (instance, job) (
- + {__name__ =~ "(ruby_){0,1}process_start_time_seconds", job != "gitlab_exporter_process"}
- + )
- + - record: gitlab_usage_ping:node_service_app_server_workers:sum
- + labels:
- + server: puma
- + expr: sum by (instance, job) (puma_workers)[2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/gitlab.rules] owner changed to 994
- [2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/gitlab.rules] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'gitlab-prometheus'
- [2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/gitlab.rules] not queuing delayed action run on execute[reload prometheus] (delayed), as it's already been queued
- * template[/var/opt/gitlab/prometheus/rules/node.rules] action create[2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] created file /var/opt/gitlab/prometheus/rules/node.rules
- - create new file /var/opt/gitlab/prometheus/rules/node.rules[2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] updated file contents /var/opt/gitlab/prometheus/rules/node.rules
- - update content in file /var/opt/gitlab/prometheus/rules/node.rules from none to bea78d
- --- /var/opt/gitlab/prometheus/rules/node.rules 2023-06-12 08:53:26.779416143 +0000
- +++ /var/opt/gitlab/prometheus/rules/.chef-node20230612-2522091-psouut.rules 2023-06-12 08:53:26.779416143 +0000
- @@ -1,42 +1,84 @@
- +groups:
- +- name: Node
- + rules:
- + - record: instance:node_cpus:count
- + expr: count without(cpu, mode) (node_cpu{mode="idle"})
- + - record: instance:node_cpus:count
- + expr: count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})
- + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m
- + expr: sum without(mode) (rate(node_cpu{mode!="idle"}[5m]))
- + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m
- + expr: sum without(mode) (rate(node_cpu_seconds_total{mode!="idle"}[5m]))
- + - record: instance_mode:node_cpu_seconds:rate5m
- + expr: sum without(cpu) (rate(node_cpu[5m]))
- + - record: instance_mode:node_cpu_seconds:rate5m
- + expr: sum without(cpu) (rate(node_cpu_seconds_total[5m]))
- + - record: instance:node_cpu_utilization:ratio
- + expr: sum without(mode) (instance_mode:node_cpu_seconds:rate5m{mode!="idle"})
- + / instance:node_cpus:count
- + - record: instance:node_memory_utilization:ratio
- + expr: >
- + 1 - (
- + node_memory_MemAvailable_bytes or
- + (node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes)
- + ) / node_memory_MemTotal_bytes
- + - record: instance:node_filesystem_avail:ratio
- + expr: node_filesystem_avail_bytes / (node_filesystem_size_bytes > 0)
- + - alert: FilesystemAlmostFull
- + expr: instance:node_filesystem_avail:ratio * 100 < 5 and node_filesystem_avail_bytes < 10 * 1024 * 1024 * 1024
- + for: 10m
- + annotations:
- + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on
- + {{ $labels.instance }} has {{ $value | printf "%.2f" }}% space available.
- + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} is almost
- + full
- + - alert: FilesystemFullIn1Day
- + expr: predict_linear(node_filesystem_avail_bytes[6h], 24 * 3600) < 0
- + for: 30m
- + annotations:
- + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on
- + {{ $labels.instance }} will be full in the next 24 hours.
- + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} will be
- + full within 24 hours[2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] owner changed to 994
- [2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'gitlab-prometheus'
- [2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] not queuing delayed action run on execute[reload prometheus] (delayed), as it's already been queued
- Recipe: monitoring::alertmanager
- * directory[/var/opt/gitlab/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: directory[/var/opt/gitlab/alertmanager] created directory /var/opt/gitlab/alertmanager
- - create new directory /var/opt/gitlab/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/var/opt/gitlab/alertmanager] owner changed to 994
- [2023-06-12T08:53:26+00:00] INFO: directory[/var/opt/gitlab/alertmanager] mode changed to 750
- - change mode from '' to '0750'
- - change owner from '' to 'gitlab-prometheus'
- * directory[/var/log/gitlab/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: directory[/var/log/gitlab/alertmanager] created directory /var/log/gitlab/alertmanager
- - create new directory /var/log/gitlab/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/var/log/gitlab/alertmanager] owner changed to 994
- [2023-06-12T08:53:26+00:00] INFO: directory[/var/log/gitlab/alertmanager] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-prometheus'
- * directory[/opt/gitlab/etc/alertmanager/env] action create[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/etc/alertmanager/env] created directory /opt/gitlab/etc/alertmanager/env
- - create new directory /opt/gitlab/etc/alertmanager/env[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/etc/alertmanager/env] owner changed to 994
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/etc/alertmanager/env] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-prometheus'
- * env_dir[/opt/gitlab/etc/alertmanager/env] action create
- * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date)
- * file[/opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR] action create[2023-06-12T08:53:26+00:00] INFO: file[/opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR] created file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR
- - create new file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR[2023-06-12T08:53:26+00:00] INFO: file[/opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR] updated file contents /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR
- - update content in file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR from none to 4f45cf
- - suppressed sensitive resource
- * file[Alertmanager config] action create[2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] created file /var/opt/gitlab/alertmanager/alertmanager.yml
- - create new file /var/opt/gitlab/alertmanager/alertmanager.yml[2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] updated file contents /var/opt/gitlab/alertmanager/alertmanager.yml
- - update content in file /var/opt/gitlab/alertmanager/alertmanager.yml from none to 21b7be
- --- /var/opt/gitlab/alertmanager/alertmanager.yml 2023-06-12 08:53:26.819416030 +0000
- +++ /var/opt/gitlab/alertmanager/.chef-alertmanager20230612-2522091-a35mr3.yml 2023-06-12 08:53:26.819416030 +0000
- @@ -1,9 +1,18 @@
- +---
- +global: {}
- +templates: []
- +route:
- + receiver: default-receiver
- + routes: []
- +receivers:
- +- name: default-receiver
- +inhibit_rules: [][2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] owner changed to 994
- [2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'gitlab-prometheus'
- [2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] not queuing delayed action restart on runit_service[alertmanager] (delayed), as it's already been queued
- * service[alertmanager] action nothing (skipped due to action :nothing)
- * runit_service[alertmanager] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] created directory /opt/gitlab/sv/alertmanager
- - create new directory /opt/gitlab/sv/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] owner changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] group changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/alertmanager/run] action create[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] created file /opt/gitlab/sv/alertmanager/run
- - create new file /opt/gitlab/sv/alertmanager/run[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] updated file contents /opt/gitlab/sv/alertmanager/run
- - update content in file /opt/gitlab/sv/alertmanager/run from none to 36da8b
- --- /opt/gitlab/sv/alertmanager/run 2023-06-12 08:53:26.839415975 +0000
- +++ /opt/gitlab/sv/alertmanager/.chef-run20230612-2522091-7vcrs5 2023-06-12 08:53:26.839415975 +0000
- @@ -1,8 +1,16 @@
- +#!/bin/sh
- +exec 2>&1
- +
- +umask 077
- +exec chpst -P -e /opt/gitlab/etc/alertmanager/env \
- + -U gitlab-prometheus:gitlab-prometheus \
- + -u gitlab-prometheus:gitlab-prometheus \
- + /opt/gitlab/embedded/bin/alertmanager --web.listen-address=localhost:9093 --storage.path=/var/opt/gitlab/alertmanager/data --config.file=/var/opt/gitlab/alertmanager/alertmanager.yml[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] owner changed to 0
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] group changed to 0
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/alertmanager/log] action create[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log] created directory /opt/gitlab/sv/alertmanager/log
- - create new directory /opt/gitlab/sv/alertmanager/log[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log] owner changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log] group changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/alertmanager/log/main] action create[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log/main] created directory /opt/gitlab/sv/alertmanager/log/main
- - create new directory /opt/gitlab/sv/alertmanager/log/main[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log/main] owner changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log/main] group changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/alertmanager/log/config] action create[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] created file /opt/gitlab/sv/alertmanager/log/config
- - create new file /opt/gitlab/sv/alertmanager/log/config[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] updated file contents /opt/gitlab/sv/alertmanager/log/config
- - update content in file /opt/gitlab/sv/alertmanager/log/config from none to 623c00
- --- /opt/gitlab/sv/alertmanager/log/config 2023-06-12 08:53:26.859415918 +0000
- +++ /opt/gitlab/sv/alertmanager/log/.chef-config20230612-2522091-f378o2 2023-06-12 08:53:26.859415918 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] owner changed to 0
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] group changed to 0
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] sending create action to ruby_block[verify_chown_persisted_on_alertmanager] (immediate)
- * ruby_block[verify_chown_persisted_on_alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: ruby_block[verify_chown_persisted_on_alertmanager] called
- - execute the ruby block verify_chown_persisted_on_alertmanager
- * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/alertmanager/config] action create[2023-06-12T08:53:26+00:00] INFO: link[/var/log/gitlab/alertmanager/config] created
- - create symlink at /var/log/gitlab/alertmanager/config to /opt/gitlab/sv/alertmanager/log/config
- * template[/opt/gitlab/sv/alertmanager/log/run] action create[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] created file /opt/gitlab/sv/alertmanager/log/run
- - create new file /opt/gitlab/sv/alertmanager/log/run[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] updated file contents /opt/gitlab/sv/alertmanager/log/run
- - update content in file /opt/gitlab/sv/alertmanager/log/run from none to 9a4626
- --- /opt/gitlab/sv/alertmanager/log/run 2023-06-12 08:53:26.871415884 +0000
- +++ /opt/gitlab/sv/alertmanager/log/.chef-run20230612-2522091-k1zlvz 2023-06-12 08:53:26.871415884 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/alertmanager[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] owner changed to 0
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] group changed to 0
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/alertmanager/env] action create[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/env] created directory /opt/gitlab/sv/alertmanager/env
- - create new directory /opt/gitlab/sv/alertmanager/env[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/env] owner changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/env] group changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/alertmanager/control] action create[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/control] created directory /opt/gitlab/sv/alertmanager/control
- - create new directory /opt/gitlab/sv/alertmanager/control[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/control] owner changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/control] group changed to 0
- [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: link[/opt/gitlab/init/alertmanager] created
- - create symlink at /opt/gitlab/init/alertmanager to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/alertmanager] action create (up to date)
- * template[/opt/gitlab/sv/alertmanager/run] action create (up to date)
- * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date)
- * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date)
- * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/alertmanager/config] action create (up to date)
- * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/alertmanager/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/alertmanager/control] action create (up to date)
- * link[/opt/gitlab/init/alertmanager] action create (up to date)
- * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: link[/opt/gitlab/service/alertmanager] created
- - create symlink at /opt/gitlab/service/alertmanager to /opt/gitlab/sv/alertmanager
- * ruby_block[wait for alertmanager service socket] action run[2023-06-12T08:53:28+00:00] INFO: ruby_block[wait for alertmanager service socket] called
- - execute the ruby block wait for alertmanager service socket
- * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:28+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:53:28+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/alertmanager] action create (up to date)
- * template[/opt/gitlab/sv/alertmanager/run] action create (up to date)
- * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date)
- * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date)
- * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/alertmanager/config] action create (up to date)
- * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/alertmanager/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/alertmanager/control] action create (up to date)
- * link[/opt/gitlab/init/alertmanager] action create (up to date)
- * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/alertmanager] action create (up to date)
- * ruby_block[wait for alertmanager service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:30+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/alertmanager] action create (up to date)
- * ruby_block[wait for alertmanager service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
- * execute[/opt/gitlab/bin/gitlab-ctl start alertmanager] action run
- [execute] ok: run: alertmanager: (pid 2523928) 3s
- [2023-06-12T08:53:31+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start alertmanager] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start alertmanager
- Recipe: monitoring::postgres-exporter
- * directory[/var/log/gitlab/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: directory[/var/log/gitlab/postgres-exporter] created directory /var/log/gitlab/postgres-exporter
- - create new directory /var/log/gitlab/postgres-exporter[2023-06-12T08:53:31+00:00] INFO: directory[/var/log/gitlab/postgres-exporter] owner changed to 995
- [2023-06-12T08:53:31+00:00] INFO: directory[/var/log/gitlab/postgres-exporter] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-psql'
- * directory[/var/opt/gitlab/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: directory[/var/opt/gitlab/postgres-exporter] created directory /var/opt/gitlab/postgres-exporter
- - create new directory /var/opt/gitlab/postgres-exporter[2023-06-12T08:53:31+00:00] INFO: directory[/var/opt/gitlab/postgres-exporter] owner changed to 995
- [2023-06-12T08:53:31+00:00] INFO: directory[/var/opt/gitlab/postgres-exporter] mode changed to 700
- - change mode from '' to '0700'
- - change owner from '' to 'gitlab-psql'
- * env_dir[/opt/gitlab/etc/postgres-exporter/env] action create
- * directory[/opt/gitlab/etc/postgres-exporter/env] action create[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/etc/postgres-exporter/env] created directory /opt/gitlab/etc/postgres-exporter/env
- - create new directory /opt/gitlab/etc/postgres-exporter/env
- * file[/opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR] action create[2023-06-12T08:53:31+00:00] INFO: file[/opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR] created file /opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR
- - create new file /opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR[2023-06-12T08:53:31+00:00] INFO: file[/opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR] updated file contents /opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR
- - update content in file /opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR from none to 4f45cf
- - suppressed sensitive resource
- * file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] action create[2023-06-12T08:53:31+00:00] INFO: file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] created file /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME
- - create new file /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME[2023-06-12T08:53:31+00:00] INFO: file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] updated file contents /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME
- - update content in file /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME from none to af4c92
- - suppressed sensitive resource
- * service[postgres-exporter] action nothing (skipped due to action :nothing)
- * runit_service[postgres-exporter] action enable
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter] created directory /opt/gitlab/sv/postgres-exporter
- - create new directory /opt/gitlab/sv/postgres-exporter[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter] owner changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter] group changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/postgres-exporter/run] action create[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] created file /opt/gitlab/sv/postgres-exporter/run
- - create new file /opt/gitlab/sv/postgres-exporter/run[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] updated file contents /opt/gitlab/sv/postgres-exporter/run
- - update content in file /opt/gitlab/sv/postgres-exporter/run from none to b40d34
- --- /opt/gitlab/sv/postgres-exporter/run 2023-06-12 08:53:31.119403884 +0000
- +++ /opt/gitlab/sv/postgres-exporter/.chef-run20230612-2522091-p5wfmt 2023-06-12 08:53:31.119403884 +0000
- @@ -1,6 +1,12 @@
- +#!/bin/sh
- +exec 2>&1
- +
- +umask 077
- +exec chpst -e /opt/gitlab/etc/postgres-exporter/env -P -U gitlab-psql:git -u gitlab-psql:git /opt/gitlab/embedded/bin/postgres_exporter --web.listen-address=localhost:9187 --extend.query-path=/var/opt/gitlab/postgres-exporter/queries.yaml
- +[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] owner changed to 0
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] group changed to 0
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/postgres-exporter/log] action create[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log] created directory /opt/gitlab/sv/postgres-exporter/log
- - create new directory /opt/gitlab/sv/postgres-exporter/log[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log] owner changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log] group changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log/main] created directory /opt/gitlab/sv/postgres-exporter/log/main
- - create new directory /opt/gitlab/sv/postgres-exporter/log/main[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log/main] owner changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log/main] group changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log/main] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * template[/opt/gitlab/sv/postgres-exporter/log/config] action create[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] created file /opt/gitlab/sv/postgres-exporter/log/config
- - create new file /opt/gitlab/sv/postgres-exporter/log/config[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] updated file contents /opt/gitlab/sv/postgres-exporter/log/config
- - update content in file /opt/gitlab/sv/postgres-exporter/log/config from none to 623c00
- --- /opt/gitlab/sv/postgres-exporter/log/config 2023-06-12 08:53:31.143403816 +0000
- +++ /opt/gitlab/sv/postgres-exporter/log/.chef-config20230612-2522091-vcni3a 2023-06-12 08:53:31.143403816 +0000
- @@ -1,6 +1,12 @@
- +s209715200
- +n30
- +t86400
- +!gzip
- +
- +[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] owner changed to 0
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] group changed to 0
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] sending create action to ruby_block[verify_chown_persisted_on_postgres-exporter] (immediate)
- * ruby_block[verify_chown_persisted_on_postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: ruby_block[verify_chown_persisted_on_postgres-exporter] called
- - execute the ruby block verify_chown_persisted_on_postgres-exporter
- * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/postgres-exporter/config] action create[2023-06-12T08:53:31+00:00] INFO: link[/var/log/gitlab/postgres-exporter/config] created
- - create symlink at /var/log/gitlab/postgres-exporter/config to /opt/gitlab/sv/postgres-exporter/log/config
- * template[/opt/gitlab/sv/postgres-exporter/log/run] action create[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] created file /opt/gitlab/sv/postgres-exporter/log/run
- - create new file /opt/gitlab/sv/postgres-exporter/log/run[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] updated file contents /opt/gitlab/sv/postgres-exporter/log/run
- - update content in file /opt/gitlab/sv/postgres-exporter/log/run from none to fd2977
- --- /opt/gitlab/sv/postgres-exporter/log/run 2023-06-12 08:53:31.159403771 +0000
- +++ /opt/gitlab/sv/postgres-exporter/log/.chef-run20230612-2522091-kypatg 2023-06-12 08:53:31.159403771 +0000
- @@ -1,5 +1,10 @@
- +#!/bin/sh
- +exec chpst -P \
- + -U root:root \
- + -u root:root \
- + svlogd -tt /var/log/gitlab/postgres-exporter[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] owner changed to 0
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] group changed to 0
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * directory[/opt/gitlab/sv/postgres-exporter/env] action create[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/env] created directory /opt/gitlab/sv/postgres-exporter/env
- - create new directory /opt/gitlab/sv/postgres-exporter/env[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/env] owner changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/env] group changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/env] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/postgres-exporter/control] action create[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/control] created directory /opt/gitlab/sv/postgres-exporter/control
- - create new directory /opt/gitlab/sv/postgres-exporter/control[2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/control] owner changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/control] group changed to 0
- [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/control] mode changed to 755
- - change mode from '' to '0755'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[/opt/gitlab/init/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: link[/opt/gitlab/init/postgres-exporter] created
- - create symlink at /opt/gitlab/init/postgres-exporter to /opt/gitlab/embedded/bin/sv
- * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] sending run action to ruby_block[restart_service] (delayed)
- * ruby_block[restart_service] action run (skipped due to only_if)
- [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] sending create action to ruby_block[reload_log_service] (delayed)
- * ruby_block[reload_log_service] action create
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date)
- * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date)
- * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date)
- * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date)
- * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/postgres-exporter/config] action create (up to date)
- * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date)
- * link[/opt/gitlab/init/postgres-exporter] action create (up to date)
- * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: link[/opt/gitlab/service/postgres-exporter] created
- - create symlink at /opt/gitlab/service/postgres-exporter to /opt/gitlab/sv/postgres-exporter
- * ruby_block[wait for postgres-exporter service socket] action run[2023-06-12T08:53:35+00:00] INFO: ruby_block[wait for postgres-exporter service socket] called
- - execute the ruby block wait for postgres-exporter service socket
- * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:36+00:00] INFO: ruby_block[reload_log_service] called
- - execute the ruby block reload_log_service
- [2023-06-12T08:53:36+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] sending run action to ruby_block[restart_log_service] (delayed)
- * ruby_block[restart_log_service] action run
- * ruby_block[restart_service] action nothing (skipped due to action :nothing)
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date)
- * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date)
- * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date)
- * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date)
- * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date)
- * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
- * link[/var/log/gitlab/postgres-exporter/config] action create (up to date)
- * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date)
- * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date)
- * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
- * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
- * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
- * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date)
- * link[/opt/gitlab/init/postgres-exporter] action create (up to date)
- * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/postgres-exporter] action create (up to date)
- * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
- [2023-06-12T08:53:36+00:00] INFO: ruby_block[restart_log_service] called
- - execute the ruby block restart_log_service
- * directory[/opt/gitlab/service] action create (up to date)
- * link[/opt/gitlab/service/postgres-exporter] action create (up to date)
- * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if)
- * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
- * template[/var/opt/gitlab/postgres-exporter/queries.yaml] action create[2023-06-12T08:53:36+00:00] INFO: template[/var/opt/gitlab/postgres-exporter/queries.yaml] created file /var/opt/gitlab/postgres-exporter/queries.yaml
- - create new file /var/opt/gitlab/postgres-exporter/queries.yaml[2023-06-12T08:53:36+00:00] INFO: template[/var/opt/gitlab/postgres-exporter/queries.yaml] updated file contents /var/opt/gitlab/postgres-exporter/queries.yaml
- - update content in file /var/opt/gitlab/postgres-exporter/queries.yaml from none to 7d7e14
- --- /var/opt/gitlab/postgres-exporter/queries.yaml 2023-06-12 08:53:36.659388203 +0000
- +++ /var/opt/gitlab/postgres-exporter/.chef-queries20230612-2522091-vck3z3.yaml 2023-06-12 08:53:36.659388203 +0000
- @@ -1,404 +1,808 @@
- +pg_replication:
- + query: "SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp()))::INT as lag, CASE WHEN pg_is_in_recovery() THEN 1 ELSE 0 END as is_replica"
- + metrics:
- + - lag:
- + usage: "GAUGE"
- + description: "Replication lag behind master in seconds"
- + - is_replica:
- + usage: "GAUGE"
- + description: "Indicates if this host is a slave"
- +
- +pg_postmaster:
- + query: "SELECT pg_postmaster_start_time as start_time_seconds from pg_postmaster_start_time()"
- + metrics:
- + - start_time_seconds:
- + usage: "GAUGE"
- + description: "Time at which postmaster started"
- +
- +pg_total_relation_size:
- + query: |
- + SELECT relnamespace::regnamespace as schemaname,
- + relname as relname,
- + pg_total_relation_size(oid) bytes
- + FROM pg_class
- + WHERE relkind = 'r';
- + metrics:
- + - schemaname:
- + usage: "LABEL"
- + description: "Name of the schema that this table is in"
- + - relname:
- + usage: "LABEL"
- + description: "Name of this table"
- + - bytes:
- + usage: "GAUGE"
- + description: "total disk space usage for the specified table and associated indexes"
- +
- +pg_blocked:
- + query: |
- + SELECT
- + count(blocked.transactionid) AS queries,
- + '__transaction__' AS table
- + FROM pg_catalog.pg_locks blocked
- + WHERE NOT blocked.granted AND locktype = 'transactionid'
- + GROUP BY locktype
- + UNION
- + SELECT
- + count(blocked.relation) AS queries,
- + blocked.relation::regclass::text AS table
- + FROM pg_catalog.pg_locks blocked
- + WHERE NOT blocked.granted AND locktype != 'transactionid'
- + GROUP BY relation
- + metrics:
- + - queries:
- + usage: "GAUGE"
- + description: "The current number of blocked queries"
- + - table:
- + usage: "LABEL"
- + description: "The table on which a query is blocked"
- +
- +pg_oldest_blocked:
- + query: |
- + SELECT coalesce(extract('epoch' from max(clock_timestamp() - state_change)), 0) age_seconds
- + FROM pg_stat_activity
- + WHERE wait_event_type = 'Lock'
- + AND state='active'
- + metrics:
- + - age_seconds:
- + usage: "GAUGE"
- + description: "Largest number of seconds any transaction is currently waiting on a lock"
- +
- +pg_slow:
- + query: |
- + SELECT COUNT(*) AS queries
- + FROM pg_stat_activity
- + WHERE state = 'active' AND (now() - query_start) > '1 seconds'::interval
- + metrics:
- + - queries:
- + usage: "GAUGE"
- + description: "Current number of slow queries"
- +
- +pg_long_running_transactions:
- + query: |
- + SELECT COUNT(*) as transactions,
- + coalesce(MAX(EXTRACT(EPOCH FROM (clock_timestamp() - xact_start))), 0) AS age_in_seconds
- + FROM pg_stat_activity
- + WHERE state is distinct from 'idle' AND (now() - xact_start) > '1 minutes'::interval AND query not like 'autovacuum:%'
- + metrics:
- + - transactions:
- + usage: "GAUGE"
- + description: "Current number of long running transactions"
- + - age_in_seconds:
- + usage: "GAUGE"
- + description: "The current maximum transaction age in seconds"
- +
- +pg_stuck_idle_in_transaction:
- + query: |
- + SELECT COUNT(*) AS queries
- + FROM pg_stat_activity
- + WHERE state = 'idle in transaction' AND (now() - query_start) > '10 minutes'::interval
- + metrics:
- + - queries:
- + usage: "GAUGE"
- + description: "Current number of queries that are stuck being idle in transactions"
- +
- +# All xid and lsn metrics here are reported mod 2^52 to ensure they
- +# fit within a float for Prometheus :( Really annoying that counters
- +# aren't stored in a 64-bit integer. Note that for queries that report
- +# floats this only works because postgres_exporter does know to set
- +# extra_float_digits (which it sets to 2). So they don't print in
- +# exponential notation and precision is maintained up to 2^53-1.
- +
- +pg_vacuum:
- + query: |
- + SELECT
- + COUNT(*) AS queries,
- + MAX(EXTRACT(EPOCH FROM (clock_timestamp() - query_start))) AS age_in_seconds
- + FROM pg_catalog.pg_stat_activity
- + WHERE state = 'active' AND trim(query) ~* '\AVACUUM (?!ANALYZE)'
- + metrics:
- + - queries:
- + usage: "GAUGE"
- + description: "The current number of VACUUM queries"
- + - age_in_seconds:
- + usage: "GAUGE"
- + description: "The current maximum VACUUM query age in seconds"
- +
- +pg_vacuum_analyze:
- + query: |
- + SELECT
- + COUNT(*) AS queries,
- + MAX(EXTRACT(EPOCH FROM (clock_timestamp() - query_start))) AS age_in_seconds
- + FROM pg_catalog.pg_stat_activity
- + WHERE state = 'active' AND trim(query) ~* '\AVACUUM ANALYZE'
- + metrics:
- + - queries:
- + usage: "GAUGE"
- + description: "The current number of VACUUM ANALYZE queries"
- + - age_in_seconds:
- + usage: "GAUGE"
- + description: "The current maximum VACUUM ANALYZE query age in seconds"
- +
- +pg_stuck_idle_in_transaction:
- + query: |
- + SELECT COUNT(*) AS queries
- + FROM pg_stat_activity
- + WHERE state = 'idle in transaction' AND (now() - query_start) > '10 minutes'::interval
- + metrics:
- + - queries:
- + usage: "GAUGE"
- + description: "Current number of queries that are stuck being idle in transactions"
- +
- +pg_vacuum_queue:
- + #master: true
- + # Until postgres_exporter is upgraded. See
- + # https://gitlab.com/gitlab-org/omnibus-gitlab/issues/4887
- + query: |
- + with table_opts_vs_statistic as (
- + select
- + pg_class.oid,
- + pg_class.relname,
- + coalesce(nspname, 'public') as schemaname,
- + pg_class.relpages,
- + pg_class.reltuples,
- + case
- + when array_to_string(reloptions, '') like '%autovacuum_vacuum_threshold%' then regexp_replace(array_to_string(reloptions, ''), '.*autovacuum_vacuum_threshold=([0-9.]+).*', E'\\1')::int8
- + else current_setting('autovacuum_vacuum_threshold')::int8
- + end as autovacuum_vacuum_threshold,
- + case
- + when array_to_string(reloptions, '') like '%autovacuum_vacuum_scale_factor%' then regexp_replace(array_to_string(reloptions, ''), '.*autovacuum_vacuum_scale_factor=([0-9.]+).*', E'\\1')::numeric
- + else current_setting('autovacuum_vacuum_scale_factor')::numeric
- + end as autovacuum_vacuum_scale_factor,
- + case when array_to_string(reloptions, '') ~ 'autovacuum_enabled=(false|off)' then false else true end as autovacuum_enabled,
- + n_dead_tup,
- + last_autovacuum,
- + last_vacuum
- + from pg_class
- + join pg_namespace ns on relnamespace = ns.oid
- + join pg_stat_all_tables psat on psat.relid = pg_class.oid
- + where relkind in ('r','m')
- + ), p as (
- + select pgspv.*,a.query,a.wait_event_type,a.wait_event,a.query_start
- + from pg_stat_progress_vacuum pgspv
- + left join pg_stat_activity a using (pid)
- + )
- + select
- + table_opts_vs_statistic.schemaname as schemaname,
- + table_opts_vs_statistic.relname as relname,
- + round((100 * table_opts_vs_statistic.n_dead_tup::numeric / nullif(table_opts_vs_statistic.reltuples, 0))::numeric, 2) as dead_tup_pct,
- + table_opts_vs_statistic.reltuples::numeric as reltuples,
- + table_opts_vs_statistic.n_dead_tup,
- + (relpages::bigint*8*1024) AS table_size_bytes,
- + 'V. Threshold:' || table_opts_vs_statistic.autovacuum_vacuum_threshold
- + || ', V. Scale Factor: ' || (table_opts_vs_statistic.autovacuum_vacuum_scale_factor)::numeric *100 ||' %'
- + || case when not autovacuum_enabled then ', DISABLED' else ', enabled' end as "effective_settings",
- + case
- + when last_autovacuum > coalesce(last_vacuum, '0001-01-01') then last_autovacuum::timestamp(0)
- + when last_vacuum is not null then last_vacuum::timestamp(0)
- + else null
- + end as "last_vacuumed",
- + case
- + when last_autovacuum > coalesce(last_vacuum, '0001-01-01') then 'auto'
- + when last_vacuum is not null then 'manual'
- + else null
- + end as "type",
- + coalesce(p.phase, 'in queue') as status,
- + p.pid as pid,
- + coalesce (p.query,'')as action,
- + case when p.pid is null then null else coalesce(wait_event_type ||'.'|| wait_event, 'f') end as waiting,
- + round(100.0 * p.heap_blks_scanned / nullif(p.heap_blks_total, 0), 1) AS scanned_pct,
- + round(100.0 * p.heap_blks_vacuumed / nullif(p.heap_blks_total, 0), 1) AS vacuumed_pct,
- + extract ('epoch' from now()-query_start) elapsed_time
- + from
- + table_opts_vs_statistic
- + full outer join p on p.relid = table_opts_vs_statistic.oid and p.datname = current_database()
- + where
- + table_opts_vs_statistic.relpages >= 8
- + and autovacuum_vacuum_threshold + (autovacuum_vacuum_scale_factor::numeric * table_opts_vs_statistic.reltuples) < table_opts_vs_statistic.n_dead_tup
- + metrics:
- + - schemaname:
- + usage: "LABEL"
- + description: "Table Schema"
- + - relname:
- + usage: "LABEL"
- + description: "Table name"
- + - dead_tup_pct:
- + usage: "GAUGE"
- + description: "Estimated dead tuples percent"
- + - reltuples:
- + usage: "GAUGE"
- + description: "Number of tuples in table"
- + - n_dead_tup:
- + usage: "GAUGE"
- + description: "Estimated number of dead tuples"
- + - table_size_bytes:
- + usage: "GAUGE"
- + description: "Estimated table size"
- + - effective_settings:
- + usage: "LABEL"
- + description: "Autovacuums settings"
- + - last_vacuumed:
- + usage: "GAUGE"
- + description: "Last time at which this table was vacuumed"
- + - type:
- + usage: "LABEL"
- + description: "Last vacuum type"
- + - status:
- + usage: "LABEL"
- + description: "Vacuum actual status"
- + - pid:
- + usage: "GAUGE"
- + description: "Vacuum process id"
- + - action:
- + usage: "LABEL"
- + description: "Type of vacuum executed"
- + - waiting:
- + usage: "LABEL"
- + description: "Vacuum queue status"
- + - scanned_pct:
- + usage: "GAUGE"
- + description: "Estimated rows scanned percent"
- + - vacuumed_pct:
- + usage: "GAUGE"
- + description: "Estimated vacuumed rows percent"
- + - elapsed_time:
- + usage: "GAUGE"
- + description: "Elapsed time vacuuming (in seconds)"
- +
- +#
- +# This query extracts marginalia comments from pg_stat_activity and provides a sampled summary of the type of
- +# endpoints that are actively making calls
- +#
- +pg_stat_activity_marginalia_sampler:
- + query: >
- + SELECT
- + usename AS usename,
- + a.matches[1] AS application,
- + a.matches[2] AS endpoint,
- + a.matches[3] AS command,
- + a.wait_event AS wait_event,
- + a.state AS state,
- + a.wait_event_type AS wait_event_type,
- + COUNT(*) active_count,
- + MAX(coalesce(age_in_seconds, 0)) AS max_tx_age_in_seconds
- + FROM (
- + SELECT
- + usename,
- + regexp_matches(query, '^\s*(?:\/\*(?:application:(\w+),?)?(?:correlation_id:\w+,?)?(?:jid:\w+,?)?(?:endpoint_id:([\w/\-\.:\#\s]+),?)?.*?\*\/)?\s*(\w+)') AS matches,
- + state,
- + wait_event,
- + wait_event_type,
- + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
- + FROM
- + pg_stat_activity
- + ) a
- + GROUP BY usename, application, endpoint, command, state, wait_event, wait_event_type
- + ORDER BY active_count DESC
- + metrics:
- + - usename:
- + usage: LABEL
- + description: The user running the command
- + - application:
- + usage: LABEL
- + description: Name of the application as presented in marginalia comment
- + - endpoint:
- + usage: LABEL
- + description: Name of the web endpoint or sidekiq job as presented in marginalia comment
- + - command:
- + usage: LABEL
- + description: The first word for the running command
- + - wait_event:
- + usage: LABEL
- + description: Wait event of the activity as presented by pg_stat_activity.wait_event
- + - state:
- + usage: LABEL
- + description: State of the activity as presented by pg_stat_activity.state
- + - wait_event_type:
- + usage: LABEL
- + description: Wait event type of the activity as presented by pg_stat_activity.wait_event_type
- + - active_count:
- + usage: GAUGE
- + description: Number of active queries at time of sample
- + - max_tx_age_in_seconds:
- + usage: GAUGE
- + description: Number of active queries at time of sample
- +
- +# This records long running autovacuum processes. The reason we limit to
- +# long-running processes is to avoid cardinality problems in prometheus. Since
- +# we're only concerned about long running processes we limit the output only to
- +# those that take longer than 5 minutes.
- +pg_stat_activity_autovacuum:
- + query: >
- + SELECT
- + SPLIT_PART(query, '.', 2) AS relname,
- + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
- + FROM
- + pg_stat_activity
- + WHERE
- + query like 'autovacuum:%'
- + AND
- + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) > 300
- + metrics:
- + - relname:
- + usage: LABEL
- + description: The table being vacuumed
- + - age_in_seconds:
- + usage: GAUGE
- + description: The age of the vacuum process in seconds
- +
- +# Keep track of the number of the total number of autovacuum workers
- +# currently active
- +pg_stat_activity_autovacuum_active:
- + query: >
- + SELECT v.phase,
- + CASE
- + when a.query ~ '^autovacuum.*to prevent wraparound' then 'wraparound'
- + when a.query ~* '^vacuum' then 'user'
- + when a.pid is null then null
- + ELSE 'regular'
- + END as mode,
- + count(1) as workers_count
- + FROM pg_stat_progress_vacuum v
- + LEFT JOIN pg_stat_activity a using (pid)
- + GROUP BY 1,2
- + metrics:
- + - phase:
- + usage: LABEL
- + description: Vacuum phase
- + - mode:
- + usage: LABEL
- + description: Vacuum mode
- + - workers_count:
- + usage: GAUGE
- + description: The number of active autovacuum workers in this state
- +
- +#
- +# This query extracts marginalia metadata from pg_stat_activity and provides a sampled summary about the long running transactions.
- +#
- +pg_long_running_transactions_marginalia:
- + query: >
- + SELECT
- + activity.matches[1] AS application,
- + activity.matches[2] AS endpoint,
- + MAX(age_in_seconds) AS max_age_in_seconds
- + FROM (
- + SELECT
- + regexp_matches(query, '^\s*(?:\/\*(?:application:(\w+),?)?(?:correlation_id:\w+,?)?(?:jid:\w+,?)?(?:endpoint_id:([\w/\-\.:\#\s]+),?)?.*?\*\/)?\s*(\w+)') AS matches,
- + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
- + FROM
- + pg_stat_activity
- + WHERE state <> 'idle'
- + AND (clock_timestamp() - xact_start) > '30 seconds'::interval
- + AND query NOT LIKE 'autovacuum:%'
- + ) activity
- + GROUP BY application, endpoint
- + ORDER BY max_age_in_seconds DESC
- + metrics:
- + - application:
- + usage: LABEL
- + description: Name of the application as presented in marginalia comment
- + - endpoint:
- + usage: LABEL
- + description: Name of the web endpoint or sidekiq job as presented in marginalia comment
- + - max_age_in_seconds:
- + usage: GAUGE
- + description: The current maximum transaction age in seconds[2023-06-12T08:53:36+00:00] INFO: template[/var/opt/gitlab/postgres-exporter/queries.yaml] owner changed to 995
- [2023-06-12T08:53:36+00:00] INFO: template[/var/opt/gitlab/postgres-exporter/queries.yaml] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'gitlab-psql'
- [2023-06-12T08:53:36+00:00] INFO: template[/var/opt/gitlab/postgres-exporter/queries.yaml] not queuing delayed action restart on runit_service[postgres-exporter] (delayed), as it's already been queued
- * execute[/opt/gitlab/bin/gitlab-ctl start postgres-exporter] action run
- [execute] ok: run: postgres-exporter: (pid 2524007) 3s
- [2023-06-12T08:53:37+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start postgres-exporter] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl start postgres-exporter
- * consul_service[postgres-exporter] action delete
- * file[/var/opt/gitlab/consul/config.d/postgres-exporter-service.json] action delete (up to date)
- (up to date)
- Recipe: monitoring::grafana_disable
- * service[grafana] action nothing (skipped due to action :nothing)
- * runit_service[grafana] action disable
- * ruby_block[disable grafana] action run (skipped due to only_if)
- (up to date)
- Recipe: gitlab::database_reindexing_disable
- * crond_job[database-reindexing] action delete
- * file[/var/opt/gitlab/crond/database-reindexing] action delete (up to date)
- (up to date)
- Recipe: gitlab-ee::sentinel_disable
- * sentinel_service[redis] action disable
- * service[sentinel] action nothing (skipped due to action :nothing)
- * runit_service[sentinel] action disable
- * ruby_block[disable sentinel] action run (skipped due to only_if)
- (up to date)
- * file[/var/opt/gitlab/sentinel/sentinel.conf] action delete (up to date)
- * directory[/var/opt/gitlab/sentinel] action delete (up to date)
- (up to date)
- Recipe: gitlab-ee::geo-postgresql_disable
- * service[geo-postgresql] action nothing (skipped due to action :nothing)
- * runit_service[geo-postgresql] action disable
- * ruby_block[disable geo-postgresql] action run (skipped due to only_if)
- (up to date)
- Recipe: gitlab-ee::geo-logcursor_disable
- * service[geo-logcursor] action nothing (skipped due to action :nothing)
- * runit_service[geo-logcursor] action disable
- * ruby_block[disable geo-logcursor] action run (skipped due to only_if)
- (up to date)
- Recipe: consul::disable_daemon
- * service[consul] action nothing (skipped due to action :nothing)
- * runit_service[consul] action disable
- * ruby_block[disable consul] action run (skipped due to only_if)
- (up to date)
- Recipe: pgbouncer::disable
- * service[pgbouncer] action nothing (skipped due to action :nothing)
- * runit_service[pgbouncer] action disable
- * ruby_block[disable pgbouncer] action run (skipped due to only_if)
- (up to date)
- Recipe: patroni::disable
- * service[patroni] action nothing (skipped due to action :nothing)
- * runit_service[patroni] action disable
- * ruby_block[disable patroni] action run (skipped due to only_if)
- (up to date)
- Recipe: spamcheck::disable
- * service[spamcheck] action nothing (skipped due to action :nothing)
- * runit_service[spamcheck] action disable
- * ruby_block[disable spamcheck] action run (skipped due to only_if)
- (up to date)
- * service[spam-classifier] action nothing (skipped due to action :nothing)
- * runit_service[spam-classifier] action disable
- * ruby_block[disable spam-classifier] action run (skipped due to only_if)
- (up to date)
- Recipe: gitlab-ee::geo-secondary_disable
- * templatesymlink[Removes the geo database settings from database.yml and create a symlink to Rails root] action create
- * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
- (up to date)
- Recipe: gitlab-ee::suggested_reviewers
- * templatesymlink[Create a gitlab_suggested_reviewers_secret and create a symlink to Rails root] action create[2023-06-12T08:53:37+00:00] WARN: only_if block for templatesymlink[Create a gitlab_suggested_reviewers_secret and create a symlink to Rails root] returned a string, did you mean to run a command?
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] action create[2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] created file /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret
- - create new file /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret[2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] updated file contents /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret
- - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret from none to 6163f6
- - suppressed sensitive resource[2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] owner changed to 0
- [2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] group changed to 0
- [2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] mode changed to 644
- - change mode from '' to '0644'
- - change owner from '' to 'root'
- - change group from '' to 'root'
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_suggested_reviewers_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] action create[2023-06-12T08:53:37+00:00] INFO: link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_suggested_reviewers_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] created
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_suggested_reviewers_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret
- [2023-06-12T08:53:37+00:00] INFO: templatesymlink[Create a gitlab.yml and create a symlink to Rails root] sending run action to execute[clear the gitlab-rails cache] (delayed)
- Recipe: gitlab::gitlab-rails
- * execute[clear the gitlab-rails cache] action run[2023-06-12T08:53:57+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully
- - execute /opt/gitlab/bin/gitlab-rake cache:clear
- [2023-06-12T08:53:57+00:00] INFO: version_file[Create version file for Gitlab KAS] sending restart action to runit_service[gitlab-kas] (delayed)
- Recipe: gitlab-kas::enable
- * runit_service[gitlab-kas] action restart (up to date)
- [2023-06-12T08:54:07+00:00] INFO: file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] sending run action to execute[reload all sysctl conf] (delayed)
- Recipe: package::sysctl
- * execute[reload all sysctl conf] action run
- [execute] * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
- * Applying /etc/sysctl.d/99-sysctl.conf ...
- * Applying /usr/lib/sysctl.d/protect-links.conf ...
- * Applying /etc/sysctl.conf ...
- sysctl: permission denied on key "kernel.pid_max"
- sysctl: permission denied on key "kernel.sem"
- sysctl: permission denied on key "kernel.shmall"
- sysctl: permission denied on key "kernel.shmmax"
- sysctl: permission denied on key "fs.protected_fifos"
- sysctl: permission denied on key "fs.protected_hardlinks"
- sysctl: permission denied on key "fs.protected_regular"
- sysctl: permission denied on key "fs.protected_symlinks"
- ================================================================================
- Error executing action `run` on resource 'execute[reload all sysctl conf]'
- ================================================================================
- Mixlib::ShellOut::ShellCommandFailed
- ------------------------------------
- Expected process to exit with [0], but received '255'
- ---- Begin output of sysctl -e --system ----
- STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
- * Applying /etc/sysctl.d/99-sysctl.conf ...
- * Applying /usr/lib/sysctl.d/protect-links.conf ...
- * Applying /etc/sysctl.conf ...
- STDERR: sysctl: permission denied on key "kernel.pid_max"
- sysctl: permission denied on key "kernel.sem"
- sysctl: permission denied on key "kernel.shmall"
- sysctl: permission denied on key "kernel.shmmax"
- sysctl: permission denied on key "fs.protected_fifos"
- sysctl: permission denied on key "fs.protected_hardlinks"
- sysctl: permission denied on key "fs.protected_regular"
- sysctl: permission denied on key "fs.protected_symlinks"
- ---- End output of sysctl -e --system ----
- Ran sysctl -e --system returned 255
- Resource Declaration:
- ---------------------
- # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/recipes/sysctl.rb
- 18: execute "reload all sysctl conf" do
- 19: command "sysctl -e --system"
- 20: action :nothing
- 21:
- 22: only_if { node['package']['modify_kernel_parameters'] }
- 23: end
- Compiled Resource:
- ------------------
- # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/recipes/sysctl.rb:18:in `from_file'
- execute("reload all sysctl conf") do
- action [:nothing]
- default_guard_interpreter :execute
- command "sysctl -e --system"
- declared_type :execute
- cookbook_name "package"
- recipe_name "sysctl"
- domain nil
- user nil
- only_if { #code block }
- end
- System Info:
- ------------
- chef_version=17.10.0
- platform=debian
- platform_version=11
- ruby=ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux]
- program_name=/opt/gitlab/embedded/bin/cinc-client
- executable=/opt/gitlab/embedded/bin/cinc-client
- [2023-06-12T08:54:07+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] sending restart action to runit_service[gitlab-workhorse] (delayed)
- Recipe: gitlab::gitlab-workhorse
- * runit_service[gitlab-workhorse] action restart (up to date)
- [2023-06-12T08:54:07+00:00] INFO: env_dir[/opt/gitlab/etc/node-exporter/env] sending restart action to runit_service[node-exporter] (delayed)
- Recipe: monitoring::node-exporter
- * runit_service[node-exporter] action restart (up to date)
- [2023-06-12T08:54:08+00:00] INFO: env_dir[/opt/gitlab/etc/gitlab-exporter/env] sending restart action to runit_service[gitlab-exporter] (delayed)
- Recipe: monitoring::gitlab-exporter
- * runit_service[gitlab-exporter] action restart (up to date)
- [2023-06-12T08:54:08+00:00] INFO: env_dir[/opt/gitlab/etc/redis-exporter/env] sending restart action to runit_service[redis-exporter] (delayed)
- Recipe: monitoring::redis-exporter
- * runit_service[redis-exporter] action restart (up to date)
- [2023-06-12T08:54:09+00:00] INFO: env_dir[/opt/gitlab/etc/prometheus/env] sending restart action to runit_service[prometheus] (delayed)
- Recipe: monitoring::prometheus
- * runit_service[prometheus] action restart (up to date)
- [2023-06-12T08:54:09+00:00] INFO: file[Prometheus config] sending run action to execute[reload prometheus] (delayed)
- * execute[reload prometheus] action run[2023-06-12T08:54:10+00:00] INFO: execute[reload prometheus] ran successfully
- - execute /opt/gitlab/bin/gitlab-ctl hup prometheus
- [2023-06-12T08:54:10+00:00] INFO: env_dir[/opt/gitlab/etc/alertmanager/env] sending restart action to runit_service[alertmanager] (delayed)
- Recipe: monitoring::alertmanager
- * runit_service[alertmanager] action restart (up to date)
- [2023-06-12T08:54:10+00:00] INFO: env_dir[/opt/gitlab/etc/postgres-exporter/env] sending restart action to runit_service[postgres-exporter] (delayed)
- Recipe: monitoring::postgres-exporter
- * runit_service[postgres-exporter] action restart (up to date)
- Running handlers:
- [2023-06-12T08:54:11+00:00] ERROR: Running exception handlers
- There was an error running gitlab-ctl reconfigure:
- execute[reload all sysctl conf] (package::sysctl line 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
- ---- Begin output of sysctl -e --system ----
- STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
- * Applying /etc/sysctl.d/99-sysctl.conf ...
- * Applying /usr/lib/sysctl.d/protect-links.conf ...
- * Applying /etc/sysctl.conf ...
- STDERR: sysctl: permission denied on key "kernel.pid_max"
- sysctl: permission denied on key "kernel.sem"
- sysctl: permission denied on key "kernel.shmall"
- sysctl: permission denied on key "kernel.shmmax"
- sysctl: permission denied on key "fs.protected_fifos"
- sysctl: permission denied on key "fs.protected_hardlinks"
- sysctl: permission denied on key "fs.protected_regular"
- sysctl: permission denied on key "fs.protected_symlinks"
- ---- End output of sysctl -e --system ----
- Ran sysctl -e --system returned 255
- Warnings:
- Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
- Notes:
- Default admin account has been configured with following details:
- Username: root
- Password: You didn't opt-in to print initial root password to STDOUT.
- Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
- NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
- Running handlers complete
- [2023-06-12T08:54:11+00:00] ERROR: Exception handlers complete
- Infra Phase failed. 350 resources updated in 03 minutes 01 seconds
- Warnings:
- Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
- Notes:
- Default admin account has been configured with following details:
- Username: root
- Password: You didn't opt-in to print initial root password to STDOUT.
- Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
- NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
- [2023-06-12T08:54:11+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
- [2023-06-12T08:54:11+00:00] FATAL: ---------------------------------------------------------------------------------------
- [2023-06-12T08:54:11+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
- [2023-06-12T08:54:11+00:00] FATAL: ---------------------------------------------------------------------------------------
- [2023-06-12T08:54:11+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[reload all sysctl conf] (package::sysctl line 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
- ---- Begin output of sysctl -e --system ----
- STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
- * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
- * Applying /etc/sysctl.d/99-sysctl.conf ...
- * Applying /usr/lib/sysctl.d/protect-links.conf ...
- * Applying /etc/sysctl.conf ...
- STDERR: sysctl: permission denied on key "kernel.pid_max"
- sysctl: permission denied on key "kernel.sem"
- sysctl: permission denied on key "kernel.shmall"
- sysctl: permission denied on key "kernel.shmmax"
- sysctl: permission denied on key "fs.protected_fifos"
- sysctl: permission denied on key "fs.protected_hardlinks"
- sysctl: permission denied on key "fs.protected_regular"
- sysctl: permission denied on key "fs.protected_symlinks"
- ---- End output of sysctl -e --system ----
- Ran sysctl -e --system returned 255
Add Comment
Please, Sign In to add comment