Guest User

Untitled

a guest
Jun 12th, 2023
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 452.81 KB | None | 0 0
  1. root@gitlab:/etc/gitlab# gitlab-ctl reconfigure
  2.  
  3. [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)
  4.  
  5. Cinc Client, version 17.10.0
  6.  
  7. Patents: https://www.chef.io/patents
  8.  
  9. Infra Phase starting
  10.  
  11. [2023-06-12T08:51:10+00:00] INFO: *** Cinc Client 17.10.0 ***
  12.  
  13. [2023-06-12T08:51:10+00:00] INFO: Platform: x86_64-linux
  14.  
  15. [2023-06-12T08:51:10+00:00] INFO: Cinc-client pid: 2522091
  16.  
  17. [2023-06-12T08:51:11+00:00] INFO: Setting the run_list to ["recipe[gitlab-ee]"] from CLI options
  18.  
  19. [2023-06-12T08:51:11+00:00] INFO: Run List is [recipe[gitlab-ee]]
  20.  
  21. [2023-06-12T08:51:11+00:00] INFO: Run List expands to [gitlab-ee]
  22.  
  23. [2023-06-12T08:51:11+00:00] INFO: Starting Cinc Client Run for gitlab.domain
  24.  
  25. [2023-06-12T08:51:11+00:00] INFO: Running start handlers
  26.  
  27. [2023-06-12T08:51:11+00:00] INFO: Start handlers complete.
  28.  
  29. Resolving cookbooks for run list: ["gitlab-ee"]
  30.  
  31. [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]
  32.  
  33. Synchronizing cookbooks:
  34.  
  35. - gitlab-ee (0.0.1)
  36.  
  37. - package (0.1.0)
  38.  
  39. - gitlab (0.0.1)
  40.  
  41. - consul (0.1.0)
  42.  
  43. - patroni (0.1.0)
  44.  
  45. - pgbouncer (0.1.0)
  46.  
  47. - spamcheck (0.1.0)
  48.  
  49. - postgresql (0.1.0)
  50.  
  51. - runit (5.1.7)
  52.  
  53. - logrotate (0.1.0)
  54.  
  55. - redis (0.1.0)
  56.  
  57. - monitoring (0.1.0)
  58.  
  59. - registry (0.1.0)
  60.  
  61. - mattermost (0.1.0)
  62.  
  63. - gitaly (0.1.0)
  64.  
  65. - praefect (0.1.0)
  66.  
  67. - gitlab-kas (0.1.0)
  68.  
  69. - gitlab-pages (0.1.0)
  70.  
  71. - letsencrypt (0.1.0)
  72.  
  73. - nginx (0.1.0)
  74.  
  75. - acme (4.1.6)
  76.  
  77. - crond (0.1.0)
  78.  
  79. Installing cookbook gem dependencies:
  80.  
  81. Compiling cookbooks...
  82.  
  83. Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
  84.  
  85. Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
  86.  
  87. Loading Cinc Auditor profile files:
  88.  
  89. Loading Cinc Auditor input files:
  90.  
  91. Loading Cinc Auditor waiver files:
  92.  
  93. [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.
  94.  
  95. Recipe: gitlab::default
  96.  
  97. * directory[/etc/gitlab] action create (up to date)
  98.  
  99. [2023-06-12T08:51:13+00:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
  100.  
  101. [2023-06-12T08:51:13+00:00] WARN: Selected systemd because /run/systemd/system/ exists
  102.  
  103. [2023-06-12T08:51:13+00:00] WARN: gitlab-shell does not have a log_group or default logdir mode defined. Setting to 0700.
  104.  
  105. [2023-06-12T08:51:13+00:00] WARN: gitlab-sshd does not have a log_group or default logdir mode defined. Setting to 0700.
  106.  
  107. [2023-06-12T08:51:13+00:00] WARN: logrotate does not have a log_group or default logdir mode defined. Setting to 0700.
  108.  
  109. [2023-06-12T08:51:13+00:00] WARN: logrotate does not have a log_group or default logdir mode defined. Setting to 0700.
  110.  
  111. [2023-06-12T08:51:13+00:00] WARN: puma does not have a log_group or default logdir mode defined. Setting to 0700.
  112.  
  113. [2023-06-12T08:51:13+00:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
  114.  
  115. [2023-06-12T08:51:13+00:00] WARN: gitlab-shell does not have a log_group or default logdir mode defined. Setting to 0700.
  116.  
  117. [2023-06-12T08:51:13+00:00] WARN: gitlab-workhorse does not have a log_group or default logdir mode defined. Setting to 0700.
  118.  
  119. [2023-06-12T08:51:13+00:00] WARN: gitlab-pages does not have a log_group or default logdir mode defined. Setting to 0700.
  120.  
  121. [2023-06-12T08:51:13+00:00] WARN: gitlab-kas does not have a log_group or default logdir mode defined. Setting to 0700.
  122.  
  123. [2023-06-12T08:51:13+00:00] WARN: gitaly does not have a log_group or default logdir mode defined. Setting to 0700.
  124.  
  125. [2023-06-12T08:51:13+00:00] WARN: mailroom does not have a log_group or default logdir mode defined. Setting to 0700.
  126.  
  127. [2023-06-12T08:51:13+00:00] WARN: gitaly does not have a log_group or default logdir mode defined. Setting to 0700.
  128.  
  129. [2023-06-12T08:51:13+00:00] WARN: postgresql does not have a log_group or default logdir mode defined. Setting to 0700.
  130.  
  131. [2023-06-12T08:51:13+00:00] WARN: postgresql does not have a log_group or default logdir mode defined. Setting to 0700.
  132.  
  133. [2023-06-12T08:51:13+00:00] INFO: /opt/gitlab/init/postgresql status does not exist.
  134.  
  135. [2023-06-12T08:51:13+00:00] WARN: gitlab-kas does not have a log_group or default logdir mode defined. Setting to 0700.
  136.  
  137. [2023-06-12T08:51:13+00:00] WARN: puma does not have a log_group or default logdir mode defined. Setting to 0700.
  138.  
  139. [2023-06-12T08:51:13+00:00] WARN: sidekiq does not have a log_group or default logdir mode defined. Setting to 0700.
  140.  
  141. [2023-06-12T08:51:13+00:00] WARN: gitlab-workhorse does not have a log_group or default logdir mode defined. Setting to 0700.
  142.  
  143. [2023-06-12T08:51:13+00:00] WARN: node-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
  144.  
  145. [2023-06-12T08:51:13+00:00] WARN: gitlab-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
  146.  
  147. [2023-06-12T08:51:13+00:00] WARN: redis-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
  148.  
  149. [2023-06-12T08:51:13+00:00] WARN: prometheus does not have a log_group or default logdir mode defined. Setting to 0700.
  150.  
  151. [2023-06-12T08:51:14+00:00] WARN: alertmanager does not have a log_group or default logdir mode defined. Setting to 0700.
  152.  
  153. [2023-06-12T08:51:14+00:00] WARN: postgres-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
  154.  
  155. /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
  156.  
  157. /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
  158.  
  159. /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
  160.  
  161. /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
  162.  
  163. Converging 304 resources
  164.  
  165. * directory[/etc/gitlab] action create (up to date)
  166.  
  167. * directory[Create /var/opt/gitlab] action create (up to date)
  168.  
  169. * directory[Create /var/log/gitlab] action create (up to date)
  170.  
  171. * directory[/opt/gitlab/embedded/etc] action create (up to date)
  172.  
  173. * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date)
  174.  
  175. Recipe: gitlab::web-server
  176.  
  177. * account[Webserver user and group] action create
  178.  
  179. * group[Webserver user and group] action create (up to date)
  180.  
  181. * linux_user[Webserver user and group] action create (up to date)
  182.  
  183. (up to date)
  184.  
  185. Recipe: gitlab::users
  186.  
  187. * directory[/var/opt/gitlab] action create (up to date)
  188.  
  189. * account[GitLab user and group] action create
  190.  
  191. * group[GitLab user and group] action create (up to date)
  192.  
  193. * linux_user[GitLab user and group] action create (up to date)
  194.  
  195. (up to date)
  196.  
  197. * 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
  198.  
  199. [2023-06-12T08:51:14+00:00] INFO: template[/var/opt/gitlab/.gitconfig] updated file contents /var/opt/gitlab/.gitconfig
  200.  
  201.  
  202. - update content in file /var/opt/gitlab/.gitconfig from cbd37b to 24783d
  203.  
  204. --- /var/opt/gitlab/.gitconfig 2023-06-08 17:23:57.709198852 +0000
  205.  
  206. +++ /var/opt/gitlab/.chef-.gitconfig20230612-2522091-sxu4dc.gitconfig 2023-06-12 08:51:14.399777780 +0000
  207.  
  208. @@ -4,7 +4,7 @@
  209.  
  210.  
  211. [user]
  212.  
  213. name = GitLab
  214.  
  215. - email = gitlab@git.domain.com
  216.  
  217. + email = gitlab@192.168.100.33
  218.  
  219. [core]
  220.  
  221. autocrlf = input
  222.  
  223.  
  224. * directory[/var/opt/gitlab/.bundle] action create (up to date)
  225.  
  226. Recipe: gitlab::gitlab-rails
  227.  
  228. * storage_directory[/var/opt/gitlab/git-data] action create
  229.  
  230. * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if)
  231.  
  232. (up to date)
  233.  
  234. * storage_directory[/var/opt/gitlab/git-data/repositories] action create
  235.  
  236. * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if)
  237.  
  238. (up to date)
  239.  
  240. Recipe: gitlab::rails_pages_shared_path
  241.  
  242. * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create
  243.  
  244. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if)
  245.  
  246. (up to date)
  247.  
  248. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
  249.  
  250. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if)
  251.  
  252. (up to date)
  253.  
  254. Recipe: gitlab::gitlab-rails
  255.  
  256. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
  257.  
  258. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if)
  259.  
  260. (up to date)
  261.  
  262. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create
  263.  
  264. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if)
  265.  
  266. (up to date)
  267.  
  268. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
  269.  
  270. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if)
  271.  
  272. (up to date)
  273.  
  274. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create
  275.  
  276. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if)
  277.  
  278. (up to date)
  279.  
  280. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create
  281.  
  282. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if)
  283.  
  284. (up to date)
  285.  
  286. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/terraform_state] action create
  287.  
  288. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/terraform_state] action run (skipped due to not_if)
  289.  
  290. (up to date)
  291.  
  292. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action create
  293.  
  294. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action run (skipped due to not_if)
  295.  
  296. (up to date)
  297.  
  298. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action create
  299.  
  300. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action run (skipped due to not_if)
  301.  
  302. (up to date)
  303.  
  304. * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create
  305.  
  306. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if)
  307.  
  308. (up to date)
  309.  
  310. * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create
  311.  
  312. * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if)
  313.  
  314. (up to date)
  315.  
  316. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create
  317.  
  318. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if)
  319.  
  320. (up to date)
  321.  
  322. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create
  323.  
  324. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if)
  325.  
  326. (up to date)
  327.  
  328. * storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if)
  329.  
  330. * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date)
  331.  
  332. * directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date)
  333.  
  334. * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date)
  335.  
  336. * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date)
  337.  
  338. * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date)
  339.  
  340. * directory[/var/log/gitlab/gitlab-rails] action create (up to date)
  341.  
  342. * storage_directory[/var/opt/gitlab/backups] action create
  343.  
  344. * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if)
  345.  
  346. (up to date)
  347.  
  348. * directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
  349.  
  350. * directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
  351.  
  352. * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
  353.  
  354. * 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
  355.  
  356. [2023-06-12T08:51:15+00:00] INFO: template[/opt/gitlab/etc/gitlab-rails-rc] updated file contents /opt/gitlab/etc/gitlab-rails-rc
  357.  
  358.  
  359. - update content in file /opt/gitlab/etc/gitlab-rails-rc from 000a09 to 7b16c8
  360.  
  361. --- /opt/gitlab/etc/gitlab-rails-rc 2023-06-08 17:24:00.873186764 +0000
  362.  
  363. +++ /opt/gitlab/etc/.chef-gitlab-rails-rc20230612-2522091-qv30p3 2023-06-12 08:51:15.199775672 +0000
  364.  
  365. @@ -1,6 +1,6 @@
  366.  
  367. gitlab_user='git'
  368.  
  369. gitlab_group='git'
  370.  
  371. -registry_dir='/var/opt/gitlab/gitlab-rails/shared/registry'
  372.  
  373. +registry_dir=''
  374.  
  375. registry_user='registry'
  376.  
  377. registry_group='registry'
  378.  
  379. * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
  380.  
  381. * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
  382.  
  383. * templatesymlink[Create a database.yml and create a symlink to Rails root] action create
  384.  
  385. * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
  386.  
  387. * 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)
  388.  
  389. (up to date)
  390.  
  391. * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
  392.  
  393. * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
  394.  
  395. * 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)
  396.  
  397. (up to date)
  398.  
  399. * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
  400.  
  401. * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
  402.  
  403. * 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)
  404.  
  405. (up to date)
  406.  
  407. * templatesymlink[Create an override redis.yml and create a symlink to Rails root] action create
  408.  
  409. * template[/var/opt/gitlab/gitlab-rails/etc/redis.yml] action create (up to date)
  410.  
  411. * 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)
  412.  
  413. (up to date)
  414.  
  415. * templatesymlink[Create a cable.yml and create a symlink to Rails root] action create
  416.  
  417. * template[/var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date)
  418.  
  419. * 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)
  420.  
  421. (up to date)
  422.  
  423. * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action delete
  424.  
  425. * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date)
  426.  
  427. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date)
  428.  
  429. (up to date)
  430.  
  431. * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action delete
  432.  
  433. * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date)
  434.  
  435. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date)
  436.  
  437. (up to date)
  438.  
  439. * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action delete
  440.  
  441. * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date)
  442.  
  443. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date)
  444.  
  445. (up to date)
  446.  
  447. * templatesymlink[Create a redis.trace_chunks.yml and create a symlink to Rails root] action delete
  448.  
  449. * file[/var/opt/gitlab/gitlab-rails/etc/redis.trace_chunks.yml] action delete (up to date)
  450.  
  451. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.trace_chunks.yml] action delete (up to date)
  452.  
  453. (up to date)
  454.  
  455. * templatesymlink[Create a redis.rate_limiting.yml and create a symlink to Rails root] action delete
  456.  
  457. * file[/var/opt/gitlab/gitlab-rails/etc/redis.rate_limiting.yml] action delete (up to date)
  458.  
  459. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.rate_limiting.yml] action delete (up to date)
  460.  
  461. (up to date)
  462.  
  463. * templatesymlink[Create a redis.sessions.yml and create a symlink to Rails root] action delete
  464.  
  465. * file[/var/opt/gitlab/gitlab-rails/etc/redis.sessions.yml] action delete (up to date)
  466.  
  467. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.sessions.yml] action delete (up to date)
  468.  
  469. (up to date)
  470.  
  471. * templatesymlink[Create a redis.repository_cache.yml and create a symlink to Rails root] action delete
  472.  
  473. * file[/var/opt/gitlab/gitlab-rails/etc/redis.repository_cache.yml] action delete (up to date)
  474.  
  475. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.repository_cache.yml] action delete (up to date)
  476.  
  477. (up to date)
  478.  
  479. * templatesymlink[Create a redis.cluster_rate_limiting.yml and create a symlink to Rails root] action delete
  480.  
  481. * file[/var/opt/gitlab/gitlab-rails/etc/redis.cluster_rate_limiting.yml] action delete (up to date)
  482.  
  483. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cluster_rate_limiting.yml] action delete (up to date)
  484.  
  485. (up to date)
  486.  
  487. * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete
  488.  
  489. * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
  490.  
  491. * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date)
  492.  
  493. (up to date)
  494.  
  495. * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
  496.  
  497. * 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
  498.  
  499. [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
  500.  
  501.  
  502. - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from 0a686e to c48272
  503.  
  504. - suppressed sensitive resource
  505.  
  506. * 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)
  507.  
  508.  
  509. * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
  510.  
  511. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
  512.  
  513. * 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)
  514.  
  515. (up to date)
  516.  
  517. * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
  518.  
  519. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
  520.  
  521. * 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)
  522.  
  523. (up to date)
  524.  
  525. * templatesymlink[Create a gitlab_incoming_email_secret and create a symlink to Rails root] action create (skipped due to only_if)
  526.  
  527. * templatesymlink[Create a gitlab_service_desk_email_secret and create a symlink to Rails root] action create (skipped due to only_if)
  528.  
  529. * 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?
  530.  
  531.  
  532. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date)
  533.  
  534. * 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)
  535.  
  536. (up to date)
  537.  
  538. * 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?
  539.  
  540.  
  541. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date)
  542.  
  543. * 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)
  544.  
  545. (up to date)
  546.  
  547. * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
  548.  
  549. * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
  550.  
  551. * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
  552.  
  553. * directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)
  554.  
  555. * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)
  556.  
  557. * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)
  558.  
  559. * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)
  560.  
  561. * file[/opt/gitlab/etc/gitlab-rails/env/PUMA_WORKER_MAX_MEMORY] action create (up to date)
  562.  
  563. * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)
  564.  
  565. * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)
  566.  
  567. * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date)
  568.  
  569. * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date)
  570.  
  571. * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date)
  572.  
  573. * file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create (up to date)
  574.  
  575. * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_DIR] action create (up to date)
  576.  
  577. * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_FILE] action create (up to date)
  578.  
  579. (up to date)
  580.  
  581. * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)
  582.  
  583. * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)
  584.  
  585. * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)
  586.  
  587. * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action delete (skipped due to only_if)
  588.  
  589. * file[/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql] action create (up to date)
  590.  
  591. * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date)
  592.  
  593. * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date)
  594.  
  595. * version_file[Create version file for Rails] action create
  596.  
  597. * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date)
  598.  
  599. (up to date)
  600.  
  601. * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
  602.  
  603. * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
  604.  
  605. Recipe: gitlab::selinux
  606.  
  607. * bash[Set proper security context on ssh files for selinux] action nothing (skipped due to action :nothing)
  608.  
  609. Recipe: gitlab::add_trusted_certs
  610.  
  611. * directory[/etc/gitlab/trusted-certs] action create (up to date)
  612.  
  613. * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
  614.  
  615. * file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date)
  616.  
  617. * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if)
  618.  
  619. Recipe: gitlab::default
  620.  
  621. * service[create a temporary puma service] action nothing (skipped due to action :nothing)
  622.  
  623. * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
  624.  
  625. * service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
  626.  
  627. Recipe: package::runit_systemd
  628.  
  629. * directory[/usr/lib/systemd/system] action create (up to date)
  630.  
  631. * template[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
  632.  
  633. * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
  634.  
  635. * file[/etc/systemd/system/basic.target.wants/gitlab-runsvdir.service] action delete (up to date)
  636.  
  637. * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
  638.  
  639. * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
  640.  
  641. * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing)
  642.  
  643. Recipe: gitlab::gitlab-shell
  644.  
  645. * storage_directory[/var/opt/gitlab/.ssh] action create
  646.  
  647. * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if)
  648.  
  649. (up to date)
  650.  
  651. * directory[/var/opt/gitlab/gitlab-shell] action create (up to date)
  652.  
  653. * directory[/var/log/gitlab/gitlab-shell] action create (up to date)
  654.  
  655. * bash[generate gitlab-sshd host keys] action run (skipped due to only_if)
  656.  
  657. * templatesymlink[Create a config.yml and create a symlink to Rails root] action create
  658.  
  659. * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
  660.  
  661. * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
  662.  
  663. (up to date)
  664.  
  665. * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
  666.  
  667. * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date)
  668.  
  669. * env_dir[/opt/gitlab/etc/gitlab-sshd/env] action nothing (skipped due to action :nothing)
  670.  
  671. * service[gitlab-sshd] action nothing (skipped due to action :nothing)
  672.  
  673. * runit_service[gitlab-sshd] action disable
  674.  
  675. * ruby_block[disable gitlab-sshd] action run (skipped due to only_if)
  676.  
  677. (up to date)
  678.  
  679. Recipe: package::sysctl
  680.  
  681. * execute[reload all sysctl conf] action nothing (skipped due to action :nothing)
  682.  
  683. Recipe: logrotate::folders_and_configs
  684.  
  685. * directory[/var/opt/gitlab/logrotate] action create (up to date)
  686.  
  687. * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date)
  688.  
  689. * directory[/var/log/gitlab/logrotate] action create (up to date)
  690.  
  691. * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date)
  692.  
  693. * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date)
  694.  
  695. * template[/var/opt/gitlab/logrotate/logrotate.d/puma] action create (up to date)
  696.  
  697. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date)
  698.  
  699. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date)
  700.  
  701. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date)
  702.  
  703. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date)
  704.  
  705. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-kas] action create (up to date)
  706.  
  707. * template[/var/opt/gitlab/logrotate/logrotate.d/gitaly] action create (up to date)
  708.  
  709. * template[/var/opt/gitlab/logrotate/logrotate.d/mailroom] action create (up to date)
  710.  
  711. Recipe: logrotate::enable
  712.  
  713. * service[logrotate] action nothing (skipped due to action :nothing)
  714.  
  715. * runit_service[logrotate] action enable
  716.  
  717. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  718.  
  719. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  720.  
  721. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  722.  
  723. * directory[/opt/gitlab/sv/logrotate] action create (up to date)
  724.  
  725. * template[/opt/gitlab/sv/logrotate/run] action create (up to date)
  726.  
  727. * directory[/opt/gitlab/sv/logrotate/log] action create (up to date)
  728.  
  729. * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date)
  730.  
  731. * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date)
  732.  
  733. * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing)
  734.  
  735. * link[/var/log/gitlab/logrotate/config] action create (up to date)
  736.  
  737. * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date)
  738.  
  739. * directory[/opt/gitlab/sv/logrotate/env] action create (up to date)
  740.  
  741. * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if)
  742.  
  743. * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if)
  744.  
  745. * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if)
  746.  
  747. * directory[/opt/gitlab/sv/logrotate/control] action create (up to date)
  748.  
  749. * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date)
  750.  
  751. * link[/opt/gitlab/init/logrotate] action create (up to date)
  752.  
  753. * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing)
  754.  
  755. * directory[/opt/gitlab/service] action create (up to date)
  756.  
  757. * link[/opt/gitlab/service/logrotate] action create (up to date)
  758.  
  759. * ruby_block[wait for logrotate service socket] action run (skipped due to not_if)
  760.  
  761. * file[/var/log/gitlab/logrotate/current] action touch (skipped due to only_if)
  762.  
  763. (up to date)
  764.  
  765. * execute[/opt/gitlab/bin/gitlab-ctl start logrotate] action run
  766.  
  767. [execute] ok: run: logrotate: (pid 2496851) 1627s
  768.  
  769. [2023-06-12T08:51:16+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start logrotate] ran successfully
  770.  
  771. - execute /opt/gitlab/bin/gitlab-ctl start logrotate
  772.  
  773. Recipe: redis::enable
  774.  
  775. * 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.
  776.  
  777.  
  778. * account[user and group for redis] action create
  779.  
  780. * group[user and group for redis] action create (up to date)
  781.  
  782. * linux_user[user and group for redis] action create (up to date)
  783.  
  784. (up to date)
  785.  
  786. * group[Socket group] action create (up to date)
  787.  
  788. * directory[/var/opt/gitlab/redis] action create (up to date)
  789.  
  790. * directory[/var/log/gitlab/redis] action create (up to date)
  791.  
  792. * template[/var/opt/gitlab/redis/redis.conf] action create (up to date)
  793.  
  794. * service[redis] action nothing (skipped due to action :nothing)
  795.  
  796. * runit_service[redis] action enable
  797.  
  798. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  799.  
  800. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  801.  
  802. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  803.  
  804. * directory[/opt/gitlab/sv/redis] action create (up to date)
  805.  
  806. * template[/opt/gitlab/sv/redis/run] action create (up to date)
  807.  
  808. * directory[/opt/gitlab/sv/redis/log] action create (up to date)
  809.  
  810. * directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
  811.  
  812. * template[/opt/gitlab/sv/redis/log/config] action create (up to date)
  813.  
  814. * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing)
  815.  
  816. * link[/var/log/gitlab/redis/config] action create (up to date)
  817.  
  818. * template[/opt/gitlab/sv/redis/log/run] action create (up to date)
  819.  
  820. * directory[/opt/gitlab/sv/redis/env] action create (up to date)
  821.  
  822. * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if)
  823.  
  824. * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if)
  825.  
  826. * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if)
  827.  
  828. * directory[/opt/gitlab/sv/redis/control] action create (up to date)
  829.  
  830. * link[/opt/gitlab/init/redis] action create (up to date)
  831.  
  832. * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing)
  833.  
  834. * directory[/opt/gitlab/service] action create (up to date)
  835.  
  836. * link[/opt/gitlab/service/redis] action create (up to date)
  837.  
  838. * ruby_block[wait for redis service socket] action run (skipped due to not_if)
  839.  
  840. * file[/var/log/gitlab/redis/current] action touch (skipped due to only_if)
  841.  
  842. (up to date)
  843.  
  844. * execute[/opt/gitlab/bin/gitlab-ctl start redis] action run
  845.  
  846. [execute] ok: run: redis: (pid 30925) 314825s
  847.  
  848. [2023-06-12T08:51:17+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start redis] ran successfully
  849.  
  850. - execute /opt/gitlab/bin/gitlab-ctl start redis
  851.  
  852. * ruby_block[warn pending redis restart] action run (skipped due to only_if)
  853.  
  854.  
  855. * template[/opt/gitlab/etc/gitlab-redis-cli-rc] action create (up to date)
  856.  
  857. Recipe: gitaly::enable
  858.  
  859. * directory[/var/opt/gitlab/gitaly] action create (up to date)
  860.  
  861. * directory[/var/opt/gitlab/gitaly/run] action create (up to date)
  862.  
  863. * directory[/var/log/gitlab/gitaly] action create (up to date)
  864.  
  865. * directory[/var/opt/gitlab/gitaly/internal_sockets] action delete (up to date)
  866.  
  867. * env_dir[/opt/gitlab/etc/gitaly/env] action create
  868.  
  869. * directory[/opt/gitlab/etc/gitaly/env] action create (up to date)
  870.  
  871. * file[/opt/gitlab/etc/gitaly/env/HOME] action create (up to date)
  872.  
  873. * file[/opt/gitlab/etc/gitaly/env/PATH] action create (up to date)
  874.  
  875. * file[/opt/gitlab/etc/gitaly/env/TZ] action create (up to date)
  876.  
  877. * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create (up to date)
  878.  
  879. * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create (up to date)
  880.  
  881. * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create (up to date)
  882.  
  883. * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create (up to date)
  884.  
  885. * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create (up to date)
  886.  
  887. (up to date)
  888.  
  889. * template[Create Gitaly config.toml] action create (up to date)
  890.  
  891. * service[gitaly] action nothing (skipped due to action :nothing)
  892.  
  893. * runit_service[gitaly] action enable
  894.  
  895. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  896.  
  897. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  898.  
  899. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  900.  
  901. * directory[/opt/gitlab/sv/gitaly] action create (up to date)
  902.  
  903. * template[/opt/gitlab/sv/gitaly/run] action create (up to date)
  904.  
  905. * directory[/opt/gitlab/sv/gitaly/log] action create (up to date)
  906.  
  907. * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date)
  908.  
  909. * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date)
  910.  
  911. * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing)
  912.  
  913. * link[/var/log/gitlab/gitaly/config] action create (up to date)
  914.  
  915. * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date)
  916.  
  917. * directory[/opt/gitlab/sv/gitaly/env] action create (up to date)
  918.  
  919. * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
  920.  
  921. * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
  922.  
  923. * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
  924.  
  925. * directory[/opt/gitlab/sv/gitaly/control] action create (up to date)
  926.  
  927. * link[/opt/gitlab/init/gitaly] action create (up to date)
  928.  
  929. * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing)
  930.  
  931. * directory[/opt/gitlab/service] action create (up to date)
  932.  
  933. * link[/opt/gitlab/service/gitaly] action create (up to date)
  934.  
  935. * ruby_block[wait for gitaly service socket] action run (skipped due to not_if)
  936.  
  937. * file[/var/log/gitlab/gitaly/current] action touch (skipped due to only_if)
  938.  
  939. (up to date)
  940.  
  941. * execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run
  942.  
  943. [execute] ok: run: gitaly: (pid 31291) 314793s
  944.  
  945. [2023-06-12T08:51:18+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start gitaly] ran successfully
  946.  
  947. - execute /opt/gitlab/bin/gitlab-ctl start gitaly
  948.  
  949. * version_file[Create version file for Gitaly] action create
  950.  
  951. * file[/var/opt/gitlab/gitaly/VERSION] action create (up to date)
  952.  
  953. (up to date)
  954.  
  955. * consul_service[gitaly] action delete
  956.  
  957. * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date)
  958.  
  959. (up to date)
  960.  
  961. Recipe: postgresql::bin
  962.  
  963. * ruby_block[check_postgresql_version] action run (skipped due to not_if)
  964.  
  965. * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if)
  966.  
  967. * 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
  968.  
  969.  
  970. - execute the ruby block Link postgresql bin files to the correct version
  971.  
  972. * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
  973.  
  974. Recipe: postgresql::user
  975.  
  976. * account[Postgresql user and group] action create
  977.  
  978. * group[Postgresql user and group] action create (up to date)
  979.  
  980. * linux_user[Postgresql user and group] action create (up to date)
  981.  
  982. (up to date)
  983.  
  984. * directory[/var/opt/gitlab/postgresql] action create (up to date)
  985.  
  986. * file[/var/opt/gitlab/postgresql/.profile] action create (up to date)
  987.  
  988. Recipe: postgresql::sysctl
  989.  
  990. * gitlab_sysctl[kernel.shmmax] action create
  991.  
  992. * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date)
  993.  
  994. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date)
  995.  
  996. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date)
  997.  
  998. * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing)
  999.  
  1000. (up to date)
  1001.  
  1002. * gitlab_sysctl[kernel.shmall] action create
  1003.  
  1004. * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date)
  1005.  
  1006. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date)
  1007.  
  1008. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date)
  1009.  
  1010. * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing)
  1011.  
  1012. (up to date)
  1013.  
  1014. * gitlab_sysctl[kernel.sem] action create
  1015.  
  1016. * directory[create /etc/sysctl.d for kernel.sem] action create (up to date)
  1017.  
  1018. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date)
  1019.  
  1020. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date)
  1021.  
  1022. * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing)
  1023.  
  1024. (up to date)
  1025.  
  1026. Recipe: postgresql::enable
  1027.  
  1028. * directory[/var/opt/gitlab/postgresql] action create (up to date)
  1029.  
  1030. * 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
  1031.  
  1032.  
  1033. - 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
  1034.  
  1035. [2023-06-12T08:51:19+00:00] INFO: directory[/var/opt/gitlab/postgresql/data] mode changed to 700
  1036.  
  1037.  
  1038. - change mode from '' to '0700'
  1039.  
  1040. - change owner from '' to 'gitlab-psql'
  1041.  
  1042. * directory[/var/opt/gitlab/postgresql/data] action create (up to date)
  1043.  
  1044. * 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
  1045.  
  1046.  
  1047. - create new directory /var/log/gitlab/postgresql[2023-06-12T08:51:19+00:00] INFO: directory[/var/log/gitlab/postgresql] owner changed to 995
  1048.  
  1049. [2023-06-12T08:51:19+00:00] INFO: directory[/var/log/gitlab/postgresql] mode changed to 700
  1050.  
  1051.  
  1052. - change mode from '' to '0700'
  1053.  
  1054. - change owner from '' to 'gitlab-psql'
  1055.  
  1056. * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run
  1057.  
  1058. [execute] The files belonging to this database system will be owned by user "gitlab-psql".
  1059.  
  1060. This user must also own the server process.
  1061.  
  1062.  
  1063. The database cluster will be initialized with locale "C".
  1064.  
  1065. The default text search configuration will be set to "english".
  1066.  
  1067.  
  1068. Data page checksums are disabled.
  1069.  
  1070.  
  1071. fixing permissions on existing directory /var/opt/gitlab/postgresql/data ... ok
  1072.  
  1073. creating subdirectories ... ok
  1074.  
  1075. selecting dynamic shared memory implementation ... posix
  1076.  
  1077. selecting default max_connections ... 100
  1078.  
  1079. selecting default shared_buffers ... 128MB
  1080.  
  1081. selecting default time zone ... Etc/UTC
  1082.  
  1083. creating configuration files ... ok
  1084.  
  1085. running bootstrap script ... ok
  1086.  
  1087. performing post-bootstrap initialization ... ok
  1088.  
  1089. syncing data to disk ... ok
  1090.  
  1091.  
  1092.  
  1093. Success. You can now start the database server using:
  1094.  
  1095.  
  1096. /opt/gitlab/embedded/bin/pg_ctl -D /var/opt/gitlab/postgresql/data -l logfile start
  1097.  
  1098.  
  1099. initdb: warning: enabling "trust" authentication for local connections
  1100.  
  1101. You can change this by editing pg_hba.conf or using the option -A, or
  1102.  
  1103. --auth-local and --auth-host, the next time you run initdb.
  1104.  
  1105. [2023-06-12T08:51:23+00:00] INFO: execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] ran successfully
  1106.  
  1107. - execute /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8
  1108.  
  1109. * 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
  1110.  
  1111.  
  1112. - 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
  1113.  
  1114.  
  1115. - update content in file /var/opt/gitlab/postgresql/data/server.crt from none to 11600b
  1116.  
  1117. - suppressed sensitive resource[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] owner changed to 995
  1118.  
  1119. [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] group changed to 995
  1120.  
  1121. [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] mode changed to 600
  1122.  
  1123.  
  1124. - change mode from '' to '0600'
  1125.  
  1126. - change owner from '' to 'gitlab-psql'
  1127.  
  1128. - change group from '' to 'gitlab-psql'
  1129.  
  1130. * 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
  1131.  
  1132.  
  1133. - 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
  1134.  
  1135.  
  1136. - update content in file /var/opt/gitlab/postgresql/data/server.key from none to b520be
  1137.  
  1138. - suppressed sensitive resource[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] owner changed to 995
  1139.  
  1140. [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] group changed to 995
  1141.  
  1142. [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] mode changed to 600
  1143.  
  1144.  
  1145. - change mode from '' to '0600'
  1146.  
  1147. - change owner from '' to 'gitlab-psql'
  1148.  
  1149. - change group from '' to 'gitlab-psql'
  1150.  
  1151. * postgresql_config[gitlab] action create
  1152.  
  1153. * 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
  1154.  
  1155. [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
  1156.  
  1157.  
  1158. - update content in file /var/opt/gitlab/postgresql/data/postgresql.conf from 345513 to e0d332
  1159.  
  1160. --- /var/opt/gitlab/postgresql/data/postgresql.conf 2023-06-12 08:51:19.947763143 +0000
  1161.  
  1162. +++ /var/opt/gitlab/postgresql/data/.chef-postgresql20230612-2522091-hzdfsa.conf 2023-06-12 08:51:23.611753451 +0000
  1163.  
  1164. @@ -1,3 +1,7 @@
  1165.  
  1166. +# This file is managed by gitlab-ctl. Manual changes will be
  1167.  
  1168. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  1169.  
  1170. +# and run `sudo gitlab-ctl reconfigure`.
  1171.  
  1172. +
  1173.  
  1174. # -----------------------------
  1175.  
  1176. # PostgreSQL configuration file
  1177.  
  1178. # -----------------------------
  1179.  
  1180. @@ -16,19 +20,18 @@
  1181.  
  1182. #
  1183.  
  1184. # This file is read on server startup and when the server receives a SIGHUP
  1185.  
  1186. # signal. If you edit the file on a running system, you have to SIGHUP the
  1187.  
  1188. -# server for the changes to take effect, run "pg_ctl reload", or execute
  1189.  
  1190. -# "SELECT pg_reload_conf()". Some parameters, which are marked below,
  1191.  
  1192. -# require a server shutdown and restart to take effect.
  1193.  
  1194. +# server for the changes to take effect, or use "pg_ctl reload". Some
  1195.  
  1196. +# parameters, which are marked below, require a server shutdown and restart to
  1197.  
  1198. +# take effect.
  1199.  
  1200. #
  1201.  
  1202. # Any parameter can also be given as a command-line option to the server, e.g.,
  1203.  
  1204. # "postgres -c log_connections=on". Some parameters can be changed at run time
  1205.  
  1206. # with the "SET" SQL command.
  1207.  
  1208. #
  1209.  
  1210. -# Memory units: B = bytes Time units: us = microseconds
  1211.  
  1212. -# kB = kilobytes ms = milliseconds
  1213.  
  1214. +# Memory units: kB = kilobytes Time units: ms = milliseconds
  1215.  
  1216. # MB = megabytes s = seconds
  1217.  
  1218. # GB = gigabytes min = minutes
  1219.  
  1220. -# TB = terabytes h = hours
  1221.  
  1222. +# h = hours
  1223.  
  1224. # d = days
  1225.  
  1226.  
  1227.  
  1228. @@ -39,16 +42,16 @@
  1229.  
  1230. # The default values of these variables are driven from the -D command-line
  1231.  
  1232. # option or PGDATA environment variable, represented here as ConfigDir.
  1233.  
  1234.  
  1235. -#data_directory = 'ConfigDir' # use data in another directory
  1236.  
  1237. - # (change requires restart)
  1238.  
  1239. -#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
  1240.  
  1241. - # (change requires restart)
  1242.  
  1243. -#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
  1244.  
  1245. - # (change requires restart)
  1246.  
  1247. +#data_directory = 'ConfigDir' # use data in another directory
  1248.  
  1249. + # (change requires restart)
  1250.  
  1251. +#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
  1252.  
  1253. + # (change requires restart)
  1254.  
  1255. +#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
  1256.  
  1257. + # (change requires restart)
  1258.  
  1259.  
  1260. # If external_pid_file is not explicitly set, no extra PID file is written.
  1261.  
  1262. -#external_pid_file = '' # write an extra PID file
  1263.  
  1264. - # (change requires restart)
  1265.  
  1266. +#external_pid_file = '(none)' # write an extra PID file
  1267.  
  1268. + # (change requires restart)
  1269.  
  1270.  
  1271.  
  1272. #------------------------------------------------------------------------------
  1273.  
  1274. @@ -57,60 +60,57 @@
  1275.  
  1276.  
  1277. # - Connection Settings -
  1278.  
  1279.  
  1280. -#listen_addresses = 'localhost' # what IP address(es) to listen on;
  1281.  
  1282. - # comma-separated list of addresses;
  1283.  
  1284. - # defaults to 'localhost'; use '*' for all
  1285.  
  1286. - # (change requires restart)
  1287.  
  1288. -#port = 5432 # (change requires restart)
  1289.  
  1290. -max_connections = 100 # (change requires restart)
  1291.  
  1292. -#superuser_reserved_connections = 3 # (change requires restart)
  1293.  
  1294. -#unix_socket_directories = '/tmp' # comma-separated list of directories
  1295.  
  1296. - # (change requires restart)
  1297.  
  1298. -#unix_socket_group = '' # (change requires restart)
  1299.  
  1300. -#unix_socket_permissions = 0777 # begin with 0 to use octal notation
  1301.  
  1302. - # (change requires restart)
  1303.  
  1304. -#bonjour = off # advertise server via Bonjour
  1305.  
  1306. - # (change requires restart)
  1307.  
  1308. -#bonjour_name = '' # defaults to the computer name
  1309.  
  1310. - # (change requires restart)
  1311.  
  1312. +listen_addresses = '' # what IP address(es) to listen on;
  1313.  
  1314. + # comma-separated list of addresses;
  1315.  
  1316. + # defaults to 'localhost', '*' = all
  1317.  
  1318. + # (change requires restart)
  1319.  
  1320. +port = 5432 # (change requires restart)
  1321.  
  1322. +max_connections = 400 # (change requires restart)
  1323.  
  1324. +# Note: Increasing max_connections costs ~400 bytes of shared memory per
  1325.  
  1326. +# connection slot, plus lock space (see max_locks_per_transaction).
  1327.  
  1328. +#superuser_reserved_connections = 3 # (change requires restart)
  1329.  
  1330. +unix_socket_directories = '/var/opt/gitlab/postgresql' # (change requires restart)
  1331.  
  1332. +#unix_socket_group = '' # (change requires restart)
  1333.  
  1334. +#unix_socket_permissions = 0777 # begin with 0 to use octal notation
  1335.  
  1336. + # (change requires restart)
  1337.  
  1338. +#bonjour = off # advertise server via Bonjour
  1339.  
  1340. + # (change requires restart)
  1341.  
  1342. +#bonjour_name = '' # defaults to the computer name
  1343.  
  1344. + # (change requires restart)
  1345.  
  1346.  
  1347. -# - TCP settings -
  1348.  
  1349. -# see "man tcp" for details
  1350.  
  1351. +# - Security and Authentication -
  1352.  
  1353.  
  1354. -#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
  1355.  
  1356. - # 0 selects the system default
  1357.  
  1358. -#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
  1359.  
  1360. - # 0 selects the system default
  1361.  
  1362. -#tcp_keepalives_count = 0 # TCP_KEEPCNT;
  1363.  
  1364. - # 0 selects the system default
  1365.  
  1366. -#tcp_user_timeout = 0 # TCP_USER_TIMEOUT, in milliseconds;
  1367.  
  1368. - # 0 selects the system default
  1369.  
  1370. +#authentication_timeout = 1min # 1s-600s
  1371.  
  1372.  
  1373. -# - Authentication -
  1374.  
  1375. +# change requires restart
  1376.  
  1377. +ssl = on
  1378.  
  1379.  
  1380. -#authentication_timeout = 1min # 1s-600s
  1381.  
  1382. -#password_encryption = md5 # md5 or scram-sha-256
  1383.  
  1384. +# allowed SSL ciphers
  1385.  
  1386. +ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL:!SSLv3:!TLSv1'
  1387.  
  1388. +
  1389.  
  1390. +ssl_cert_file = 'server.crt'
  1391.  
  1392. +ssl_key_file = 'server.key'
  1393.  
  1394. +ssl_ca_file = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
  1395.  
  1396. +
  1397.  
  1398. +
  1399.  
  1400. +#ssl_renegotiation_limit = 512MB # amount of data between renegotiations
  1401.  
  1402. +#password_encryption = on
  1403.  
  1404. #db_user_namespace = off
  1405.  
  1406.  
  1407. -# GSSAPI using Kerberos
  1408.  
  1409. -#krb_server_keyfile = 'FILE:${sysconfdir}/krb5.keytab'
  1410.  
  1411. +# Kerberos and GSSAPI
  1412.  
  1413. +#krb_server_keyfile = ''
  1414.  
  1415. +#krb_srvname = 'postgres' # (Kerberos only)
  1416.  
  1417. #krb_caseins_users = off
  1418.  
  1419.  
  1420. -# - SSL -
  1421.  
  1422. +# - TCP Keepalives -
  1423.  
  1424. +# see "man 7 tcp" for details
  1425.  
  1426.  
  1427. -#ssl = off
  1428.  
  1429. -#ssl_ca_file = ''
  1430.  
  1431. -#ssl_cert_file = 'server.crt'
  1432.  
  1433. -#ssl_crl_file = ''
  1434.  
  1435. -#ssl_key_file = 'server.key'
  1436.  
  1437. -#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
  1438.  
  1439. -#ssl_prefer_server_ciphers = on
  1440.  
  1441. -#ssl_ecdh_curve = 'prime256v1'
  1442.  
  1443. -#ssl_min_protocol_version = 'TLSv1.2'
  1444.  
  1445. -#ssl_max_protocol_version = ''
  1446.  
  1447. -#ssl_dh_params_file = ''
  1448.  
  1449. -#ssl_passphrase_command = ''
  1450.  
  1451. -#ssl_passphrase_command_supports_reload = off
  1452.  
  1453. +#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
  1454.  
  1455. + # 0 selects the system default
  1456.  
  1457. +#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
  1458.  
  1459. + # 0 selects the system default
  1460.  
  1461. +#tcp_keepalives_count = 0 # TCP_KEEPCNT;
  1462.  
  1463. + # 0 selects the system default
  1464.  
  1465.  
  1466.  
  1467. #------------------------------------------------------------------------------
  1468.  
  1469. @@ -119,233 +119,105 @@
  1470.  
  1471.  
  1472. # - Memory -
  1473.  
  1474.  
  1475. -shared_buffers = 128MB # min 128kB
  1476.  
  1477. - # (change requires restart)
  1478.  
  1479. -#huge_pages = try # on, off, or try
  1480.  
  1481. - # (change requires restart)
  1482.  
  1483. -#temp_buffers = 8MB # min 800kB
  1484.  
  1485. -#max_prepared_transactions = 0 # zero disables the feature
  1486.  
  1487. - # (change requires restart)
  1488.  
  1489. -# Caution: it is not advisable to set max_prepared_transactions nonzero unless
  1490.  
  1491. -# you actively intend to use prepared transactions.
  1492.  
  1493. -#work_mem = 4MB # min 64kB
  1494.  
  1495. -#hash_mem_multiplier = 1.0 # 1-1000.0 multiplier on hash table work_mem
  1496.  
  1497. -#maintenance_work_mem = 64MB # min 1MB
  1498.  
  1499. -#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
  1500.  
  1501. -#logical_decoding_work_mem = 64MB # min 64kB
  1502.  
  1503. -#max_stack_depth = 2MB # min 100kB
  1504.  
  1505. -#shared_memory_type = mmap # the default is the first option
  1506.  
  1507. - # supported by the operating system:
  1508.  
  1509. - # mmap
  1510.  
  1511. - # sysv
  1512.  
  1513. - # windows
  1514.  
  1515. - # (change requires restart)
  1516.  
  1517. -dynamic_shared_memory_type = posix # the default is the first option
  1518.  
  1519. - # supported by the operating system:
  1520.  
  1521. - # posix
  1522.  
  1523. - # sysv
  1524.  
  1525. - # windows
  1526.  
  1527. - # mmap
  1528.  
  1529. - # (change requires restart)
  1530.  
  1531. +shared_buffers = 2048MB # min 128kB
  1532.  
  1533. + # (change requires restart)
  1534.  
  1535. +#temp_buffers = 8MB # min 800kB
  1536.  
  1537. +#max_prepared_transactions = 0 # zero disables the feature
  1538.  
  1539. + # (change requires restart)
  1540.  
  1541. +# Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
  1542.  
  1543. +# per transaction slot, plus lock space (see max_locks_per_transaction).
  1544.  
  1545. +# It is not advisable to set max_prepared_transactions nonzero unless you
  1546.  
  1547. +# actively intend to use prepared transactions.
  1548.  
  1549. +#max_stack_depth = 2MB # min 100kB
  1550.  
  1551.  
  1552. -# - Disk -
  1553.  
  1554. +# - Kernel Resource Usage -
  1555.  
  1556.  
  1557. -#temp_file_limit = -1 # limits per-process temp file space
  1558.  
  1559. - # in kilobytes, or -1 for no limit
  1560.  
  1561. +#max_files_per_process = 1000 # min 25
  1562.  
  1563. + # (change requires restart)
  1564.  
  1565. +shared_preload_libraries = '' # (change requires restart)
  1566.  
  1567.  
  1568. -# - Kernel Resources -
  1569.  
  1570. -
  1571.  
  1572. -#max_files_per_process = 1000 # min 64
  1573.  
  1574. - # (change requires restart)
  1575.  
  1576. -
  1577.  
  1578. # - Cost-Based Vacuum Delay -
  1579.  
  1580.  
  1581. -#vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables)
  1582.  
  1583. -#vacuum_cost_page_hit = 1 # 0-10000 credits
  1584.  
  1585. -#vacuum_cost_page_miss = 10 # 0-10000 credits
  1586.  
  1587. -#vacuum_cost_page_dirty = 20 # 0-10000 credits
  1588.  
  1589. -#vacuum_cost_limit = 200 # 1-10000 credits
  1590.  
  1591. +#vacuum_cost_delay = 0ms # 0-100 milliseconds
  1592.  
  1593. +#vacuum_cost_page_hit = 1 # 0-10000 credits
  1594.  
  1595. +#vacuum_cost_page_miss = 10 # 0-10000 credits
  1596.  
  1597. +#vacuum_cost_page_dirty = 20 # 0-10000 credits
  1598.  
  1599. +#vacuum_cost_limit = 200 # 1-10000 credits
  1600.  
  1601.  
  1602. # - Background Writer -
  1603.  
  1604.  
  1605. -#bgwriter_delay = 200ms # 10-10000ms between rounds
  1606.  
  1607. -#bgwriter_lru_maxpages = 100 # max buffers written/round, 0 disables
  1608.  
  1609. -#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round
  1610.  
  1611. -#bgwriter_flush_after = 512kB # measured in pages, 0 disables
  1612.  
  1613. +#bgwriter_delay = 200ms # 10-10000ms between rounds
  1614.  
  1615. +#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
  1616.  
  1617. +#bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
  1618.  
  1619.  
  1620. # - Asynchronous Behavior -
  1621.  
  1622.  
  1623. -#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
  1624.  
  1625. -#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
  1626.  
  1627. -#max_worker_processes = 8 # (change requires restart)
  1628.  
  1629. -#max_parallel_maintenance_workers = 2 # taken from max_parallel_workers
  1630.  
  1631. -#max_parallel_workers_per_gather = 2 # taken from max_parallel_workers
  1632.  
  1633. -#parallel_leader_participation = on
  1634.  
  1635. -#max_parallel_workers = 8 # maximum number of max_worker_processes that
  1636.  
  1637. - # can be used in parallel operations
  1638.  
  1639. -#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
  1640.  
  1641. - # (change requires restart)
  1642.  
  1643. -#backend_flush_after = 0 # measured in pages, 0 disables
  1644.  
  1645. +#effective_io_concurrency = 1 # 1-1000. 0 disables prefetching
  1646.  
  1647.  
  1648.  
  1649. #------------------------------------------------------------------------------
  1650.  
  1651. -# WRITE-AHEAD LOG
  1652.  
  1653. +# WRITE AHEAD LOG
  1654.  
  1655. #------------------------------------------------------------------------------
  1656.  
  1657.  
  1658. # - Settings -
  1659.  
  1660.  
  1661. -#wal_level = replica # minimal, replica, or logical
  1662.  
  1663. - # (change requires restart)
  1664.  
  1665. -#fsync = on # flush data to disk for crash safety
  1666.  
  1667. - # (turning this off can cause
  1668.  
  1669. - # unrecoverable data corruption)
  1670.  
  1671. -#synchronous_commit = on # synchronization level;
  1672.  
  1673. - # off, local, remote_write, remote_apply, or on
  1674.  
  1675. -#wal_sync_method = fsync # the default is the first option
  1676.  
  1677. - # supported by the operating system:
  1678.  
  1679. - # open_datasync
  1680.  
  1681. - # fdatasync (default on Linux and FreeBSD)
  1682.  
  1683. - # fsync
  1684.  
  1685. - # fsync_writethrough
  1686.  
  1687. - # open_sync
  1688.  
  1689. -#full_page_writes = on # recover from partial page writes
  1690.  
  1691. -#wal_compression = off # enable compression of full-page writes
  1692.  
  1693. -#wal_log_hints = off # also do full page writes of non-critical updates
  1694.  
  1695. - # (change requires restart)
  1696.  
  1697. -#wal_init_zero = on # zero-fill new WAL files
  1698.  
  1699. -#wal_recycle = on # recycle WAL files
  1700.  
  1701. -#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
  1702.  
  1703. - # (change requires restart)
  1704.  
  1705. -#wal_writer_delay = 200ms # 1-10000 milliseconds
  1706.  
  1707. -#wal_writer_flush_after = 1MB # measured in pages, 0 disables
  1708.  
  1709. -#wal_skip_threshold = 2MB
  1710.  
  1711. +wal_level = minimal
  1712.  
  1713. +wal_log_hints = off # also do full page writes of non-critical updates
  1714.  
  1715. + # (change requires restart)
  1716.  
  1717. +#fsync = on # turns forced synchronization on or off
  1718.  
  1719. +#wal_sync_method = fsync # the default is the first option
  1720.  
  1721. + # supported by the operating system:
  1722.  
  1723. + # open_datasync
  1724.  
  1725. + # fdatasync (default on Linux)
  1726.  
  1727. + # fsync
  1728.  
  1729. + # fsync_writethrough
  1730.  
  1731. + # open_sync
  1732.  
  1733. +#full_page_writes = on # recover from partial page writes
  1734.  
  1735. +wal_buffers = -1 # -1 # min 32kB, -1 sets based on shared_buffers
  1736.  
  1737. + # (change requires restart)
  1738.  
  1739. +#wal_writer_delay = 200ms # 1-10000 milliseconds
  1740.  
  1741.  
  1742. -#commit_delay = 0 # range 0-100000, in microseconds
  1743.  
  1744. -#commit_siblings = 5 # range 1-1000
  1745.  
  1746. +#commit_delay = 0 # range 0-100000, in microseconds
  1747.  
  1748. +#commit_siblings = 5 # range 1-1000
  1749.  
  1750.  
  1751. -# - Checkpoints -
  1752.  
  1753. -
  1754.  
  1755. -#checkpoint_timeout = 5min # range 30s-1d
  1756.  
  1757. -max_wal_size = 1GB
  1758.  
  1759. min_wal_size = 80MB
  1760.  
  1761. -#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
  1762.  
  1763. -#checkpoint_flush_after = 256kB # measured in pages, 0 disables
  1764.  
  1765. -#checkpoint_warning = 30s # 0 disables
  1766.  
  1767. +max_wal_size = 1GB
  1768.  
  1769.  
  1770. -# - Archiving -
  1771.  
  1772. +# The number of replication slots to reserve.
  1773.  
  1774. +max_replication_slots = 0
  1775.  
  1776.  
  1777. -#archive_mode = off # enables archiving; off, on, or always
  1778.  
  1779. - # (change requires restart)
  1780.  
  1781. -#archive_command = '' # command to use to archive a logfile segment
  1782.  
  1783. - # placeholders: %p = path of file to archive
  1784.  
  1785. - # %f = file name only
  1786.  
  1787. - # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
  1788.  
  1789. -#archive_timeout = 0 # force a logfile segment switch after this
  1790.  
  1791. - # number of seconds; 0 disables
  1792.  
  1793.  
  1794. -# - Archive Recovery -
  1795.  
  1796. +# - Archiving -
  1797.  
  1798.  
  1799. -# These are only used in recovery mode.
  1800.  
  1801. +archive_mode = off # allows archiving to be done
  1802.  
  1803. + # (change requires restart, also requires 'wal_level' of 'hot_standby' OR 'replica')
  1804.  
  1805.  
  1806. -#restore_command = '' # command to use to restore an archived logfile segment
  1807.  
  1808. - # placeholders: %p = path of file to restore
  1809.  
  1810. - # %f = file name only
  1811.  
  1812. - # e.g. 'cp /mnt/server/archivedir/%f %p'
  1813.  
  1814. - # (change requires restart)
  1815.  
  1816. -#archive_cleanup_command = '' # command to execute at every restartpoint
  1817.  
  1818. -#recovery_end_command = '' # command to execute at completion of recovery
  1819.  
  1820. -
  1821.  
  1822. -# - Recovery Target -
  1823.  
  1824. -
  1825.  
  1826. -# Set these only when performing a targeted recovery.
  1827.  
  1828. -
  1829.  
  1830. -#recovery_target = '' # 'immediate' to end recovery as soon as a
  1831.  
  1832. - # consistent state is reached
  1833.  
  1834. - # (change requires restart)
  1835.  
  1836. -#recovery_target_name = '' # the named restore point to which recovery will proceed
  1837.  
  1838. - # (change requires restart)
  1839.  
  1840. -#recovery_target_time = '' # the time stamp up to which recovery will proceed
  1841.  
  1842. - # (change requires restart)
  1843.  
  1844. -#recovery_target_xid = '' # the transaction ID up to which recovery will proceed
  1845.  
  1846. - # (change requires restart)
  1847.  
  1848. -#recovery_target_lsn = '' # the WAL LSN up to which recovery will proceed
  1849.  
  1850. - # (change requires restart)
  1851.  
  1852. -#recovery_target_inclusive = on # Specifies whether to stop:
  1853.  
  1854. - # just after the specified recovery target (on)
  1855.  
  1856. - # just before the recovery target (off)
  1857.  
  1858. - # (change requires restart)
  1859.  
  1860. -#recovery_target_timeline = 'latest' # 'current', 'latest', or timeline ID
  1861.  
  1862. - # (change requires restart)
  1863.  
  1864. -#recovery_target_action = 'pause' # 'pause', 'promote', 'shutdown'
  1865.  
  1866. - # (change requires restart)
  1867.  
  1868. -
  1869.  
  1870. -
  1871.  
  1872. #------------------------------------------------------------------------------
  1873.  
  1874. # REPLICATION
  1875.  
  1876. #------------------------------------------------------------------------------
  1877.  
  1878.  
  1879. -# - Sending Servers -
  1880.  
  1881. -
  1882.  
  1883. -# Set these on the master and on any standby that will send replication data.
  1884.  
  1885. -
  1886.  
  1887. -#max_wal_senders = 10 # max number of walsender processes
  1888.  
  1889. - # (change requires restart)
  1890.  
  1891. -#wal_keep_size = 0 # in megabytes; 0 disables
  1892.  
  1893. -#max_slot_wal_keep_size = -1 # in megabytes; -1 disables
  1894.  
  1895. -#wal_sender_timeout = 60s # in milliseconds; 0 disables
  1896.  
  1897. -
  1898.  
  1899. -#max_replication_slots = 10 # max number of replication slots
  1900.  
  1901. - # (change requires restart)
  1902.  
  1903. -#track_commit_timestamp = off # collect timestamp of transaction commit
  1904.  
  1905. - # (change requires restart)
  1906.  
  1907. -
  1908.  
  1909. # - Master Server -
  1910.  
  1911.  
  1912. -# These settings are ignored on a standby server.
  1913.  
  1914. +# These settings are ignored on a standby server
  1915.  
  1916.  
  1917. -#synchronous_standby_names = '' # standby servers that provide sync rep
  1918.  
  1919. - # method to choose sync standbys, number of sync standbys,
  1920.  
  1921. - # and comma-separated list of application_name
  1922.  
  1923. - # from standby(s); '*' = all
  1924.  
  1925. -#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
  1926.  
  1927. +max_wal_senders = 0
  1928.  
  1929. + # (change requires restart)
  1930.  
  1931. +#wal_sender_delay = 1s # walsender cycle time, 1-10000 milliseconds
  1932.  
  1933. +#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
  1934.  
  1935. +#replication_timeout = 60s # in milliseconds; 0 disables
  1936.  
  1937. +#synchronous_standby_names = '' # standby servers that provide sync rep
  1938.  
  1939. + # comma-separated list of application_name
  1940.  
  1941. + # from standby(s); '*' = all
  1942.  
  1943.  
  1944. # - Standby Servers -
  1945.  
  1946.  
  1947. -# These settings are ignored on a master server.
  1948.  
  1949. +# These settings are ignored on a master server
  1950.  
  1951.  
  1952. -#primary_conninfo = '' # connection string to sending server
  1953.  
  1954. -#primary_slot_name = '' # replication slot on sending server
  1955.  
  1956. -#promote_trigger_file = '' # file name whose presence ends recovery
  1957.  
  1958. -#hot_standby = on # "off" disallows queries during recovery
  1959.  
  1960. - # (change requires restart)
  1961.  
  1962. -#max_standby_archive_delay = 30s # max delay before canceling queries
  1963.  
  1964. - # when reading WAL from archive;
  1965.  
  1966. - # -1 allows indefinite delay
  1967.  
  1968. -#max_standby_streaming_delay = 30s # max delay before canceling queries
  1969.  
  1970. - # when reading streaming WAL;
  1971.  
  1972. - # -1 allows indefinite delay
  1973.  
  1974. -#wal_receiver_create_temp_slot = off # create temp slot if primary_slot_name
  1975.  
  1976. - # is not set
  1977.  
  1978. -#wal_receiver_status_interval = 10s # send replies at least this often
  1979.  
  1980. - # 0 disables
  1981.  
  1982. -#hot_standby_feedback = off # send info from standby to prevent
  1983.  
  1984. - # query conflicts
  1985.  
  1986. -#wal_receiver_timeout = 60s # time that receiver waits for
  1987.  
  1988. - # communication from master
  1989.  
  1990. - # in milliseconds; 0 disables
  1991.  
  1992. -#wal_retrieve_retry_interval = 5s # time to wait before retrying to
  1993.  
  1994. - # retrieve WAL after a failed attempt
  1995.  
  1996. -#recovery_min_apply_delay = 0 # minimum delay for applying changes during recovery
  1997.  
  1998. +hot_standby = off
  1999.  
  2000. + # (change requires restart)
  2001.  
  2002. +#wal_receiver_status_interval = 10s # send replies at least this often
  2003.  
  2004. + # 0 disables
  2005.  
  2006.  
  2007. -# - Subscribers -
  2008.  
  2009. -
  2010.  
  2011. -# These settings are ignored on a publisher.
  2012.  
  2013. -
  2014.  
  2015. -#max_logical_replication_workers = 4 # taken from max_worker_processes
  2016.  
  2017. - # (change requires restart)
  2018.  
  2019. -#max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers
  2020.  
  2021. -
  2022.  
  2023. -
  2024.  
  2025. #------------------------------------------------------------------------------
  2026.  
  2027. # QUERY TUNING
  2028.  
  2029. #------------------------------------------------------------------------------
  2030.  
  2031. @@ -356,237 +228,126 @@
  2032.  
  2033. #enable_hashagg = on
  2034.  
  2035. #enable_hashjoin = on
  2036.  
  2037. #enable_indexscan = on
  2038.  
  2039. -#enable_indexonlyscan = on
  2040.  
  2041. #enable_material = on
  2042.  
  2043. #enable_mergejoin = on
  2044.  
  2045. #enable_nestloop = on
  2046.  
  2047. -#enable_parallel_append = on
  2048.  
  2049. #enable_seqscan = on
  2050.  
  2051. #enable_sort = on
  2052.  
  2053. -#enable_incremental_sort = on
  2054.  
  2055. #enable_tidscan = on
  2056.  
  2057. -#enable_partitionwise_join = off
  2058.  
  2059. -#enable_partitionwise_aggregate = off
  2060.  
  2061. -#enable_parallel_hash = on
  2062.  
  2063. -#enable_partition_pruning = on
  2064.  
  2065.  
  2066. # - Planner Cost Constants -
  2067.  
  2068.  
  2069. -#seq_page_cost = 1.0 # measured on an arbitrary scale
  2070.  
  2071. -#random_page_cost = 4.0 # same scale as above
  2072.  
  2073. -#cpu_tuple_cost = 0.01 # same scale as above
  2074.  
  2075. -#cpu_index_tuple_cost = 0.005 # same scale as above
  2076.  
  2077. -#cpu_operator_cost = 0.0025 # same scale as above
  2078.  
  2079. -#parallel_tuple_cost = 0.1 # same scale as above
  2080.  
  2081. -#parallel_setup_cost = 1000.0 # same scale as above
  2082.  
  2083. +#cpu_tuple_cost = 0.01 # same scale as above
  2084.  
  2085. +#cpu_index_tuple_cost = 0.005 # same scale as above
  2086.  
  2087. +#cpu_operator_cost = 0.0025 # same scale as above
  2088.  
  2089.  
  2090. -#jit_above_cost = 100000 # perform JIT compilation if available
  2091.  
  2092. - # and query more expensive than this;
  2093.  
  2094. - # -1 disables
  2095.  
  2096. -#jit_inline_above_cost = 500000 # inline small functions if query is
  2097.  
  2098. - # more expensive than this; -1 disables
  2099.  
  2100. -#jit_optimize_above_cost = 500000 # use expensive JIT optimizations if
  2101.  
  2102. - # query is more expensive than this;
  2103.  
  2104. - # -1 disables
  2105.  
  2106. -
  2107.  
  2108. -#min_parallel_table_scan_size = 8MB
  2109.  
  2110. -#min_parallel_index_scan_size = 512kB
  2111.  
  2112. -#effective_cache_size = 4GB
  2113.  
  2114. -
  2115.  
  2116. # - Genetic Query Optimizer -
  2117.  
  2118.  
  2119. #geqo = on
  2120.  
  2121. #geqo_threshold = 12
  2122.  
  2123. -#geqo_effort = 5 # range 1-10
  2124.  
  2125. -#geqo_pool_size = 0 # selects default based on effort
  2126.  
  2127. -#geqo_generations = 0 # selects default based on effort
  2128.  
  2129. -#geqo_selection_bias = 2.0 # range 1.5-2.0
  2130.  
  2131. -#geqo_seed = 0.0 # range 0.0-1.0
  2132.  
  2133. +#geqo_effort = 5 # range 1-10
  2134.  
  2135. +#geqo_pool_size = 0 # selects default based on effort
  2136.  
  2137. +#geqo_generations = 0 # selects default based on effort
  2138.  
  2139. +#geqo_selection_bias = 2.0 # range 1.5-2.0
  2140.  
  2141. +#geqo_seed = 0.0 # range 0.0-1.0
  2142.  
  2143.  
  2144. # - Other Planner Options -
  2145.  
  2146.  
  2147. -#default_statistics_target = 100 # range 1-10000
  2148.  
  2149. -#constraint_exclusion = partition # on, off, or partition
  2150.  
  2151. -#cursor_tuple_fraction = 0.1 # range 0.0-1.0
  2152.  
  2153. +#default_statistics_target = 100 # range 1-10000
  2154.  
  2155. +#constraint_exclusion = partition # on, off, or partition
  2156.  
  2157. +#cursor_tuple_fraction = 0.1 # range 0.0-1.0
  2158.  
  2159. #from_collapse_limit = 8
  2160.  
  2161. -#join_collapse_limit = 8 # 1 disables collapsing of explicit
  2162.  
  2163. - # JOIN clauses
  2164.  
  2165. -#force_parallel_mode = off
  2166.  
  2167. -#jit = on # allow JIT compilation
  2168.  
  2169. -#plan_cache_mode = auto # auto, force_generic_plan or
  2170.  
  2171. - # force_custom_plan
  2172.  
  2173. +#join_collapse_limit = 8 # 1 disables collapsing of explicit
  2174.  
  2175. + # JOIN clauses
  2176.  
  2177.  
  2178.  
  2179. #------------------------------------------------------------------------------
  2180.  
  2181. -# REPORTING AND LOGGING
  2182.  
  2183. +# ERROR REPORTING AND LOGGING
  2184.  
  2185. #------------------------------------------------------------------------------
  2186.  
  2187.  
  2188. -# - Where to Log -
  2189.  
  2190.  
  2191. -#log_destination = 'stderr' # Valid values are combinations of
  2192.  
  2193. - # stderr, csvlog, syslog, and eventlog,
  2194.  
  2195. - # depending on platform. csvlog
  2196.  
  2197. - # requires logging_collector to be on.
  2198.  
  2199. -
  2200.  
  2201. -# This is used when logging to stderr:
  2202.  
  2203. -#logging_collector = off # Enable capturing of stderr and csvlog
  2204.  
  2205. - # into log files. Required to be on for
  2206.  
  2207. - # csvlogs.
  2208.  
  2209. - # (change requires restart)
  2210.  
  2211. -
  2212.  
  2213. -# These are only used if logging_collector is on:
  2214.  
  2215. -#log_directory = 'log' # directory where log files are written,
  2216.  
  2217. - # can be absolute or relative to PGDATA
  2218.  
  2219. -#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
  2220.  
  2221. - # can include strftime() escapes
  2222.  
  2223. -#log_file_mode = 0600 # creation mode for log files,
  2224.  
  2225. - # begin with 0 to use octal notation
  2226.  
  2227. -#log_truncate_on_rotation = off # If on, an existing log file with the
  2228.  
  2229. - # same name as the new log file will be
  2230.  
  2231. - # truncated rather than appended to.
  2232.  
  2233. - # But such truncation only occurs on
  2234.  
  2235. - # time-driven rotation, not on restarts
  2236.  
  2237. - # or size-driven rotation. Default is
  2238.  
  2239. - # off, meaning append to existing files
  2240.  
  2241. - # in all cases.
  2242.  
  2243. -#log_rotation_age = 1d # Automatic rotation of logfiles will
  2244.  
  2245. - # happen after that time. 0 disables.
  2246.  
  2247. -#log_rotation_size = 10MB # Automatic rotation of logfiles will
  2248.  
  2249. - # happen after that much log output.
  2250.  
  2251. - # 0 disables.
  2252.  
  2253. -
  2254.  
  2255. # These are relevant when logging to syslog:
  2256.  
  2257. #syslog_facility = 'LOCAL0'
  2258.  
  2259. #syslog_ident = 'postgres'
  2260.  
  2261. -#syslog_sequence_numbers = on
  2262.  
  2263. -#syslog_split_messages = on
  2264.  
  2265.  
  2266. -# This is only relevant when logging to eventlog (win32):
  2267.  
  2268. -# (change requires restart)
  2269.  
  2270. -#event_source = 'PostgreSQL'
  2271.  
  2272. +#silent_mode = off # Run server silently.
  2273.  
  2274. + # DO NOT USE without syslog or
  2275.  
  2276. + # logging_collector
  2277.  
  2278. + # (change requires restart)
  2279.  
  2280.  
  2281. +
  2282.  
  2283. # - When to Log -
  2284.  
  2285.  
  2286. -#log_min_messages = warning # values in order of decreasing detail:
  2287.  
  2288. - # debug5
  2289.  
  2290. - # debug4
  2291.  
  2292. - # debug3
  2293.  
  2294. - # debug2
  2295.  
  2296. - # debug1
  2297.  
  2298. - # info
  2299.  
  2300. - # notice
  2301.  
  2302. - # warning
  2303.  
  2304. - # error
  2305.  
  2306. - # log
  2307.  
  2308. - # fatal
  2309.  
  2310. - # panic
  2311.  
  2312. +#client_min_messages = notice # values in order of decreasing detail:
  2313.  
  2314. + # debug5
  2315.  
  2316. + # debug4
  2317.  
  2318. + # debug3
  2319.  
  2320. + # debug2
  2321.  
  2322. + # debug1
  2323.  
  2324. + # log
  2325.  
  2326. + # notice
  2327.  
  2328. + # warning
  2329.  
  2330. + # error
  2331.  
  2332.  
  2333. -#log_min_error_statement = error # values in order of decreasing detail:
  2334.  
  2335. - # debug5
  2336.  
  2337. - # debug4
  2338.  
  2339. - # debug3
  2340.  
  2341. - # debug2
  2342.  
  2343. - # debug1
  2344.  
  2345. - # info
  2346.  
  2347. - # notice
  2348.  
  2349. - # warning
  2350.  
  2351. - # error
  2352.  
  2353. - # log
  2354.  
  2355. - # fatal
  2356.  
  2357. - # panic (effectively off)
  2358.  
  2359. +#log_min_messages = warning # values in order of decreasing detail:
  2360.  
  2361. + # debug5
  2362.  
  2363. + # debug4
  2364.  
  2365. + # debug3
  2366.  
  2367. + # debug2
  2368.  
  2369. + # debug1
  2370.  
  2371. + # info
  2372.  
  2373. + # notice
  2374.  
  2375. + # warning
  2376.  
  2377. + # error
  2378.  
  2379. + # log
  2380.  
  2381. + # fatal
  2382.  
  2383. + # panic
  2384.  
  2385.  
  2386. -#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
  2387.  
  2388. - # and their durations, > 0 logs only
  2389.  
  2390. - # statements running at least this number
  2391.  
  2392. - # of milliseconds
  2393.  
  2394. +#log_min_error_statement = error # values in order of decreasing detail:
  2395.  
  2396. + # debug5
  2397.  
  2398. + # debug4
  2399.  
  2400. + # debug3
  2401.  
  2402. + # debug2
  2403.  
  2404. + # debug1
  2405.  
  2406. + # info
  2407.  
  2408. + # notice
  2409.  
  2410. + # warning
  2411.  
  2412. + # error
  2413.  
  2414. + # log
  2415.  
  2416. + # fatal
  2417.  
  2418. + # panic (effectively off)
  2419.  
  2420.  
  2421. -#log_min_duration_sample = -1 # -1 is disabled, 0 logs a sample of statements
  2422.  
  2423. - # and their durations, > 0 logs only a sample of
  2424.  
  2425. - # statements running at least this number
  2426.  
  2427. - # of milliseconds;
  2428.  
  2429. - # sample fraction is determined by log_statement_sample_rate
  2430.  
  2431. -
  2432.  
  2433. -#log_statement_sample_rate = 1.0 # fraction of logged statements exceeding
  2434.  
  2435. - # log_min_duration_sample to be logged;
  2436.  
  2437. - # 1.0 logs all such statements, 0.0 never logs
  2438.  
  2439. -
  2440.  
  2441. -
  2442.  
  2443. -#log_transaction_sample_rate = 0.0 # fraction of transactions whose statements
  2444.  
  2445. - # are logged regardless of their duration; 1.0 logs all
  2446.  
  2447. - # statements from all transactions, 0.0 never logs
  2448.  
  2449. -
  2450.  
  2451. # - What to Log -
  2452.  
  2453.  
  2454. #debug_print_parse = off
  2455.  
  2456. #debug_print_rewritten = off
  2457.  
  2458. #debug_print_plan = off
  2459.  
  2460. #debug_pretty_print = on
  2461.  
  2462. -#log_checkpoints = off
  2463.  
  2464. #log_connections = off
  2465.  
  2466. #log_disconnections = off
  2467.  
  2468. #log_duration = off
  2469.  
  2470. -#log_error_verbosity = default # terse, default, or verbose messages
  2471.  
  2472. +#log_error_verbosity = default # terse, default, or verbose messages
  2473.  
  2474. #log_hostname = off
  2475.  
  2476. -#log_line_prefix = '%m [%p] ' # special values:
  2477.  
  2478. - # %a = application name
  2479.  
  2480. - # %u = user name
  2481.  
  2482. - # %d = database name
  2483.  
  2484. - # %r = remote host and port
  2485.  
  2486. - # %h = remote host
  2487.  
  2488. - # %b = backend type
  2489.  
  2490. - # %p = process ID
  2491.  
  2492. - # %t = timestamp without milliseconds
  2493.  
  2494. - # %m = timestamp with milliseconds
  2495.  
  2496. - # %n = timestamp with milliseconds (as a Unix epoch)
  2497.  
  2498. - # %i = command tag
  2499.  
  2500. - # %e = SQL state
  2501.  
  2502. - # %c = session ID
  2503.  
  2504. - # %l = session line number
  2505.  
  2506. - # %s = session start timestamp
  2507.  
  2508. - # %v = virtual transaction ID
  2509.  
  2510. - # %x = transaction ID (0 if none)
  2511.  
  2512. - # %q = stop here in non-session
  2513.  
  2514. - # processes
  2515.  
  2516. - # %% = '%'
  2517.  
  2518. - # e.g. '<%u%%%d> '
  2519.  
  2520. -#log_lock_waits = off # log lock waits >= deadlock_timeout
  2521.  
  2522. -#log_parameter_max_length = -1 # when logging statements, limit logged
  2523.  
  2524. - # bind-parameter values to N bytes;
  2525.  
  2526. - # -1 means print in full, 0 disables
  2527.  
  2528. -#log_parameter_max_length_on_error = 0 # when logging an error, limit logged
  2529.  
  2530. - # bind-parameter values to N bytes;
  2531.  
  2532. - # -1 means print in full, 0 disables
  2533.  
  2534. -#log_statement = 'none' # none, ddl, mod, all
  2535.  
  2536. -#log_replication_commands = off
  2537.  
  2538. -#log_temp_files = -1 # log temporary files equal or larger
  2539.  
  2540. - # than the specified size in kilobytes;
  2541.  
  2542. - # -1 disables, 0 logs all temp files
  2543.  
  2544. -log_timezone = 'Etc/UTC'
  2545.  
  2546. +#log_lock_waits = off # log lock waits >= deadlock_timeout
  2547.  
  2548. +#log_statement = 'none' # none, ddl, mod, all
  2549.  
  2550. +#log_timezone = '(defaults to server environment setting)'
  2551.  
  2552.  
  2553. -#------------------------------------------------------------------------------
  2554.  
  2555. -# PROCESS TITLE
  2556.  
  2557. -#------------------------------------------------------------------------------
  2558.  
  2559.  
  2560. -#cluster_name = '' # added to process titles if nonempty
  2561.  
  2562. - # (change requires restart)
  2563.  
  2564. -#update_process_title = on
  2565.  
  2566. -
  2567.  
  2568. -
  2569.  
  2570. #------------------------------------------------------------------------------
  2571.  
  2572. -# STATISTICS
  2573.  
  2574. +# RUNTIME STATISTICS
  2575.  
  2576. #------------------------------------------------------------------------------
  2577.  
  2578.  
  2579. -# - Query and Index Statistics Collector -
  2580.  
  2581. +# - Query/Index Statistics Collector -
  2582.  
  2583.  
  2584. #track_activities = on
  2585.  
  2586. #track_counts = on
  2587.  
  2588. -#track_io_timing = off
  2589.  
  2590. -#track_functions = none # none, pl, all
  2591.  
  2592. -#track_activity_query_size = 1024 # (change requires restart)
  2593.  
  2594. +#track_functions = none # none, pl, all
  2595.  
  2596. +track_activity_query_size = 1024 # (change requires restart)
  2597.  
  2598. +#update_process_title = on
  2599.  
  2600. #stats_temp_directory = 'pg_stat_tmp'
  2601.  
  2602.  
  2603.  
  2604. -# - Monitoring -
  2605.  
  2606. +# - Statistics Monitoring -
  2607.  
  2608.  
  2609. #log_parser_stats = off
  2610.  
  2611. #log_planner_stats = off
  2612.  
  2613. @@ -595,122 +356,53 @@
  2614.  
  2615.  
  2616.  
  2617. #------------------------------------------------------------------------------
  2618.  
  2619. -# AUTOVACUUM
  2620.  
  2621. +# AUTOVACUUM PARAMETERS
  2622.  
  2623. #------------------------------------------------------------------------------
  2624.  
  2625.  
  2626. -#autovacuum = on # Enable autovacuum subprocess? 'on'
  2627.  
  2628. - # requires track_counts to also be on.
  2629.  
  2630. -#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
  2631.  
  2632. - # their durations, > 0 logs only
  2633.  
  2634. - # actions running at least this number
  2635.  
  2636. - # of milliseconds.
  2637.  
  2638. -#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
  2639.  
  2640. - # (change requires restart)
  2641.  
  2642. -#autovacuum_naptime = 1min # time between autovacuum runs
  2643.  
  2644. -#autovacuum_vacuum_threshold = 50 # min number of row updates before
  2645.  
  2646. - # vacuum
  2647.  
  2648. -#autovacuum_vacuum_insert_threshold = 1000 # min number of row inserts
  2649.  
  2650. - # before vacuum; -1 disables insert
  2651.  
  2652. - # vacuums
  2653.  
  2654. -#autovacuum_analyze_threshold = 50 # min number of row updates before
  2655.  
  2656. - # analyze
  2657.  
  2658. -#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
  2659.  
  2660. -#autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of inserts over table
  2661.  
  2662. - # size before insert vacuum
  2663.  
  2664. -#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
  2665.  
  2666. -#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
  2667.  
  2668. - # (change requires restart)
  2669.  
  2670. -#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
  2671.  
  2672. - # before forced vacuum
  2673.  
  2674. - # (change requires restart)
  2675.  
  2676. -#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
  2677.  
  2678. - # autovacuum, in milliseconds;
  2679.  
  2680. - # -1 means use vacuum_cost_delay
  2681.  
  2682. -#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
  2683.  
  2684. - # autovacuum, -1 means use
  2685.  
  2686. - # vacuum_cost_limit
  2687.  
  2688. -
  2689.  
  2690. -
  2691.  
  2692. +autovacuum_max_workers = 3 # max number of autovacuum subprocesses
  2693.  
  2694. + # (change requires restart)
  2695.  
  2696. +autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
  2697.  
  2698. + # (change requires restart)
  2699.  
  2700. #------------------------------------------------------------------------------
  2701.  
  2702. # CLIENT CONNECTION DEFAULTS
  2703.  
  2704. #------------------------------------------------------------------------------
  2705.  
  2706.  
  2707. # - Statement Behavior -
  2708.  
  2709.  
  2710. -#client_min_messages = notice # values in order of decreasing detail:
  2711.  
  2712. - # debug5
  2713.  
  2714. - # debug4
  2715.  
  2716. - # debug3
  2717.  
  2718. - # debug2
  2719.  
  2720. - # debug1
  2721.  
  2722. - # log
  2723.  
  2724. - # notice
  2725.  
  2726. - # warning
  2727.  
  2728. - # error
  2729.  
  2730. -#search_path = '"$user", public' # schema names
  2731.  
  2732. -#row_security = on
  2733.  
  2734. -#default_tablespace = '' # a tablespace name, '' uses the default
  2735.  
  2736. -#temp_tablespaces = '' # a list of tablespace names, '' uses
  2737.  
  2738. - # only default tablespace
  2739.  
  2740. -#default_table_access_method = 'heap'
  2741.  
  2742. +#search_path = '"$user",public' # schema names
  2743.  
  2744. +#default_tablespace = '' # a tablespace name, '' uses the default
  2745.  
  2746. +#temp_tablespaces = '' # a list of tablespace names, '' uses
  2747.  
  2748. + # only default tablespace
  2749.  
  2750. #check_function_bodies = on
  2751.  
  2752. #default_transaction_isolation = 'read committed'
  2753.  
  2754. #default_transaction_read_only = off
  2755.  
  2756. #default_transaction_deferrable = off
  2757.  
  2758. #session_replication_role = 'origin'
  2759.  
  2760. -#statement_timeout = 0 # in milliseconds, 0 is disabled
  2761.  
  2762. -#lock_timeout = 0 # in milliseconds, 0 is disabled
  2763.  
  2764. -#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
  2765.  
  2766. #vacuum_freeze_min_age = 50000000
  2767.  
  2768. #vacuum_freeze_table_age = 150000000
  2769.  
  2770. -#vacuum_multixact_freeze_min_age = 5000000
  2771.  
  2772. -#vacuum_multixact_freeze_table_age = 150000000
  2773.  
  2774. -#vacuum_cleanup_index_scale_factor = 0.1 # fraction of total number of tuples
  2775.  
  2776. - # before index cleanup, 0 always performs
  2777.  
  2778. - # index cleanup
  2779.  
  2780. -#bytea_output = 'hex' # hex, escape
  2781.  
  2782. +#bytea_output = 'hex' # hex, escape
  2783.  
  2784. #xmlbinary = 'base64'
  2785.  
  2786. #xmloption = 'content'
  2787.  
  2788. -#gin_fuzzy_search_limit = 0
  2789.  
  2790. -#gin_pending_list_limit = 4MB
  2791.  
  2792.  
  2793. # - Locale and Formatting -
  2794.  
  2795.  
  2796. -datestyle = 'iso, mdy'
  2797.  
  2798. #intervalstyle = 'postgres'
  2799.  
  2800. -timezone = 'Etc/UTC'
  2801.  
  2802. +#timezone = '(defaults to server environment setting)'
  2803.  
  2804. #timezone_abbreviations = 'Default' # Select the set of available time zone
  2805.  
  2806. - # abbreviations. Currently, there are
  2807.  
  2808. - # Default
  2809.  
  2810. - # Australia (historical usage)
  2811.  
  2812. - # India
  2813.  
  2814. - # You can create your own file in
  2815.  
  2816. - # share/timezonesets/.
  2817.  
  2818. -#extra_float_digits = 1 # min -15, max 3; any value >0 actually
  2819.  
  2820. - # selects precise output mode
  2821.  
  2822. -#client_encoding = sql_ascii # actually, defaults to database
  2823.  
  2824. - # encoding
  2825.  
  2826. + # abbreviations. Currently, there are
  2827.  
  2828. + # Default
  2829.  
  2830. + # Australia
  2831.  
  2832. + # India
  2833.  
  2834. + # You can create your own file in
  2835.  
  2836. + # share/timezonesets/.
  2837.  
  2838. +#extra_float_digits = 0 # min -15, max 3
  2839.  
  2840. +#client_encoding = sql_ascii # actually, defaults to database
  2841.  
  2842. + # encoding
  2843.  
  2844.  
  2845. -# These settings are initialized by initdb, but they can be changed.
  2846.  
  2847. -lc_messages = 'C' # locale for system error message
  2848.  
  2849. - # strings
  2850.  
  2851. -lc_monetary = 'C' # locale for monetary formatting
  2852.  
  2853. -lc_numeric = 'C' # locale for number formatting
  2854.  
  2855. -lc_time = 'C' # locale for time formatting
  2856.  
  2857. -
  2858.  
  2859. -# default configuration for text search
  2860.  
  2861. -default_text_search_config = 'pg_catalog.english'
  2862.  
  2863. -
  2864.  
  2865. -# - Shared Library Preloading -
  2866.  
  2867. -
  2868.  
  2869. -#shared_preload_libraries = '' # (change requires restart)
  2870.  
  2871. -#local_preload_libraries = ''
  2872.  
  2873. -#session_preload_libraries = ''
  2874.  
  2875. -#jit_provider = 'llvmjit' # JIT library to use
  2876.  
  2877. -
  2878.  
  2879. # - Other Defaults -
  2880.  
  2881.  
  2882. #dynamic_library_path = '$libdir'
  2883.  
  2884. +#local_preload_libraries = ''
  2885.  
  2886.  
  2887.  
  2888. #------------------------------------------------------------------------------
  2889.  
  2890. @@ -718,28 +410,27 @@
  2891.  
  2892. #------------------------------------------------------------------------------
  2893.  
  2894.  
  2895. #deadlock_timeout = 1s
  2896.  
  2897. -#max_locks_per_transaction = 64 # min 10
  2898.  
  2899. - # (change requires restart)
  2900.  
  2901. -#max_pred_locks_per_transaction = 64 # min 10
  2902.  
  2903. - # (change requires restart)
  2904.  
  2905. -#max_pred_locks_per_relation = -2 # negative values mean
  2906.  
  2907. - # (max_pred_locks_per_transaction
  2908.  
  2909. - # / -max_pred_locks_per_relation) - 1
  2910.  
  2911. -#max_pred_locks_per_page = 2 # min 0
  2912.  
  2913. +max_locks_per_transaction = 128 # min 10
  2914.  
  2915. + # (change requires restart)
  2916.  
  2917. +# Note: Each lock table slot uses ~270 bytes of shared memory, and there are
  2918.  
  2919. +# max_locks_per_transaction * (max_connections + max_prepared_transactions)
  2920.  
  2921. +# lock table slots.
  2922.  
  2923. +#max_pred_locks_per_transaction = 64 # min 10
  2924.  
  2925. + # (change requires restart)
  2926.  
  2927.  
  2928. -
  2929.  
  2930. #------------------------------------------------------------------------------
  2931.  
  2932. -# VERSION AND PLATFORM COMPATIBILITY
  2933.  
  2934. +# VERSION/PLATFORM COMPATIBILITY
  2935.  
  2936. #------------------------------------------------------------------------------
  2937.  
  2938.  
  2939. # - Previous PostgreSQL Versions -
  2940.  
  2941.  
  2942. #array_nulls = on
  2943.  
  2944. -#backslash_quote = safe_encoding # on, off, or safe_encoding
  2945.  
  2946. +#backslash_quote = safe_encoding # on, off, or safe_encoding
  2947.  
  2948. +#default_with_oids = off
  2949.  
  2950. #escape_string_warning = on
  2951.  
  2952. #lo_compat_privileges = off
  2953.  
  2954. -#operator_precedence_warning = off
  2955.  
  2956. #quote_all_identifiers = off
  2957.  
  2958. +#sql_inheritance = on
  2959.  
  2960. #standard_conforming_strings = on
  2961.  
  2962. #synchronize_seqscans = on
  2963.  
  2964.  
  2965. @@ -752,30 +443,15 @@
  2966.  
  2967. # ERROR HANDLING
  2968.  
  2969. #------------------------------------------------------------------------------
  2970.  
  2971.  
  2972. -#exit_on_error = off # terminate session on any error?
  2973.  
  2974. -#restart_after_crash = on # reinitialize after backend crash?
  2975.  
  2976. -#data_sync_retry = off # retry or panic on failure to fsync
  2977.  
  2978. - # data?
  2979.  
  2980. - # (change requires restart)
  2981.  
  2982. +#exit_on_error = off # terminate session on any error?
  2983.  
  2984. +#restart_after_crash = on # reinitialize after backend crash?
  2985.  
  2986.  
  2987.  
  2988. #------------------------------------------------------------------------------
  2989.  
  2990. -# CONFIG FILE INCLUDES
  2991.  
  2992. -#------------------------------------------------------------------------------
  2993.  
  2994. -
  2995.  
  2996. -# These options allow settings to be loaded from files other than the
  2997.  
  2998. -# default postgresql.conf. Note that these are directives, not variable
  2999.  
  3000. -# assignments, so they can usefully be given more than once.
  3001.  
  3002. -
  3003.  
  3004. -#include_dir = '...' # include files ending in '.conf' from
  3005.  
  3006. - # a directory, e.g., 'conf.d'
  3007.  
  3008. -#include_if_exists = '...' # include file only if it exists
  3009.  
  3010. -#include = '...' # include file
  3011.  
  3012. -
  3013.  
  3014. -
  3015.  
  3016. -#------------------------------------------------------------------------------
  3017.  
  3018. # CUSTOMIZED OPTIONS
  3019.  
  3020. #------------------------------------------------------------------------------
  3021.  
  3022.  
  3023. -# Add settings for extensions here
  3024.  
  3025. +#custom_variable_classes = '' # list of custom variable class names
  3026.  
  3027. +
  3028.  
  3029. +include 'runtime.conf'[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/postgresql.conf] mode changed to 644
  3030.  
  3031.  
  3032. - change mode from '0600' to '0644'
  3033.  
  3034. * 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
  3035.  
  3036.  
  3037. - 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
  3038.  
  3039.  
  3040. - update content in file /var/opt/gitlab/postgresql/data/runtime.conf from none to 27284b
  3041.  
  3042. --- /var/opt/gitlab/postgresql/data/runtime.conf 2023-06-12 08:51:23.651753344 +0000
  3043.  
  3044. +++ /var/opt/gitlab/postgresql/data/.chef-runtime20230612-2522091-6rnzb4.conf 2023-06-12 08:51:23.651753344 +0000
  3045.  
  3046. @@ -1,134 +1,268 @@
  3047.  
  3048. +# This file is managed by gitlab-ctl. Manual changes will be
  3049.  
  3050. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  3051.  
  3052. +# and run `sudo gitlab-ctl reconfigure`.
  3053.  
  3054. +
  3055.  
  3056. +# Changing variables in this file should only require a reload of PostgreSQL
  3057.  
  3058. +# As the gitlab-psql user, run:
  3059.  
  3060. +# /opt/gitlab/embedded/bin/pg_ctl reload -D /var/opt/gitlab/postgresql/data
  3061.  
  3062. +work_mem = 16MB # min 64kB
  3063.  
  3064. +maintenance_work_mem = 16MB # 16MB # min 1MB
  3065.  
  3066. +synchronous_commit = on # synchronization level; on, off, or local
  3067.  
  3068. +synchronous_standby_names = ''
  3069.  
  3070. +
  3071.  
  3072. +# - Checkpoints -
  3073.  
  3074. +min_wal_size = 80MB
  3075.  
  3076. +max_wal_size = 1GB
  3077.  
  3078. +
  3079.  
  3080. +checkpoint_timeout = 5min # range 30s-1h, default 5min
  3081.  
  3082. +checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0, default 0.5
  3083.  
  3084. +checkpoint_warning = 30s # 0 disables, default 30s
  3085.  
  3086. +
  3087.  
  3088. +# - Logging -
  3089.  
  3090. +log_directory = '/var/log/gitlab/postgresql'
  3091.  
  3092. +
  3093.  
  3094. +# - Archiving -
  3095.  
  3096. +archive_command = '' # command to use to archive a logfile segment
  3097.  
  3098. +archive_timeout = 0 # force a logfile segment switch after this
  3099.  
  3100. + # number of seconds; 0 disables
  3101.  
  3102. +
  3103.  
  3104. +# - Replication
  3105.  
  3106. +wal_keep_size = 160
  3107.  
  3108. +
  3109.  
  3110. +max_standby_archive_delay = 30s # max delay before canceling queries
  3111.  
  3112. + # when reading WAL from archive;
  3113.  
  3114. + # -1 allows indefinite delay
  3115.  
  3116. +max_standby_streaming_delay = 30s # max delay before canceling queries
  3117.  
  3118. + # when reading streaming WAL;
  3119.  
  3120. + # -1 allows indefinite delay
  3121.  
  3122. +
  3123.  
  3124. +hot_standby_feedback = off # send info from standby to prevent
  3125.  
  3126. + # query conflicts
  3127.  
  3128. +
  3129.  
  3130. +# - Planner Cost Constants -
  3131.  
  3132. +#seq_page_cost = 1.0 # measured on an arbitrary scale
  3133.  
  3134. +random_page_cost = 2.0 # same scale as above
  3135.  
  3136. +
  3137.  
  3138. +effective_cache_size = 4096MB # Default 128MB
  3139.  
  3140. +
  3141.  
  3142. +log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
  3143.  
  3144. + # and their durations, > 0 logs only
  3145.  
  3146. + # statements running at least this number
  3147.  
  3148. + # of milliseconds
  3149.  
  3150. +
  3151.  
  3152. +log_checkpoints = off
  3153.  
  3154. +
  3155.  
  3156. +log_line_prefix = '' # default '', special values:
  3157.  
  3158. + # %a = application name
  3159.  
  3160. + # %u = user name
  3161.  
  3162. + # %d = database name
  3163.  
  3164. + # %r = remote host and port
  3165.  
  3166. + # %h = remote host
  3167.  
  3168. + # %p = process ID
  3169.  
  3170. + # %t = timestamp without milliseconds
  3171.  
  3172. + # %m = timestamp with milliseconds
  3173.  
  3174. + # %i = command tag
  3175.  
  3176. + # %e = SQL state
  3177.  
  3178. + # %c = session ID
  3179.  
  3180. + # %l = session line number
  3181.  
  3182. + # %s = session start timestamp
  3183.  
  3184. + # %v = virtual transaction ID
  3185.  
  3186. + # %x = transaction ID (0 if none)
  3187.  
  3188. + # %q = stop here in non-session
  3189.  
  3190. + # processes
  3191.  
  3192. + # %% = '%'
  3193.  
  3194. +
  3195.  
  3196. +log_temp_files = -1 # log temporary files equal or larger
  3197.  
  3198. + # than the specified size in kilobytes;
  3199.  
  3200. + # -1 disables, 0 logs all temp files
  3201.  
  3202. +
  3203.  
  3204. +
  3205.  
  3206. +# - Autovacuum parameters -
  3207.  
  3208. +autovacuum = on # Enable autovacuum subprocess? 'on'
  3209.  
  3210. + # requires track_counts to also be on.
  3211.  
  3212. +
  3213.  
  3214. +log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
  3215.  
  3216. + # their durations, > 0 logs only
  3217.  
  3218. + # actions running at least this number
  3219.  
  3220. + # of milliseconds.
  3221.  
  3222. +
  3223.  
  3224. +autovacuum_naptime = 1min # time between autovacuum runs
  3225.  
  3226. +autovacuum_vacuum_threshold = 50 # min number of row updates before
  3227.  
  3228. + # vacuum
  3229.  
  3230. +autovacuum_analyze_threshold = 50 # min number of row updates before
  3231.  
  3232. + # analyze
  3233.  
  3234. +autovacuum_vacuum_scale_factor = 0.02 # fraction of table size before vacuum
  3235.  
  3236. +autovacuum_analyze_scale_factor = 0.01 # fraction of table size before analyze
  3237.  
  3238. +autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
  3239.  
  3240. + # autovacuum, in milliseconds;
  3241.  
  3242. + # -1 means use vacuum_cost_delay
  3243.  
  3244. +autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
  3245.  
  3246. + # autovacuum, -1 means use
  3247.  
  3248. + # vacuum_cost_limit
  3249.  
  3250. +
  3251.  
  3252. +# Parameters for gathering statistics
  3253.  
  3254. +default_statistics_target = 1000
  3255.  
  3256. +
  3257.  
  3258. +# - Client connection timeouts
  3259.  
  3260. +statement_timeout = 60000
  3261.  
  3262. +
  3263.  
  3264. +idle_in_transaction_session_timeout = 60000
  3265.  
  3266. +
  3267.  
  3268. +# IO settings
  3269.  
  3270. +effective_io_concurrency = 1
  3271.  
  3272. +track_io_timing = 'off'
  3273.  
  3274. +
  3275.  
  3276. +# Parallel worker settings
  3277.  
  3278. +max_worker_processes = 8
  3279.  
  3280. +max_parallel_workers_per_gather = 0
  3281.  
  3282. +
  3283.  
  3284. +# Deadlock handling and logging
  3285.  
  3286. +deadlock_timeout = '5s'
  3287.  
  3288. +log_lock_waits = 1
  3289.  
  3290. +
  3291.  
  3292. +# - Locale and Formatting -
  3293.  
  3294. +datestyle = 'iso, mdy'
  3295.  
  3296. +
  3297.  
  3298. +# These settings are initialized by initdb, but they can be changed.
  3299.  
  3300. +lc_messages = 'C' # locale for system error message
  3301.  
  3302. + # strings
  3303.  
  3304. +lc_monetary = 'C' # locale for monetary formatting
  3305.  
  3306. +lc_numeric = 'C' # locale for number formatting
  3307.  
  3308. +lc_time = 'C' # locale for time formatting
  3309.  
  3310. +
  3311.  
  3312. +# default configuration for text search
  3313.  
  3314. +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
  3315.  
  3316. [2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] mode changed to 644
  3317.  
  3318.  
  3319. - change mode from '' to '0644'
  3320.  
  3321. - change owner from '' to 'gitlab-psql'
  3322.  
  3323. * 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
  3324.  
  3325. [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
  3326.  
  3327.  
  3328. - update content in file /var/opt/gitlab/postgresql/data/pg_hba.conf from 98c8d4 to 40e348
  3329.  
  3330. --- /var/opt/gitlab/postgresql/data/pg_hba.conf 2023-06-12 08:51:19.947763143 +0000
  3331.  
  3332. +++ /var/opt/gitlab/postgresql/data/.chef-pg_hba20230612-2522091-g44no7.conf 2023-06-12 08:51:23.667753303 +0000
  3333.  
  3334. @@ -1,98 +1,74 @@
  3335.  
  3336. +# This file is managed by gitlab-ctl. Manual changes will be
  3337.  
  3338. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  3339.  
  3340. +# and run `sudo gitlab-ctl reconfigure`.
  3341.  
  3342. +
  3343.  
  3344. # PostgreSQL Client Authentication Configuration File
  3345.  
  3346. # ===================================================
  3347.  
  3348. #
  3349.  
  3350. -# Refer to the "Client Authentication" section in the PostgreSQL
  3351.  
  3352. -# documentation for a complete description of this file. A short
  3353.  
  3354. -# synopsis follows.
  3355.  
  3356. +# Refer to the "Client Authentication" section in the
  3357.  
  3358. +# PostgreSQL documentation for a complete description
  3359.  
  3360. +# of this file. A short synopsis follows.
  3361.  
  3362. #
  3363.  
  3364. # This file controls: which hosts are allowed to connect, how clients
  3365.  
  3366. # are authenticated, which PostgreSQL user names they can use, which
  3367.  
  3368. # databases they can access. Records take one of these forms:
  3369.  
  3370. #
  3371.  
  3372. -# local DATABASE USER METHOD [OPTIONS]
  3373.  
  3374. -# host DATABASE USER ADDRESS METHOD [OPTIONS]
  3375.  
  3376. -# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
  3377.  
  3378. -# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
  3379.  
  3380. -# hostgssenc DATABASE USER ADDRESS METHOD [OPTIONS]
  3381.  
  3382. -# hostnogssenc DATABASE USER ADDRESS METHOD [OPTIONS]
  3383.  
  3384. +# local DATABASE USER METHOD [OPTION]
  3385.  
  3386. +# host DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  3387.  
  3388. +# hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  3389.  
  3390. +# hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  3391.  
  3392. #
  3393.  
  3394. # (The uppercase items must be replaced by actual values.)
  3395.  
  3396. #
  3397.  
  3398. -# The first field is the connection type: "local" is a Unix-domain
  3399.  
  3400. -# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
  3401.  
  3402. -# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
  3403.  
  3404. -# non-SSL TCP/IP socket. Similarly, "hostgssenc" uses a
  3405.  
  3406. -# GSSAPI-encrypted TCP/IP socket, while "hostnogssenc" uses a
  3407.  
  3408. -# non-GSSAPI socket.
  3409.  
  3410. +# The first field is the connection type: "local" is a Unix-domain socket,
  3411.  
  3412. +# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
  3413.  
  3414. +# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
  3415.  
  3416. #
  3417.  
  3418. -# DATABASE can be "all", "sameuser", "samerole", "replication", a
  3419.  
  3420. -# database name, or a comma-separated list thereof. The "all"
  3421.  
  3422. -# keyword does not match "replication". Access to replication
  3423.  
  3424. -# must be enabled in a separate record (see example below).
  3425.  
  3426. +# DATABASE can be "all", "sameuser", "samerole", a database name, or
  3427.  
  3428. +# a comma-separated list thereof.
  3429.  
  3430. #
  3431.  
  3432. -# USER can be "all", a user name, a group name prefixed with "+", or a
  3433.  
  3434. -# comma-separated list thereof. In both the DATABASE and USER fields
  3435.  
  3436. -# you can also write a file name prefixed with "@" to include names
  3437.  
  3438. -# from a separate file.
  3439.  
  3440. +# USER can be "all", a user name, a group name prefixed with "+", or
  3441.  
  3442. +# a comma-separated list thereof. In both the DATABASE and USER fields
  3443.  
  3444. +# you can also write a file name prefixed with "@" to include names from
  3445.  
  3446. +# a separate file.
  3447.  
  3448. #
  3449.  
  3450. -# ADDRESS specifies the set of hosts the record matches. It can be a
  3451.  
  3452. -# host name, or it is made up of an IP address and a CIDR mask that is
  3453.  
  3454. -# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that
  3455.  
  3456. -# specifies the number of significant bits in the mask. A host name
  3457.  
  3458. -# that starts with a dot (.) matches a suffix of the actual host name.
  3459.  
  3460. -# Alternatively, you can write an IP address and netmask in separate
  3461.  
  3462. -# columns to specify the set of hosts. Instead of a CIDR-address, you
  3463.  
  3464. -# can write "samehost" to match any of the server's own IP addresses,
  3465.  
  3466. -# or "samenet" to match any address in any subnet that the server is
  3467.  
  3468. -# directly connected to.
  3469.  
  3470. +# CIDR-ADDRESS specifies the set of hosts the record matches.
  3471.  
  3472. +# It is made up of an IP address and a CIDR mask that is an integer
  3473.  
  3474. +# (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
  3475.  
  3476. +# the number of significant bits in the mask. Alternatively, you can write
  3477.  
  3478. +# an IP address and netmask in separate columns to specify the set of hosts.
  3479.  
  3480. #
  3481.  
  3482. -# METHOD can be "trust", "reject", "md5", "password", "scram-sha-256",
  3483.  
  3484. -# "gss", "sspi", "ident", "peer", "pam", "ldap", "radius" or "cert".
  3485.  
  3486. -# Note that "password" sends passwords in clear text; "md5" or
  3487.  
  3488. -# "scram-sha-256" are preferred since they send encrypted passwords.
  3489.  
  3490. +# METHOD can be "trust", "reject", "md5", "crypt", "password", "gss", "sspi",
  3491.  
  3492. +# "krb5", "ident", "pam" or "ldap". Note that "password" sends passwords
  3493.  
  3494. +# in clear text; "md5" is preferred since it sends encrypted passwords.
  3495.  
  3496. #
  3497.  
  3498. -# OPTIONS are a set of options for the authentication in the format
  3499.  
  3500. -# NAME=VALUE. The available options depend on the different
  3501.  
  3502. -# authentication methods -- refer to the "Client Authentication"
  3503.  
  3504. -# section in the documentation for a list of which options are
  3505.  
  3506. -# available for which authentication methods.
  3507.  
  3508. +# OPTION is the ident map or the name of the PAM service, depending on METHOD.
  3509.  
  3510. #
  3511.  
  3512. -# Database and user names containing spaces, commas, quotes and other
  3513.  
  3514. -# special characters must be quoted. Quoting one of the keywords
  3515.  
  3516. -# "all", "sameuser", "samerole" or "replication" makes the name lose
  3517.  
  3518. -# its special character, and just match a database or username with
  3519.  
  3520. -# that name.
  3521.  
  3522. +# Database and user names containing spaces, commas, quotes and other special
  3523.  
  3524. +# characters must be quoted. Quoting one of the keywords "all", "sameuser" or
  3525.  
  3526. +# "samerole" makes the name lose its special character, and just match a
  3527.  
  3528. +# database or username with that name.
  3529.  
  3530. #
  3531.  
  3532. -# This file is read on server startup and when the server receives a
  3533.  
  3534. -# SIGHUP signal. If you edit the file on a running system, you have to
  3535.  
  3536. -# SIGHUP the server for the changes to take effect, run "pg_ctl reload",
  3537.  
  3538. -# or execute "SELECT pg_reload_conf()".
  3539.  
  3540. -#
  3541.  
  3542. +# This file is read on server startup and when the postmaster receives
  3543.  
  3544. +# a SIGHUP signal. If you edit the file on a running system, you have
  3545.  
  3546. +# to SIGHUP the postmaster for the changes to take effect. You can use
  3547.  
  3548. +# "pg_ctl reload" to do that.
  3549.  
  3550. +
  3551.  
  3552. # Put your actual configuration here
  3553.  
  3554. # ----------------------------------
  3555.  
  3556. #
  3557.  
  3558. # If you want to allow non-local connections, you need to add more
  3559.  
  3560. -# "host" records. In that case you will also need to make PostgreSQL
  3561.  
  3562. -# listen on a non-local interface via the listen_addresses
  3563.  
  3564. -# configuration parameter, or via the -i or -h command line switches.
  3565.  
  3566. +# "host" records. In that case you will also need to make PostgreSQL listen
  3567.  
  3568. +# on a non-local interface via the listen_addresses configuration parameter,
  3569.  
  3570. +# or via the -i or -h command line switches.
  3571.  
  3572. +#
  3573.  
  3574.  
  3575. -# CAUTION: Configuring the system for local "trust" authentication
  3576.  
  3577. -# allows any local user to connect as any PostgreSQL user, including
  3578.  
  3579. -# the database superuser. If you do not trust all your local users,
  3580.  
  3581. -# use another authentication method.
  3582.  
  3583.  
  3584. +# TYPE DATABASE USER CIDR-ADDRESS METHOD
  3585.  
  3586.  
  3587. -# TYPE DATABASE USER ADDRESS METHOD
  3588.  
  3589. -
  3590.  
  3591. # "local" is for Unix domain socket connections only
  3592.  
  3593. -local all all trust
  3594.  
  3595. -# IPv4 local connections:
  3596.  
  3597. -host all all 127.0.0.1/32 trust
  3598.  
  3599. -# IPv6 local connections:
  3600.  
  3601. -host all all ::1/128 trust
  3602.  
  3603. -# Allow replication connections from localhost, by a user with the
  3604.  
  3605. -# replication privilege.
  3606.  
  3607. -local replication all trust
  3608.  
  3609. -host replication all 127.0.0.1/32 trust
  3610.  
  3611. -host replication all ::1/128 trust
  3612.  
  3613. +local all all peer map=gitlab
  3614.  
  3615. +
  3616.  
  3617. +
  3618.  
  3619. +[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_hba.conf] mode changed to 644
  3620.  
  3621.  
  3622. - change mode from '0600' to '0644'
  3623.  
  3624. * 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
  3625.  
  3626. [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
  3627.  
  3628.  
  3629. - update content in file /var/opt/gitlab/postgresql/data/pg_ident.conf from 297f46 to 5399a1
  3630.  
  3631. --- /var/opt/gitlab/postgresql/data/pg_ident.conf 2023-06-12 08:51:19.947763143 +0000
  3632.  
  3633. +++ /var/opt/gitlab/postgresql/data/.chef-pg_ident20230612-2522091-l24mg2.conf 2023-06-12 08:51:23.687753249 +0000
  3634.  
  3635. @@ -40,4 +40,8 @@
  3636.  
  3637. # ----------------------------------
  3638.  
  3639.  
  3640. # MAPNAME SYSTEM-USERNAME PG-USERNAME
  3641.  
  3642. +gitlab git gitlab
  3643.  
  3644. +gitlab mattermost gitlab_mattermost
  3645.  
  3646. +# Default to a 1-1 mapping between system usernames and Postgres usernames
  3647.  
  3648. +gitlab /^(.*)$ \1[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_ident.conf] mode changed to 644
  3649.  
  3650.  
  3651. - change mode from '0600' to '0644'
  3652.  
  3653.  
  3654. Recipe: postgresql::standalone
  3655.  
  3656. * service[postgresql] action nothing (skipped due to action :nothing)
  3657.  
  3658. * runit_service[postgresql] action enable
  3659.  
  3660. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  3661.  
  3662. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  3663.  
  3664. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  3665.  
  3666. * 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
  3667.  
  3668.  
  3669. - create new directory /opt/gitlab/sv/postgresql[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] owner changed to 0
  3670.  
  3671. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] group changed to 0
  3672.  
  3673. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] mode changed to 755
  3674.  
  3675.  
  3676. - change mode from '' to '0755'
  3677.  
  3678. - change owner from '' to 'root'
  3679.  
  3680. - change group from '' to 'root'
  3681.  
  3682. * 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
  3683.  
  3684.  
  3685. - 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
  3686.  
  3687.  
  3688. - update content in file /opt/gitlab/sv/postgresql/run from none to dc5689
  3689.  
  3690. --- /opt/gitlab/sv/postgresql/run 2023-06-12 08:51:23.707753196 +0000
  3691.  
  3692. +++ /opt/gitlab/sv/postgresql/.chef-run20230612-2522091-omjpma 2023-06-12 08:51:23.707753196 +0000
  3693.  
  3694. @@ -1,4 +1,8 @@
  3695.  
  3696. +#!/bin/sh
  3697.  
  3698. +exec 2>&1
  3699.  
  3700. +
  3701.  
  3702. +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
  3703.  
  3704. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] group changed to 0
  3705.  
  3706. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] mode changed to 755
  3707.  
  3708.  
  3709. - change mode from '' to '0755'
  3710.  
  3711. - change owner from '' to 'root'
  3712.  
  3713. - change group from '' to 'root'
  3714.  
  3715. * 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
  3716.  
  3717.  
  3718. - 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
  3719.  
  3720. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log] group changed to 0
  3721.  
  3722. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log] mode changed to 755
  3723.  
  3724.  
  3725. - change mode from '' to '0755'
  3726.  
  3727. - change owner from '' to 'root'
  3728.  
  3729. - change group from '' to 'root'
  3730.  
  3731. * 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
  3732.  
  3733.  
  3734. - 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
  3735.  
  3736. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log/main] group changed to 0
  3737.  
  3738. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log/main] mode changed to 755
  3739.  
  3740.  
  3741. - change mode from '' to '0755'
  3742.  
  3743. - change owner from '' to 'root'
  3744.  
  3745. - change group from '' to 'root'
  3746.  
  3747. * 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
  3748.  
  3749.  
  3750. - 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
  3751.  
  3752.  
  3753. - update content in file /opt/gitlab/sv/postgresql/log/config from none to 623c00
  3754.  
  3755. --- /opt/gitlab/sv/postgresql/log/config 2023-06-12 08:51:23.727753144 +0000
  3756.  
  3757. +++ /opt/gitlab/sv/postgresql/log/.chef-config20230612-2522091-9uadtc 2023-06-12 08:51:23.723753154 +0000
  3758.  
  3759. @@ -1,6 +1,12 @@
  3760.  
  3761. +s209715200
  3762.  
  3763. +n30
  3764.  
  3765. +t86400
  3766.  
  3767. +!gzip
  3768.  
  3769. +
  3770.  
  3771. +[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] owner changed to 0
  3772.  
  3773. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] group changed to 0
  3774.  
  3775. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] mode changed to 644
  3776.  
  3777.  
  3778. - change mode from '' to '0644'
  3779.  
  3780. - change owner from '' to 'root'
  3781.  
  3782. - change group from '' to 'root'
  3783.  
  3784. [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)
  3785.  
  3786. * 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
  3787.  
  3788.  
  3789. - execute the ruby block verify_chown_persisted_on_postgresql
  3790.  
  3791. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
  3792.  
  3793. * link[/var/log/gitlab/postgresql/config] action create[2023-06-12T08:51:23+00:00] INFO: link[/var/log/gitlab/postgresql/config] created
  3794.  
  3795.  
  3796. - create symlink at /var/log/gitlab/postgresql/config to /opt/gitlab/sv/postgresql/log/config
  3797.  
  3798. * 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
  3799.  
  3800.  
  3801. - 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
  3802.  
  3803.  
  3804. - update content in file /opt/gitlab/sv/postgresql/log/run from none to 9c7bfd
  3805.  
  3806. --- /opt/gitlab/sv/postgresql/log/run 2023-06-12 08:51:23.743753101 +0000
  3807.  
  3808. +++ /opt/gitlab/sv/postgresql/log/.chef-run20230612-2522091-x9zlga 2023-06-12 08:51:23.743753101 +0000
  3809.  
  3810. @@ -1,5 +1,10 @@
  3811.  
  3812. +#!/bin/sh
  3813.  
  3814. +exec chpst -P \
  3815.  
  3816. + -U root:root \
  3817.  
  3818. + -u root:root \
  3819.  
  3820. + 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
  3821.  
  3822. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] group changed to 0
  3823.  
  3824. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] mode changed to 755
  3825.  
  3826.  
  3827. - change mode from '' to '0755'
  3828.  
  3829. - change owner from '' to 'root'
  3830.  
  3831. - change group from '' to 'root'
  3832.  
  3833. * 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
  3834.  
  3835.  
  3836. - 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
  3837.  
  3838. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/env] group changed to 0
  3839.  
  3840. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/env] mode changed to 755
  3841.  
  3842.  
  3843. - change mode from '' to '0755'
  3844.  
  3845. - change owner from '' to 'root'
  3846.  
  3847. - change group from '' to 'root'
  3848.  
  3849. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
  3850.  
  3851. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
  3852.  
  3853. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
  3854.  
  3855. * 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
  3856.  
  3857.  
  3858. - 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
  3859.  
  3860. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/control] group changed to 0
  3861.  
  3862. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/control] mode changed to 755
  3863.  
  3864.  
  3865. - change mode from '' to '0755'
  3866.  
  3867. - change owner from '' to 'root'
  3868.  
  3869. - change group from '' to 'root'
  3870.  
  3871. * 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
  3872.  
  3873.  
  3874. - 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
  3875.  
  3876.  
  3877. - update content in file /opt/gitlab/sv/postgresql/control/t from none to 05ae12
  3878.  
  3879. --- /opt/gitlab/sv/postgresql/control/t 2023-06-12 08:51:23.759753059 +0000
  3880.  
  3881. +++ /opt/gitlab/sv/postgresql/control/.chef-t20230612-2522091-ixpiq5 2023-06-12 08:51:23.759753059 +0000
  3882.  
  3883. @@ -1,3 +1,6 @@
  3884.  
  3885. +#!/bin/sh
  3886.  
  3887. +echo "received TERM from runit, sending INT instead to force quit connections"
  3888.  
  3889. +/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
  3890.  
  3891. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] group changed to 0
  3892.  
  3893. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] mode changed to 755
  3894.  
  3895.  
  3896. - change mode from '' to '0755'
  3897.  
  3898. - change owner from '' to 'root'
  3899.  
  3900. - change group from '' to 'root'
  3901.  
  3902. * link[/opt/gitlab/init/postgresql] action create[2023-06-12T08:51:23+00:00] INFO: link[/opt/gitlab/init/postgresql] created
  3903.  
  3904.  
  3905. - create symlink at /opt/gitlab/init/postgresql to /opt/gitlab/embedded/bin/sv
  3906.  
  3907. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
  3908.  
  3909. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] sending run action to ruby_block[restart_service] (delayed)
  3910.  
  3911. * ruby_block[restart_service] action run (skipped due to only_if)
  3912.  
  3913. [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)
  3914.  
  3915. * ruby_block[reload_log_service] action create
  3916.  
  3917. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  3918.  
  3919. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  3920.  
  3921. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  3922.  
  3923. * directory[/opt/gitlab/sv/postgresql] action create (up to date)
  3924.  
  3925. * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
  3926.  
  3927. * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
  3928.  
  3929. * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
  3930.  
  3931. * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date)
  3932.  
  3933. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
  3934.  
  3935. * link[/var/log/gitlab/postgresql/config] action create (up to date)
  3936.  
  3937. * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
  3938.  
  3939. * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
  3940.  
  3941. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
  3942.  
  3943. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
  3944.  
  3945. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
  3946.  
  3947. * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
  3948.  
  3949. * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
  3950.  
  3951. * link[/opt/gitlab/init/postgresql] action create (up to date)
  3952.  
  3953. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
  3954.  
  3955. * directory[/opt/gitlab/service] action create (up to date)
  3956.  
  3957. * link[/opt/gitlab/service/postgresql] action create[2023-06-12T08:51:23+00:00] INFO: link[/opt/gitlab/service/postgresql] created
  3958.  
  3959.  
  3960. - create symlink at /opt/gitlab/service/postgresql to /opt/gitlab/sv/postgresql
  3961.  
  3962. * 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
  3963.  
  3964.  
  3965. - execute the ruby block wait for postgresql service socket
  3966.  
  3967. * 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
  3968.  
  3969.  
  3970. - change mode from '0700' to '0755'
  3971.  
  3972. * 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
  3973.  
  3974.  
  3975. - change mode from '0700' to '0755'
  3976.  
  3977. * 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
  3978.  
  3979.  
  3980. - 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
  3981.  
  3982. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/ok] group changed to 995
  3983.  
  3984.  
  3985. - change owner from '' to 'gitlab-psql'
  3986.  
  3987. - 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
  3988.  
  3989.  
  3990. - update utime on file /opt/gitlab/service/postgresql/supervise/ok
  3991.  
  3992. * 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
  3993.  
  3994.  
  3995. - 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
  3996.  
  3997. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/ok] group changed to 995
  3998.  
  3999.  
  4000. - change owner from '' to 'gitlab-psql'
  4001.  
  4002. - 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
  4003.  
  4004.  
  4005. - update utime on file /opt/gitlab/service/postgresql/log/supervise/ok
  4006.  
  4007. * 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
  4008.  
  4009. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] group changed to 995
  4010.  
  4011.  
  4012. - change owner from 'root' to 'gitlab-psql'
  4013.  
  4014. - 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
  4015.  
  4016.  
  4017. - update utime on file /opt/gitlab/service/postgresql/supervise/status
  4018.  
  4019. * 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
  4020.  
  4021. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
  4022.  
  4023.  
  4024. - change owner from 'root' to 'gitlab-psql'
  4025.  
  4026. - 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
  4027.  
  4028.  
  4029. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
  4030.  
  4031. * 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
  4032.  
  4033.  
  4034. - 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
  4035.  
  4036. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/control] group changed to 995
  4037.  
  4038.  
  4039. - change owner from '' to 'gitlab-psql'
  4040.  
  4041. - 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
  4042.  
  4043.  
  4044. - update utime on file /opt/gitlab/service/postgresql/supervise/control
  4045.  
  4046. * 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
  4047.  
  4048.  
  4049. - 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
  4050.  
  4051. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/control] group changed to 995
  4052.  
  4053.  
  4054. - change owner from '' to 'gitlab-psql'
  4055.  
  4056. - 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
  4057.  
  4058.  
  4059. - update utime on file /opt/gitlab/service/postgresql/log/supervise/control
  4060.  
  4061. * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
  4062.  
  4063. [2023-06-12T08:51:29+00:00] INFO: ruby_block[reload_log_service] called
  4064.  
  4065. - execute the ruby block reload_log_service
  4066.  
  4067. [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)
  4068.  
  4069. * ruby_block[restart_log_service] action run
  4070.  
  4071. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  4072.  
  4073. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  4074.  
  4075. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  4076.  
  4077. * directory[/opt/gitlab/sv/postgresql] action create (up to date)
  4078.  
  4079. * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
  4080.  
  4081. * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
  4082.  
  4083. * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
  4084.  
  4085. * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date)
  4086.  
  4087. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
  4088.  
  4089. * link[/var/log/gitlab/postgresql/config] action create (up to date)
  4090.  
  4091. * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
  4092.  
  4093. * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
  4094.  
  4095. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
  4096.  
  4097. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
  4098.  
  4099. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
  4100.  
  4101. * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
  4102.  
  4103. * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
  4104.  
  4105. * link[/opt/gitlab/init/postgresql] action create (up to date)
  4106.  
  4107. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
  4108.  
  4109. * directory[/opt/gitlab/service] action create (up to date)
  4110.  
  4111. * link[/opt/gitlab/service/postgresql] action create (up to date)
  4112.  
  4113. * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
  4114.  
  4115. * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
  4116.  
  4117. * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
  4118.  
  4119. * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if)
  4120.  
  4121. * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if)
  4122.  
  4123. * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if)
  4124.  
  4125. * 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
  4126.  
  4127. [2023-06-12T08:51:29+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
  4128.  
  4129.  
  4130. - change owner from 'root' to 'gitlab-psql'
  4131.  
  4132. - 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
  4133.  
  4134.  
  4135. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
  4136.  
  4137. * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if)
  4138.  
  4139. * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if)
  4140.  
  4141. * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
  4142.  
  4143. [2023-06-12T08:51:30+00:00] INFO: ruby_block[restart_log_service] called
  4144.  
  4145. - execute the ruby block restart_log_service
  4146.  
  4147. * directory[/opt/gitlab/service] action create (up to date)
  4148.  
  4149. * link[/opt/gitlab/service/postgresql] action create (up to date)
  4150.  
  4151. * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
  4152.  
  4153. * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
  4154.  
  4155. * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
  4156.  
  4157. * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if)
  4158.  
  4159. * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if)
  4160.  
  4161. * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if)
  4162.  
  4163. * 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
  4164.  
  4165. [2023-06-12T08:51:30+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
  4166.  
  4167.  
  4168. - change owner from 'root' to 'gitlab-psql'
  4169.  
  4170. - 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
  4171.  
  4172.  
  4173. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
  4174.  
  4175. * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if)
  4176.  
  4177. * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if)
  4178.  
  4179. * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
  4180.  
  4181.  
  4182. * execute[/opt/gitlab/bin/gitlab-ctl start postgresql] action run
  4183.  
  4184. [execute] ok: run: postgresql: (pid 2522511) 4s
  4185.  
  4186. [2023-06-12T08:51:31+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start postgresql] ran successfully
  4187.  
  4188. - execute /opt/gitlab/bin/gitlab-ctl start postgresql
  4189.  
  4190. * database_objects[postgresql] action create
  4191.  
  4192. * postgresql_user[gitlab] action create
  4193.  
  4194. * execute[create gitlab postgresql user] action run
  4195.  
  4196. [execute] CREATE ROLE
  4197.  
  4198. [2023-06-12T08:51:31+00:00] INFO: execute[create gitlab postgresql user] ran successfully
  4199.  
  4200. - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER \"gitlab\""
  4201.  
  4202.  
  4203. * postgresql_user[gitlab_replicator] action create
  4204.  
  4205. * execute[create gitlab_replicator postgresql user] action run
  4206.  
  4207. [execute] CREATE ROLE
  4208.  
  4209. [2023-06-12T08:51:31+00:00] INFO: execute[create gitlab_replicator postgresql user] ran successfully
  4210.  
  4211. - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER \"gitlab_replicator\""
  4212.  
  4213. * execute[set options for gitlab_replicator postgresql user] action run
  4214.  
  4215. [execute] ALTER ROLE
  4216.  
  4217. [2023-06-12T08:51:31+00:00] INFO: execute[set options for gitlab_replicator postgresql user] ran successfully
  4218.  
  4219. - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "ALTER USER \"gitlab_replicator\" replication"
  4220.  
  4221.  
  4222. * postgresql_database[gitlabhq_production] action create
  4223.  
  4224. * execute[create database gitlabhq_production] action run[2023-06-12T08:51:33+00:00] INFO: execute[create database gitlabhq_production] ran successfully
  4225.  
  4226.  
  4227. - execute /opt/gitlab/embedded/bin/createdb --port 5432 -h /var/opt/gitlab/postgresql -O gitlab gitlabhq_production
  4228.  
  4229.  
  4230. * postgresql_extension[pg_trgm] action enable
  4231.  
  4232. * postgresql_query[enable pg_trgm extension] action run
  4233.  
  4234. * execute[enable pg_trgm extension (postgresql)] action run
  4235.  
  4236. [execute] CREATE EXTENSION
  4237.  
  4238. [2023-06-12T08:51:33+00:00] INFO: execute[enable pg_trgm extension (postgresql)] ran successfully
  4239.  
  4240. - execute /opt/gitlab/bin/gitlab-psql -d gitlabhq_production -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
  4241.  
  4242.  
  4243.  
  4244. * postgresql_extension[btree_gist] action enable
  4245.  
  4246. * postgresql_query[enable btree_gist extension] action run
  4247.  
  4248. * execute[enable btree_gist extension (postgresql)] action run
  4249.  
  4250. [execute] CREATE EXTENSION
  4251.  
  4252. [2023-06-12T08:51:33+00:00] INFO: execute[enable btree_gist extension (postgresql)] ran successfully
  4253.  
  4254. - execute /opt/gitlab/bin/gitlab-psql -d gitlabhq_production -c "CREATE EXTENSION IF NOT EXISTS btree_gist"
  4255.  
  4256.  
  4257.  
  4258.  
  4259. * version_file[Create version file for PostgreSQL] action create
  4260.  
  4261. * 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
  4262.  
  4263.  
  4264. - 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
  4265.  
  4266.  
  4267. - update content in file /var/opt/gitlab/postgresql/VERSION from none to cfc50c
  4268.  
  4269. --- /var/opt/gitlab/postgresql/VERSION 2023-06-12 08:51:33.895726132 +0000
  4270.  
  4271. +++ /var/opt/gitlab/postgresql/.chef-VERSION20230612-2522091-hnp3ds 2023-06-12 08:51:33.891726144 +0000
  4272.  
  4273. @@ -1 +1,2 @@
  4274.  
  4275. +postgres (PostgreSQL) 13.11
  4276.  
  4277.  
  4278. * ruby_block[warn pending postgresql restart] action run (skipped due to only_if)
  4279.  
  4280. * execute[reload postgresql] action nothing (skipped due to action :nothing)
  4281.  
  4282. * execute[start postgresql] action nothing (skipped due to action :nothing)
  4283.  
  4284. Recipe: praefect::disable
  4285.  
  4286. * service[praefect] action nothing (skipped due to action :nothing)
  4287.  
  4288. * runit_service[praefect] action disable
  4289.  
  4290. * ruby_block[disable praefect] action run (skipped due to only_if)
  4291.  
  4292. (up to date)
  4293.  
  4294. * consul_service[praefect] action delete
  4295.  
  4296. * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date)
  4297.  
  4298. (up to date)
  4299.  
  4300. Recipe: gitlab-kas::enable
  4301.  
  4302. * 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
  4303.  
  4304.  
  4305. - 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
  4306.  
  4307. [2023-06-12T08:51:33+00:00] INFO: directory[/var/opt/gitlab/gitlab-kas] mode changed to 700
  4308.  
  4309.  
  4310. - change mode from '' to '0700'
  4311.  
  4312. - change owner from '' to 'git'
  4313.  
  4314. * 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
  4315.  
  4316.  
  4317. - 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
  4318.  
  4319. [2023-06-12T08:51:33+00:00] INFO: directory[/opt/gitlab/etc/gitlab-kas] mode changed to 700
  4320.  
  4321.  
  4322. - change mode from '' to '0700'
  4323.  
  4324. - change owner from '' to 'git'
  4325.  
  4326. * 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
  4327.  
  4328.  
  4329. - 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
  4330.  
  4331. [2023-06-12T08:51:33+00:00] INFO: directory[/var/log/gitlab/gitlab-kas] mode changed to 700
  4332.  
  4333.  
  4334. - change mode from '' to '0700'
  4335.  
  4336. - change owner from '' to 'git'
  4337.  
  4338. * ruby_block[websocket TLS termination] action run (skipped due to only_if)
  4339.  
  4340. * version_file[Create version file for Gitlab KAS] action create
  4341.  
  4342. * 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
  4343.  
  4344.  
  4345. - 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
  4346.  
  4347.  
  4348. - update content in file /var/opt/gitlab/gitlab-kas/VERSION from none to 3e4d4b
  4349.  
  4350. --- /var/opt/gitlab/gitlab-kas/VERSION 2023-06-12 08:51:34.027725781 +0000
  4351.  
  4352. +++ /var/opt/gitlab/gitlab-kas/.chef-VERSION20230612-2522091-3w4sxd 2023-06-12 08:51:34.027725781 +0000
  4353.  
  4354. @@ -1 +1,2 @@
  4355.  
  4356. +kas version v16.0.1, commit: 27e3eb8e, built: 20230608.113856
  4357.  
  4358.  
  4359. * 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
  4360.  
  4361.  
  4362. - 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
  4363.  
  4364.  
  4365. - update content in file /var/opt/gitlab/gitlab-kas/authentication_secret_file from none to c5258b
  4366.  
  4367. --- /var/opt/gitlab/gitlab-kas/authentication_secret_file 2023-06-12 08:51:34.043725738 +0000
  4368.  
  4369. +++ /var/opt/gitlab/gitlab-kas/.chef-authentication_secret_file20230612-2522091-9jxw6q 2023-06-12 08:51:34.043725738 +0000
  4370.  
  4371. @@ -1 +1,2 @@
  4372.  
  4373. +M2ZiNGFkNmNhYTI1MmE5Y2ExNTE5NTFjZjFkZmQzOWQ=[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] owner changed to 0
  4374.  
  4375. [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] group changed to 997
  4376.  
  4377. [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] mode changed to 640
  4378.  
  4379.  
  4380. - change mode from '' to '0640'
  4381.  
  4382. - change owner from '' to 'root'
  4383.  
  4384. - change group from '' to 'git'
  4385.  
  4386. [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
  4387.  
  4388. * 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
  4389.  
  4390.  
  4391. - 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
  4392.  
  4393.  
  4394. - update content in file /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file from none to 6df2ef
  4395.  
  4396. --- /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file 2023-06-12 08:51:34.059725696 +0000
  4397.  
  4398. +++ /var/opt/gitlab/gitlab-kas/.chef-private_api_authentication_secret_file20230612-2522091-1xwyut 2023-06-12 08:51:34.059725696 +0000
  4399.  
  4400. @@ -1 +1,2 @@
  4401.  
  4402. +ZmE1ODc4MWU5MzY0YmNjMWEwZGMwNGIzOTQwMDY0NGY=[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] owner changed to 0
  4403.  
  4404. [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] group changed to 997
  4405.  
  4406. [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] mode changed to 640
  4407.  
  4408.  
  4409. - change mode from '' to '0640'
  4410.  
  4411. - change owner from '' to 'root'
  4412.  
  4413. - change group from '' to 'git'
  4414.  
  4415. [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
  4416.  
  4417. * file[/var/opt/gitlab/gitlab-kas/redis_password_file] action create (skipped due to only_if)
  4418.  
  4419. * 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
  4420.  
  4421.  
  4422. - 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
  4423.  
  4424.  
  4425. - update content in file /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml from none to 67eff7
  4426.  
  4427. --- /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml 2023-06-12 08:51:34.075725653 +0000
  4428.  
  4429. +++ /var/opt/gitlab/gitlab-kas/.chef-gitlab-kas-config20230612-2522091-ht08q5.yml 2023-06-12 08:51:34.075725653 +0000
  4430.  
  4431. @@ -1,44 +1,88 @@
  4432.  
  4433. +agent:
  4434.  
  4435. + listen:
  4436.  
  4437. + address: localhost:8150
  4438.  
  4439. + network: tcp
  4440.  
  4441. + websocket: true
  4442.  
  4443. + configuration:
  4444.  
  4445. + poll_period: 20s
  4446.  
  4447. + gitops:
  4448.  
  4449. + poll_period: 20s
  4450.  
  4451. + project_info_cache_ttl: 300s
  4452.  
  4453. + project_info_cache_error_ttl: 60s
  4454.  
  4455. + kubernetes_api:
  4456.  
  4457. + listen:
  4458.  
  4459. + address: localhost:8154
  4460.  
  4461. + url_path_prefix: /
  4462.  
  4463. + info_cache_ttl: 300s
  4464.  
  4465. + info_cache_error_ttl: 60s
  4466.  
  4467. +gitlab:
  4468.  
  4469. + address: http://192.168.100.33
  4470.  
  4471. + external_url: http://192.168.100.33
  4472.  
  4473. + authentication_secret_file: /var/opt/gitlab/gitlab-kas/authentication_secret_file
  4474.  
  4475. +observability:
  4476.  
  4477. + listen:
  4478.  
  4479. + address: localhost:8151
  4480.  
  4481. + network: tcp
  4482.  
  4483. + usage_reporting_period: 60s
  4484.  
  4485. + logging:
  4486.  
  4487. + level: info
  4488.  
  4489. +redis:
  4490.  
  4491. + network: unix
  4492.  
  4493. + tls:
  4494.  
  4495. + enabled: false
  4496.  
  4497. + server:
  4498.  
  4499. + address: '/var/opt/gitlab/redis/redis.socket'
  4500.  
  4501. +api:
  4502.  
  4503. + listen:
  4504.  
  4505. + network: tcp
  4506.  
  4507. + address: localhost:8153
  4508.  
  4509. + authentication_secret_file: /var/opt/gitlab/gitlab-kas/authentication_secret_file
  4510.  
  4511. +private_api:
  4512.  
  4513. + listen:
  4514.  
  4515. + network: tcp
  4516.  
  4517. + address: localhost:8155
  4518.  
  4519. + 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
  4520.  
  4521. [2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] group changed to 997
  4522.  
  4523. [2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] mode changed to 640
  4524.  
  4525.  
  4526. - change mode from '' to '0640'
  4527.  
  4528. - change owner from '' to 'root'
  4529.  
  4530. - change group from '' to 'git'
  4531.  
  4532. [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
  4533.  
  4534. * env_dir[/opt/gitlab/etc/gitlab-kas/env] action create
  4535.  
  4536. * 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
  4537.  
  4538.  
  4539. - create new directory /opt/gitlab/etc/gitlab-kas/env
  4540.  
  4541. * 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
  4542.  
  4543.  
  4544. - 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
  4545.  
  4546.  
  4547. - update content in file /opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR from none to 4f45cf
  4548.  
  4549. - suppressed sensitive resource
  4550.  
  4551. * 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
  4552.  
  4553.  
  4554. - 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
  4555.  
  4556.  
  4557. - update content in file /opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL from none to 45b898
  4558.  
  4559. - suppressed sensitive resource
  4560.  
  4561.  
  4562. * service[gitlab-kas] action nothing (skipped due to action :nothing)
  4563.  
  4564. * runit_service[gitlab-kas] action enable
  4565.  
  4566. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  4567.  
  4568. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  4569.  
  4570. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  4571.  
  4572. * 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
  4573.  
  4574.  
  4575. - 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
  4576.  
  4577. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas] group changed to 0
  4578.  
  4579. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas] mode changed to 755
  4580.  
  4581.  
  4582. - change mode from '' to '0755'
  4583.  
  4584. - change owner from '' to 'root'
  4585.  
  4586. - change group from '' to 'root'
  4587.  
  4588. * 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
  4589.  
  4590.  
  4591. - 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
  4592.  
  4593.  
  4594. - update content in file /opt/gitlab/sv/gitlab-kas/run from none to ac037b
  4595.  
  4596. --- /opt/gitlab/sv/gitlab-kas/run 2023-06-12 08:51:34.131725504 +0000
  4597.  
  4598. +++ /opt/gitlab/sv/gitlab-kas/.chef-run20230612-2522091-h4rsos 2023-06-12 08:51:34.131725504 +0000
  4599.  
  4600. @@ -1,11 +1,22 @@
  4601.  
  4602. +#!/bin/bash
  4603.  
  4604. +
  4605.  
  4606. +# Let runit capture all script error messages
  4607.  
  4608. +exec 2>&1
  4609.  
  4610. +
  4611.  
  4612. +
  4613.  
  4614. +
  4615.  
  4616. +exec chpst -e /opt/gitlab/etc/gitlab-kas/env -P \
  4617.  
  4618. + -u git:git \
  4619.  
  4620. + -U git:git \
  4621.  
  4622. + /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
  4623.  
  4624. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] group changed to 0
  4625.  
  4626. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] mode changed to 755
  4627.  
  4628.  
  4629. - change mode from '' to '0755'
  4630.  
  4631. - change owner from '' to 'root'
  4632.  
  4633. - change group from '' to 'root'
  4634.  
  4635. * 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
  4636.  
  4637.  
  4638. - 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
  4639.  
  4640. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log] group changed to 0
  4641.  
  4642. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log] mode changed to 755
  4643.  
  4644.  
  4645. - change mode from '' to '0755'
  4646.  
  4647. - change owner from '' to 'root'
  4648.  
  4649. - change group from '' to 'root'
  4650.  
  4651. * 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
  4652.  
  4653.  
  4654. - 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
  4655.  
  4656. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log/main] group changed to 0
  4657.  
  4658. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log/main] mode changed to 755
  4659.  
  4660.  
  4661. - change mode from '' to '0755'
  4662.  
  4663. - change owner from '' to 'root'
  4664.  
  4665. - change group from '' to 'root'
  4666.  
  4667. * 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
  4668.  
  4669.  
  4670. - 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
  4671.  
  4672.  
  4673. - update content in file /opt/gitlab/sv/gitlab-kas/log/config from none to 623c00
  4674.  
  4675. --- /opt/gitlab/sv/gitlab-kas/log/config 2023-06-12 08:51:34.151725451 +0000
  4676.  
  4677. +++ /opt/gitlab/sv/gitlab-kas/log/.chef-config20230612-2522091-i9j01s 2023-06-12 08:51:34.151725451 +0000
  4678.  
  4679. @@ -1,6 +1,12 @@
  4680.  
  4681. +s209715200
  4682.  
  4683. +n30
  4684.  
  4685. +t86400
  4686.  
  4687. +!gzip
  4688.  
  4689. +
  4690.  
  4691. +[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] owner changed to 0
  4692.  
  4693. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] group changed to 0
  4694.  
  4695. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] mode changed to 644
  4696.  
  4697.  
  4698. - change mode from '' to '0644'
  4699.  
  4700. - change owner from '' to 'root'
  4701.  
  4702. - change group from '' to 'root'
  4703.  
  4704. [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)
  4705.  
  4706. * 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
  4707.  
  4708.  
  4709. - execute the ruby block verify_chown_persisted_on_gitlab-kas
  4710.  
  4711. * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
  4712.  
  4713. * 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
  4714.  
  4715.  
  4716. - create symlink at /var/log/gitlab/gitlab-kas/config to /opt/gitlab/sv/gitlab-kas/log/config
  4717.  
  4718. * 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
  4719.  
  4720.  
  4721. - 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
  4722.  
  4723.  
  4724. - update content in file /opt/gitlab/sv/gitlab-kas/log/run from none to 22436c
  4725.  
  4726. --- /opt/gitlab/sv/gitlab-kas/log/run 2023-06-12 08:51:34.167725408 +0000
  4727.  
  4728. +++ /opt/gitlab/sv/gitlab-kas/log/.chef-run20230612-2522091-va16ps 2023-06-12 08:51:34.167725408 +0000
  4729.  
  4730. @@ -1,5 +1,10 @@
  4731.  
  4732. +#!/bin/sh
  4733.  
  4734. +exec chpst -P \
  4735.  
  4736. + -U root:root \
  4737.  
  4738. + -u root:root \
  4739.  
  4740. + 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
  4741.  
  4742. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] group changed to 0
  4743.  
  4744. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] mode changed to 755
  4745.  
  4746.  
  4747. - change mode from '' to '0755'
  4748.  
  4749. - change owner from '' to 'root'
  4750.  
  4751. - change group from '' to 'root'
  4752.  
  4753. * 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
  4754.  
  4755.  
  4756. - 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
  4757.  
  4758. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/env] group changed to 0
  4759.  
  4760. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/env] mode changed to 755
  4761.  
  4762.  
  4763. - change mode from '' to '0755'
  4764.  
  4765. - change owner from '' to 'root'
  4766.  
  4767. - change group from '' to 'root'
  4768.  
  4769. * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
  4770.  
  4771. * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
  4772.  
  4773. * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
  4774.  
  4775. * 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
  4776.  
  4777.  
  4778. - 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
  4779.  
  4780. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/control] group changed to 0
  4781.  
  4782. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/control] mode changed to 755
  4783.  
  4784.  
  4785. - change mode from '' to '0755'
  4786.  
  4787. - change owner from '' to 'root'
  4788.  
  4789. - change group from '' to 'root'
  4790.  
  4791. * link[/opt/gitlab/init/gitlab-kas] action create[2023-06-12T08:51:34+00:00] INFO: link[/opt/gitlab/init/gitlab-kas] created
  4792.  
  4793.  
  4794. - create symlink at /opt/gitlab/init/gitlab-kas to /opt/gitlab/embedded/bin/sv
  4795.  
  4796. * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
  4797.  
  4798. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] sending run action to ruby_block[restart_service] (delayed)
  4799.  
  4800. * ruby_block[restart_service] action run (skipped due to only_if)
  4801.  
  4802. [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)
  4803.  
  4804. * ruby_block[reload_log_service] action create
  4805.  
  4806. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  4807.  
  4808. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  4809.  
  4810. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  4811.  
  4812. * directory[/opt/gitlab/sv/gitlab-kas] action create (up to date)
  4813.  
  4814. * template[/opt/gitlab/sv/gitlab-kas/run] action create (up to date)
  4815.  
  4816. * directory[/opt/gitlab/sv/gitlab-kas/log] action create (up to date)
  4817.  
  4818. * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create (up to date)
  4819.  
  4820. * template[/opt/gitlab/sv/gitlab-kas/log/config] action create (up to date)
  4821.  
  4822. * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
  4823.  
  4824. * link[/var/log/gitlab/gitlab-kas/config] action create (up to date)
  4825.  
  4826. * template[/opt/gitlab/sv/gitlab-kas/log/run] action create (up to date)
  4827.  
  4828. * directory[/opt/gitlab/sv/gitlab-kas/env] action create (up to date)
  4829.  
  4830. * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
  4831.  
  4832. * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
  4833.  
  4834. * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
  4835.  
  4836. * directory[/opt/gitlab/sv/gitlab-kas/control] action create (up to date)
  4837.  
  4838. * link[/opt/gitlab/init/gitlab-kas] action create (up to date)
  4839.  
  4840. * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
  4841.  
  4842. * directory[/opt/gitlab/service] action create (up to date)
  4843.  
  4844. * link[/opt/gitlab/service/gitlab-kas] action create[2023-06-12T08:51:34+00:00] INFO: link[/opt/gitlab/service/gitlab-kas] created
  4845.  
  4846.  
  4847. - create symlink at /opt/gitlab/service/gitlab-kas to /opt/gitlab/sv/gitlab-kas
  4848.  
  4849. * 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
  4850.  
  4851.  
  4852. - execute the ruby block wait for gitlab-kas service socket
  4853.  
  4854. * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
  4855.  
  4856. [2023-06-12T08:51:40+00:00] INFO: ruby_block[reload_log_service] called
  4857.  
  4858. - execute the ruby block reload_log_service
  4859.  
  4860. [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)
  4861.  
  4862. * ruby_block[restart_log_service] action run
  4863.  
  4864. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  4865.  
  4866. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  4867.  
  4868. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  4869.  
  4870. * directory[/opt/gitlab/sv/gitlab-kas] action create (up to date)
  4871.  
  4872. * template[/opt/gitlab/sv/gitlab-kas/run] action create (up to date)
  4873.  
  4874. * directory[/opt/gitlab/sv/gitlab-kas/log] action create (up to date)
  4875.  
  4876. * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create (up to date)
  4877.  
  4878. * template[/opt/gitlab/sv/gitlab-kas/log/config] action create (up to date)
  4879.  
  4880. * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
  4881.  
  4882. * link[/var/log/gitlab/gitlab-kas/config] action create (up to date)
  4883.  
  4884. * template[/opt/gitlab/sv/gitlab-kas/log/run] action create (up to date)
  4885.  
  4886. * directory[/opt/gitlab/sv/gitlab-kas/env] action create (up to date)
  4887.  
  4888. * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
  4889.  
  4890. * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
  4891.  
  4892. * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
  4893.  
  4894. * directory[/opt/gitlab/sv/gitlab-kas/control] action create (up to date)
  4895.  
  4896. * link[/opt/gitlab/init/gitlab-kas] action create (up to date)
  4897.  
  4898. * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
  4899.  
  4900. * directory[/opt/gitlab/service] action create (up to date)
  4901.  
  4902. * link[/opt/gitlab/service/gitlab-kas] action create (up to date)
  4903.  
  4904. * ruby_block[wait for gitlab-kas service socket] action run (skipped due to not_if)
  4905.  
  4906. * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
  4907.  
  4908. [2023-06-12T08:51:40+00:00] INFO: ruby_block[restart_log_service] called
  4909.  
  4910. - execute the ruby block restart_log_service
  4911.  
  4912. * directory[/opt/gitlab/service] action create (up to date)
  4913.  
  4914. * link[/opt/gitlab/service/gitlab-kas] action create (up to date)
  4915.  
  4916. * ruby_block[wait for gitlab-kas service socket] action run (skipped due to not_if)
  4917.  
  4918. * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
  4919.  
  4920.  
  4921. Recipe: gitlab::database_migrations
  4922.  
  4923. * ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
  4924.  
  4925. * 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.
  4926.  
  4927.  
  4928. * bash_hide_env[migrate gitlab-rails database] action run
  4929.  
  4930. [execute] Running db:schema:load rake task
  4931.  
  4932. psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:9: NOTICE: extension "btree_gist" already exists, skipping
  4933.  
  4934. psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:11: NOTICE: extension "pg_trgm" already exists, skipping
  4935.  
  4936.  
  4937. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/001_application_settings.rb
  4938.  
  4939. Creating the default ApplicationSetting record.
  4940.  
  4941.  
  4942. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/002_admin.rb
  4943.  
  4944. Administrator account created:
  4945.  
  4946.  
  4947. login: root
  4948.  
  4949. password: ******
  4950.  
  4951.  
  4952.  
  4953. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/003_create_base_work_item_types.rb
  4954.  
  4955.  
  4956. OK
  4957.  
  4958.  
  4959. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/004_add_security_training_providers.rb
  4960.  
  4961.  
  4962. OK
  4963.  
  4964.  
  4965. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb
  4966.  
  4967. Saved CI JWT signing key
  4968.  
  4969.  
  4970. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/020_create_work_item_hierarchy_restrictions.rb
  4971.  
  4972.  
  4973. OK
  4974.  
  4975.  
  4976. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/999_common_metrics.rb
  4977.  
  4978.  
  4979. == Seed from ee/db/fixtures/production/010_license.rb
  4980.  
  4981.  
  4982. == Seed from ee/db/fixtures/production/027_plans.rb
  4983.  
  4984.  
  4985. OK
  4986.  
  4987. [2023-06-12T08:52:14+00:00] INFO: bash_hide_env[migrate gitlab-rails database] ran successfully
  4988.  
  4989. - execute "bash"
  4990.  
  4991.  
  4992. [2023-06-12T08:52:14+00:00] INFO: rails_migration[gitlab-rails] sending run action to execute[clear the gitlab-rails cache] (immediate)
  4993.  
  4994. Recipe: gitlab::gitlab-rails
  4995.  
  4996. * execute[clear the gitlab-rails cache] action run[2023-06-12T08:52:35+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully
  4997.  
  4998.  
  4999. - execute /opt/gitlab/bin/gitlab-rake cache:clear
  5000.  
  5001. [2023-06-12T08:52:35+00:00] INFO: rails_migration[gitlab-rails] sending run action to ruby_block[check remote PG version] (immediate)
  5002.  
  5003. Recipe: gitlab::database_migrations
  5004.  
  5005. * ruby_block[check remote PG version] action run (skipped due to only_if)
  5006.  
  5007. Recipe: crond::disable
  5008.  
  5009. * service[crond] action nothing (skipped due to action :nothing)
  5010.  
  5011. * runit_service[crond] action disable
  5012.  
  5013. * ruby_block[disable crond] action run (skipped due to only_if)
  5014.  
  5015. (up to date)
  5016.  
  5017. Recipe: gitlab::puma
  5018.  
  5019. * 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
  5020.  
  5021.  
  5022. - create new directory /opt/gitlab/var/puma[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/var/puma] owner changed to 997
  5023.  
  5024. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/var/puma] mode changed to 700
  5025.  
  5026.  
  5027. - change mode from '' to '0700'
  5028.  
  5029. - change owner from '' to 'git'
  5030.  
  5031. * 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
  5032.  
  5033.  
  5034. - create new directory /var/log/gitlab/puma[2023-06-12T08:52:35+00:00] INFO: directory[/var/log/gitlab/puma] owner changed to 997
  5035.  
  5036. [2023-06-12T08:52:35+00:00] INFO: directory[/var/log/gitlab/puma] mode changed to 700
  5037.  
  5038.  
  5039. - change mode from '' to '0700'
  5040.  
  5041. - change owner from '' to 'git'
  5042.  
  5043. * 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
  5044.  
  5045.  
  5046. - 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
  5047.  
  5048. [2023-06-12T08:52:35+00:00] INFO: directory[/var/opt/gitlab/gitlab-rails/sockets] group changed to 998
  5049.  
  5050. [2023-06-12T08:52:35+00:00] INFO: directory[/var/opt/gitlab/gitlab-rails/sockets] mode changed to 750
  5051.  
  5052.  
  5053. - change mode from '' to '0750'
  5054.  
  5055. - change owner from '' to 'git'
  5056.  
  5057. - change group from '' to 'gitlab-www'
  5058.  
  5059. * puma_config[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create
  5060.  
  5061. * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date)
  5062.  
  5063. * 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
  5064.  
  5065.  
  5066. - 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
  5067.  
  5068.  
  5069. - update content in file /var/opt/gitlab/gitlab-rails/etc/puma.rb from none to f597e7
  5070.  
  5071. --- /var/opt/gitlab/gitlab-rails/etc/puma.rb 2023-06-12 08:52:35.119560204 +0000
  5072.  
  5073. +++ /var/opt/gitlab/gitlab-rails/etc/.chef-puma20230612-2522091-9obfb7.rb 2023-06-12 08:52:35.119560204 +0000
  5074.  
  5075. @@ -1,109 +1,218 @@
  5076.  
  5077. +# frozen_string_literal: true
  5078.  
  5079. +
  5080.  
  5081. +# This file is managed by gitlab-ctl. Manual changes will be
  5082.  
  5083. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  5084.  
  5085. +# and run `sudo gitlab-ctl reconfigure`.
  5086.  
  5087. +
  5088.  
  5089. +# Load "path" as a rackup file.
  5090.  
  5091. +#
  5092.  
  5093. +# The default is "config.ru".
  5094.  
  5095. +#
  5096.  
  5097. +environment 'production'
  5098.  
  5099. +rackup '/opt/gitlab/embedded/service/gitlab-rails/config.ru'
  5100.  
  5101. +pidfile '/opt/gitlab/var/puma/puma.pid'
  5102.  
  5103. +state_path '/opt/gitlab/var/puma/puma.state'
  5104.  
  5105. +
  5106.  
  5107. +stdout_redirect '/var/log/gitlab/puma/puma_stdout.log', '/var/log/gitlab/puma/puma_stderr.log', true
  5108.  
  5109. +
  5110.  
  5111. +# Configure "min" to be the minimum number of threads to use to answer
  5112.  
  5113. +# requests and "max" the maximum.
  5114.  
  5115. +#
  5116.  
  5117. +# The default is "0, 16".
  5118.  
  5119. +#
  5120.  
  5121. +threads 4, 4
  5122.  
  5123. +
  5124.  
  5125. +# By default, workers accept all requests and queue them to pass to handlers.
  5126.  
  5127. +# When false, workers accept the number of simultaneous requests configured.
  5128.  
  5129. +#
  5130.  
  5131. +# Queueing requests generally improves performance, but can cause deadlocks if
  5132.  
  5133. +# the app is waiting on a request to itself. See https://github.com/puma/puma/issues/612
  5134.  
  5135. +#
  5136.  
  5137. +# When set to false this may require a reverse proxy to handle slow clients and
  5138.  
  5139. +# queue requests before they reach puma. This is due to disabling HTTP keepalive
  5140.  
  5141. +queue_requests false
  5142.  
  5143. +
  5144.  
  5145. +# Bind the server to "url". "tcp://", "unix://" and "ssl://" are the only
  5146.  
  5147. +# accepted protocols.
  5148.  
  5149. +bind 'unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  5150.  
  5151. +
  5152.  
  5153. +bind 'tcp://127.0.0.1:8080'
  5154.  
  5155. +
  5156.  
  5157. +
  5158.  
  5159. +directory '/var/opt/gitlab/gitlab-rails/working'
  5160.  
  5161. +
  5162.  
  5163. +workers 2
  5164.  
  5165. +
  5166.  
  5167. +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/lifecycle_events"
  5168.  
  5169. +
  5170.  
  5171. +on_restart do
  5172.  
  5173. + # Signal application hooks that we're about to restart
  5174.  
  5175. + Gitlab::Cluster::LifecycleEvents.do_before_master_restart
  5176.  
  5177. +end
  5178.  
  5179. +
  5180.  
  5181. +options = { workers: 2 }
  5182.  
  5183. +
  5184.  
  5185. +before_fork do
  5186.  
  5187. + # Signal application hooks that we're about to fork
  5188.  
  5189. + Gitlab::Cluster::LifecycleEvents.do_before_fork
  5190.  
  5191. +end
  5192.  
  5193. +
  5194.  
  5195. +Gitlab::Cluster::LifecycleEvents.set_puma_options options
  5196.  
  5197. +on_worker_boot do
  5198.  
  5199. + # Signal application hooks of worker start
  5200.  
  5201. + Gitlab::Cluster::LifecycleEvents.do_worker_start
  5202.  
  5203. +end
  5204.  
  5205. +
  5206.  
  5207. +on_worker_shutdown do
  5208.  
  5209. + # Signal application hooks that a worker is shutting down
  5210.  
  5211. + Gitlab::Cluster::LifecycleEvents.do_worker_stop
  5212.  
  5213. +end
  5214.  
  5215. +
  5216.  
  5217. +# Preload the application before starting the workers; this conflicts with
  5218.  
  5219. +# phased restart feature. (off by default)
  5220.  
  5221. +
  5222.  
  5223. +preload_app!
  5224.  
  5225. +
  5226.  
  5227. +tag 'gitlab-puma-worker'
  5228.  
  5229. +
  5230.  
  5231. +# Verifies that all workers have checked in to the master process within
  5232.  
  5233. +# the given timeout. If not the worker process will be restarted. Default
  5234.  
  5235. +# value is 60 seconds.
  5236.  
  5237. +#
  5238.  
  5239. +worker_timeout 60
  5240.  
  5241. +
  5242.  
  5243. +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput
  5244.  
  5245. +wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
  5246.  
  5247. +
  5248.  
  5249. +# nakayoshi_fork was removed in Puma 6.0: https://github.com/puma/puma/issues/2258
  5250.  
  5251. +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork
  5252.  
  5253. +if Gem::Version.new(Puma::Const::PUMA_VERSION).canonical_segments.first == 5 &&
  5254.  
  5255. + ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] != 'true'
  5256.  
  5257. + nakayoshi_fork
  5258.  
  5259. +end
  5260.  
  5261. +
  5262.  
  5263. +# Use customised JSON formatter for Puma log
  5264.  
  5265. +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/puma_logging/json_formatter"
  5266.  
  5267. +
  5268.  
  5269. +json_formatter = Gitlab::PumaLogging::JSONFormatter.new
  5270.  
  5271. +log_formatter do |str|
  5272.  
  5273. + json_formatter.call(str)
  5274.  
  5275. +end
  5276.  
  5277. +
  5278.  
  5279. +lowlevel_error_handler do |ex, env|
  5280.  
  5281. + if Raven.configuration.capture_allowed?
  5282.  
  5283. + Raven.capture_exception(ex, tags: { 'handler': 'puma_low_level' }, extra: { puma_env: env })
  5284.  
  5285. + end
  5286.  
  5287. +
  5288.  
  5289. + # note the below is just a Rack response
  5290.  
  5291. + [500, {}, ["An error has occurred and reported in the system's low-level error handler."]]
  5292.  
  5293. +end[2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] owner changed to 0
  5294.  
  5295. [2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] group changed to 0
  5296.  
  5297. [2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] mode changed to 644
  5298.  
  5299.  
  5300. - change mode from '' to '0644'
  5301.  
  5302. - change owner from '' to 'root'
  5303.  
  5304. - change group from '' to 'root'
  5305.  
  5306.  
  5307. * service[puma] action nothing (skipped due to action :nothing)
  5308.  
  5309. * runit_service[puma] action enable
  5310.  
  5311. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  5312.  
  5313. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  5314.  
  5315. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  5316.  
  5317. * 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
  5318.  
  5319.  
  5320. - create new directory /opt/gitlab/sv/puma[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] owner changed to 0
  5321.  
  5322. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] group changed to 0
  5323.  
  5324. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] mode changed to 755
  5325.  
  5326.  
  5327. - change mode from '' to '0755'
  5328.  
  5329. - change owner from '' to 'root'
  5330.  
  5331. - change group from '' to 'root'
  5332.  
  5333. * 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
  5334.  
  5335.  
  5336. - 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
  5337.  
  5338.  
  5339. - update content in file /opt/gitlab/sv/puma/run from none to d9c6f4
  5340.  
  5341. --- /opt/gitlab/sv/puma/run 2023-06-12 08:52:35.155560104 +0000
  5342.  
  5343. +++ /opt/gitlab/sv/puma/.chef-run20230612-2522091-t2yz31 2023-06-12 08:52:35.155560104 +0000
  5344.  
  5345. @@ -1,22 +1,44 @@
  5346.  
  5347. +#!/bin/bash
  5348.  
  5349. +
  5350.  
  5351. +# Let runit capture all script error messages
  5352.  
  5353. +exec 2>&1
  5354.  
  5355. +
  5356.  
  5357. +# Setup run directory.
  5358.  
  5359. +mkdir -p /run/gitlab/puma
  5360.  
  5361. +chmod 0700 /run/gitlab/puma
  5362.  
  5363. +chown git /run/gitlab/puma
  5364.  
  5365. +export prometheus_run_dir='/run/gitlab/puma'
  5366.  
  5367. +
  5368.  
  5369. +
  5370.  
  5371. +
  5372.  
  5373. +
  5374.  
  5375. +exec chpst -P \
  5376.  
  5377. + -u git:git \
  5378.  
  5379. + -U git:git \
  5380.  
  5381. + -e /opt/gitlab/etc/gitlab-rails/env \
  5382.  
  5383. + /usr/bin/env \
  5384.  
  5385. + prometheus_multiproc_dir="${prometheus_run_dir}" \
  5386.  
  5387. + ACTION_CABLE_WORKER_POOL_SIZE=4 \
  5388.  
  5389. + /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
  5390.  
  5391. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] group changed to 0
  5392.  
  5393. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] mode changed to 755
  5394.  
  5395.  
  5396. - change mode from '' to '0755'
  5397.  
  5398. - change owner from '' to 'root'
  5399.  
  5400. - change group from '' to 'root'
  5401.  
  5402. * 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
  5403.  
  5404.  
  5405. - 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
  5406.  
  5407. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log] group changed to 0
  5408.  
  5409. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log] mode changed to 755
  5410.  
  5411.  
  5412. - change mode from '' to '0755'
  5413.  
  5414. - change owner from '' to 'root'
  5415.  
  5416. - change group from '' to 'root'
  5417.  
  5418. * 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
  5419.  
  5420.  
  5421. - 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
  5422.  
  5423. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log/main] group changed to 0
  5424.  
  5425. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log/main] mode changed to 755
  5426.  
  5427.  
  5428. - change mode from '' to '0755'
  5429.  
  5430. - change owner from '' to 'root'
  5431.  
  5432. - change group from '' to 'root'
  5433.  
  5434. * 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
  5435.  
  5436.  
  5437. - 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
  5438.  
  5439.  
  5440. - update content in file /opt/gitlab/sv/puma/log/config from none to 623c00
  5441.  
  5442. --- /opt/gitlab/sv/puma/log/config 2023-06-12 08:52:35.183560027 +0000
  5443.  
  5444. +++ /opt/gitlab/sv/puma/log/.chef-config20230612-2522091-z7jvlw 2023-06-12 08:52:35.183560027 +0000
  5445.  
  5446. @@ -1,6 +1,12 @@
  5447.  
  5448. +s209715200
  5449.  
  5450. +n30
  5451.  
  5452. +t86400
  5453.  
  5454. +!gzip
  5455.  
  5456. +
  5457.  
  5458. +[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] owner changed to 0
  5459.  
  5460. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] group changed to 0
  5461.  
  5462. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] mode changed to 644
  5463.  
  5464.  
  5465. - change mode from '' to '0644'
  5466.  
  5467. - change owner from '' to 'root'
  5468.  
  5469. - change group from '' to 'root'
  5470.  
  5471. [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)
  5472.  
  5473. * 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
  5474.  
  5475.  
  5476. - execute the ruby block verify_chown_persisted_on_puma
  5477.  
  5478. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
  5479.  
  5480. * link[/var/log/gitlab/puma/config] action create[2023-06-12T08:52:35+00:00] INFO: link[/var/log/gitlab/puma/config] created
  5481.  
  5482.  
  5483. - create symlink at /var/log/gitlab/puma/config to /opt/gitlab/sv/puma/log/config
  5484.  
  5485. * 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
  5486.  
  5487.  
  5488. - 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
  5489.  
  5490.  
  5491. - update content in file /opt/gitlab/sv/puma/log/run from none to b9d2d5
  5492.  
  5493. --- /opt/gitlab/sv/puma/log/run 2023-06-12 08:52:35.203559973 +0000
  5494.  
  5495. +++ /opt/gitlab/sv/puma/log/.chef-run20230612-2522091-it29bt 2023-06-12 08:52:35.203559973 +0000
  5496.  
  5497. @@ -1,5 +1,10 @@
  5498.  
  5499. +#!/bin/sh
  5500.  
  5501. +exec chpst -P \
  5502.  
  5503. + -U root:root \
  5504.  
  5505. + -u root:root \
  5506.  
  5507. + 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
  5508.  
  5509. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] group changed to 0
  5510.  
  5511. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] mode changed to 755
  5512.  
  5513.  
  5514. - change mode from '' to '0755'
  5515.  
  5516. - change owner from '' to 'root'
  5517.  
  5518. - change group from '' to 'root'
  5519.  
  5520. * 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
  5521.  
  5522.  
  5523. - 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
  5524.  
  5525. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/env] group changed to 0
  5526.  
  5527. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/env] mode changed to 755
  5528.  
  5529.  
  5530. - change mode from '' to '0755'
  5531.  
  5532. - change owner from '' to 'root'
  5533.  
  5534. - change group from '' to 'root'
  5535.  
  5536. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
  5537.  
  5538. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
  5539.  
  5540. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
  5541.  
  5542. * 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
  5543.  
  5544.  
  5545. - 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
  5546.  
  5547. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/control] group changed to 0
  5548.  
  5549. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/control] mode changed to 755
  5550.  
  5551.  
  5552. - change mode from '' to '0755'
  5553.  
  5554. - change owner from '' to 'root'
  5555.  
  5556. - change group from '' to 'root'
  5557.  
  5558. * 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
  5559.  
  5560.  
  5561. - 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
  5562.  
  5563.  
  5564. - update content in file /opt/gitlab/sv/puma/control/t from none to d8e9e7
  5565.  
  5566. --- /opt/gitlab/sv/puma/control/t 2023-06-12 08:52:35.219559928 +0000
  5567.  
  5568. +++ /opt/gitlab/sv/puma/control/.chef-t20230612-2522091-mgnhjm 2023-06-12 08:52:35.219559928 +0000
  5569.  
  5570. @@ -1,3 +1,6 @@
  5571.  
  5572. +#!/bin/sh
  5573.  
  5574. +echo "Received TERM from runit, sending to process group (-PID)"
  5575.  
  5576. +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
  5577.  
  5578. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] group changed to 0
  5579.  
  5580. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] mode changed to 755
  5581.  
  5582.  
  5583. - change mode from '' to '0755'
  5584.  
  5585. - change owner from '' to 'root'
  5586.  
  5587. - change group from '' to 'root'
  5588.  
  5589. * 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
  5590.  
  5591.  
  5592. - 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
  5593.  
  5594.  
  5595. - update content in file /opt/gitlab/sv/puma/control/h from none to 22e721
  5596.  
  5597. --- /opt/gitlab/sv/puma/control/h 2023-06-12 08:52:35.235559885 +0000
  5598.  
  5599. +++ /opt/gitlab/sv/puma/control/.chef-h20230612-2522091-j89l6i 2023-06-12 08:52:35.235559885 +0000
  5600.  
  5601. @@ -1,47 +1,94 @@
  5602.  
  5603. +#!/bin/sh
  5604.  
  5605. +
  5606.  
  5607. +# This control handler is meant to be invoked by omnibus-gitlab via Runit
  5608.  
  5609. +
  5610.  
  5611. +# Let runit capture all script error messages
  5612.  
  5613. +exec 2>&1
  5614.  
  5615. +
  5616.  
  5617. +PID=$(cat /opt/gitlab/service/puma/supervise/pid)
  5618.  
  5619. +
  5620.  
  5621. +readonly puma_graceful_shutdown_sec=90
  5622.  
  5623. +readonly puma_forceful_shutdown_sec=20
  5624.  
  5625. +readonly puma_kill_shutdown_sec=10
  5626.  
  5627. +
  5628.  
  5629. +echo "Received HUP from runit, sending INT signal to perform graceful restart"
  5630.  
  5631. +
  5632.  
  5633. +signal() {
  5634.  
  5635. + local pid="$1"
  5636.  
  5637. + local signal="$2"
  5638.  
  5639. + local tries="$3"
  5640.  
  5641. +
  5642.  
  5643. + echo "Sending $signal signal to Puma $pid..."
  5644.  
  5645. + kill "-$signal" "$pid"
  5646.  
  5647. +
  5648.  
  5649. + for i in $(seq 1 "$tries"); do
  5650.  
  5651. + echo "Waiting for Puma $pid to exit ($i)..."
  5652.  
  5653. + if ! kill -0 "$pid"; then
  5654.  
  5655. + echo "Puma $pid did exit."
  5656.  
  5657. + return 0
  5658.  
  5659. + fi
  5660.  
  5661. +
  5662.  
  5663. + sleep 1
  5664.  
  5665. + done
  5666.  
  5667. +
  5668.  
  5669. + echo "Puma $pid did not exit after $signal."
  5670.  
  5671. + return 1
  5672.  
  5673. +}
  5674.  
  5675. +
  5676.  
  5677. +(
  5678.  
  5679. + # we run it in subshell, as `runit` requires
  5680.  
  5681. + # the process it runs to exit in order to reap
  5682.  
  5683. + # the service
  5684.  
  5685. + signal "$PID" "INT" "$puma_graceful_shutdown_sec" ||
  5686.  
  5687. + signal "$PID" "TERM" "$puma_forceful_shutdown_sec" ||
  5688.  
  5689. + signal "$PID" "KILL" "$puma_kill_shutdown_sec"
  5690.  
  5691. +) &
  5692.  
  5693. +
  5694.  
  5695. +exit 0[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] owner changed to 0
  5696.  
  5697. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] group changed to 0
  5698.  
  5699. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] mode changed to 755
  5700.  
  5701.  
  5702. - change mode from '' to '0755'
  5703.  
  5704. - change owner from '' to 'root'
  5705.  
  5706. - change group from '' to 'root'
  5707.  
  5708. * link[/opt/gitlab/init/puma] action create[2023-06-12T08:52:35+00:00] INFO: link[/opt/gitlab/init/puma] created
  5709.  
  5710.  
  5711. - create symlink at /opt/gitlab/init/puma to /opt/gitlab/embedded/bin/sv
  5712.  
  5713. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
  5714.  
  5715. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] sending run action to ruby_block[restart_service] (delayed)
  5716.  
  5717. * ruby_block[restart_service] action run (skipped due to only_if)
  5718.  
  5719. [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)
  5720.  
  5721. * ruby_block[reload_log_service] action create
  5722.  
  5723. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  5724.  
  5725. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  5726.  
  5727. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  5728.  
  5729. * directory[/opt/gitlab/sv/puma] action create (up to date)
  5730.  
  5731. * template[/opt/gitlab/sv/puma/run] action create (up to date)
  5732.  
  5733. * directory[/opt/gitlab/sv/puma/log] action create (up to date)
  5734.  
  5735. * directory[/opt/gitlab/sv/puma/log/main] action create (up to date)
  5736.  
  5737. * template[/opt/gitlab/sv/puma/log/config] action create (up to date)
  5738.  
  5739. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
  5740.  
  5741. * link[/var/log/gitlab/puma/config] action create (up to date)
  5742.  
  5743. * template[/opt/gitlab/sv/puma/log/run] action create (up to date)
  5744.  
  5745. * directory[/opt/gitlab/sv/puma/env] action create (up to date)
  5746.  
  5747. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
  5748.  
  5749. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
  5750.  
  5751. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
  5752.  
  5753. * directory[/opt/gitlab/sv/puma/control] action create (up to date)
  5754.  
  5755. * template[/opt/gitlab/sv/puma/control/t] action create (up to date)
  5756.  
  5757. * template[/opt/gitlab/sv/puma/control/h] action create (up to date)
  5758.  
  5759. * link[/opt/gitlab/init/puma] action create (up to date)
  5760.  
  5761. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
  5762.  
  5763. * directory[/opt/gitlab/service] action create (up to date)
  5764.  
  5765. * link[/opt/gitlab/service/puma] action create[2023-06-12T08:52:35+00:00] INFO: link[/opt/gitlab/service/puma] created
  5766.  
  5767.  
  5768. - create symlink at /opt/gitlab/service/puma to /opt/gitlab/sv/puma
  5769.  
  5770. * 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
  5771.  
  5772.  
  5773. - execute the ruby block wait for puma service socket
  5774.  
  5775. * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
  5776.  
  5777. [2023-06-12T08:52:40+00:00] INFO: ruby_block[reload_log_service] called
  5778.  
  5779. - execute the ruby block reload_log_service
  5780.  
  5781. [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)
  5782.  
  5783. * ruby_block[restart_log_service] action run
  5784.  
  5785. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  5786.  
  5787. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  5788.  
  5789. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  5790.  
  5791. * directory[/opt/gitlab/sv/puma] action create (up to date)
  5792.  
  5793. * template[/opt/gitlab/sv/puma/run] action create (up to date)
  5794.  
  5795. * directory[/opt/gitlab/sv/puma/log] action create (up to date)
  5796.  
  5797. * directory[/opt/gitlab/sv/puma/log/main] action create (up to date)
  5798.  
  5799. * template[/opt/gitlab/sv/puma/log/config] action create (up to date)
  5800.  
  5801. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
  5802.  
  5803. * link[/var/log/gitlab/puma/config] action create (up to date)
  5804.  
  5805. * template[/opt/gitlab/sv/puma/log/run] action create (up to date)
  5806.  
  5807. * directory[/opt/gitlab/sv/puma/env] action create (up to date)
  5808.  
  5809. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
  5810.  
  5811. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
  5812.  
  5813. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
  5814.  
  5815. * directory[/opt/gitlab/sv/puma/control] action create (up to date)
  5816.  
  5817. * template[/opt/gitlab/sv/puma/control/t] action create (up to date)
  5818.  
  5819. * template[/opt/gitlab/sv/puma/control/h] action create (up to date)
  5820.  
  5821. * link[/opt/gitlab/init/puma] action create (up to date)
  5822.  
  5823. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
  5824.  
  5825. * directory[/opt/gitlab/service] action create (up to date)
  5826.  
  5827. * link[/opt/gitlab/service/puma] action create (up to date)
  5828.  
  5829. * ruby_block[wait for puma service socket] action run (skipped due to not_if)
  5830.  
  5831. * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
  5832.  
  5833. [2023-06-12T08:52:41+00:00] INFO: ruby_block[restart_log_service] called
  5834.  
  5835. - execute the ruby block restart_log_service
  5836.  
  5837. * directory[/opt/gitlab/service] action create (up to date)
  5838.  
  5839. * link[/opt/gitlab/service/puma] action create (up to date)
  5840.  
  5841. * ruby_block[wait for puma service socket] action run (skipped due to not_if)
  5842.  
  5843. * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
  5844.  
  5845.  
  5846. * execute[/opt/gitlab/bin/gitlab-ctl start puma] action run
  5847.  
  5848. [execute] ok: run: puma: (pid 2523282) 2s
  5849.  
  5850. [2023-06-12T08:52:42+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start puma] ran successfully
  5851.  
  5852. - execute /opt/gitlab/bin/gitlab-ctl start puma
  5853.  
  5854. * consul_service[rails] action delete
  5855.  
  5856. * file[/var/opt/gitlab/consul/config.d/rails-service.json] action delete (up to date)
  5857.  
  5858. (up to date)
  5859.  
  5860. * gitlab_sysctl[net.core.somaxconn] action create
  5861.  
  5862. * directory[create /etc/sysctl.d for net.core.somaxconn] action create (up to date)
  5863.  
  5864. * 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
  5865.  
  5866.  
  5867. - 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
  5868.  
  5869.  
  5870. - update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf from none to 353a75
  5871.  
  5872. --- /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf 2023-06-12 08:52:42.511539808 +0000
  5873.  
  5874. +++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-net20230612-2522091-5dk65q.core.somaxconn.conf 2023-06-12 08:52:42.511539808 +0000
  5875.  
  5876. @@ -1 +1,2 @@
  5877.  
  5878. +net.core.somaxconn = 1024
  5879.  
  5880. * 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
  5881.  
  5882.  
  5883. - 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
  5884.  
  5885. [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
  5886.  
  5887. [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
  5888.  
  5889. * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing)
  5890.  
  5891. [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)
  5892.  
  5893. * 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
  5894.  
  5895.  
  5896. - execute sysctl -e -p /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf
  5897.  
  5898.  
  5899. Recipe: gitlab::sidekiq
  5900.  
  5901. * 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.
  5902.  
  5903.  
  5904. * 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
  5905.  
  5906.  
  5907. - create new directory /var/log/gitlab/sidekiq[2023-06-12T08:52:42+00:00] INFO: directory[/var/log/gitlab/sidekiq] owner changed to 997
  5908.  
  5909. [2023-06-12T08:52:42+00:00] INFO: directory[/var/log/gitlab/sidekiq] mode changed to 700
  5910.  
  5911.  
  5912. - change mode from '' to '0700'
  5913.  
  5914. - change owner from '' to 'git'
  5915.  
  5916. * service[sidekiq] action nothing (skipped due to action :nothing)
  5917.  
  5918. * runit_service[sidekiq] action enable
  5919.  
  5920. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  5921.  
  5922. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  5923.  
  5924. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  5925.  
  5926. * 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
  5927.  
  5928.  
  5929. - create new directory /opt/gitlab/sv/sidekiq[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] owner changed to 0
  5930.  
  5931. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] group changed to 0
  5932.  
  5933. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] mode changed to 755
  5934.  
  5935.  
  5936. - change mode from '' to '0755'
  5937.  
  5938. - change owner from '' to 'root'
  5939.  
  5940. - change group from '' to 'root'
  5941.  
  5942. * 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
  5943.  
  5944.  
  5945. - 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
  5946.  
  5947.  
  5948. - update content in file /opt/gitlab/sv/sidekiq/run from none to 68cc5b
  5949.  
  5950. --- /opt/gitlab/sv/sidekiq/run 2023-06-12 08:52:42.579539620 +0000
  5951.  
  5952. +++ /opt/gitlab/sv/sidekiq/.chef-run20230612-2522091-m8mdui 2023-06-12 08:52:42.579539620 +0000
  5953.  
  5954. @@ -1,27 +1,54 @@
  5955.  
  5956. +#!/bin/sh
  5957.  
  5958. +
  5959.  
  5960. +cd /var/opt/gitlab/gitlab-rails/working
  5961.  
  5962. +
  5963.  
  5964. +exec 2>&1
  5965.  
  5966. +# Setup run directory.
  5967.  
  5968. +mkdir -p /run/gitlab/sidekiq
  5969.  
  5970. +rm /run/gitlab/sidekiq/*.db 2> /dev/null
  5971.  
  5972. +chmod 0700 /run/gitlab/sidekiq
  5973.  
  5974. +chown git /run/gitlab/sidekiq
  5975.  
  5976. +export prometheus_run_dir='/run/gitlab/sidekiq'
  5977.  
  5978. +
  5979.  
  5980. +
  5981.  
  5982. +
  5983.  
  5984. +exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \
  5985.  
  5986. + -U git:git \
  5987.  
  5988. + -u git:git \
  5989.  
  5990. + /usr/bin/env \
  5991.  
  5992. + prometheus_multiproc_dir="${prometheus_run_dir}" \
  5993.  
  5994. + /opt/gitlab/embedded/service/gitlab-rails/bin/sidekiq-cluster \
  5995.  
  5996. + -e production \
  5997.  
  5998. + -r /opt/gitlab/embedded/service/gitlab-rails \
  5999.  
  6000. + -m 20 \
  6001.  
  6002. + --timeout 25 \
  6003.  
  6004. + "*" \
  6005.  
  6006. +
  6007.  
  6008. +# 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
  6009.  
  6010. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] group changed to 0
  6011.  
  6012. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] mode changed to 755
  6013.  
  6014.  
  6015. - change mode from '' to '0755'
  6016.  
  6017. - change owner from '' to 'root'
  6018.  
  6019. - change group from '' to 'root'
  6020.  
  6021. * 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
  6022.  
  6023.  
  6024. - 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
  6025.  
  6026. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log] group changed to 0
  6027.  
  6028. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log] mode changed to 755
  6029.  
  6030.  
  6031. - change mode from '' to '0755'
  6032.  
  6033. - change owner from '' to 'root'
  6034.  
  6035. - change group from '' to 'root'
  6036.  
  6037. * 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
  6038.  
  6039.  
  6040. - 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
  6041.  
  6042. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log/main] group changed to 0
  6043.  
  6044. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log/main] mode changed to 755
  6045.  
  6046.  
  6047. - change mode from '' to '0755'
  6048.  
  6049. - change owner from '' to 'root'
  6050.  
  6051. - change group from '' to 'root'
  6052.  
  6053. * 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
  6054.  
  6055.  
  6056. - 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
  6057.  
  6058.  
  6059. - update content in file /opt/gitlab/sv/sidekiq/log/config from none to 623c00
  6060.  
  6061. --- /opt/gitlab/sv/sidekiq/log/config 2023-06-12 08:52:42.599539564 +0000
  6062.  
  6063. +++ /opt/gitlab/sv/sidekiq/log/.chef-config20230612-2522091-7gjz9p 2023-06-12 08:52:42.599539564 +0000
  6064.  
  6065. @@ -1,6 +1,12 @@
  6066.  
  6067. +s209715200
  6068.  
  6069. +n30
  6070.  
  6071. +t86400
  6072.  
  6073. +!gzip
  6074.  
  6075. +
  6076.  
  6077. +[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] owner changed to 0
  6078.  
  6079. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] group changed to 0
  6080.  
  6081. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] mode changed to 644
  6082.  
  6083.  
  6084. - change mode from '' to '0644'
  6085.  
  6086. - change owner from '' to 'root'
  6087.  
  6088. - change group from '' to 'root'
  6089.  
  6090. [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)
  6091.  
  6092. * 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
  6093.  
  6094.  
  6095. - execute the ruby block verify_chown_persisted_on_sidekiq
  6096.  
  6097. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
  6098.  
  6099. * link[/var/log/gitlab/sidekiq/config] action create[2023-06-12T08:52:42+00:00] INFO: link[/var/log/gitlab/sidekiq/config] created
  6100.  
  6101.  
  6102. - create symlink at /var/log/gitlab/sidekiq/config to /opt/gitlab/sv/sidekiq/log/config
  6103.  
  6104. * 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
  6105.  
  6106.  
  6107. - 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
  6108.  
  6109.  
  6110. - update content in file /opt/gitlab/sv/sidekiq/log/run from none to 421ac5
  6111.  
  6112. --- /opt/gitlab/sv/sidekiq/log/run 2023-06-12 08:52:42.619539509 +0000
  6113.  
  6114. +++ /opt/gitlab/sv/sidekiq/log/.chef-run20230612-2522091-7ijph6 2023-06-12 08:52:42.619539509 +0000
  6115.  
  6116. @@ -1,5 +1,10 @@
  6117.  
  6118. +#!/bin/sh
  6119.  
  6120. +exec chpst -P \
  6121.  
  6122. + -U root:root \
  6123.  
  6124. + -u root:root \
  6125.  
  6126. + svlogd /var/log/gitlab/sidekiq[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] owner changed to 0
  6127.  
  6128. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] group changed to 0
  6129.  
  6130. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] mode changed to 755
  6131.  
  6132.  
  6133. - change mode from '' to '0755'
  6134.  
  6135. - change owner from '' to 'root'
  6136.  
  6137. - change group from '' to 'root'
  6138.  
  6139. * 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
  6140.  
  6141.  
  6142. - 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
  6143.  
  6144. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/env] group changed to 0
  6145.  
  6146. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/env] mode changed to 755
  6147.  
  6148.  
  6149. - change mode from '' to '0755'
  6150.  
  6151. - change owner from '' to 'root'
  6152.  
  6153. - change group from '' to 'root'
  6154.  
  6155. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
  6156.  
  6157. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
  6158.  
  6159. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
  6160.  
  6161. * 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
  6162.  
  6163.  
  6164. - 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
  6165.  
  6166. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/control] group changed to 0
  6167.  
  6168. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/control] mode changed to 755
  6169.  
  6170.  
  6171. - change mode from '' to '0755'
  6172.  
  6173. - change owner from '' to 'root'
  6174.  
  6175. - change group from '' to 'root'
  6176.  
  6177. * link[/opt/gitlab/init/sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: link[/opt/gitlab/init/sidekiq] created
  6178.  
  6179.  
  6180. - create symlink at /opt/gitlab/init/sidekiq to /opt/gitlab/embedded/bin/sv
  6181.  
  6182. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
  6183.  
  6184. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] sending run action to ruby_block[restart_service] (delayed)
  6185.  
  6186. * ruby_block[restart_service] action run (skipped due to only_if)
  6187.  
  6188. [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)
  6189.  
  6190. * ruby_block[reload_log_service] action create
  6191.  
  6192. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6193.  
  6194. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6195.  
  6196. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6197.  
  6198. * directory[/opt/gitlab/sv/sidekiq] action create (up to date)
  6199.  
  6200. * template[/opt/gitlab/sv/sidekiq/run] action create (up to date)
  6201.  
  6202. * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date)
  6203.  
  6204. * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date)
  6205.  
  6206. * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date)
  6207.  
  6208. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
  6209.  
  6210. * link[/var/log/gitlab/sidekiq/config] action create (up to date)
  6211.  
  6212. * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date)
  6213.  
  6214. * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date)
  6215.  
  6216. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
  6217.  
  6218. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
  6219.  
  6220. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
  6221.  
  6222. * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date)
  6223.  
  6224. * link[/opt/gitlab/init/sidekiq] action create (up to date)
  6225.  
  6226. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
  6227.  
  6228. * directory[/opt/gitlab/service] action create (up to date)
  6229.  
  6230. * link[/opt/gitlab/service/sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: link[/opt/gitlab/service/sidekiq] created
  6231.  
  6232.  
  6233. - create symlink at /opt/gitlab/service/sidekiq to /opt/gitlab/sv/sidekiq
  6234.  
  6235. * 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
  6236.  
  6237.  
  6238. - execute the ruby block wait for sidekiq service socket
  6239.  
  6240. * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
  6241.  
  6242. [2023-06-12T08:52:46+00:00] INFO: ruby_block[reload_log_service] called
  6243.  
  6244. - execute the ruby block reload_log_service
  6245.  
  6246. [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)
  6247.  
  6248. * ruby_block[restart_log_service] action run
  6249.  
  6250. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6251.  
  6252. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6253.  
  6254. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6255.  
  6256. * directory[/opt/gitlab/sv/sidekiq] action create (up to date)
  6257.  
  6258. * template[/opt/gitlab/sv/sidekiq/run] action create (up to date)
  6259.  
  6260. * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date)
  6261.  
  6262. * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date)
  6263.  
  6264. * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date)
  6265.  
  6266. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
  6267.  
  6268. * link[/var/log/gitlab/sidekiq/config] action create (up to date)
  6269.  
  6270. * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date)
  6271.  
  6272. * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date)
  6273.  
  6274. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
  6275.  
  6276. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
  6277.  
  6278. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
  6279.  
  6280. * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date)
  6281.  
  6282. * link[/opt/gitlab/init/sidekiq] action create (up to date)
  6283.  
  6284. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
  6285.  
  6286. * directory[/opt/gitlab/service] action create (up to date)
  6287.  
  6288. * link[/opt/gitlab/service/sidekiq] action create (up to date)
  6289.  
  6290. * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if)
  6291.  
  6292. * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
  6293.  
  6294. [2023-06-12T08:52:48+00:00] INFO: ruby_block[restart_log_service] called
  6295.  
  6296. - execute the ruby block restart_log_service
  6297.  
  6298. * directory[/opt/gitlab/service] action create (up to date)
  6299.  
  6300. * link[/opt/gitlab/service/sidekiq] action create (up to date)
  6301.  
  6302. * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if)
  6303.  
  6304. * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
  6305.  
  6306.  
  6307. * execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] action run
  6308.  
  6309. [execute] ok: run: sidekiq: (pid 2523347) 2s
  6310.  
  6311. [2023-06-12T08:52:48+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] ran successfully
  6312.  
  6313. - execute /opt/gitlab/bin/gitlab-ctl start sidekiq
  6314.  
  6315.  
  6316. * consul_service[sidekiq] action delete
  6317.  
  6318. * file[/var/opt/gitlab/consul/config.d/sidekiq-service.json] action delete (up to date)
  6319.  
  6320. (up to date)
  6321.  
  6322. Recipe: gitlab::gitlab-workhorse
  6323.  
  6324. * 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
  6325.  
  6326.  
  6327. - 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
  6328.  
  6329. [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse] group changed to 998
  6330.  
  6331. [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse] mode changed to 750
  6332.  
  6333.  
  6334. - change mode from '' to '0750'
  6335.  
  6336. - change owner from '' to 'git'
  6337.  
  6338. - change group from '' to 'gitlab-www'
  6339.  
  6340. * 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
  6341.  
  6342.  
  6343. - 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
  6344.  
  6345. [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] group changed to 998
  6346.  
  6347. [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] mode changed to 750
  6348.  
  6349.  
  6350. - change mode from '' to '0750'
  6351.  
  6352. - change owner from '' to 'git'
  6353.  
  6354. - change group from '' to 'gitlab-www'
  6355.  
  6356. * 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
  6357.  
  6358.  
  6359. - 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
  6360.  
  6361. [2023-06-12T08:52:48+00:00] INFO: directory[/var/log/gitlab/gitlab-workhorse] mode changed to 700
  6362.  
  6363.  
  6364. - change mode from '' to '0700'
  6365.  
  6366. - change owner from '' to 'git'
  6367.  
  6368. * 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
  6369.  
  6370.  
  6371. - 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
  6372.  
  6373. [2023-06-12T08:52:48+00:00] INFO: directory[/opt/gitlab/etc/gitlab-workhorse] mode changed to 700
  6374.  
  6375.  
  6376. - change mode from '' to '0700'
  6377.  
  6378. - change owner from '' to 'git'
  6379.  
  6380. * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create
  6381.  
  6382. * 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
  6383.  
  6384.  
  6385. - create new directory /opt/gitlab/etc/gitlab-workhorse/env
  6386.  
  6387. * 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
  6388.  
  6389.  
  6390. - 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
  6391.  
  6392.  
  6393. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/PATH from none to d5dc07
  6394.  
  6395. - suppressed sensitive resource
  6396.  
  6397. * 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
  6398.  
  6399.  
  6400. - 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
  6401.  
  6402.  
  6403. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/HOME from none to 205bb9
  6404.  
  6405. - suppressed sensitive resource
  6406.  
  6407. * 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
  6408.  
  6409.  
  6410. - 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
  6411.  
  6412.  
  6413. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR from none to 4f45cf
  6414.  
  6415. - suppressed sensitive resource
  6416.  
  6417.  
  6418. [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
  6419.  
  6420. * service[gitlab-workhorse] action nothing (skipped due to action :nothing)
  6421.  
  6422. * runit_service[gitlab-workhorse] action enable
  6423.  
  6424. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6425.  
  6426. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6427.  
  6428. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6429.  
  6430. * 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
  6431.  
  6432.  
  6433. - 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
  6434.  
  6435. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse] group changed to 0
  6436.  
  6437. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse] mode changed to 755
  6438.  
  6439.  
  6440. - change mode from '' to '0755'
  6441.  
  6442. - change owner from '' to 'root'
  6443.  
  6444. - change group from '' to 'root'
  6445.  
  6446. * 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
  6447.  
  6448.  
  6449. - 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
  6450.  
  6451.  
  6452. - update content in file /opt/gitlab/sv/gitlab-workhorse/run from none to b1d72f
  6453.  
  6454. --- /opt/gitlab/sv/gitlab-workhorse/run 2023-06-12 08:52:49.043521722 +0000
  6455.  
  6456. +++ /opt/gitlab/sv/gitlab-workhorse/.chef-run20230612-2522091-o8lp8y 2023-06-12 08:52:49.043521722 +0000
  6457.  
  6458. @@ -1,27 +1,54 @@
  6459.  
  6460. +#!/bin/sh
  6461.  
  6462. +set -e # fail on errors
  6463.  
  6464. +
  6465.  
  6466. +# Redirect stderr -> stdout
  6467.  
  6468. +exec 2>&1
  6469.  
  6470. +
  6471.  
  6472. +
  6473.  
  6474. +
  6475.  
  6476. +cd /var/opt/gitlab/gitlab-workhorse
  6477.  
  6478. +
  6479.  
  6480. +exec chpst -e /opt/gitlab/etc/gitlab-workhorse/env -P \
  6481.  
  6482. + -U git:git \
  6483.  
  6484. + -u git:git \
  6485.  
  6486. + /opt/gitlab/embedded/bin/gitlab-workhorse \
  6487.  
  6488. + -listenNetwork unix \
  6489.  
  6490. + -listenUmask 0 \
  6491.  
  6492. + -listenAddr /var/opt/gitlab/gitlab-workhorse/sockets/socket \
  6493.  
  6494. + -authBackend http://localhost:8080 \
  6495.  
  6496. + -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket \
  6497.  
  6498. + -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public \
  6499.  
  6500. + -pprofListenAddr ''\
  6501.  
  6502. + -prometheusListenAddr localhost:9229 \
  6503.  
  6504. + -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \
  6505.  
  6506. + -logFormat json \
  6507.  
  6508. + -config config.toml \
  6509.  
  6510. +
  6511.  
  6512. +# 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
  6513.  
  6514. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] group changed to 0
  6515.  
  6516. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] mode changed to 755
  6517.  
  6518.  
  6519. - change mode from '' to '0755'
  6520.  
  6521. - change owner from '' to 'root'
  6522.  
  6523. - change group from '' to 'root'
  6524.  
  6525. * 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
  6526.  
  6527.  
  6528. - 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
  6529.  
  6530. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log] group changed to 0
  6531.  
  6532. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log] mode changed to 755
  6533.  
  6534.  
  6535. - change mode from '' to '0755'
  6536.  
  6537. - change owner from '' to 'root'
  6538.  
  6539. - change group from '' to 'root'
  6540.  
  6541. * 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
  6542.  
  6543.  
  6544. - 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
  6545.  
  6546. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log/main] group changed to 0
  6547.  
  6548. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log/main] mode changed to 755
  6549.  
  6550.  
  6551. - change mode from '' to '0755'
  6552.  
  6553. - change owner from '' to 'root'
  6554.  
  6555. - change group from '' to 'root'
  6556.  
  6557. * 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
  6558.  
  6559.  
  6560. - 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
  6561.  
  6562.  
  6563. - update content in file /opt/gitlab/sv/gitlab-workhorse/log/config from none to 623c00
  6564.  
  6565. --- /opt/gitlab/sv/gitlab-workhorse/log/config 2023-06-12 08:52:49.067521656 +0000
  6566.  
  6567. +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-config20230612-2522091-xtsi5l 2023-06-12 08:52:49.067521656 +0000
  6568.  
  6569. @@ -1,6 +1,12 @@
  6570.  
  6571. +s209715200
  6572.  
  6573. +n30
  6574.  
  6575. +t86400
  6576.  
  6577. +!gzip
  6578.  
  6579. +
  6580.  
  6581. +[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] owner changed to 0
  6582.  
  6583. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] group changed to 0
  6584.  
  6585. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] mode changed to 644
  6586.  
  6587.  
  6588. - change mode from '' to '0644'
  6589.  
  6590. - change owner from '' to 'root'
  6591.  
  6592. - change group from '' to 'root'
  6593.  
  6594. [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)
  6595.  
  6596. * 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
  6597.  
  6598.  
  6599. - execute the ruby block verify_chown_persisted_on_gitlab-workhorse
  6600.  
  6601. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
  6602.  
  6603. * 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
  6604.  
  6605.  
  6606. - create symlink at /var/log/gitlab/gitlab-workhorse/config to /opt/gitlab/sv/gitlab-workhorse/log/config
  6607.  
  6608. * 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
  6609.  
  6610.  
  6611. - 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
  6612.  
  6613.  
  6614. - update content in file /opt/gitlab/sv/gitlab-workhorse/log/run from none to b3b03a
  6615.  
  6616. --- /opt/gitlab/sv/gitlab-workhorse/log/run 2023-06-12 08:52:49.091521589 +0000
  6617.  
  6618. +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-run20230612-2522091-le1jfs 2023-06-12 08:52:49.091521589 +0000
  6619.  
  6620. @@ -1,5 +1,10 @@
  6621.  
  6622. +#!/bin/sh
  6623.  
  6624. +exec chpst -P \
  6625.  
  6626. + -U root:root \
  6627.  
  6628. + -u root:root \
  6629.  
  6630. + 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
  6631.  
  6632. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] group changed to 0
  6633.  
  6634. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] mode changed to 755
  6635.  
  6636.  
  6637. - change mode from '' to '0755'
  6638.  
  6639. - change owner from '' to 'root'
  6640.  
  6641. - change group from '' to 'root'
  6642.  
  6643. * 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
  6644.  
  6645.  
  6646. - 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
  6647.  
  6648. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/env] group changed to 0
  6649.  
  6650. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/env] mode changed to 755
  6651.  
  6652.  
  6653. - change mode from '' to '0755'
  6654.  
  6655. - change owner from '' to 'root'
  6656.  
  6657. - change group from '' to 'root'
  6658.  
  6659. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
  6660.  
  6661. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
  6662.  
  6663. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
  6664.  
  6665. * 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
  6666.  
  6667.  
  6668. - 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
  6669.  
  6670. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/control] group changed to 0
  6671.  
  6672. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/control] mode changed to 755
  6673.  
  6674.  
  6675. - change mode from '' to '0755'
  6676.  
  6677. - change owner from '' to 'root'
  6678.  
  6679. - change group from '' to 'root'
  6680.  
  6681. * link[/opt/gitlab/init/gitlab-workhorse] action create[2023-06-12T08:52:49+00:00] INFO: link[/opt/gitlab/init/gitlab-workhorse] created
  6682.  
  6683.  
  6684. - create symlink at /opt/gitlab/init/gitlab-workhorse to /opt/gitlab/embedded/bin/sv
  6685.  
  6686. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
  6687.  
  6688. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] sending run action to ruby_block[restart_service] (delayed)
  6689.  
  6690. * ruby_block[restart_service] action run (skipped due to only_if)
  6691.  
  6692. [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)
  6693.  
  6694. * ruby_block[reload_log_service] action create
  6695.  
  6696. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6697.  
  6698. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6699.  
  6700. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6701.  
  6702. * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date)
  6703.  
  6704. * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date)
  6705.  
  6706. * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date)
  6707.  
  6708. * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date)
  6709.  
  6710. * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date)
  6711.  
  6712. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
  6713.  
  6714. * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date)
  6715.  
  6716. * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date)
  6717.  
  6718. * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date)
  6719.  
  6720. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
  6721.  
  6722. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
  6723.  
  6724. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
  6725.  
  6726. * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date)
  6727.  
  6728. * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date)
  6729.  
  6730. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
  6731.  
  6732. * directory[/opt/gitlab/service] action create (up to date)
  6733.  
  6734. * link[/opt/gitlab/service/gitlab-workhorse] action create[2023-06-12T08:52:49+00:00] INFO: link[/opt/gitlab/service/gitlab-workhorse] created
  6735.  
  6736.  
  6737. - create symlink at /opt/gitlab/service/gitlab-workhorse to /opt/gitlab/sv/gitlab-workhorse
  6738.  
  6739. * 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
  6740.  
  6741.  
  6742. - execute the ruby block wait for gitlab-workhorse service socket
  6743.  
  6744. * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
  6745.  
  6746. [2023-06-12T08:52:53+00:00] INFO: ruby_block[reload_log_service] called
  6747.  
  6748. - execute the ruby block reload_log_service
  6749.  
  6750. [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)
  6751.  
  6752. * ruby_block[restart_log_service] action run
  6753.  
  6754. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6755.  
  6756. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6757.  
  6758. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6759.  
  6760. * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date)
  6761.  
  6762. * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date)
  6763.  
  6764. * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date)
  6765.  
  6766. * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date)
  6767.  
  6768. * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date)
  6769.  
  6770. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
  6771.  
  6772. * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date)
  6773.  
  6774. * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date)
  6775.  
  6776. * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date)
  6777.  
  6778. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
  6779.  
  6780. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
  6781.  
  6782. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
  6783.  
  6784. * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date)
  6785.  
  6786. * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date)
  6787.  
  6788. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
  6789.  
  6790. * directory[/opt/gitlab/service] action create (up to date)
  6791.  
  6792. * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date)
  6793.  
  6794. * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if)
  6795.  
  6796. * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
  6797.  
  6798. [2023-06-12T08:52:53+00:00] INFO: ruby_block[restart_log_service] called
  6799.  
  6800. - execute the ruby block restart_log_service
  6801.  
  6802. * directory[/opt/gitlab/service] action create (up to date)
  6803.  
  6804. * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date)
  6805.  
  6806. * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if)
  6807.  
  6808. * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
  6809.  
  6810.  
  6811. * consul_service[workhorse] action delete
  6812.  
  6813. * file[/var/opt/gitlab/consul/config.d/workhorse-service.json] action delete (up to date)
  6814.  
  6815. (up to date)
  6816.  
  6817. * version_file[Create version file for Workhorse] action create
  6818.  
  6819. * 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
  6820.  
  6821.  
  6822. - 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
  6823.  
  6824.  
  6825. - update content in file /var/opt/gitlab/gitlab-workhorse/VERSION from none to 885f2f
  6826.  
  6827. --- /var/opt/gitlab/gitlab-workhorse/VERSION 2023-06-12 08:52:53.775508584 +0000
  6828.  
  6829. +++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20230612-2522091-pzhlfs 2023-06-12 08:52:53.775508584 +0000
  6830.  
  6831. @@ -1 +1,2 @@
  6832.  
  6833. +gitlab-workhorse (v16.0.4-ee)-(20230608.114126)
  6834.  
  6835.  
  6836. [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
  6837.  
  6838. * 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
  6839.  
  6840.  
  6841. - 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
  6842.  
  6843.  
  6844. - update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from none to 4f571b
  6845.  
  6846. - suppressed sensitive resource[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] owner changed to 0
  6847.  
  6848. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] group changed to 997
  6849.  
  6850. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] mode changed to 640
  6851.  
  6852.  
  6853. - change mode from '' to '0640'
  6854.  
  6855. - change owner from '' to 'root'
  6856.  
  6857. - change group from '' to 'git'
  6858.  
  6859. [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
  6860.  
  6861. Recipe: gitlab::mailroom_disable
  6862.  
  6863. * service[mailroom] action nothing (skipped due to action :nothing)
  6864.  
  6865. * runit_service[mailroom] action disable
  6866.  
  6867. * ruby_block[disable mailroom] action run (skipped due to only_if)
  6868.  
  6869. (up to date)
  6870.  
  6871. Recipe: gitlab::nginx
  6872.  
  6873. * 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
  6874.  
  6875.  
  6876. - create new directory /var/opt/gitlab/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] owner changed to 0
  6877.  
  6878. [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] group changed to 998
  6879.  
  6880. [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] mode changed to 750
  6881.  
  6882.  
  6883. - change mode from '' to '0750'
  6884.  
  6885. - change owner from '' to 'root'
  6886.  
  6887. - change group from '' to 'gitlab-www'
  6888.  
  6889. * 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
  6890.  
  6891.  
  6892. - 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
  6893.  
  6894. [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx/conf] group changed to 998
  6895.  
  6896. [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx/conf] mode changed to 750
  6897.  
  6898.  
  6899. - change mode from '' to '0750'
  6900.  
  6901. - change owner from '' to 'root'
  6902.  
  6903. - change group from '' to 'gitlab-www'
  6904.  
  6905. * 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
  6906.  
  6907.  
  6908. - create new directory /var/log/gitlab/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] owner changed to 0
  6909.  
  6910. [2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] group changed to 998
  6911.  
  6912. [2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] mode changed to 750
  6913.  
  6914.  
  6915. - change mode from '' to '0750'
  6916.  
  6917. - change owner from '' to 'root'
  6918.  
  6919. - change group from '' to 'gitlab-www'
  6920.  
  6921. * link[/var/opt/gitlab/nginx/logs] action create[2023-06-12T08:52:53+00:00] INFO: link[/var/opt/gitlab/nginx/logs] created
  6922.  
  6923.  
  6924. - create symlink at /var/opt/gitlab/nginx/logs to /var/log/gitlab/nginx
  6925.  
  6926. * 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
  6927.  
  6928.  
  6929. - 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
  6930.  
  6931.  
  6932. - update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from none to 45c6c2
  6933.  
  6934. --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2023-06-12 08:52:53.823508451 +0000
  6935.  
  6936. +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20230612-2522091-i69cpk.conf 2023-06-12 08:52:53.819508462 +0000
  6937.  
  6938. @@ -1,142 +1,284 @@
  6939.  
  6940. +# This file is managed by gitlab-ctl. Manual changes will be
  6941.  
  6942. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  6943.  
  6944. +# and run `sudo gitlab-ctl reconfigure`.
  6945.  
  6946. +
  6947.  
  6948. +## GitLab
  6949.  
  6950. +## 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
  6951.  
  6952. +##
  6953.  
  6954. +## Lines starting with two hashes (##) are comments with information.
  6955.  
  6956. +## Lines starting with one hash (#) are configuration parameters that can be uncommented.
  6957.  
  6958. +##
  6959.  
  6960. +##################################
  6961.  
  6962. +## CHUNKED TRANSFER ##
  6963.  
  6964. +##################################
  6965.  
  6966. +##
  6967.  
  6968. +## It is a known issue that Git-over-HTTP requires chunked transfer encoding [0]
  6969.  
  6970. +## which is not supported by Nginx < 1.3.9 [1]. As a result, pushing a large object
  6971.  
  6972. +## with Git (i.e. a single large file) can lead to a 411 error. In theory you can get
  6973.  
  6974. +## around this by tweaking this configuration file and either:
  6975.  
  6976. +## - installing an old version of Nginx with the chunkin module [2] compiled in, or
  6977.  
  6978. +## - using a newer version of Nginx.
  6979.  
  6980. +##
  6981.  
  6982. +## At the time of writing we do not know if either of these theoretical solutions works.
  6983.  
  6984. +## As a workaround users can use Git over SSH to push large files.
  6985.  
  6986. +##
  6987.  
  6988. +## [0] https://git.kernel.org/cgit/git/git.git/tree/Documentation/technical/http-protocol.txt#n99
  6989.  
  6990. +## [1] https://github.com/agentzh/chunkin-nginx-module#status
  6991.  
  6992. +## [2] https://github.com/agentzh/chunkin-nginx-module
  6993.  
  6994. +##
  6995.  
  6996. +###################################
  6997.  
  6998. +## configuration ##
  6999.  
  7000. +###################################
  7001.  
  7002. +
  7003.  
  7004. +
  7005.  
  7006. +server { ## HTTPS server
  7007.  
  7008. + listen *:80;
  7009.  
  7010. +
  7011.  
  7012. +
  7013.  
  7014. + server_name 192.168.100.33;
  7015.  
  7016. + server_tokens off; ## Don't show the nginx version number, a security best practice
  7017.  
  7018. +
  7019.  
  7020. + ## Increase this if you want to upload large attachments
  7021.  
  7022. + ## Or if you want to accept large git objects over http
  7023.  
  7024. + client_max_body_size 0;
  7025.  
  7026. +
  7027.  
  7028. +
  7029.  
  7030. + ## Real IP Module Config
  7031.  
  7032. + ## http://nginx.org/en/docs/http/ngx_http_realip_module.html
  7033.  
  7034. +
  7035.  
  7036. + ## HSTS Config
  7037.  
  7038. + ## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/
  7039.  
  7040. + add_header Strict-Transport-Security "max-age=63072000";
  7041.  
  7042. +
  7043.  
  7044. + # Rails sets a default policy of strict-origin-when-cross-origin, so
  7045.  
  7046. + # hide that and just send the one we've configured for nginx
  7047.  
  7048. + proxy_hide_header Referrer-Policy;
  7049.  
  7050. + add_header Referrer-Policy strict-origin-when-cross-origin;
  7051.  
  7052. +
  7053.  
  7054. + ## Individual nginx logs for this GitLab vhost
  7055.  
  7056. + access_log /var/log/gitlab/nginx/gitlab_access.log gitlab_access;
  7057.  
  7058. + error_log /var/log/gitlab/nginx/gitlab_error.log error;
  7059.  
  7060. +
  7061.  
  7062. + if ($http_host = "") {
  7063.  
  7064. + set $http_host_with_default "192.168.100.33";
  7065.  
  7066. + }
  7067.  
  7068. +
  7069.  
  7070. + if ($http_host != "") {
  7071.  
  7072. + set $http_host_with_default $http_host;
  7073.  
  7074. + }
  7075.  
  7076. +
  7077.  
  7078. + gzip on;
  7079.  
  7080. + gzip_static on;
  7081.  
  7082. + gzip_comp_level 2;
  7083.  
  7084. + gzip_http_version 1.1;
  7085.  
  7086. + gzip_vary on;
  7087.  
  7088. + gzip_disable "msie6";
  7089.  
  7090. + gzip_min_length 250;
  7091.  
  7092. + gzip_proxied no-cache no-store private expired auth;
  7093.  
  7094. + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
  7095.  
  7096. +
  7097.  
  7098. + ## https://github.com/gitlabhq/gitlabhq/issues/694
  7099.  
  7100. + ## Some requests take more than 30 seconds.
  7101.  
  7102. + proxy_read_timeout 3600;
  7103.  
  7104. + proxy_connect_timeout 300;
  7105.  
  7106. + proxy_redirect off;
  7107.  
  7108. + proxy_http_version 1.1;
  7109.  
  7110. +
  7111.  
  7112. + proxy_set_header Host $http_host_with_default;
  7113.  
  7114. + proxy_set_header X-Real-IP $remote_addr;
  7115.  
  7116. + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  7117.  
  7118. + proxy_set_header Upgrade $http_upgrade;
  7119.  
  7120. + proxy_set_header Connection $connection_upgrade;
  7121.  
  7122. + proxy_set_header X-Forwarded-Proto http;
  7123.  
  7124. +
  7125.  
  7126. + location ~ (/api/v\d/jobs/\d+/artifacts$|/import/gitlab_project$|\.git/git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$) {
  7127.  
  7128. + proxy_cache off;
  7129.  
  7130. + proxy_pass http://gitlab-workhorse;
  7131.  
  7132. + proxy_request_buffering off;
  7133.  
  7134. + }
  7135.  
  7136. +
  7137.  
  7138. + location ~ ^/api/v\d {
  7139.  
  7140. + proxy_cache off;
  7141.  
  7142. + proxy_pass http://gitlab-workhorse;
  7143.  
  7144. + proxy_intercept_errors off;
  7145.  
  7146. + }
  7147.  
  7148. +
  7149.  
  7150. +
  7151.  
  7152. + location = /-/kubernetes-agent/ {
  7153.  
  7154. + proxy_pass http://localhost:8150/;
  7155.  
  7156. + proxy_intercept_errors off;
  7157.  
  7158. + }
  7159.  
  7160. +
  7161.  
  7162. + location /-/kubernetes-agent/k8s-proxy/ {
  7163.  
  7164. + proxy_pass http://localhost:8154/;
  7165.  
  7166. + proxy_buffering off;
  7167.  
  7168. + proxy_intercept_errors off;
  7169.  
  7170. + }
  7171.  
  7172. +
  7173.  
  7174. + # health checks configuration
  7175.  
  7176. + include /var/opt/gitlab/nginx/conf/gitlab-health.conf;
  7177.  
  7178. +
  7179.  
  7180. +
  7181.  
  7182. + location / {
  7183.  
  7184. + proxy_cache off;
  7185.  
  7186. + proxy_pass http://gitlab-workhorse;
  7187.  
  7188. + }
  7189.  
  7190. +
  7191.  
  7192. + location /assets {
  7193.  
  7194. + add_header X-Content-Type-Options nosniff;
  7195.  
  7196. + proxy_cache gitlab;
  7197.  
  7198. + proxy_pass http://gitlab-workhorse;
  7199.  
  7200. + }
  7201.  
  7202. +
  7203.  
  7204. + error_page 404 /404.html;
  7205.  
  7206. + error_page 500 /500.html;
  7207.  
  7208. + error_page 502 /502.html;
  7209.  
  7210. + location ~ ^/(404|500|502)(-custom)?\.html$ {
  7211.  
  7212. + root /opt/gitlab/embedded/service/gitlab-rails/public;
  7213.  
  7214. + internal;
  7215.  
  7216. + }
  7217.  
  7218. +
  7219.  
  7220. +
  7221.  
  7222. +} ## end HTTPS server[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] owner changed to 0
  7223.  
  7224. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] group changed to 0
  7225.  
  7226. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] mode changed to 644
  7227.  
  7228.  
  7229. - change mode from '' to '0644'
  7230.  
  7231. - change owner from '' to 'root'
  7232.  
  7233. - change group from '' to 'root'
  7234.  
  7235. * template[/var/opt/gitlab/nginx/conf/gitlab-smartcard-http.conf] action delete (up to date)
  7236.  
  7237. * 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
  7238.  
  7239.  
  7240. - 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
  7241.  
  7242.  
  7243. - update content in file /var/opt/gitlab/nginx/conf/gitlab-health.conf from none to 92d04b
  7244.  
  7245. --- /var/opt/gitlab/nginx/conf/gitlab-health.conf 2023-06-12 08:52:53.851508373 +0000
  7246.  
  7247. +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-health20230612-2522091-murp3t.conf 2023-06-12 08:52:53.851508373 +0000
  7248.  
  7249. @@ -1,29 +1,58 @@
  7250.  
  7251. +# This file is managed by gitlab-ctl. Manual changes will be
  7252.  
  7253. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  7254.  
  7255. +# and run `sudo gitlab-ctl reconfigure`.
  7256.  
  7257. +
  7258.  
  7259. +location /error.txt {
  7260.  
  7261. + # return code here is ignored by the error_page directive
  7262.  
  7263. + return 500 'nginx returned $status when communicating with gitlab-workhorse\n';
  7264.  
  7265. +}
  7266.  
  7267. +
  7268.  
  7269. +location /error.json {
  7270.  
  7271. + # return code here is ignored by the error_page directive
  7272.  
  7273. + return 500 '{"error":"nginx returned $status when communicating with gitlab-workhorse","status":$status}\n';
  7274.  
  7275. +}
  7276.  
  7277. +
  7278.  
  7279. +location = /-/health {
  7280.  
  7281. + proxy_cache off;
  7282.  
  7283. + proxy_pass http://gitlab-workhorse;
  7284.  
  7285. + error_page 404 500 502 /error.txt;
  7286.  
  7287. +}
  7288.  
  7289. +location = /-/readiness {
  7290.  
  7291. + proxy_cache off;
  7292.  
  7293. + proxy_pass http://gitlab-workhorse;
  7294.  
  7295. + error_page 404 500 502 /error.json;
  7296.  
  7297. +}
  7298.  
  7299. +location = /-/liveness {
  7300.  
  7301. + proxy_cache off;
  7302.  
  7303. + proxy_pass http://gitlab-workhorse;
  7304.  
  7305. + error_page 404 500 502 /error.json;
  7306.  
  7307. +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] owner changed to 0
  7308.  
  7309. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] group changed to 0
  7310.  
  7311. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] mode changed to 644
  7312.  
  7313.  
  7314. - change mode from '' to '0644'
  7315.  
  7316. - change owner from '' to 'root'
  7317.  
  7318. - change group from '' to 'root'
  7319.  
  7320. * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date)
  7321.  
  7322. * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date)
  7323.  
  7324. * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date)
  7325.  
  7326. * template[/var/opt/gitlab/nginx/conf/gitlab-kas.conf] action delete (up to date)
  7327.  
  7328. * 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
  7329.  
  7330.  
  7331. - 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
  7332.  
  7333.  
  7334. - update content in file /var/opt/gitlab/nginx/conf/nginx-status.conf from none to 74440c
  7335.  
  7336. --- /var/opt/gitlab/nginx/conf/nginx-status.conf 2023-06-12 08:52:53.907508217 +0000
  7337.  
  7338. +++ /var/opt/gitlab/nginx/conf/.chef-nginx-status20230612-2522091-hjco70.conf 2023-06-12 08:52:53.907508217 +0000
  7339.  
  7340. @@ -1,28 +1,56 @@
  7341.  
  7342. +server {
  7343.  
  7344. + listen *:8060;
  7345.  
  7346. + server_name localhost;
  7347.  
  7348. + location /nginx_status {
  7349.  
  7350. + stub_status;
  7351.  
  7352. + server_tokens off;
  7353.  
  7354. + access_log off;
  7355.  
  7356. + allow 127.0.0.1;
  7357.  
  7358. + deny all;
  7359.  
  7360. + }
  7361.  
  7362. + location /metrics {
  7363.  
  7364. + vhost_traffic_status_display;
  7365.  
  7366. + vhost_traffic_status_display_format prometheus;
  7367.  
  7368. + server_tokens off;
  7369.  
  7370. + access_log off;
  7371.  
  7372. + allow 127.0.0.1;
  7373.  
  7374. + deny all;
  7375.  
  7376. + }
  7377.  
  7378. +
  7379.  
  7380. + location /rails-metrics {
  7381.  
  7382. + proxy_cache off;
  7383.  
  7384. + proxy_pass http://gitlab-workhorse/-/metrics;
  7385.  
  7386. + server_tokens off;
  7387.  
  7388. + access_log off;
  7389.  
  7390. + allow 127.0.0.1;
  7391.  
  7392. + deny all;
  7393.  
  7394. + }
  7395.  
  7396. +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] owner changed to 0
  7397.  
  7398. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] group changed to 0
  7399.  
  7400. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] mode changed to 644
  7401.  
  7402.  
  7403. - change mode from '' to '0644'
  7404.  
  7405. - change owner from '' to 'root'
  7406.  
  7407. - change group from '' to 'root'
  7408.  
  7409. * consul_service[nginx] action delete
  7410.  
  7411. * file[/var/opt/gitlab/consul/config.d/nginx-service.json] action delete (up to date)
  7412.  
  7413. (up to date)
  7414.  
  7415. * 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
  7416.  
  7417.  
  7418. - 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
  7419.  
  7420.  
  7421. - update content in file /var/opt/gitlab/nginx/conf/nginx.conf from none to dd81f1
  7422.  
  7423. --- /var/opt/gitlab/nginx/conf/nginx.conf 2023-06-12 08:52:53.935508140 +0000
  7424.  
  7425. +++ /var/opt/gitlab/nginx/conf/.chef-nginx20230612-2522091-kyz5o6.conf 2023-06-12 08:52:53.935508140 +0000
  7426.  
  7427. @@ -1,94 +1,188 @@
  7428.  
  7429. +# This file is managed by gitlab-ctl. Manual changes will be
  7430.  
  7431. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  7432.  
  7433. +# and run `sudo gitlab-ctl reconfigure`.
  7434.  
  7435. +
  7436.  
  7437. +user gitlab-www gitlab-www;
  7438.  
  7439. +worker_processes 1;
  7440.  
  7441. +error_log stderr;
  7442.  
  7443. +pid nginx.pid;
  7444.  
  7445. +
  7446.  
  7447. +daemon off;
  7448.  
  7449. +
  7450.  
  7451. +events {
  7452.  
  7453. + worker_connections 10240;
  7454.  
  7455. +}
  7456.  
  7457. +
  7458.  
  7459. +http {
  7460.  
  7461. + 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';
  7462.  
  7463. + 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';
  7464.  
  7465. +
  7466.  
  7467. + hide_server_tokens off;
  7468.  
  7469. +
  7470.  
  7471. + server_names_hash_bucket_size 64;
  7472.  
  7473. +
  7474.  
  7475. + sendfile on;
  7476.  
  7477. + tcp_nopush on;
  7478.  
  7479. + tcp_nodelay on;
  7480.  
  7481. +
  7482.  
  7483. + keepalive_timeout 65;
  7484.  
  7485. + keepalive_time 1h;
  7486.  
  7487. +
  7488.  
  7489. + gzip on;
  7490.  
  7491. + gzip_http_version 1.1;
  7492.  
  7493. + gzip_comp_level 2;
  7494.  
  7495. + gzip_proxied no-cache no-store private expired auth;
  7496.  
  7497. + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
  7498.  
  7499. +
  7500.  
  7501. + include /opt/gitlab/embedded/conf/mime.types;
  7502.  
  7503. +
  7504.  
  7505. + proxy_cache_path proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2;
  7506.  
  7507. + proxy_cache gitlab;
  7508.  
  7509. +
  7510.  
  7511. + map $http_upgrade $connection_upgrade {
  7512.  
  7513. + default upgrade;
  7514.  
  7515. + '' close;
  7516.  
  7517. + }
  7518.  
  7519. +
  7520.  
  7521. + # Remove private_token from the request URI
  7522.  
  7523. + # In: /foo?private_token=unfiltered&authenticity_token=unfiltered&rss_token=unfiltered&...
  7524.  
  7525. + # Out: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...
  7526.  
  7527. + map $request_uri $temp_request_uri_1 {
  7528.  
  7529. + default $request_uri;
  7530.  
  7531. + ~(?i)^(?<start>.*)(?<temp>[\?&]private[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
  7532.  
  7533. + }
  7534.  
  7535. +
  7536.  
  7537. + # Remove authenticity_token from the request URI
  7538.  
  7539. + # In: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...
  7540.  
  7541. + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...
  7542.  
  7543. + map $temp_request_uri_1 $temp_request_uri_2 {
  7544.  
  7545. + default $temp_request_uri_1;
  7546.  
  7547. + ~(?i)^(?<start>.*)(?<temp>[\?&]authenticity[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
  7548.  
  7549. + }
  7550.  
  7551. +
  7552.  
  7553. + # Remove rss_token from the request URI
  7554.  
  7555. + # In: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...
  7556.  
  7557. + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=[FILTERED]&...
  7558.  
  7559. + map $temp_request_uri_2 $filtered_request_uri {
  7560.  
  7561. + default $temp_request_uri_2;
  7562.  
  7563. + ~(?i)^(?<start>.*)(?<temp>[\?&]rss[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
  7564.  
  7565. + }
  7566.  
  7567. +
  7568.  
  7569. + # A version of the referer without the query string
  7570.  
  7571. + map $http_referer $filtered_http_referer {
  7572.  
  7573. + default $http_referer;
  7574.  
  7575. + ~^(?<temp>.*)\? $temp;
  7576.  
  7577. + }
  7578.  
  7579. +
  7580.  
  7581. + # Enable vts status module.
  7582.  
  7583. + vhost_traffic_status_zone;
  7584.  
  7585. +
  7586.  
  7587. + upstream gitlab-workhorse {
  7588.  
  7589. + server unix:/var/opt/gitlab/gitlab-workhorse/sockets/socket;
  7590.  
  7591. + }
  7592.  
  7593. +
  7594.  
  7595. + include /var/opt/gitlab/nginx/conf/gitlab-http.conf;
  7596.  
  7597. +
  7598.  
  7599. +
  7600.  
  7601. +
  7602.  
  7603. +
  7604.  
  7605. +
  7606.  
  7607. +
  7608.  
  7609. + include /var/opt/gitlab/nginx/conf/nginx-status.conf;
  7610.  
  7611. +
  7612.  
  7613. +
  7614.  
  7615. +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] owner changed to 0
  7616.  
  7617. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] group changed to 0
  7618.  
  7619. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] mode changed to 644
  7620.  
  7621.  
  7622. - change mode from '' to '0644'
  7623.  
  7624. - change owner from '' to 'root'
  7625.  
  7626. - change group from '' to 'root'
  7627.  
  7628. Recipe: nginx::enable
  7629.  
  7630. * service[nginx] action nothing (skipped due to action :nothing)
  7631.  
  7632. * runit_service[nginx] action enable
  7633.  
  7634. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  7635.  
  7636. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  7637.  
  7638. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  7639.  
  7640. * 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
  7641.  
  7642.  
  7643. - create new directory /opt/gitlab/sv/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] owner changed to 0
  7644.  
  7645. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] group changed to 0
  7646.  
  7647. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] mode changed to 755
  7648.  
  7649.  
  7650. - change mode from '' to '0755'
  7651.  
  7652. - change owner from '' to 'root'
  7653.  
  7654. - change group from '' to 'root'
  7655.  
  7656. * 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
  7657.  
  7658.  
  7659. - 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
  7660.  
  7661.  
  7662. - update content in file /opt/gitlab/sv/nginx/run from none to d75aea
  7663.  
  7664. --- /opt/gitlab/sv/nginx/run 2023-06-12 08:52:53.959508073 +0000
  7665.  
  7666. +++ /opt/gitlab/sv/nginx/.chef-run20230612-2522091-c9f36h 2023-06-12 08:52:53.959508073 +0000
  7667.  
  7668. @@ -1,5 +1,10 @@
  7669.  
  7670. +#!/bin/sh
  7671.  
  7672. +exec 2>&1
  7673.  
  7674. +
  7675.  
  7676. +cd /var/opt/gitlab/nginx
  7677.  
  7678. +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
  7679.  
  7680. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] group changed to 0
  7681.  
  7682. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] mode changed to 755
  7683.  
  7684.  
  7685. - change mode from '' to '0755'
  7686.  
  7687. - change owner from '' to 'root'
  7688.  
  7689. - change group from '' to 'root'
  7690.  
  7691. * 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
  7692.  
  7693.  
  7694. - 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
  7695.  
  7696. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log] group changed to 0
  7697.  
  7698. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log] mode changed to 755
  7699.  
  7700.  
  7701. - change mode from '' to '0755'
  7702.  
  7703. - change owner from '' to 'root'
  7704.  
  7705. - change group from '' to 'root'
  7706.  
  7707. * 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
  7708.  
  7709.  
  7710. - 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
  7711.  
  7712. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log/main] group changed to 0
  7713.  
  7714. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log/main] mode changed to 755
  7715.  
  7716.  
  7717. - change mode from '' to '0755'
  7718.  
  7719. - change owner from '' to 'root'
  7720.  
  7721. - change group from '' to 'root'
  7722.  
  7723. * 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
  7724.  
  7725.  
  7726. - 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
  7727.  
  7728.  
  7729. - update content in file /opt/gitlab/sv/nginx/log/config from none to 623c00
  7730.  
  7731. --- /opt/gitlab/sv/nginx/log/config 2023-06-12 08:52:53.979508017 +0000
  7732.  
  7733. +++ /opt/gitlab/sv/nginx/log/.chef-config20230612-2522091-xqkqpj 2023-06-12 08:52:53.975508028 +0000
  7734.  
  7735. @@ -1,6 +1,12 @@
  7736.  
  7737. +s209715200
  7738.  
  7739. +n30
  7740.  
  7741. +t86400
  7742.  
  7743. +!gzip
  7744.  
  7745. +
  7746.  
  7747. +[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] owner changed to 0
  7748.  
  7749. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] group changed to 0
  7750.  
  7751. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] mode changed to 644
  7752.  
  7753.  
  7754. - change mode from '' to '0644'
  7755.  
  7756. - change owner from '' to 'root'
  7757.  
  7758. - change group from '' to 'root'
  7759.  
  7760. [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)
  7761.  
  7762. * 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
  7763.  
  7764.  
  7765. - execute the ruby block verify_chown_persisted_on_nginx
  7766.  
  7767. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
  7768.  
  7769. * link[/var/log/gitlab/nginx/config] action create[2023-06-12T08:52:53+00:00] INFO: link[/var/log/gitlab/nginx/config] created
  7770.  
  7771.  
  7772. - create symlink at /var/log/gitlab/nginx/config to /opt/gitlab/sv/nginx/log/config
  7773.  
  7774. * 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
  7775.  
  7776.  
  7777. - 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
  7778.  
  7779.  
  7780. - update content in file /opt/gitlab/sv/nginx/log/run from none to 2d00df
  7781.  
  7782. --- /opt/gitlab/sv/nginx/log/run 2023-06-12 08:52:53.991507984 +0000
  7783.  
  7784. +++ /opt/gitlab/sv/nginx/log/.chef-run20230612-2522091-ml6z7r 2023-06-12 08:52:53.991507984 +0000
  7785.  
  7786. @@ -1,5 +1,10 @@
  7787.  
  7788. +#!/bin/sh
  7789.  
  7790. +exec chpst -P \
  7791.  
  7792. + -U root:root \
  7793.  
  7794. + -u root:root \
  7795.  
  7796. + 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
  7797.  
  7798. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] group changed to 0
  7799.  
  7800. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] mode changed to 755
  7801.  
  7802.  
  7803. - change mode from '' to '0755'
  7804.  
  7805. - change owner from '' to 'root'
  7806.  
  7807. - change group from '' to 'root'
  7808.  
  7809. * 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
  7810.  
  7811.  
  7812. - 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
  7813.  
  7814. [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/env] group changed to 0
  7815.  
  7816. [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/env] mode changed to 755
  7817.  
  7818.  
  7819. - change mode from '' to '0755'
  7820.  
  7821. - change owner from '' to 'root'
  7822.  
  7823. - change group from '' to 'root'
  7824.  
  7825. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
  7826.  
  7827. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
  7828.  
  7829. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
  7830.  
  7831. * 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
  7832.  
  7833.  
  7834. - 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
  7835.  
  7836. [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/control] group changed to 0
  7837.  
  7838. [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/control] mode changed to 755
  7839.  
  7840.  
  7841. - change mode from '' to '0755'
  7842.  
  7843. - change owner from '' to 'root'
  7844.  
  7845. - change group from '' to 'root'
  7846.  
  7847. * link[/opt/gitlab/init/nginx] action create[2023-06-12T08:52:54+00:00] INFO: link[/opt/gitlab/init/nginx] created
  7848.  
  7849.  
  7850. - create symlink at /opt/gitlab/init/nginx to /opt/gitlab/embedded/bin/sv
  7851.  
  7852. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
  7853.  
  7854. [2023-06-12T08:52:54+00:00] INFO: template[/opt/gitlab/sv/nginx/run] sending run action to ruby_block[restart_service] (delayed)
  7855.  
  7856. * ruby_block[restart_service] action run (skipped due to only_if)
  7857.  
  7858. [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)
  7859.  
  7860. * ruby_block[reload_log_service] action create
  7861.  
  7862. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  7863.  
  7864. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  7865.  
  7866. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  7867.  
  7868. * directory[/opt/gitlab/sv/nginx] action create (up to date)
  7869.  
  7870. * template[/opt/gitlab/sv/nginx/run] action create (up to date)
  7871.  
  7872. * directory[/opt/gitlab/sv/nginx/log] action create (up to date)
  7873.  
  7874. * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date)
  7875.  
  7876. * template[/opt/gitlab/sv/nginx/log/config] action create (up to date)
  7877.  
  7878. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
  7879.  
  7880. * link[/var/log/gitlab/nginx/config] action create (up to date)
  7881.  
  7882. * template[/opt/gitlab/sv/nginx/log/run] action create (up to date)
  7883.  
  7884. * directory[/opt/gitlab/sv/nginx/env] action create (up to date)
  7885.  
  7886. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
  7887.  
  7888. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
  7889.  
  7890. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
  7891.  
  7892. * directory[/opt/gitlab/sv/nginx/control] action create (up to date)
  7893.  
  7894. * link[/opt/gitlab/init/nginx] action create (up to date)
  7895.  
  7896. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
  7897.  
  7898. * directory[/opt/gitlab/service] action create (up to date)
  7899.  
  7900. * link[/opt/gitlab/service/nginx] action create[2023-06-12T08:52:54+00:00] INFO: link[/opt/gitlab/service/nginx] created
  7901.  
  7902.  
  7903. - create symlink at /opt/gitlab/service/nginx to /opt/gitlab/sv/nginx
  7904.  
  7905. * 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
  7906.  
  7907.  
  7908. - execute the ruby block wait for nginx service socket
  7909.  
  7910. * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
  7911.  
  7912. [2023-06-12T08:53:00+00:00] INFO: ruby_block[reload_log_service] called
  7913.  
  7914. - execute the ruby block reload_log_service
  7915.  
  7916. [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)
  7917.  
  7918. * ruby_block[restart_log_service] action run
  7919.  
  7920. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  7921.  
  7922. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  7923.  
  7924. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  7925.  
  7926. * directory[/opt/gitlab/sv/nginx] action create (up to date)
  7927.  
  7928. * template[/opt/gitlab/sv/nginx/run] action create (up to date)
  7929.  
  7930. * directory[/opt/gitlab/sv/nginx/log] action create (up to date)
  7931.  
  7932. * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date)
  7933.  
  7934. * template[/opt/gitlab/sv/nginx/log/config] action create (up to date)
  7935.  
  7936. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
  7937.  
  7938. * link[/var/log/gitlab/nginx/config] action create (up to date)
  7939.  
  7940. * template[/opt/gitlab/sv/nginx/log/run] action create (up to date)
  7941.  
  7942. * directory[/opt/gitlab/sv/nginx/env] action create (up to date)
  7943.  
  7944. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
  7945.  
  7946. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
  7947.  
  7948. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
  7949.  
  7950. * directory[/opt/gitlab/sv/nginx/control] action create (up to date)
  7951.  
  7952. * link[/opt/gitlab/init/nginx] action create (up to date)
  7953.  
  7954. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
  7955.  
  7956. * directory[/opt/gitlab/service] action create (up to date)
  7957.  
  7958. * link[/opt/gitlab/service/nginx] action create (up to date)
  7959.  
  7960. * ruby_block[wait for nginx service socket] action run (skipped due to not_if)
  7961.  
  7962. * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
  7963.  
  7964. [2023-06-12T08:53:00+00:00] INFO: ruby_block[restart_log_service] called
  7965.  
  7966. - execute the ruby block restart_log_service
  7967.  
  7968. * directory[/opt/gitlab/service] action create (up to date)
  7969.  
  7970. * link[/opt/gitlab/service/nginx] action create (up to date)
  7971.  
  7972. * ruby_block[wait for nginx service socket] action run (skipped due to not_if)
  7973.  
  7974. * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
  7975.  
  7976.  
  7977. * execute[reload nginx] action nothing (skipped due to action :nothing)
  7978.  
  7979. Recipe: gitlab::nginx
  7980.  
  7981. * execute[/opt/gitlab/bin/gitlab-ctl start nginx] action run
  7982.  
  7983. [execute] ok: run: nginx: (pid 2523525) 3s
  7984.  
  7985. [2023-06-12T08:53:01+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start nginx] ran successfully
  7986.  
  7987. - execute /opt/gitlab/bin/gitlab-ctl start nginx
  7988.  
  7989. Recipe: gitlab::remote-syslog_disable
  7990.  
  7991. * service[remote-syslog] action nothing (skipped due to action :nothing)
  7992.  
  7993. * runit_service[remote-syslog] action disable
  7994.  
  7995. * ruby_block[disable remote-syslog] action run (skipped due to only_if)
  7996.  
  7997. (up to date)
  7998.  
  7999. Recipe: gitlab::bootstrap
  8000.  
  8001. * 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
  8002.  
  8003.  
  8004. - 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
  8005.  
  8006.  
  8007. - update content in file /var/opt/gitlab/bootstrapped from none to 4ae00c
  8008.  
  8009. --- /var/opt/gitlab/bootstrapped 2023-06-12 08:53:01.211487880 +0000
  8010.  
  8011. +++ /var/opt/gitlab/.chef-bootstrapped20230612-2522091-e8pveq 2023-06-12 08:53:01.211487880 +0000
  8012.  
  8013. @@ -1 +1,2 @@
  8014.  
  8015. +All your bootstraps are belong to Chef[2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] owner changed to 0
  8016.  
  8017. [2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] group changed to 0
  8018.  
  8019. [2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] mode changed to 600
  8020.  
  8021.  
  8022. - change mode from '' to '0600'
  8023.  
  8024. - change owner from '' to 'root'
  8025.  
  8026. - change group from '' to 'root'
  8027.  
  8028. Recipe: gitlab::storage-check_disable
  8029.  
  8030. * service[storage-check] action nothing (skipped due to action :nothing)
  8031.  
  8032. * runit_service[storage-check] action disable
  8033.  
  8034. * ruby_block[disable storage-check] action run (skipped due to only_if)
  8035.  
  8036. (up to date)
  8037.  
  8038. Recipe: gitlab-pages::disable
  8039.  
  8040. * service[gitlab-pages] action nothing (skipped due to action :nothing)
  8041.  
  8042. * runit_service[gitlab-pages] action disable
  8043.  
  8044. * ruby_block[disable gitlab-pages] action run (skipped due to only_if)
  8045.  
  8046. (up to date)
  8047.  
  8048. Recipe: registry::disable
  8049.  
  8050. * service[registry] action nothing (skipped due to action :nothing)
  8051.  
  8052. * runit_service[registry] action disable
  8053.  
  8054. * ruby_block[disable registry] action run (skipped due to only_if)
  8055.  
  8056. (up to date)
  8057.  
  8058. Recipe: mattermost::disable
  8059.  
  8060. * service[mattermost] action nothing (skipped due to action :nothing)
  8061.  
  8062. * runit_service[mattermost] action disable
  8063.  
  8064. * ruby_block[disable mattermost] action run (skipped due to only_if)
  8065.  
  8066. (up to date)
  8067.  
  8068. Recipe: letsencrypt::disable
  8069.  
  8070. * crond_job[letsencrypt-renew] action delete
  8071.  
  8072. * file[/var/opt/gitlab/crond/letsencrypt-renew] action delete (up to date)
  8073.  
  8074. (up to date)
  8075.  
  8076. Recipe: gitlab::gitlab-healthcheck
  8077.  
  8078. * 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
  8079.  
  8080.  
  8081. - 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
  8082.  
  8083.  
  8084. - update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from none to f612c8
  8085.  
  8086. --- /opt/gitlab/etc/gitlab-healthcheck-rc 2023-06-12 08:53:01.243487791 +0000
  8087.  
  8088. +++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20230612-2522091-va0903 2023-06-12 08:53:01.243487791 +0000
  8089.  
  8090. @@ -1,2 +1,4 @@
  8091.  
  8092. +url='http://localhost:80/help'
  8093.  
  8094. +flags=(--insecure)[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] owner changed to 0
  8095.  
  8096. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] group changed to 0
  8097.  
  8098.  
  8099. - change owner from '' to 'root'
  8100.  
  8101. - change group from '' to 'root'
  8102.  
  8103. Recipe: monitoring::pgbouncer-exporter_disable
  8104.  
  8105. * service[pgbouncer-exporter] action nothing (skipped due to action :nothing)
  8106.  
  8107. * runit_service[pgbouncer-exporter] action disable
  8108.  
  8109. * ruby_block[disable pgbouncer-exporter] action run (skipped due to only_if)
  8110.  
  8111. (up to date)
  8112.  
  8113. Recipe: monitoring::user
  8114.  
  8115. * account[Prometheus user and group] action create
  8116.  
  8117. * group[Prometheus user and group] action create[2023-06-12T08:53:01+00:00] INFO: group[Prometheus user and group] created
  8118.  
  8119.  
  8120. - create group gitlab-prometheus
  8121.  
  8122. * linux_user[Prometheus user and group] action create[2023-06-12T08:53:01+00:00] INFO: linux_user[Prometheus user and group] created
  8123.  
  8124.  
  8125. - create user gitlab-prometheus
  8126.  
  8127.  
  8128. Recipe: monitoring::node-exporter
  8129.  
  8130. * 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
  8131.  
  8132.  
  8133. - 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
  8134.  
  8135. [2023-06-12T08:53:01+00:00] INFO: directory[/var/log/gitlab/node-exporter] mode changed to 700
  8136.  
  8137.  
  8138. - change mode from '' to '0700'
  8139.  
  8140. - change owner from '' to 'gitlab-prometheus'
  8141.  
  8142. * 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
  8143.  
  8144.  
  8145. - 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
  8146.  
  8147. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/etc/node-exporter/env] mode changed to 700
  8148.  
  8149.  
  8150. - change mode from '' to '0700'
  8151.  
  8152. - change owner from '' to 'gitlab-prometheus'
  8153.  
  8154. * env_dir[/opt/gitlab/etc/node-exporter/env] action create
  8155.  
  8156. * directory[/opt/gitlab/etc/node-exporter/env] action create (up to date)
  8157.  
  8158. * 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
  8159.  
  8160.  
  8161. - 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
  8162.  
  8163.  
  8164. - update content in file /opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR from none to 4f45cf
  8165.  
  8166. - suppressed sensitive resource
  8167.  
  8168.  
  8169. * 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
  8170.  
  8171.  
  8172. - 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
  8173.  
  8174. [2023-06-12T08:53:01+00:00] INFO: directory[/var/opt/gitlab/node-exporter/textfile_collector] mode changed to 755
  8175.  
  8176.  
  8177. - change mode from '' to '0755'
  8178.  
  8179. - change owner from '' to 'gitlab-prometheus'
  8180.  
  8181. * service[node-exporter] action nothing (skipped due to action :nothing)
  8182.  
  8183. * runit_service[node-exporter] action enable
  8184.  
  8185. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8186.  
  8187. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8188.  
  8189. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8190.  
  8191. * 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
  8192.  
  8193.  
  8194. - 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
  8195.  
  8196. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter] group changed to 0
  8197.  
  8198. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter] mode changed to 755
  8199.  
  8200.  
  8201. - change mode from '' to '0755'
  8202.  
  8203. - change owner from '' to 'root'
  8204.  
  8205. - change group from '' to 'root'
  8206.  
  8207. * 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
  8208.  
  8209.  
  8210. - 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
  8211.  
  8212.  
  8213. - update content in file /opt/gitlab/sv/node-exporter/run from none to 744544
  8214.  
  8215. --- /opt/gitlab/sv/node-exporter/run 2023-06-12 08:53:01.499487076 +0000
  8216.  
  8217. +++ /opt/gitlab/sv/node-exporter/.chef-run20230612-2522091-xiuwyk 2023-06-12 08:53:01.499487076 +0000
  8218.  
  8219. @@ -1,8 +1,16 @@
  8220.  
  8221. +#!/bin/sh
  8222.  
  8223. +exec 2>&1
  8224.  
  8225. +
  8226.  
  8227. +umask 077
  8228.  
  8229. +exec chpst -P -e /opt/gitlab/etc/node-exporter/env \
  8230.  
  8231. + -U gitlab-prometheus:gitlab-prometheus \
  8232.  
  8233. + -u gitlab-prometheus:gitlab-prometheus \
  8234.  
  8235. + /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
  8236.  
  8237. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] group changed to 0
  8238.  
  8239. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] mode changed to 755
  8240.  
  8241.  
  8242. - change mode from '' to '0755'
  8243.  
  8244. - change owner from '' to 'root'
  8245.  
  8246. - change group from '' to 'root'
  8247.  
  8248. * 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
  8249.  
  8250.  
  8251. - 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
  8252.  
  8253. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log] group changed to 0
  8254.  
  8255. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log] mode changed to 755
  8256.  
  8257.  
  8258. - change mode from '' to '0755'
  8259.  
  8260. - change owner from '' to 'root'
  8261.  
  8262. - change group from '' to 'root'
  8263.  
  8264. * 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
  8265.  
  8266.  
  8267. - 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
  8268.  
  8269. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log/main] group changed to 0
  8270.  
  8271. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log/main] mode changed to 755
  8272.  
  8273.  
  8274. - change mode from '' to '0755'
  8275.  
  8276. - change owner from '' to 'root'
  8277.  
  8278. - change group from '' to 'root'
  8279.  
  8280. * 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
  8281.  
  8282.  
  8283. - 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
  8284.  
  8285.  
  8286. - update content in file /opt/gitlab/sv/node-exporter/log/config from none to 623c00
  8287.  
  8288. --- /opt/gitlab/sv/node-exporter/log/config 2023-06-12 08:53:01.519487021 +0000
  8289.  
  8290. +++ /opt/gitlab/sv/node-exporter/log/.chef-config20230612-2522091-y8ojao 2023-06-12 08:53:01.519487021 +0000
  8291.  
  8292. @@ -1,6 +1,12 @@
  8293.  
  8294. +s209715200
  8295.  
  8296. +n30
  8297.  
  8298. +t86400
  8299.  
  8300. +!gzip
  8301.  
  8302. +
  8303.  
  8304. +[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] owner changed to 0
  8305.  
  8306. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] group changed to 0
  8307.  
  8308. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] mode changed to 644
  8309.  
  8310.  
  8311. - change mode from '' to '0644'
  8312.  
  8313. - change owner from '' to 'root'
  8314.  
  8315. - change group from '' to 'root'
  8316.  
  8317. [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)
  8318.  
  8319. * 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
  8320.  
  8321.  
  8322. - execute the ruby block verify_chown_persisted_on_node-exporter
  8323.  
  8324. * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
  8325.  
  8326. * 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
  8327.  
  8328.  
  8329. - create symlink at /var/log/gitlab/node-exporter/config to /opt/gitlab/sv/node-exporter/log/config
  8330.  
  8331. * 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
  8332.  
  8333.  
  8334. - 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
  8335.  
  8336.  
  8337. - update content in file /opt/gitlab/sv/node-exporter/log/run from none to ed81f2
  8338.  
  8339. --- /opt/gitlab/sv/node-exporter/log/run 2023-06-12 08:53:01.539486965 +0000
  8340.  
  8341. +++ /opt/gitlab/sv/node-exporter/log/.chef-run20230612-2522091-fihvtr 2023-06-12 08:53:01.539486965 +0000
  8342.  
  8343. @@ -1,5 +1,10 @@
  8344.  
  8345. +#!/bin/sh
  8346.  
  8347. +exec chpst -P \
  8348.  
  8349. + -U root:root \
  8350.  
  8351. + -u root:root \
  8352.  
  8353. + 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
  8354.  
  8355. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] group changed to 0
  8356.  
  8357. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] mode changed to 755
  8358.  
  8359.  
  8360. - change mode from '' to '0755'
  8361.  
  8362. - change owner from '' to 'root'
  8363.  
  8364. - change group from '' to 'root'
  8365.  
  8366. * 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
  8367.  
  8368.  
  8369. - 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
  8370.  
  8371. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/env] group changed to 0
  8372.  
  8373. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/env] mode changed to 755
  8374.  
  8375.  
  8376. - change mode from '' to '0755'
  8377.  
  8378. - change owner from '' to 'root'
  8379.  
  8380. - change group from '' to 'root'
  8381.  
  8382. * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
  8383.  
  8384. * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
  8385.  
  8386. * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
  8387.  
  8388. * 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
  8389.  
  8390.  
  8391. - 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
  8392.  
  8393. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/control] group changed to 0
  8394.  
  8395. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/control] mode changed to 755
  8396.  
  8397.  
  8398. - change mode from '' to '0755'
  8399.  
  8400. - change owner from '' to 'root'
  8401.  
  8402. - change group from '' to 'root'
  8403.  
  8404. * link[/opt/gitlab/init/node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: link[/opt/gitlab/init/node-exporter] created
  8405.  
  8406.  
  8407. - create symlink at /opt/gitlab/init/node-exporter to /opt/gitlab/embedded/bin/sv
  8408.  
  8409. * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
  8410.  
  8411. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] sending run action to ruby_block[restart_service] (delayed)
  8412.  
  8413. * ruby_block[restart_service] action run (skipped due to only_if)
  8414.  
  8415. [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)
  8416.  
  8417. * ruby_block[reload_log_service] action create
  8418.  
  8419. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8420.  
  8421. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8422.  
  8423. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8424.  
  8425. * directory[/opt/gitlab/sv/node-exporter] action create (up to date)
  8426.  
  8427. * template[/opt/gitlab/sv/node-exporter/run] action create (up to date)
  8428.  
  8429. * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date)
  8430.  
  8431. * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date)
  8432.  
  8433. * template[/opt/gitlab/sv/node-exporter/log/config] action create (up to date)
  8434.  
  8435. * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
  8436.  
  8437. * link[/var/log/gitlab/node-exporter/config] action create (up to date)
  8438.  
  8439. * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date)
  8440.  
  8441. * directory[/opt/gitlab/sv/node-exporter/env] action create (up to date)
  8442.  
  8443. * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
  8444.  
  8445. * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
  8446.  
  8447. * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
  8448.  
  8449. * directory[/opt/gitlab/sv/node-exporter/control] action create (up to date)
  8450.  
  8451. * link[/opt/gitlab/init/node-exporter] action create (up to date)
  8452.  
  8453. * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
  8454.  
  8455. * directory[/opt/gitlab/service] action create (up to date)
  8456.  
  8457. * link[/opt/gitlab/service/node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: link[/opt/gitlab/service/node-exporter] created
  8458.  
  8459.  
  8460. - create symlink at /opt/gitlab/service/node-exporter to /opt/gitlab/sv/node-exporter
  8461.  
  8462. * 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
  8463.  
  8464.  
  8465. - execute the ruby block wait for node-exporter service socket
  8466.  
  8467. * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
  8468.  
  8469. [2023-06-12T08:53:04+00:00] INFO: ruby_block[reload_log_service] called
  8470.  
  8471. - execute the ruby block reload_log_service
  8472.  
  8473. [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)
  8474.  
  8475. * ruby_block[restart_log_service] action run
  8476.  
  8477. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8478.  
  8479. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8480.  
  8481. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8482.  
  8483. * directory[/opt/gitlab/sv/node-exporter] action create (up to date)
  8484.  
  8485. * template[/opt/gitlab/sv/node-exporter/run] action create (up to date)
  8486.  
  8487. * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date)
  8488.  
  8489. * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date)
  8490.  
  8491. * template[/opt/gitlab/sv/node-exporter/log/config] action create (up to date)
  8492.  
  8493. * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
  8494.  
  8495. * link[/var/log/gitlab/node-exporter/config] action create (up to date)
  8496.  
  8497. * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date)
  8498.  
  8499. * directory[/opt/gitlab/sv/node-exporter/env] action create (up to date)
  8500.  
  8501. * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
  8502.  
  8503. * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
  8504.  
  8505. * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
  8506.  
  8507. * directory[/opt/gitlab/sv/node-exporter/control] action create (up to date)
  8508.  
  8509. * link[/opt/gitlab/init/node-exporter] action create (up to date)
  8510.  
  8511. * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
  8512.  
  8513. * directory[/opt/gitlab/service] action create (up to date)
  8514.  
  8515. * link[/opt/gitlab/service/node-exporter] action create (up to date)
  8516.  
  8517. * ruby_block[wait for node-exporter service socket] action run (skipped due to not_if)
  8518.  
  8519. * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
  8520.  
  8521. [2023-06-12T08:53:06+00:00] INFO: ruby_block[restart_log_service] called
  8522.  
  8523. - execute the ruby block restart_log_service
  8524.  
  8525. * directory[/opt/gitlab/service] action create (up to date)
  8526.  
  8527. * link[/opt/gitlab/service/node-exporter] action create (up to date)
  8528.  
  8529. * ruby_block[wait for node-exporter service socket] action run (skipped due to not_if)
  8530.  
  8531. * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
  8532.  
  8533.  
  8534. * execute[/opt/gitlab/bin/gitlab-ctl start node-exporter] action run
  8535.  
  8536. [execute] ok: run: node-exporter: (pid 2523620) 2s
  8537.  
  8538. [2023-06-12T08:53:06+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start node-exporter] ran successfully
  8539.  
  8540. - execute /opt/gitlab/bin/gitlab-ctl start node-exporter
  8541.  
  8542. * consul_service[node-exporter] action delete
  8543.  
  8544. * file[/var/opt/gitlab/consul/config.d/node-exporter-service.json] action delete (up to date)
  8545.  
  8546. (up to date)
  8547.  
  8548. Recipe: monitoring::gitlab-exporter
  8549.  
  8550. * 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
  8551.  
  8552.  
  8553. - 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
  8554.  
  8555. [2023-06-12T08:53:06+00:00] INFO: directory[/var/opt/gitlab/gitlab-exporter] mode changed to 755
  8556.  
  8557.  
  8558. - change mode from '' to '0755'
  8559.  
  8560. - change owner from '' to 'git'
  8561.  
  8562. * 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
  8563.  
  8564.  
  8565. - 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
  8566.  
  8567. [2023-06-12T08:53:06+00:00] INFO: directory[/var/log/gitlab/gitlab-exporter] mode changed to 700
  8568.  
  8569.  
  8570. - change mode from '' to '0700'
  8571.  
  8572. - change owner from '' to 'git'
  8573.  
  8574. * env_dir[/opt/gitlab/etc/gitlab-exporter/env] action create
  8575.  
  8576. * 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
  8577.  
  8578.  
  8579. - create new directory /opt/gitlab/etc/gitlab-exporter/env
  8580.  
  8581. * 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
  8582.  
  8583.  
  8584. - 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
  8585.  
  8586.  
  8587. - update content in file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF from none to 2ea29b
  8588.  
  8589. - suppressed sensitive resource
  8590.  
  8591. * 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
  8592.  
  8593.  
  8594. - 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
  8595.  
  8596.  
  8597. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS from none to 47b250
  8598.  
  8599. - suppressed sensitive resource
  8600.  
  8601. * 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
  8602.  
  8603.  
  8604. - 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
  8605.  
  8606.  
  8607. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO from none to c945fb
  8608.  
  8609. - suppressed sensitive resource
  8610.  
  8611. * 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
  8612.  
  8613.  
  8614. - 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
  8615.  
  8616.  
  8617. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO from none to 8a60e9
  8618.  
  8619. - suppressed sensitive resource
  8620.  
  8621. * 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
  8622.  
  8623.  
  8624. - 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
  8625.  
  8626.  
  8627. - update content in file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR from none to 4f45cf
  8628.  
  8629. - suppressed sensitive resource
  8630.  
  8631. * 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
  8632.  
  8633.  
  8634. - 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
  8635.  
  8636.  
  8637. - update content in file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE from none to f7ce84
  8638.  
  8639. - suppressed sensitive resource
  8640.  
  8641.  
  8642. * 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
  8643.  
  8644.  
  8645. - 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
  8646.  
  8647.  
  8648. - update content in file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml from none to d60133
  8649.  
  8650. - suppressed sensitive resource[2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] owner changed to 997
  8651.  
  8652. [2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] mode changed to 600
  8653.  
  8654.  
  8655. - change mode from '' to '0600'
  8656.  
  8657. - change owner from '' to 'git'
  8658.  
  8659. [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
  8660.  
  8661. * version_file[Create version file for GitLab-Exporter] action create
  8662.  
  8663. * 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
  8664.  
  8665.  
  8666. - 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
  8667.  
  8668.  
  8669. - update content in file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION from none to b4a021
  8670.  
  8671. --- /var/opt/gitlab/gitlab-exporter/RUBY_VERSION 2023-06-12 08:53:06.971471792 +0000
  8672.  
  8673. +++ /var/opt/gitlab/gitlab-exporter/.chef-RUBY_VERSION20230612-2522091-17e8qb 2023-06-12 08:53:06.967471804 +0000
  8674.  
  8675. @@ -1 +1,2 @@
  8676.  
  8677. +ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux]
  8678.  
  8679.  
  8680. [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
  8681.  
  8682. * service[gitlab-exporter] action nothing (skipped due to action :nothing)
  8683.  
  8684. * runit_service[gitlab-exporter] action enable
  8685.  
  8686. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8687.  
  8688. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8689.  
  8690. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8691.  
  8692. * 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
  8693.  
  8694.  
  8695. - 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
  8696.  
  8697. [2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter] group changed to 0
  8698.  
  8699. [2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter] mode changed to 755
  8700.  
  8701.  
  8702. - change mode from '' to '0755'
  8703.  
  8704. - change owner from '' to 'root'
  8705.  
  8706. - change group from '' to 'root'
  8707.  
  8708. * 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
  8709.  
  8710.  
  8711. - 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
  8712.  
  8713.  
  8714. - update content in file /opt/gitlab/sv/gitlab-exporter/run from none to 455cb2
  8715.  
  8716. --- /opt/gitlab/sv/gitlab-exporter/run 2023-06-12 08:53:06.995471725 +0000
  8717.  
  8718. +++ /opt/gitlab/sv/gitlab-exporter/.chef-run20230612-2522091-c8olqx 2023-06-12 08:53:06.995471725 +0000
  8719.  
  8720. @@ -1,9 +1,18 @@
  8721.  
  8722. +#!/bin/sh
  8723.  
  8724. +exec 2>&1
  8725.  
  8726. +
  8727.  
  8728. +umask 077
  8729.  
  8730. +exec chpst -P -e /opt/gitlab/etc/gitlab-exporter/env \
  8731.  
  8732. + -U git:git \
  8733.  
  8734. + -u git:git \
  8735.  
  8736. + /opt/gitlab/embedded/bin/gitlab-exporter web \
  8737.  
  8738. + -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
  8739.  
  8740. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] group changed to 0
  8741.  
  8742. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] mode changed to 755
  8743.  
  8744.  
  8745. - change mode from '' to '0755'
  8746.  
  8747. - change owner from '' to 'root'
  8748.  
  8749. - change group from '' to 'root'
  8750.  
  8751. * 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
  8752.  
  8753.  
  8754. - 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
  8755.  
  8756. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log] group changed to 0
  8757.  
  8758. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log] mode changed to 755
  8759.  
  8760.  
  8761. - change mode from '' to '0755'
  8762.  
  8763. - change owner from '' to 'root'
  8764.  
  8765. - change group from '' to 'root'
  8766.  
  8767. * 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
  8768.  
  8769.  
  8770. - 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
  8771.  
  8772. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log/main] group changed to 0
  8773.  
  8774. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log/main] mode changed to 755
  8775.  
  8776.  
  8777. - change mode from '' to '0755'
  8778.  
  8779. - change owner from '' to 'root'
  8780.  
  8781. - change group from '' to 'root'
  8782.  
  8783. * 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
  8784.  
  8785.  
  8786. - 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
  8787.  
  8788.  
  8789. - update content in file /opt/gitlab/sv/gitlab-exporter/log/config from none to 623c00
  8790.  
  8791. --- /opt/gitlab/sv/gitlab-exporter/log/config 2023-06-12 08:53:07.015471669 +0000
  8792.  
  8793. +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-config20230612-2522091-bjelua 2023-06-12 08:53:07.015471669 +0000
  8794.  
  8795. @@ -1,6 +1,12 @@
  8796.  
  8797. +s209715200
  8798.  
  8799. +n30
  8800.  
  8801. +t86400
  8802.  
  8803. +!gzip
  8804.  
  8805. +
  8806.  
  8807. +[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] owner changed to 0
  8808.  
  8809. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] group changed to 0
  8810.  
  8811. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] mode changed to 644
  8812.  
  8813.  
  8814. - change mode from '' to '0644'
  8815.  
  8816. - change owner from '' to 'root'
  8817.  
  8818. - change group from '' to 'root'
  8819.  
  8820. [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)
  8821.  
  8822. * 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
  8823.  
  8824.  
  8825. - execute the ruby block verify_chown_persisted_on_gitlab-exporter
  8826.  
  8827. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
  8828.  
  8829. * 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
  8830.  
  8831.  
  8832. - create symlink at /var/log/gitlab/gitlab-exporter/config to /opt/gitlab/sv/gitlab-exporter/log/config
  8833.  
  8834. * 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
  8835.  
  8836.  
  8837. - 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
  8838.  
  8839.  
  8840. - update content in file /opt/gitlab/sv/gitlab-exporter/log/run from none to 0b0a31
  8841.  
  8842. --- /opt/gitlab/sv/gitlab-exporter/log/run 2023-06-12 08:53:07.035471613 +0000
  8843.  
  8844. +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-run20230612-2522091-4b3h7j 2023-06-12 08:53:07.035471613 +0000
  8845.  
  8846. @@ -1,5 +1,10 @@
  8847.  
  8848. +#!/bin/sh
  8849.  
  8850. +exec chpst -P \
  8851.  
  8852. + -U root:root \
  8853.  
  8854. + -u root:root \
  8855.  
  8856. + 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
  8857.  
  8858. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] group changed to 0
  8859.  
  8860. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] mode changed to 755
  8861.  
  8862.  
  8863. - change mode from '' to '0755'
  8864.  
  8865. - change owner from '' to 'root'
  8866.  
  8867. - change group from '' to 'root'
  8868.  
  8869. * 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
  8870.  
  8871.  
  8872. - 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
  8873.  
  8874. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/env] group changed to 0
  8875.  
  8876. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/env] mode changed to 755
  8877.  
  8878.  
  8879. - change mode from '' to '0755'
  8880.  
  8881. - change owner from '' to 'root'
  8882.  
  8883. - change group from '' to 'root'
  8884.  
  8885. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
  8886.  
  8887. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
  8888.  
  8889. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
  8890.  
  8891. * 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
  8892.  
  8893.  
  8894. - 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
  8895.  
  8896. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/control] group changed to 0
  8897.  
  8898. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/control] mode changed to 755
  8899.  
  8900.  
  8901. - change mode from '' to '0755'
  8902.  
  8903. - change owner from '' to 'root'
  8904.  
  8905. - change group from '' to 'root'
  8906.  
  8907. * link[/opt/gitlab/init/gitlab-exporter] action create[2023-06-12T08:53:07+00:00] INFO: link[/opt/gitlab/init/gitlab-exporter] created
  8908.  
  8909.  
  8910. - create symlink at /opt/gitlab/init/gitlab-exporter to /opt/gitlab/embedded/bin/sv
  8911.  
  8912. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
  8913.  
  8914. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] sending run action to ruby_block[restart_service] (delayed)
  8915.  
  8916. * ruby_block[restart_service] action run (skipped due to only_if)
  8917.  
  8918. [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)
  8919.  
  8920. * ruby_block[reload_log_service] action create
  8921.  
  8922. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8923.  
  8924. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8925.  
  8926. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8927.  
  8928. * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date)
  8929.  
  8930. * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date)
  8931.  
  8932. * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date)
  8933.  
  8934. * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date)
  8935.  
  8936. * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date)
  8937.  
  8938. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
  8939.  
  8940. * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date)
  8941.  
  8942. * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date)
  8943.  
  8944. * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date)
  8945.  
  8946. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
  8947.  
  8948. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
  8949.  
  8950. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
  8951.  
  8952. * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date)
  8953.  
  8954. * link[/opt/gitlab/init/gitlab-exporter] action create (up to date)
  8955.  
  8956. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
  8957.  
  8958. * directory[/opt/gitlab/service] action create (up to date)
  8959.  
  8960. * link[/opt/gitlab/service/gitlab-exporter] action create[2023-06-12T08:53:07+00:00] INFO: link[/opt/gitlab/service/gitlab-exporter] created
  8961.  
  8962.  
  8963. - create symlink at /opt/gitlab/service/gitlab-exporter to /opt/gitlab/sv/gitlab-exporter
  8964.  
  8965. * 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
  8966.  
  8967.  
  8968. - execute the ruby block wait for gitlab-exporter service socket
  8969.  
  8970. * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
  8971.  
  8972. [2023-06-12T08:53:12+00:00] INFO: ruby_block[reload_log_service] called
  8973.  
  8974. - execute the ruby block reload_log_service
  8975.  
  8976. [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)
  8977.  
  8978. * ruby_block[restart_log_service] action run
  8979.  
  8980. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8981.  
  8982. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8983.  
  8984. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8985.  
  8986. * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date)
  8987.  
  8988. * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date)
  8989.  
  8990. * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date)
  8991.  
  8992. * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date)
  8993.  
  8994. * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date)
  8995.  
  8996. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
  8997.  
  8998. * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date)
  8999.  
  9000. * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date)
  9001.  
  9002. * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date)
  9003.  
  9004. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
  9005.  
  9006. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
  9007.  
  9008. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
  9009.  
  9010. * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date)
  9011.  
  9012. * link[/opt/gitlab/init/gitlab-exporter] action create (up to date)
  9013.  
  9014. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
  9015.  
  9016. * directory[/opt/gitlab/service] action create (up to date)
  9017.  
  9018. * link[/opt/gitlab/service/gitlab-exporter] action create (up to date)
  9019.  
  9020. * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if)
  9021.  
  9022. * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
  9023.  
  9024. [2023-06-12T08:53:12+00:00] INFO: ruby_block[restart_log_service] called
  9025.  
  9026. - execute the ruby block restart_log_service
  9027.  
  9028. * directory[/opt/gitlab/service] action create (up to date)
  9029.  
  9030. * link[/opt/gitlab/service/gitlab-exporter] action create (up to date)
  9031.  
  9032. * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if)
  9033.  
  9034. * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
  9035.  
  9036.  
  9037. * execute[/opt/gitlab/bin/gitlab-ctl start gitlab-exporter] action run
  9038.  
  9039. [execute] ok: run: gitlab-exporter: (pid 2523688) 3s
  9040.  
  9041. [2023-06-12T08:53:13+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start gitlab-exporter] ran successfully
  9042.  
  9043. - execute /opt/gitlab/bin/gitlab-ctl start gitlab-exporter
  9044.  
  9045. * consul_service[gitlab-exporter] action delete
  9046.  
  9047. * file[/var/opt/gitlab/consul/config.d/gitlab-exporter-service.json] action delete (up to date)
  9048.  
  9049. (up to date)
  9050.  
  9051. Recipe: monitoring::redis-exporter
  9052.  
  9053. * 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
  9054.  
  9055.  
  9056. - 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
  9057.  
  9058. [2023-06-12T08:53:13+00:00] INFO: directory[/var/log/gitlab/redis-exporter] mode changed to 700
  9059.  
  9060.  
  9061. - change mode from '' to '0700'
  9062.  
  9063. - change owner from '' to 'gitlab-redis'
  9064.  
  9065. * 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
  9066.  
  9067.  
  9068. - 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
  9069.  
  9070. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/etc/redis-exporter/env] mode changed to 700
  9071.  
  9072.  
  9073. - change mode from '' to '0700'
  9074.  
  9075. - change owner from '' to 'gitlab-redis'
  9076.  
  9077. * env_dir[/opt/gitlab/etc/redis-exporter/env] action create
  9078.  
  9079. * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date)
  9080.  
  9081. * 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
  9082.  
  9083.  
  9084. - 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
  9085.  
  9086.  
  9087. - update content in file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR from none to 4f45cf
  9088.  
  9089. - suppressed sensitive resource
  9090.  
  9091.  
  9092. * service[redis-exporter] action nothing (skipped due to action :nothing)
  9093.  
  9094. * runit_service[redis-exporter] action enable
  9095.  
  9096. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  9097.  
  9098. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  9099.  
  9100. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  9101.  
  9102. * 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
  9103.  
  9104.  
  9105. - 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
  9106.  
  9107. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter] group changed to 0
  9108.  
  9109. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter] mode changed to 755
  9110.  
  9111.  
  9112. - change mode from '' to '0755'
  9113.  
  9114. - change owner from '' to 'root'
  9115.  
  9116. - change group from '' to 'root'
  9117.  
  9118. * 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
  9119.  
  9120.  
  9121. - 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
  9122.  
  9123.  
  9124. - update content in file /opt/gitlab/sv/redis-exporter/run from none to a21d3f
  9125.  
  9126. --- /opt/gitlab/sv/redis-exporter/run 2023-06-12 08:53:13.415453743 +0000
  9127.  
  9128. +++ /opt/gitlab/sv/redis-exporter/.chef-run20230612-2522091-gjk8bi 2023-06-12 08:53:13.411453754 +0000
  9129.  
  9130. @@ -1,8 +1,16 @@
  9131.  
  9132. +#!/bin/sh
  9133.  
  9134. +exec 2>&1
  9135.  
  9136. +
  9137.  
  9138. +umask 077
  9139.  
  9140. +exec chpst -P -e /opt/gitlab/etc/redis-exporter/env \
  9141.  
  9142. + -U gitlab-redis:git \
  9143.  
  9144. + -u gitlab-redis:git \
  9145.  
  9146. + /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
  9147.  
  9148. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] group changed to 0
  9149.  
  9150. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] mode changed to 755
  9151.  
  9152.  
  9153. - change mode from '' to '0755'
  9154.  
  9155. - change owner from '' to 'root'
  9156.  
  9157. - change group from '' to 'root'
  9158.  
  9159. * 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
  9160.  
  9161.  
  9162. - 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
  9163.  
  9164. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log] group changed to 0
  9165.  
  9166. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log] mode changed to 755
  9167.  
  9168.  
  9169. - change mode from '' to '0755'
  9170.  
  9171. - change owner from '' to 'root'
  9172.  
  9173. - change group from '' to 'root'
  9174.  
  9175. * 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
  9176.  
  9177.  
  9178. - 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
  9179.  
  9180. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log/main] group changed to 0
  9181.  
  9182. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log/main] mode changed to 755
  9183.  
  9184.  
  9185. - change mode from '' to '0755'
  9186.  
  9187. - change owner from '' to 'root'
  9188.  
  9189. - change group from '' to 'root'
  9190.  
  9191. * 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
  9192.  
  9193.  
  9194. - 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
  9195.  
  9196.  
  9197. - update content in file /opt/gitlab/sv/redis-exporter/log/config from none to 623c00
  9198.  
  9199. --- /opt/gitlab/sv/redis-exporter/log/config 2023-06-12 08:53:13.431453698 +0000
  9200.  
  9201. +++ /opt/gitlab/sv/redis-exporter/log/.chef-config20230612-2522091-8ng2or 2023-06-12 08:53:13.431453698 +0000
  9202.  
  9203. @@ -1,6 +1,12 @@
  9204.  
  9205. +s209715200
  9206.  
  9207. +n30
  9208.  
  9209. +t86400
  9210.  
  9211. +!gzip
  9212.  
  9213. +
  9214.  
  9215. +[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] owner changed to 0
  9216.  
  9217. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] group changed to 0
  9218.  
  9219. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] mode changed to 644
  9220.  
  9221.  
  9222. - change mode from '' to '0644'
  9223.  
  9224. - change owner from '' to 'root'
  9225.  
  9226. - change group from '' to 'root'
  9227.  
  9228. [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)
  9229.  
  9230. * 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
  9231.  
  9232.  
  9233. - execute the ruby block verify_chown_persisted_on_redis-exporter
  9234.  
  9235. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
  9236.  
  9237. * 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
  9238.  
  9239.  
  9240. - create symlink at /var/log/gitlab/redis-exporter/config to /opt/gitlab/sv/redis-exporter/log/config
  9241.  
  9242. * 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
  9243.  
  9244.  
  9245. - 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
  9246.  
  9247.  
  9248. - update content in file /opt/gitlab/sv/redis-exporter/log/run from none to 2dc23f
  9249.  
  9250. --- /opt/gitlab/sv/redis-exporter/log/run 2023-06-12 08:53:13.447453653 +0000
  9251.  
  9252. +++ /opt/gitlab/sv/redis-exporter/log/.chef-run20230612-2522091-9vd2z0 2023-06-12 08:53:13.447453653 +0000
  9253.  
  9254. @@ -1,5 +1,10 @@
  9255.  
  9256. +#!/bin/sh
  9257.  
  9258. +exec chpst -P \
  9259.  
  9260. + -U root:root \
  9261.  
  9262. + -u root:root \
  9263.  
  9264. + 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
  9265.  
  9266. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] group changed to 0
  9267.  
  9268. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] mode changed to 755
  9269.  
  9270.  
  9271. - change mode from '' to '0755'
  9272.  
  9273. - change owner from '' to 'root'
  9274.  
  9275. - change group from '' to 'root'
  9276.  
  9277. * 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
  9278.  
  9279.  
  9280. - 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
  9281.  
  9282. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/env] group changed to 0
  9283.  
  9284. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/env] mode changed to 755
  9285.  
  9286.  
  9287. - change mode from '' to '0755'
  9288.  
  9289. - change owner from '' to 'root'
  9290.  
  9291. - change group from '' to 'root'
  9292.  
  9293. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
  9294.  
  9295. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
  9296.  
  9297. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
  9298.  
  9299. * 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
  9300.  
  9301.  
  9302. - 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
  9303.  
  9304. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/control] group changed to 0
  9305.  
  9306. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/control] mode changed to 755
  9307.  
  9308.  
  9309. - change mode from '' to '0755'
  9310.  
  9311. - change owner from '' to 'root'
  9312.  
  9313. - change group from '' to 'root'
  9314.  
  9315. * link[/opt/gitlab/init/redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: link[/opt/gitlab/init/redis-exporter] created
  9316.  
  9317.  
  9318. - create symlink at /opt/gitlab/init/redis-exporter to /opt/gitlab/embedded/bin/sv
  9319.  
  9320. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
  9321.  
  9322. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] sending run action to ruby_block[restart_service] (delayed)
  9323.  
  9324. * ruby_block[restart_service] action run (skipped due to only_if)
  9325.  
  9326. [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)
  9327.  
  9328. * ruby_block[reload_log_service] action create
  9329.  
  9330. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  9331.  
  9332. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  9333.  
  9334. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  9335.  
  9336. * directory[/opt/gitlab/sv/redis-exporter] action create (up to date)
  9337.  
  9338. * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date)
  9339.  
  9340. * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date)
  9341.  
  9342. * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date)
  9343.  
  9344. * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date)
  9345.  
  9346. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
  9347.  
  9348. * link[/var/log/gitlab/redis-exporter/config] action create (up to date)
  9349.  
  9350. * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date)
  9351.  
  9352. * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date)
  9353.  
  9354. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
  9355.  
  9356. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
  9357.  
  9358. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
  9359.  
  9360. * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date)
  9361.  
  9362. * link[/opt/gitlab/init/redis-exporter] action create (up to date)
  9363.  
  9364. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
  9365.  
  9366. * directory[/opt/gitlab/service] action create (up to date)
  9367.  
  9368. * link[/opt/gitlab/service/redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: link[/opt/gitlab/service/redis-exporter] created
  9369.  
  9370.  
  9371. - create symlink at /opt/gitlab/service/redis-exporter to /opt/gitlab/sv/redis-exporter
  9372.  
  9373. * 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
  9374.  
  9375.  
  9376. - execute the ruby block wait for redis-exporter service socket
  9377.  
  9378. * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
  9379.  
  9380. [2023-06-12T08:53:18+00:00] INFO: ruby_block[reload_log_service] called
  9381.  
  9382. - execute the ruby block reload_log_service
  9383.  
  9384. [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)
  9385.  
  9386. * ruby_block[restart_log_service] action run
  9387.  
  9388. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  9389.  
  9390. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  9391.  
  9392. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  9393.  
  9394. * directory[/opt/gitlab/sv/redis-exporter] action create (up to date)
  9395.  
  9396. * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date)
  9397.  
  9398. * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date)
  9399.  
  9400. * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date)
  9401.  
  9402. * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date)
  9403.  
  9404. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
  9405.  
  9406. * link[/var/log/gitlab/redis-exporter/config] action create (up to date)
  9407.  
  9408. * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date)
  9409.  
  9410. * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date)
  9411.  
  9412. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
  9413.  
  9414. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
  9415.  
  9416. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
  9417.  
  9418. * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date)
  9419.  
  9420. * link[/opt/gitlab/init/redis-exporter] action create (up to date)
  9421.  
  9422. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
  9423.  
  9424. * directory[/opt/gitlab/service] action create (up to date)
  9425.  
  9426. * link[/opt/gitlab/service/redis-exporter] action create (up to date)
  9427.  
  9428. * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if)
  9429.  
  9430. * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
  9431.  
  9432. [2023-06-12T08:53:19+00:00] INFO: ruby_block[restart_log_service] called
  9433.  
  9434. - execute the ruby block restart_log_service
  9435.  
  9436. * directory[/opt/gitlab/service] action create (up to date)
  9437.  
  9438. * link[/opt/gitlab/service/redis-exporter] action create (up to date)
  9439.  
  9440. * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if)
  9441.  
  9442. * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
  9443.  
  9444.  
  9445. * execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] action run
  9446.  
  9447. [execute] ok: run: redis-exporter: (pid 2523749) 4s
  9448.  
  9449. [2023-06-12T08:53:20+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] ran successfully
  9450.  
  9451. - execute /opt/gitlab/bin/gitlab-ctl start redis-exporter
  9452.  
  9453. * consul_service[redis-exporter] action delete
  9454.  
  9455. * file[/var/opt/gitlab/consul/config.d/redis-exporter-service.json] action delete (up to date)
  9456.  
  9457. (up to date)
  9458.  
  9459. Recipe: monitoring::prometheus
  9460.  
  9461. * 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
  9462.  
  9463.  
  9464. - create new directory /var/opt/gitlab/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus] owner changed to 994
  9465.  
  9466. [2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus] mode changed to 750
  9467.  
  9468.  
  9469. - change mode from '' to '0750'
  9470.  
  9471. - change owner from '' to 'gitlab-prometheus'
  9472.  
  9473. * 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
  9474.  
  9475.  
  9476. - 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
  9477.  
  9478. [2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus/rules] mode changed to 750
  9479.  
  9480.  
  9481. - change mode from '' to '0750'
  9482.  
  9483. - change owner from '' to 'gitlab-prometheus'
  9484.  
  9485. * 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
  9486.  
  9487.  
  9488. - create new directory /var/log/gitlab/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/var/log/gitlab/prometheus] owner changed to 994
  9489.  
  9490. [2023-06-12T08:53:20+00:00] INFO: directory[/var/log/gitlab/prometheus] mode changed to 700
  9491.  
  9492.  
  9493. - change mode from '' to '0700'
  9494.  
  9495. - change owner from '' to 'gitlab-prometheus'
  9496.  
  9497. * 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
  9498.  
  9499.  
  9500. - 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
  9501.  
  9502. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/etc/prometheus/env] mode changed to 700
  9503.  
  9504.  
  9505. - change mode from '' to '0700'
  9506.  
  9507. - change owner from '' to 'gitlab-prometheus'
  9508.  
  9509. * env_dir[/opt/gitlab/etc/prometheus/env] action create
  9510.  
  9511. * directory[/opt/gitlab/etc/prometheus/env] action create (up to date)
  9512.  
  9513. * 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
  9514.  
  9515.  
  9516. - 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
  9517.  
  9518.  
  9519. - update content in file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR from none to 4f45cf
  9520.  
  9521. - suppressed sensitive resource
  9522.  
  9523.  
  9524. * execute[reload prometheus] action nothing (skipped due to action :nothing)
  9525.  
  9526. * file[Prometheus config] action create[2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] created file /var/opt/gitlab/prometheus/prometheus.yml
  9527.  
  9528.  
  9529. - 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
  9530.  
  9531.  
  9532. - update content in file /var/opt/gitlab/prometheus/prometheus.yml from none to 0fbf9e
  9533.  
  9534. --- /var/opt/gitlab/prometheus/prometheus.yml 2023-06-12 08:53:20.199434685 +0000
  9535.  
  9536. +++ /var/opt/gitlab/prometheus/.chef-prometheus20230612-2522091-a82mwm.yml 2023-06-12 08:53:20.199434685 +0000
  9537.  
  9538. @@ -1,171 +1,342 @@
  9539.  
  9540. +---
  9541.  
  9542. +global:
  9543.  
  9544. + scrape_interval: 15s
  9545.  
  9546. + scrape_timeout: 15s
  9547.  
  9548. + external_labels: {}
  9549.  
  9550. +remote_read: []
  9551.  
  9552. +remote_write: []
  9553.  
  9554. +rule_files:
  9555.  
  9556. +- "/var/opt/gitlab/prometheus/rules/*.rules"
  9557.  
  9558. +scrape_configs:
  9559.  
  9560. +- job_name: prometheus
  9561.  
  9562. + static_configs:
  9563.  
  9564. + - targets:
  9565.  
  9566. + - localhost:9090
  9567.  
  9568. +- job_name: nginx
  9569.  
  9570. + static_configs:
  9571.  
  9572. + - targets:
  9573.  
  9574. + - localhost:8060
  9575.  
  9576. +- job_name: redis
  9577.  
  9578. + static_configs:
  9579.  
  9580. + - targets:
  9581.  
  9582. + - localhost:9121
  9583.  
  9584. +- job_name: postgres
  9585.  
  9586. + static_configs:
  9587.  
  9588. + - targets:
  9589.  
  9590. + - localhost:9187
  9591.  
  9592. +- job_name: node
  9593.  
  9594. + static_configs:
  9595.  
  9596. + - targets:
  9597.  
  9598. + - localhost:9100
  9599.  
  9600. +- job_name: gitlab-workhorse
  9601.  
  9602. + static_configs:
  9603.  
  9604. + - targets:
  9605.  
  9606. + - localhost:9229
  9607.  
  9608. +- job_name: gitlab-rails
  9609.  
  9610. + metrics_path: "/-/metrics"
  9611.  
  9612. + static_configs:
  9613.  
  9614. + - targets:
  9615.  
  9616. + - 127.0.0.1:8080
  9617.  
  9618. + relabel_configs:
  9619.  
  9620. + - source_labels:
  9621.  
  9622. + - __address__
  9623.  
  9624. + regex: 127.0.0.1:(.*)
  9625.  
  9626. + replacement: localhost:$1
  9627.  
  9628. + target_label: instance
  9629.  
  9630. +- job_name: gitlab-sidekiq
  9631.  
  9632. + static_configs:
  9633.  
  9634. + - targets:
  9635.  
  9636. + - 127.0.0.1:8082
  9637.  
  9638. + relabel_configs:
  9639.  
  9640. + - source_labels:
  9641.  
  9642. + - __address__
  9643.  
  9644. + regex: 127.0.0.1:(.*)
  9645.  
  9646. + replacement: localhost:$1
  9647.  
  9648. + target_label: instance
  9649.  
  9650. +- job_name: gitlab_exporter_database
  9651.  
  9652. + metrics_path: "/database"
  9653.  
  9654. + static_configs:
  9655.  
  9656. + - targets:
  9657.  
  9658. + - localhost:9168
  9659.  
  9660. +- job_name: gitlab_exporter_sidekiq
  9661.  
  9662. + metrics_path: "/sidekiq"
  9663.  
  9664. + static_configs:
  9665.  
  9666. + - targets:
  9667.  
  9668. + - localhost:9168
  9669.  
  9670. +- job_name: gitlab_exporter_ruby
  9671.  
  9672. + metrics_path: "/ruby"
  9673.  
  9674. + static_configs:
  9675.  
  9676. + - targets:
  9677.  
  9678. + - localhost:9168
  9679.  
  9680. +- job_name: gitaly
  9681.  
  9682. + static_configs:
  9683.  
  9684. + - targets:
  9685.  
  9686. + - localhost:9236
  9687.  
  9688. +- job_name: kubernetes-cadvisor
  9689.  
  9690. + scheme: https
  9691.  
  9692. + tls_config:
  9693.  
  9694. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9695.  
  9696. + insecure_skip_verify: true
  9697.  
  9698. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9699.  
  9700. + kubernetes_sd_configs:
  9701.  
  9702. + - role: node
  9703.  
  9704. + api_server: https://kubernetes.default.svc:443
  9705.  
  9706. + tls_config:
  9707.  
  9708. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9709.  
  9710. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9711.  
  9712. + relabel_configs:
  9713.  
  9714. + - action: labelmap
  9715.  
  9716. + regex: __meta_kubernetes_node_label_(.+)
  9717.  
  9718. + - target_label: __address__
  9719.  
  9720. + replacement: kubernetes.default.svc:443
  9721.  
  9722. + - source_labels:
  9723.  
  9724. + - __meta_kubernetes_node_name
  9725.  
  9726. + regex: "(.+)"
  9727.  
  9728. + target_label: __metrics_path__
  9729.  
  9730. + replacement: "/api/v1/nodes/${1}/proxy/metrics/cadvisor"
  9731.  
  9732. + metric_relabel_configs:
  9733.  
  9734. + - source_labels:
  9735.  
  9736. + - pod_name
  9737.  
  9738. + target_label: environment
  9739.  
  9740. + regex: "(.+)-.+-.+"
  9741.  
  9742. +- job_name: kubernetes-nodes
  9743.  
  9744. + scheme: https
  9745.  
  9746. + tls_config:
  9747.  
  9748. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9749.  
  9750. + insecure_skip_verify: true
  9751.  
  9752. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9753.  
  9754. + kubernetes_sd_configs:
  9755.  
  9756. + - role: node
  9757.  
  9758. + api_server: https://kubernetes.default.svc:443
  9759.  
  9760. + tls_config:
  9761.  
  9762. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9763.  
  9764. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9765.  
  9766. + relabel_configs:
  9767.  
  9768. + - action: labelmap
  9769.  
  9770. + regex: __meta_kubernetes_node_label_(.+)
  9771.  
  9772. + - target_label: __address__
  9773.  
  9774. + replacement: kubernetes.default.svc:443
  9775.  
  9776. + - source_labels:
  9777.  
  9778. + - __meta_kubernetes_node_name
  9779.  
  9780. + regex: "(.+)"
  9781.  
  9782. + target_label: __metrics_path__
  9783.  
  9784. + replacement: "/api/v1/nodes/${1}/proxy/metrics"
  9785.  
  9786. + metric_relabel_configs:
  9787.  
  9788. + - source_labels:
  9789.  
  9790. + - pod_name
  9791.  
  9792. + target_label: environment
  9793.  
  9794. + regex: "(.+)-.+-.+"
  9795.  
  9796. +- job_name: kubernetes-pods
  9797.  
  9798. + tls_config:
  9799.  
  9800. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9801.  
  9802. + insecure_skip_verify: true
  9803.  
  9804. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9805.  
  9806. + kubernetes_sd_configs:
  9807.  
  9808. + - role: pod
  9809.  
  9810. + api_server: https://kubernetes.default.svc:443
  9811.  
  9812. + tls_config:
  9813.  
  9814. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9815.  
  9816. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9817.  
  9818. + relabel_configs:
  9819.  
  9820. + - source_labels:
  9821.  
  9822. + - __meta_kubernetes_pod_annotation_prometheus_io_scrape
  9823.  
  9824. + action: keep
  9825.  
  9826. + regex: 'true'
  9827.  
  9828. + - source_labels:
  9829.  
  9830. + - __meta_kubernetes_pod_annotation_prometheus_io_path
  9831.  
  9832. + action: replace
  9833.  
  9834. + target_label: __metrics_path__
  9835.  
  9836. + regex: "(.+)"
  9837.  
  9838. + - source_labels:
  9839.  
  9840. + - __address__
  9841.  
  9842. + - __meta_kubernetes_pod_annotation_prometheus_io_port
  9843.  
  9844. + action: replace
  9845.  
  9846. + regex: "([^:]+)(?::[0-9]+)?;([0-9]+)"
  9847.  
  9848. + replacement: "$1:$2"
  9849.  
  9850. + target_label: __address__
  9851.  
  9852. + - action: labelmap
  9853.  
  9854. + regex: __meta_kubernetes_pod_label_(.+)
  9855.  
  9856. + - source_labels:
  9857.  
  9858. + - __meta_kubernetes_namespace
  9859.  
  9860. + action: replace
  9861.  
  9862. + target_label: kubernetes_namespace
  9863.  
  9864. + - source_labels:
  9865.  
  9866. + - __meta_kubernetes_pod_name
  9867.  
  9868. + action: replace
  9869.  
  9870. + target_label: kubernetes_pod_name
  9871.  
  9872. +alerting:
  9873.  
  9874. + alertmanagers:
  9875.  
  9876. + - static_configs:
  9877.  
  9878. + - targets:
  9879.  
  9880. + - localhost:9093[2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] owner changed to 994
  9881.  
  9882. [2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] mode changed to 644
  9883.  
  9884.  
  9885. - change mode from '' to '0644'
  9886.  
  9887. - change owner from '' to 'gitlab-prometheus'
  9888.  
  9889. * service[prometheus] action nothing (skipped due to action :nothing)
  9890.  
  9891. * runit_service[prometheus] action enable
  9892.  
  9893. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  9894.  
  9895. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  9896.  
  9897. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  9898.  
  9899. * 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
  9900.  
  9901.  
  9902. - create new directory /opt/gitlab/sv/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] owner changed to 0
  9903.  
  9904. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] group changed to 0
  9905.  
  9906. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] mode changed to 755
  9907.  
  9908.  
  9909. - change mode from '' to '0755'
  9910.  
  9911. - change owner from '' to 'root'
  9912.  
  9913. - change group from '' to 'root'
  9914.  
  9915. * 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
  9916.  
  9917.  
  9918. - 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
  9919.  
  9920.  
  9921. - update content in file /opt/gitlab/sv/prometheus/run from none to 60f91b
  9922.  
  9923. --- /opt/gitlab/sv/prometheus/run 2023-06-12 08:53:20.235434583 +0000
  9924.  
  9925. +++ /opt/gitlab/sv/prometheus/.chef-run20230612-2522091-4xsf6q 2023-06-12 08:53:20.235434583 +0000
  9926.  
  9927. @@ -1,8 +1,16 @@
  9928.  
  9929. +#!/bin/sh
  9930.  
  9931. +exec 2>&1
  9932.  
  9933. +
  9934.  
  9935. +umask 077
  9936.  
  9937. +exec chpst -P -e /opt/gitlab/etc/prometheus/env \
  9938.  
  9939. + -U gitlab-prometheus:gitlab-prometheus \
  9940.  
  9941. + -u gitlab-prometheus:gitlab-prometheus \
  9942.  
  9943. + /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
  9944.  
  9945. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] group changed to 0
  9946.  
  9947. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] mode changed to 755
  9948.  
  9949.  
  9950. - change mode from '' to '0755'
  9951.  
  9952. - change owner from '' to 'root'
  9953.  
  9954. - change group from '' to 'root'
  9955.  
  9956. * 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
  9957.  
  9958.  
  9959. - 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
  9960.  
  9961. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log] group changed to 0
  9962.  
  9963. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log] mode changed to 755
  9964.  
  9965.  
  9966. - change mode from '' to '0755'
  9967.  
  9968. - change owner from '' to 'root'
  9969.  
  9970. - change group from '' to 'root'
  9971.  
  9972. * 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
  9973.  
  9974.  
  9975. - 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
  9976.  
  9977. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log/main] group changed to 0
  9978.  
  9979. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log/main] mode changed to 755
  9980.  
  9981.  
  9982. - change mode from '' to '0755'
  9983.  
  9984. - change owner from '' to 'root'
  9985.  
  9986. - change group from '' to 'root'
  9987.  
  9988. * 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
  9989.  
  9990.  
  9991. - 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
  9992.  
  9993.  
  9994. - update content in file /opt/gitlab/sv/prometheus/log/config from none to 623c00
  9995.  
  9996. --- /opt/gitlab/sv/prometheus/log/config 2023-06-12 08:53:20.255434527 +0000
  9997.  
  9998. +++ /opt/gitlab/sv/prometheus/log/.chef-config20230612-2522091-wrx527 2023-06-12 08:53:20.255434527 +0000
  9999.  
  10000. @@ -1,6 +1,12 @@
  10001.  
  10002. +s209715200
  10003.  
  10004. +n30
  10005.  
  10006. +t86400
  10007.  
  10008. +!gzip
  10009.  
  10010. +
  10011.  
  10012. +[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] owner changed to 0
  10013.  
  10014. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] group changed to 0
  10015.  
  10016. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] mode changed to 644
  10017.  
  10018.  
  10019. - change mode from '' to '0644'
  10020.  
  10021. - change owner from '' to 'root'
  10022.  
  10023. - change group from '' to 'root'
  10024.  
  10025. [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)
  10026.  
  10027. * 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
  10028.  
  10029.  
  10030. - execute the ruby block verify_chown_persisted_on_prometheus
  10031.  
  10032. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
  10033.  
  10034. * link[/var/log/gitlab/prometheus/config] action create[2023-06-12T08:53:20+00:00] INFO: link[/var/log/gitlab/prometheus/config] created
  10035.  
  10036.  
  10037. - create symlink at /var/log/gitlab/prometheus/config to /opt/gitlab/sv/prometheus/log/config
  10038.  
  10039. * 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
  10040.  
  10041.  
  10042. - 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
  10043.  
  10044.  
  10045. - update content in file /opt/gitlab/sv/prometheus/log/run from none to 8afdb7
  10046.  
  10047. --- /opt/gitlab/sv/prometheus/log/run 2023-06-12 08:53:20.279434459 +0000
  10048.  
  10049. +++ /opt/gitlab/sv/prometheus/log/.chef-run20230612-2522091-hai0om 2023-06-12 08:53:20.279434459 +0000
  10050.  
  10051. @@ -1,5 +1,10 @@
  10052.  
  10053. +#!/bin/sh
  10054.  
  10055. +exec chpst -P \
  10056.  
  10057. + -U root:root \
  10058.  
  10059. + -u root:root \
  10060.  
  10061. + 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
  10062.  
  10063. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] group changed to 0
  10064.  
  10065. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] mode changed to 755
  10066.  
  10067.  
  10068. - change mode from '' to '0755'
  10069.  
  10070. - change owner from '' to 'root'
  10071.  
  10072. - change group from '' to 'root'
  10073.  
  10074. * 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
  10075.  
  10076.  
  10077. - 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
  10078.  
  10079. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/env] group changed to 0
  10080.  
  10081. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/env] mode changed to 755
  10082.  
  10083.  
  10084. - change mode from '' to '0755'
  10085.  
  10086. - change owner from '' to 'root'
  10087.  
  10088. - change group from '' to 'root'
  10089.  
  10090. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
  10091.  
  10092. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
  10093.  
  10094. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
  10095.  
  10096. * 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
  10097.  
  10098.  
  10099. - 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
  10100.  
  10101. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/control] group changed to 0
  10102.  
  10103. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/control] mode changed to 755
  10104.  
  10105.  
  10106. - change mode from '' to '0755'
  10107.  
  10108. - change owner from '' to 'root'
  10109.  
  10110. - change group from '' to 'root'
  10111.  
  10112. * link[/opt/gitlab/init/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: link[/opt/gitlab/init/prometheus] created
  10113.  
  10114.  
  10115. - create symlink at /opt/gitlab/init/prometheus to /opt/gitlab/embedded/bin/sv
  10116.  
  10117. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
  10118.  
  10119. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] sending run action to ruby_block[restart_service] (delayed)
  10120.  
  10121. * ruby_block[restart_service] action run (skipped due to only_if)
  10122.  
  10123. [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)
  10124.  
  10125. * ruby_block[reload_log_service] action create
  10126.  
  10127. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  10128.  
  10129. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  10130.  
  10131. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  10132.  
  10133. * directory[/opt/gitlab/sv/prometheus] action create (up to date)
  10134.  
  10135. * template[/opt/gitlab/sv/prometheus/run] action create (up to date)
  10136.  
  10137. * directory[/opt/gitlab/sv/prometheus/log] action create (up to date)
  10138.  
  10139. * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date)
  10140.  
  10141. * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date)
  10142.  
  10143. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
  10144.  
  10145. * link[/var/log/gitlab/prometheus/config] action create (up to date)
  10146.  
  10147. * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date)
  10148.  
  10149. * directory[/opt/gitlab/sv/prometheus/env] action create (up to date)
  10150.  
  10151. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
  10152.  
  10153. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
  10154.  
  10155. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
  10156.  
  10157. * directory[/opt/gitlab/sv/prometheus/control] action create (up to date)
  10158.  
  10159. * link[/opt/gitlab/init/prometheus] action create (up to date)
  10160.  
  10161. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
  10162.  
  10163. * directory[/opt/gitlab/service] action create (up to date)
  10164.  
  10165. * link[/opt/gitlab/service/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: link[/opt/gitlab/service/prometheus] created
  10166.  
  10167.  
  10168. - create symlink at /opt/gitlab/service/prometheus to /opt/gitlab/sv/prometheus
  10169.  
  10170. * 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
  10171.  
  10172.  
  10173. - execute the ruby block wait for prometheus service socket
  10174.  
  10175. * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
  10176.  
  10177. [2023-06-12T08:53:24+00:00] INFO: ruby_block[reload_log_service] called
  10178.  
  10179. - execute the ruby block reload_log_service
  10180.  
  10181. [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)
  10182.  
  10183. * ruby_block[restart_log_service] action run
  10184.  
  10185. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  10186.  
  10187. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  10188.  
  10189. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  10190.  
  10191. * directory[/opt/gitlab/sv/prometheus] action create (up to date)
  10192.  
  10193. * template[/opt/gitlab/sv/prometheus/run] action create (up to date)
  10194.  
  10195. * directory[/opt/gitlab/sv/prometheus/log] action create (up to date)
  10196.  
  10197. * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date)
  10198.  
  10199. * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date)
  10200.  
  10201. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
  10202.  
  10203. * link[/var/log/gitlab/prometheus/config] action create (up to date)
  10204.  
  10205. * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date)
  10206.  
  10207. * directory[/opt/gitlab/sv/prometheus/env] action create (up to date)
  10208.  
  10209. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
  10210.  
  10211. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
  10212.  
  10213. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
  10214.  
  10215. * directory[/opt/gitlab/sv/prometheus/control] action create (up to date)
  10216.  
  10217. * link[/opt/gitlab/init/prometheus] action create (up to date)
  10218.  
  10219. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
  10220.  
  10221. * directory[/opt/gitlab/service] action create (up to date)
  10222.  
  10223. * link[/opt/gitlab/service/prometheus] action create (up to date)
  10224.  
  10225. * ruby_block[wait for prometheus service socket] action run (skipped due to not_if)
  10226.  
  10227. * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
  10228.  
  10229. [2023-06-12T08:53:26+00:00] INFO: ruby_block[restart_log_service] called
  10230.  
  10231. - execute the ruby block restart_log_service
  10232.  
  10233. * directory[/opt/gitlab/service] action create (up to date)
  10234.  
  10235. * link[/opt/gitlab/service/prometheus] action create (up to date)
  10236.  
  10237. * ruby_block[wait for prometheus service socket] action run (skipped due to not_if)
  10238.  
  10239. * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
  10240.  
  10241.  
  10242. * consul_service[prometheus] action delete
  10243.  
  10244. * file[/var/opt/gitlab/consul/config.d/prometheus-service.json] action delete (up to date)
  10245.  
  10246. (up to date)
  10247.  
  10248. * execute[/opt/gitlab/bin/gitlab-ctl start prometheus] action run
  10249.  
  10250. [execute] ok: run: prometheus: (pid 2523816) 4s
  10251.  
  10252. [2023-06-12T08:53:26+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start prometheus] ran successfully
  10253.  
  10254. - execute /opt/gitlab/bin/gitlab-ctl start prometheus
  10255.  
  10256. * 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
  10257.  
  10258.  
  10259. - 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
  10260.  
  10261.  
  10262. - update content in file /var/opt/gitlab/prometheus/rules/gitlab.rules from none to a55956
  10263.  
  10264. --- /var/opt/gitlab/prometheus/rules/gitlab.rules 2023-06-12 08:53:26.755416211 +0000
  10265.  
  10266. +++ /var/opt/gitlab/prometheus/rules/.chef-gitlab20230612-2522091-6099nd.rules 2023-06-12 08:53:26.755416211 +0000
  10267.  
  10268. @@ -1,492 +1,984 @@
  10269.  
  10270. +---
  10271.  
  10272. +groups:
  10273.  
  10274. +- name: GitLab
  10275.  
  10276. + rules:
  10277.  
  10278. + - record: instance:puma_utilization:ratio
  10279.  
  10280. + expr: >
  10281.  
  10282. + sum by (instance) (
  10283.  
  10284. + puma_active_connections
  10285.  
  10286. + ) /
  10287.  
  10288. + sum by (instance) (
  10289.  
  10290. + puma_max_threads
  10291.  
  10292. + )
  10293.  
  10294. + - record: job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
  10295.  
  10296. + expr: >
  10297.  
  10298. + sum by (job, route, method, code) (
  10299.  
  10300. + rate(gitlab_workhorse_http_request_duration_seconds_count[5m])
  10301.  
  10302. + )
  10303.  
  10304. +
  10305.  
  10306. + - alert: ServiceDown
  10307.  
  10308. + expr: avg_over_time(up[5m]) * 100 < 50
  10309.  
  10310. + annotations:
  10311.  
  10312. + description: The service {{ $labels.job }} instance {{ $labels.instance }} is
  10313.  
  10314. + not responding for more than 50% of the time for 5 minutes.
  10315.  
  10316. + summary: The service {{ $labels.job }} is not responding
  10317.  
  10318. + - alert: RedisDown
  10319.  
  10320. + expr: avg_over_time(redis_up[5m]) * 100 < 50
  10321.  
  10322. + annotations:
  10323.  
  10324. + description: The Redis service {{ $labels.job }} instance {{ $labels.instance
  10325.  
  10326. + }} is not responding for more than 50% of the time for 5 minutes.
  10327.  
  10328. + summary: The Redis service {{ $labels.job }} is not responding
  10329.  
  10330. + - alert: PostgresDown
  10331.  
  10332. + expr: avg_over_time(pg_up[5m]) * 100 < 50
  10333.  
  10334. + annotations:
  10335.  
  10336. + description: The Postgres service {{ $labels.job }} instance {{ $labels.instance
  10337.  
  10338. + }} is not responding for more than 50% of the time for 5 minutes.
  10339.  
  10340. + summary: The Postgres service {{ $labels.job }} is not responding
  10341.  
  10342. + - alert: PumaQueueing
  10343.  
  10344. + expr: avg_over_time(puma_queued_connections[30m]) > 1
  10345.  
  10346. + annotations:
  10347.  
  10348. + description: Puma instance {{ $labels.instance }} is queueing requests with
  10349.  
  10350. + an average of {{ $value | printf "%.1f" }} over the last 30 minutes.
  10351.  
  10352. + summary: Puma is queueing requests
  10353.  
  10354. + - alert: HighPumaUtilization
  10355.  
  10356. + expr: instance:puma_utilization:ratio * 100 > 90
  10357.  
  10358. + for: 60m
  10359.  
  10360. + annotations:
  10361.  
  10362. + description: Puma instance {{ $labels.instance }} has more than 90% thread utilization ({{ $value | printf "%.1f" }}%) over the last 60 minutes.
  10363.  
  10364. + summary: Puma is has high utilization
  10365.  
  10366. + - alert: SidekiqJobsQueuing
  10367.  
  10368. + expr: sum by (name) (sidekiq_queue_size) > 0
  10369.  
  10370. + for: 60m
  10371.  
  10372. + annotations:
  10373.  
  10374. + summary: Sidekiq has jobs queued
  10375.  
  10376. + description: Sidekiq queue {{ $labels.name }} has {{ $value }} jobs queued for 60 minutes.
  10377.  
  10378. + - alert: HighgRPCResourceExhaustedRate
  10379.  
  10380. + expr: >
  10381.  
  10382. + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (
  10383.  
  10384. + rate(grpc_server_handled_total{grpc_code="ResourceExhausted"}[5m])
  10385.  
  10386. + ) /
  10387.  
  10388. + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (
  10389.  
  10390. + rate(grpc_server_handled_total[5m])
  10391.  
  10392. + ) * 100 > 1
  10393.  
  10394. + for: 60m
  10395.  
  10396. + annotations:
  10397.  
  10398. + summary: High gRPC ResourceExhausted error rate
  10399.  
  10400. + description: Job {{ $labels.job }} instance {{ $labels.instance }} gRPC is returning more than 1% ({{ $value | printf "%.1f" }}%) ResourceExhausted errors over the last 60 minutes.
  10401.  
  10402. + - alert: PostgresDatabaseDeadlocks
  10403.  
  10404. + expr: increase(pg_stat_database_deadlocks[5m]) > 0
  10405.  
  10406. + annotations:
  10407.  
  10408. + summary: Postgres database has deadlocks
  10409.  
  10410. + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} deadlocks in the last 5 minutes.
  10411.  
  10412. + - alert: PostgresDatabaseDeadlockCancels
  10413.  
  10414. + expr: increase(pg_stat_database_deadlocks[5m]) > 0
  10415.  
  10416. + annotations:
  10417.  
  10418. + summary: Postgres database has queries canceled due to deadlocks
  10419.  
  10420. + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} queries canceled due to deadlocks in the last 5 minutes.
  10421.  
  10422. + # Low-traffic - < 10 QPS (600 RPM)
  10423.  
  10424. + - alert: WorkhorseHighErrorRate
  10425.  
  10426. + expr: >
  10427.  
  10428. + (
  10429.  
  10430. + sum without (job, code) (
  10431.  
  10432. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."}
  10433.  
  10434. + ) /
  10435.  
  10436. + sum without (job,code) (
  10437.  
  10438. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
  10439.  
  10440. + ) < 10
  10441.  
  10442. + ) * 100 > 50
  10443.  
  10444. + annotations:
  10445.  
  10446. + summary: Workhorse has high error rates
  10447.  
  10448. + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 50% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.
  10449.  
  10450. + # High-traffic - >= 10 QPS (600 RPM)
  10451.  
  10452. + - alert: WorkhorseHighErrorRate
  10453.  
  10454. + expr: >
  10455.  
  10456. + (
  10457.  
  10458. + sum without (job, code) (
  10459.  
  10460. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."}
  10461.  
  10462. + ) /
  10463.  
  10464. + sum without (job,code) (
  10465.  
  10466. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
  10467.  
  10468. + ) > 10
  10469.  
  10470. + ) * 100 > 10
  10471.  
  10472. + annotations:
  10473.  
  10474. + summary: Workhorse has high error rates
  10475.  
  10476. + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 10% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.
  10477.  
  10478. +
  10479.  
  10480. +###
  10481.  
  10482. +# These metrics are top-level GitLab Service Level Indicators (SLIs). They can
  10483.  
  10484. +# be used to monitor the overall health of a GitLab instance.
  10485.  
  10486. +- name: Service Level Indicators
  10487.  
  10488. + interval: 30s
  10489.  
  10490. + rules:
  10491.  
  10492. + # Service availability.
  10493.  
  10494. + - record: gitlab_sli:job:availability:ratio
  10495.  
  10496. + expr: >
  10497.  
  10498. + avg by (job) (
  10499.  
  10500. + avg_over_time(up[30s])
  10501.  
  10502. + )
  10503.  
  10504. + # Rails worker/thread capacity.
  10505.  
  10506. + - record: gitlab_sli:rails_active_connections:avg30s
  10507.  
  10508. + expr: >
  10509.  
  10510. + sum(avg_over_time(puma_active_connections[30s]))
  10511.  
  10512. + - record: gitlab_sli:rails_queued_connections:avg30s
  10513.  
  10514. + expr: >
  10515.  
  10516. + sum(avg_over_time(puma_queued_connections[30s]))
  10517.  
  10518. + - record: gitlab_sli:rails_active_connections:max30s
  10519.  
  10520. + expr: >
  10521.  
  10522. + sum(max_over_time(puma_active_connections[30s]))
  10523.  
  10524. + - record: gitlab_sli:rails_queued_connections:max30s
  10525.  
  10526. + expr: >
  10527.  
  10528. + sum(max_over_time(puma_queued_connections[30s]))
  10529.  
  10530. + - record: gitlab_sli:rails_workers:avg30s
  10531.  
  10532. + expr: >
  10533.  
  10534. + count(avg_over_time(ruby_memory_bytes[30s])) or
  10535.  
  10536. + sum(avg_over_time(puma_max_threads[30s]))
  10537.  
  10538. + # Redis CPU use.
  10539.  
  10540. + - record: gitlab_sli:redis_cpu_seconds:rate1m
  10541.  
  10542. + expr: >
  10543.  
  10544. + (sum(rate(redis_used_cpu_sys[1m])) + sum(rate(redis_used_cpu_user[1m]))) or
  10545.  
  10546. + (sum(rate(redis_cpu_sys_seconds_total[1m])) + sum(rate(redis_cpu_user_seconds_total[1m])))
  10547.  
  10548. + # Workhorse traffic.
  10549.  
  10550. + - record: gitlab_sli:code_method_route:workhorse_http_request_count:rate1m
  10551.  
  10552. + expr: >
  10553.  
  10554. + sum by (code,method,route) (
  10555.  
  10556. + rate(gitlab_workhorse_http_request_duration_seconds_count[1m])
  10557.  
  10558. + )
  10559.  
  10560. + - record: gitlab_sli:code_method_route:workhorse_http_request_duration_seconds:rate1m
  10561.  
  10562. + expr: >
  10563.  
  10564. + sum by (code,method,route) (
  10565.  
  10566. + rate(gitlab_workhorse_http_request_duration_seconds_sum[1m])
  10567.  
  10568. + )
  10569.  
  10570. +# SLI - Apdex
  10571.  
  10572. +- name: Service Level Indicators - Apdex
  10573.  
  10574. + interval: 1m
  10575.  
  10576. + rules:
  10577.  
  10578. + # Gitaly goserver
  10579.  
  10580. + # Satisfied -> 0.5 seconds
  10581.  
  10582. + # Acceptable -> 1 seconds
  10583.  
  10584. + - record: gitlab_sli:gitlab_component_apdex:ratio
  10585.  
  10586. + labels:
  10587.  
  10588. + job: gitaly
  10589.  
  10590. + expr: >
  10591.  
  10592. + (
  10593.  
  10594. + 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]))
  10595.  
  10596. + +
  10597.  
  10598. + 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]))
  10599.  
  10600. + )
  10601.  
  10602. + /
  10603.  
  10604. + 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]))
  10605.  
  10606. + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752
  10607.  
  10608. + # - record: gitlab_sli:gitlab_component_apdex:ratio
  10609.  
  10610. + # labels:
  10611.  
  10612. + # job: gitlab-sidekiq
  10613.  
  10614. + # expr: >
  10615.  
  10616. + # (
  10617.  
  10618. + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="25"}[1m]))
  10619.  
  10620. + # +
  10621.  
  10622. + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="50"}[1m]))
  10623.  
  10624. + # )
  10625.  
  10626. + # / 2
  10627.  
  10628. + # /
  10629.  
  10630. + # sum(rate(sidekiq_jobs_completion_time_seconds_count[1m]))
  10631.  
  10632. +
  10633.  
  10634. + # Workhorse
  10635.  
  10636. + # Satisfied -> 1 seconds
  10637.  
  10638. + # Acceptable -> 10 seconds
  10639.  
  10640. + - record: gitlab_sli:gitlab_component_apdex:ratio
  10641.  
  10642. + labels:
  10643.  
  10644. + job: gitlab-workhorse
  10645.  
  10646. + expr: >
  10647.  
  10648. + (
  10649.  
  10650. + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="1",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
  10651.  
  10652. + +
  10653.  
  10654. + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="10",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
  10655.  
  10656. + )
  10657.  
  10658. + /
  10659.  
  10660. + 2 / sum(rate(gitlab_workhorse_http_request_duration_seconds_count{route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
  10661.  
  10662. +
  10663.  
  10664. +# SLI - Errors
  10665.  
  10666. +- name: Service Level Indicators - Errors
  10667.  
  10668. + interval: 1m
  10669.  
  10670. + rules:
  10671.  
  10672. + # PostgreSQL
  10673.  
  10674. + - record: gitlab_sli:gitlab_component_ops:rate
  10675.  
  10676. + labels:
  10677.  
  10678. + job: postgres
  10679.  
  10680. + expr: >
  10681.  
  10682. + sum(rate(pg_stat_database_xact_commit[1m])) +
  10683.  
  10684. + sum(rate(pg_stat_database_xact_rollback[1m]))
  10685.  
  10686. + - record: gitlab_sli:gitlab_component_errors:rate
  10687.  
  10688. + labels:
  10689.  
  10690. + job: postgres
  10691.  
  10692. + expr: sum(rate(pg_stat_database_xact_rollback[1m]))
  10693.  
  10694. + # Rails (Puma)
  10695.  
  10696. + - record: gitlab_sli:gitlab_component_ops:rate
  10697.  
  10698. + labels:
  10699.  
  10700. + job: gitlab-rails
  10701.  
  10702. + expr: >
  10703.  
  10704. + sum(
  10705.  
  10706. + rate(http_request_duration_seconds_count{job="gitlab-rails"}[1m])
  10707.  
  10708. + )
  10709.  
  10710. + - record: gitlab_sli:gitlab_component_errors:rate
  10711.  
  10712. + labels:
  10713.  
  10714. + job: gitlab-rails
  10715.  
  10716. + expr: >
  10717.  
  10718. + sum(
  10719.  
  10720. + rate(http_request_duration_seconds_count{job="gitlab-rails",status=~"5.."}[1m])
  10721.  
  10722. + )
  10723.  
  10724. + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752
  10725.  
  10726. + # - record: gitlab_sli:gitlab_component_ops:rate
  10727.  
  10728. + # labels:
  10729.  
  10730. + # job: gitlab-sidekiq
  10731.  
  10732. + # expr: >
  10733.  
  10734. + # sum (
  10735.  
  10736. + # rate(sidekiq_jobs_started_total{job="gitlab-sidekiq"}[1m])
  10737.  
  10738. + # )
  10739.  
  10740. + # - record: gitlab_sli:gitlab_component_errors:rate
  10741.  
  10742. + # labels:
  10743.  
  10744. + # job: gitlab-sidekiq
  10745.  
  10746. + # expr: >
  10747.  
  10748. + # sum (
  10749.  
  10750. + # rate(sidekiq_jobs_failed_total{job="gitlab-sidekiq"}[1m])
  10751.  
  10752. + # )
  10753.  
  10754. + # Workhorse
  10755.  
  10756. + - record: gitlab_sli:gitlab_component_ops:rate
  10757.  
  10758. + labels:
  10759.  
  10760. + job: gitlab-workhorse
  10761.  
  10762. + expr: >
  10763.  
  10764. + sum(
  10765.  
  10766. + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse"}[1m])
  10767.  
  10768. + )
  10769.  
  10770. + - record: gitlab_sli:gitlab_component_errors:rate
  10771.  
  10772. + labels:
  10773.  
  10774. + job: gitlab-workhorse
  10775.  
  10776. + expr: >
  10777.  
  10778. + sum(
  10779.  
  10780. + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse",code=~"5.."}[1m])
  10781.  
  10782. + )
  10783.  
  10784. + ###
  10785.  
  10786. + # Calculate service error ratios
  10787.  
  10788. + - record: gitlab_sli:gitlab_component_errors:ratio
  10789.  
  10790. + expr: >
  10791.  
  10792. + gitlab_sli:gitlab_component_errors:rate /
  10793.  
  10794. + gitlab_sli:gitlab_component_ops:rate
  10795.  
  10796. +
  10797.  
  10798. +- name: GitLab Saturation Ratios
  10799.  
  10800. + interval: 1m
  10801.  
  10802. + rules:
  10803.  
  10804. + # type: *, component: cpu
  10805.  
  10806. + # this measures average CPU across all the cores for the entire fleet for the given service
  10807.  
  10808. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10809.  
  10810. + labels:
  10811.  
  10812. + component: 'cpu'
  10813.  
  10814. + expr: >
  10815.  
  10816. + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))
  10817.  
  10818. +
  10819.  
  10820. + # type: *, component: single_node_cpu
  10821.  
  10822. + # this measures the maximum cpu availability across all the codes on a single server
  10823.  
  10824. + # this can be helpful if CPU is not even distributed across the fleet.
  10825.  
  10826. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10827.  
  10828. + labels:
  10829.  
  10830. + component: 'single_node_cpu'
  10831.  
  10832. + expr: >
  10833.  
  10834. + max(
  10835.  
  10836. + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))
  10837.  
  10838. + )
  10839.  
  10840. +
  10841.  
  10842. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10843.  
  10844. + labels:
  10845.  
  10846. + component: 'disk_space'
  10847.  
  10848. + expr: >
  10849.  
  10850. + max(
  10851.  
  10852. + (
  10853.  
  10854. + (
  10855.  
  10856. + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"}
  10857.  
  10858. + -
  10859.  
  10860. + node_filesystem_free_bytes{fstype=~"ext.|xfs|nfs.?"}
  10861.  
  10862. + )
  10863.  
  10864. + /
  10865.  
  10866. + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"}
  10867.  
  10868. + )
  10869.  
  10870. + )
  10871.  
  10872. +
  10873.  
  10874. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10875.  
  10876. + labels:
  10877.  
  10878. + component: 'memory'
  10879.  
  10880. + expr: max (instance:node_memory_utilization:ratio)
  10881.  
  10882. +
  10883.  
  10884. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10885.  
  10886. + labels:
  10887.  
  10888. + component: 'single_threaded_cpu'
  10889.  
  10890. + expr: >
  10891.  
  10892. + clamp_max(
  10893.  
  10894. + max (
  10895.  
  10896. + (rate(redis_cpu_user_seconds_total[1m]) + rate(redis_cpu_sys_seconds_total[1m])) or
  10897.  
  10898. + (rate(redis_used_cpu_user[1m]) + rate(redis_used_cpu_sys[1m]))
  10899.  
  10900. + ),
  10901.  
  10902. + 1
  10903.  
  10904. + )
  10905.  
  10906. +
  10907.  
  10908. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10909.  
  10910. + labels:
  10911.  
  10912. + component: 'connection_pool'
  10913.  
  10914. + expr: >
  10915.  
  10916. + clamp_max(
  10917.  
  10918. + max(
  10919.  
  10920. + max_over_time(pgbouncer_pools_server_active_connections{user="gitlab"}[1m]) /
  10921.  
  10922. + (
  10923.  
  10924. + (
  10925.  
  10926. + pgbouncer_pools_server_idle_connections{user="gitlab"} +
  10927.  
  10928. + pgbouncer_pools_server_active_connections{user="gitlab"} +
  10929.  
  10930. + pgbouncer_pools_server_testing_connections{user="gitlab"} +
  10931.  
  10932. + pgbouncer_pools_server_used_connections{user="gitlab"} +
  10933.  
  10934. + pgbouncer_pools_server_login_connections{user="gitlab"}
  10935.  
  10936. + )
  10937.  
  10938. + > 0
  10939.  
  10940. + )
  10941.  
  10942. + ), 1)
  10943.  
  10944. +
  10945.  
  10946. + # type: postgres-delayed, postgres-archive, patroni
  10947.  
  10948. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10949.  
  10950. + labels:
  10951.  
  10952. + component: 'active_db_connections'
  10953.  
  10954. + expr: >
  10955.  
  10956. + clamp_max(
  10957.  
  10958. + max(
  10959.  
  10960. + sum without(state) (pg_stat_activity_count{datname="gitlabhq_production", state!="idle"})
  10961.  
  10962. + /
  10963.  
  10964. + (sum without(state) (pg_stat_activity_count{datname="gitlabhq_production"}) > 0)
  10965.  
  10966. + ), 1)
  10967.  
  10968. +
  10969.  
  10970. + # type: redis, redis-cache, component: redis_clients
  10971.  
  10972. + # Records the saturation of redis client connections against a redis fleet
  10973.  
  10974. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10975.  
  10976. + labels:
  10977.  
  10978. + component: 'redis_clients'
  10979.  
  10980. + expr: >
  10981.  
  10982. + max(
  10983.  
  10984. + max_over_time(redis_connected_clients[1m])
  10985.  
  10986. + /
  10987.  
  10988. + redis_config_maxclients
  10989.  
  10990. + )
  10991.  
  10992. +
  10993.  
  10994. + # Aggregate over all components within a service using max
  10995.  
  10996. + - record: gitlab_sli:gitlab_service_saturation:ratio
  10997.  
  10998. + expr: >
  10999.  
  11000. + max by (component) (gitlab_sli:gitlab_component_saturation:ratio)
  11001.  
  11002. +
  11003.  
  11004. + # Calculate the "sapdex" - the saturation apdex for the metric. 1 < less then soft limit, 0.5 < hard limit, else 0
  11005.  
  11006. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex
  11007.  
  11008. + expr: >
  11009.  
  11010. + clamp_min(gitlab_sli:gitlab_component_saturation:ratio <= on(component) group_left slo:max:soft:gitlab_sli:gitlab_component_saturation:ratio, 1)
  11011.  
  11012. + or
  11013.  
  11014. + 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)
  11015.  
  11016. + or
  11017.  
  11018. + clamp_max(gitlab_sli:gitlab_component_saturation:ratio > on(component) group_left slo:max:hard:gitlab_sli:gitlab_component_saturation:ratio, 0)
  11019.  
  11020. +
  11021.  
  11022. + # Open file descriptors
  11023.  
  11024. + - record: gitlab_sli:gitlab_component_saturation:ratio
  11025.  
  11026. + labels:
  11027.  
  11028. + component: 'open_fds'
  11029.  
  11030. + expr: >
  11031.  
  11032. + max(
  11033.  
  11034. + max_over_time(process_open_fds[1m])
  11035.  
  11036. + /
  11037.  
  11038. + max_over_time(process_max_fds[1m])
  11039.  
  11040. + )
  11041.  
  11042. + - record: gitlab_sli:gitlab_component_saturation:ratio
  11043.  
  11044. + labels:
  11045.  
  11046. + component: 'open_ruby_fds'
  11047.  
  11048. + expr: >
  11049.  
  11050. + max(
  11051.  
  11052. + max_over_time(ruby_file_descriptors[1m])
  11053.  
  11054. + /
  11055.  
  11056. + max_over_time(ruby_process_max_fds[1m])
  11057.  
  11058. + )
  11059.  
  11060. +
  11061.  
  11062. +# Unlike other service metrics, we record the stats for each component independently
  11063.  
  11064. +- name: GitLab Saturation Ratios Stats
  11065.  
  11066. + interval: 5m
  11067.  
  11068. + rules:
  11069.  
  11070. + # Average values for each service, over a week
  11071.  
  11072. + - record: gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w
  11073.  
  11074. + expr: >
  11075.  
  11076. + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio[1w])
  11077.  
  11078. +
  11079.  
  11080. + # Using linear week-on-week growth, what prediction to we have for 2w from now?
  11081.  
  11082. + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_2w
  11083.  
  11084. + expr: >
  11085.  
  11086. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 14)
  11087.  
  11088. +
  11089.  
  11090. + # Using linear week-on-week growth, what prediction to we have for 30d from now?
  11091.  
  11092. + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_30d
  11093.  
  11094. + expr: >
  11095.  
  11096. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 30)
  11097.  
  11098. +
  11099.  
  11100. + # Sapdex, average for week
  11101.  
  11102. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w
  11103.  
  11104. + expr: >
  11105.  
  11106. + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio:sapdex[1w])
  11107.  
  11108. +
  11109.  
  11110. + # Sapdex long term trend forecasting
  11111.  
  11112. + # Using linear week-on-week growth, what prediction to we have for 30d from now?
  11113.  
  11114. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w:predict_linear_30d
  11115.  
  11116. + expr: >
  11117.  
  11118. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w[1w], 86400 * 30)
  11119.  
  11120. +
  11121.  
  11122. +###
  11123.  
  11124. +# Metrics used by Usage Ping reports. These are primarily for self-managed installations.
  11125.  
  11126. +# See https://docs.gitlab.com/ee/development/telemetry/usage_ping.html#prometheus-queries
  11127.  
  11128. +#
  11129.  
  11130. +- name: GitLab Usage Ping
  11131.  
  11132. + interval: 5m
  11133.  
  11134. + rules:
  11135.  
  11136. + ###
  11137.  
  11138. + # Application wide metrics
  11139.  
  11140. + #
  11141.  
  11142. + - record: gitlab_usage_ping:ops:rate5m
  11143.  
  11144. + labels:
  11145.  
  11146. + service: workhorse
  11147.  
  11148. + component: http_requests
  11149.  
  11150. + expr: sum (rate (gitlab_workhorse_http_requests_total[5m]))
  11151.  
  11152. +
  11153.  
  11154. + # Database Primary Performance Indicator: Query apdex
  11155.  
  11156. + # Target -> 100ms
  11157.  
  11158. + # Tolerable -> 250ms
  11159.  
  11160. + - record: gitlab_usage_ping:sql_duration_apdex:ratio_rate5m
  11161.  
  11162. + expr: >
  11163.  
  11164. + (
  11165.  
  11166. + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.1"}[5m]))
  11167.  
  11168. + +
  11169.  
  11170. + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.25"}[5m]))
  11171.  
  11172. + )
  11173.  
  11174. + /
  11175.  
  11176. + 2
  11177.  
  11178. + /
  11179.  
  11180. + (
  11181.  
  11182. + sum(rate(gitlab_sql_duration_seconds_count[5m])) > 0
  11183.  
  11184. + )
  11185.  
  11186. +
  11187.  
  11188. + - record: gitlab_usage_ping:gitaly_apdex:ratio_avg_over_time_5m
  11189.  
  11190. + expr: avg_over_time(gitlab_sli:gitlab_component_apdex:ratio{job="gitaly"}[5m])
  11191.  
  11192. +
  11193.  
  11194. + ###
  11195.  
  11196. + # Node level metrics
  11197.  
  11198. + #
  11199.  
  11200. + - record: gitlab_usage_ping:node_cpus:count
  11201.  
  11202. + expr: max (instance:node_cpus:count) by (instance)
  11203.  
  11204. + - record: gitlab_usage_ping:node_memory_total_bytes:max
  11205.  
  11206. + expr: max (node_memory_MemTotal_bytes) by (instance)
  11207.  
  11208. + - record: gitlab_usage_ping:node_cpu_utilization:avg
  11209.  
  11210. + expr: avg (instance:node_cpu_utilization:ratio) by (instance)
  11211.  
  11212. + - record: gitlab_usage_ping:node_memory_utilization:avg
  11213.  
  11214. + expr: avg (instance:node_memory_utilization:ratio) by (instance)
  11215.  
  11216. +
  11217.  
  11218. + ###
  11219.  
  11220. + # Service level metrics
  11221.  
  11222. + #
  11223.  
  11224. + - record: gitlab_usage_ping:node_service_process_resident_memory_bytes:avg
  11225.  
  11226. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_resident_memory_bytes", job != "gitlab_exporter_process"})
  11227.  
  11228. + - record: gitlab_usage_ping:node_service_process_unique_memory_bytes:avg
  11229.  
  11230. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_unique_memory_bytes", job != "gitlab_exporter_process"})
  11231.  
  11232. + - record: gitlab_usage_ping:node_service_process_proportional_memory_bytes:avg
  11233.  
  11234. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_proportional_memory_bytes", job != "gitlab_exporter_process"})
  11235.  
  11236. + - record: gitlab_usage_ping:node_service_process:count
  11237.  
  11238. + expr: >
  11239.  
  11240. + count by (instance, job) (
  11241.  
  11242. + {__name__ =~ "(ruby_){0,1}process_start_time_seconds", job != "gitlab_exporter_process"}
  11243.  
  11244. + )
  11245.  
  11246. + - record: gitlab_usage_ping:node_service_app_server_workers:sum
  11247.  
  11248. + labels:
  11249.  
  11250. + server: puma
  11251.  
  11252. + 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
  11253.  
  11254. [2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/gitlab.rules] mode changed to 644
  11255.  
  11256.  
  11257. - change mode from '' to '0644'
  11258.  
  11259. - change owner from '' to 'gitlab-prometheus'
  11260.  
  11261. [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
  11262.  
  11263. * 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
  11264.  
  11265.  
  11266. - 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
  11267.  
  11268.  
  11269. - update content in file /var/opt/gitlab/prometheus/rules/node.rules from none to bea78d
  11270.  
  11271. --- /var/opt/gitlab/prometheus/rules/node.rules 2023-06-12 08:53:26.779416143 +0000
  11272.  
  11273. +++ /var/opt/gitlab/prometheus/rules/.chef-node20230612-2522091-psouut.rules 2023-06-12 08:53:26.779416143 +0000
  11274.  
  11275. @@ -1,42 +1,84 @@
  11276.  
  11277. +groups:
  11278.  
  11279. +- name: Node
  11280.  
  11281. + rules:
  11282.  
  11283. + - record: instance:node_cpus:count
  11284.  
  11285. + expr: count without(cpu, mode) (node_cpu{mode="idle"})
  11286.  
  11287. + - record: instance:node_cpus:count
  11288.  
  11289. + expr: count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})
  11290.  
  11291. + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m
  11292.  
  11293. + expr: sum without(mode) (rate(node_cpu{mode!="idle"}[5m]))
  11294.  
  11295. + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m
  11296.  
  11297. + expr: sum without(mode) (rate(node_cpu_seconds_total{mode!="idle"}[5m]))
  11298.  
  11299. + - record: instance_mode:node_cpu_seconds:rate5m
  11300.  
  11301. + expr: sum without(cpu) (rate(node_cpu[5m]))
  11302.  
  11303. + - record: instance_mode:node_cpu_seconds:rate5m
  11304.  
  11305. + expr: sum without(cpu) (rate(node_cpu_seconds_total[5m]))
  11306.  
  11307. + - record: instance:node_cpu_utilization:ratio
  11308.  
  11309. + expr: sum without(mode) (instance_mode:node_cpu_seconds:rate5m{mode!="idle"})
  11310.  
  11311. + / instance:node_cpus:count
  11312.  
  11313. + - record: instance:node_memory_utilization:ratio
  11314.  
  11315. + expr: >
  11316.  
  11317. + 1 - (
  11318.  
  11319. + node_memory_MemAvailable_bytes or
  11320.  
  11321. + (node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes)
  11322.  
  11323. + ) / node_memory_MemTotal_bytes
  11324.  
  11325. + - record: instance:node_filesystem_avail:ratio
  11326.  
  11327. + expr: node_filesystem_avail_bytes / (node_filesystem_size_bytes > 0)
  11328.  
  11329. + - alert: FilesystemAlmostFull
  11330.  
  11331. + expr: instance:node_filesystem_avail:ratio * 100 < 5 and node_filesystem_avail_bytes < 10 * 1024 * 1024 * 1024
  11332.  
  11333. + for: 10m
  11334.  
  11335. + annotations:
  11336.  
  11337. + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on
  11338.  
  11339. + {{ $labels.instance }} has {{ $value | printf "%.2f" }}% space available.
  11340.  
  11341. + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} is almost
  11342.  
  11343. + full
  11344.  
  11345. + - alert: FilesystemFullIn1Day
  11346.  
  11347. + expr: predict_linear(node_filesystem_avail_bytes[6h], 24 * 3600) < 0
  11348.  
  11349. + for: 30m
  11350.  
  11351. + annotations:
  11352.  
  11353. + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on
  11354.  
  11355. + {{ $labels.instance }} will be full in the next 24 hours.
  11356.  
  11357. + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} will be
  11358.  
  11359. + full within 24 hours[2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] owner changed to 994
  11360.  
  11361. [2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] mode changed to 644
  11362.  
  11363.  
  11364. - change mode from '' to '0644'
  11365.  
  11366. - change owner from '' to 'gitlab-prometheus'
  11367.  
  11368. [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
  11369.  
  11370. Recipe: monitoring::alertmanager
  11371.  
  11372. * 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
  11373.  
  11374.  
  11375. - create new directory /var/opt/gitlab/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/var/opt/gitlab/alertmanager] owner changed to 994
  11376.  
  11377. [2023-06-12T08:53:26+00:00] INFO: directory[/var/opt/gitlab/alertmanager] mode changed to 750
  11378.  
  11379.  
  11380. - change mode from '' to '0750'
  11381.  
  11382. - change owner from '' to 'gitlab-prometheus'
  11383.  
  11384. * 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
  11385.  
  11386.  
  11387. - create new directory /var/log/gitlab/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/var/log/gitlab/alertmanager] owner changed to 994
  11388.  
  11389. [2023-06-12T08:53:26+00:00] INFO: directory[/var/log/gitlab/alertmanager] mode changed to 700
  11390.  
  11391.  
  11392. - change mode from '' to '0700'
  11393.  
  11394. - change owner from '' to 'gitlab-prometheus'
  11395.  
  11396. * 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
  11397.  
  11398.  
  11399. - 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
  11400.  
  11401. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/etc/alertmanager/env] mode changed to 700
  11402.  
  11403.  
  11404. - change mode from '' to '0700'
  11405.  
  11406. - change owner from '' to 'gitlab-prometheus'
  11407.  
  11408. * env_dir[/opt/gitlab/etc/alertmanager/env] action create
  11409.  
  11410. * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date)
  11411.  
  11412. * 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
  11413.  
  11414.  
  11415. - 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
  11416.  
  11417.  
  11418. - update content in file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR from none to 4f45cf
  11419.  
  11420. - suppressed sensitive resource
  11421.  
  11422.  
  11423. * file[Alertmanager config] action create[2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] created file /var/opt/gitlab/alertmanager/alertmanager.yml
  11424.  
  11425.  
  11426. - 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
  11427.  
  11428.  
  11429. - update content in file /var/opt/gitlab/alertmanager/alertmanager.yml from none to 21b7be
  11430.  
  11431. --- /var/opt/gitlab/alertmanager/alertmanager.yml 2023-06-12 08:53:26.819416030 +0000
  11432.  
  11433. +++ /var/opt/gitlab/alertmanager/.chef-alertmanager20230612-2522091-a35mr3.yml 2023-06-12 08:53:26.819416030 +0000
  11434.  
  11435. @@ -1,9 +1,18 @@
  11436.  
  11437. +---
  11438.  
  11439. +global: {}
  11440.  
  11441. +templates: []
  11442.  
  11443. +route:
  11444.  
  11445. + receiver: default-receiver
  11446.  
  11447. + routes: []
  11448.  
  11449. +receivers:
  11450.  
  11451. +- name: default-receiver
  11452.  
  11453. +inhibit_rules: [][2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] owner changed to 994
  11454.  
  11455. [2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] mode changed to 644
  11456.  
  11457.  
  11458. - change mode from '' to '0644'
  11459.  
  11460. - change owner from '' to 'gitlab-prometheus'
  11461.  
  11462. [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
  11463.  
  11464. * service[alertmanager] action nothing (skipped due to action :nothing)
  11465.  
  11466. * runit_service[alertmanager] action enable
  11467.  
  11468. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  11469.  
  11470. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  11471.  
  11472. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  11473.  
  11474. * 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
  11475.  
  11476.  
  11477. - create new directory /opt/gitlab/sv/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] owner changed to 0
  11478.  
  11479. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] group changed to 0
  11480.  
  11481. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] mode changed to 755
  11482.  
  11483.  
  11484. - change mode from '' to '0755'
  11485.  
  11486. - change owner from '' to 'root'
  11487.  
  11488. - change group from '' to 'root'
  11489.  
  11490. * 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
  11491.  
  11492.  
  11493. - 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
  11494.  
  11495.  
  11496. - update content in file /opt/gitlab/sv/alertmanager/run from none to 36da8b
  11497.  
  11498. --- /opt/gitlab/sv/alertmanager/run 2023-06-12 08:53:26.839415975 +0000
  11499.  
  11500. +++ /opt/gitlab/sv/alertmanager/.chef-run20230612-2522091-7vcrs5 2023-06-12 08:53:26.839415975 +0000
  11501.  
  11502. @@ -1,8 +1,16 @@
  11503.  
  11504. +#!/bin/sh
  11505.  
  11506. +exec 2>&1
  11507.  
  11508. +
  11509.  
  11510. +umask 077
  11511.  
  11512. +exec chpst -P -e /opt/gitlab/etc/alertmanager/env \
  11513.  
  11514. + -U gitlab-prometheus:gitlab-prometheus \
  11515.  
  11516. + -u gitlab-prometheus:gitlab-prometheus \
  11517.  
  11518. + /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
  11519.  
  11520. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] group changed to 0
  11521.  
  11522. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] mode changed to 755
  11523.  
  11524.  
  11525. - change mode from '' to '0755'
  11526.  
  11527. - change owner from '' to 'root'
  11528.  
  11529. - change group from '' to 'root'
  11530.  
  11531. * 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
  11532.  
  11533.  
  11534. - 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
  11535.  
  11536. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log] group changed to 0
  11537.  
  11538. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log] mode changed to 755
  11539.  
  11540.  
  11541. - change mode from '' to '0755'
  11542.  
  11543. - change owner from '' to 'root'
  11544.  
  11545. - change group from '' to 'root'
  11546.  
  11547. * 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
  11548.  
  11549.  
  11550. - 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
  11551.  
  11552. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log/main] group changed to 0
  11553.  
  11554. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log/main] mode changed to 755
  11555.  
  11556.  
  11557. - change mode from '' to '0755'
  11558.  
  11559. - change owner from '' to 'root'
  11560.  
  11561. - change group from '' to 'root'
  11562.  
  11563. * 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
  11564.  
  11565.  
  11566. - 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
  11567.  
  11568.  
  11569. - update content in file /opt/gitlab/sv/alertmanager/log/config from none to 623c00
  11570.  
  11571. --- /opt/gitlab/sv/alertmanager/log/config 2023-06-12 08:53:26.859415918 +0000
  11572.  
  11573. +++ /opt/gitlab/sv/alertmanager/log/.chef-config20230612-2522091-f378o2 2023-06-12 08:53:26.859415918 +0000
  11574.  
  11575. @@ -1,6 +1,12 @@
  11576.  
  11577. +s209715200
  11578.  
  11579. +n30
  11580.  
  11581. +t86400
  11582.  
  11583. +!gzip
  11584.  
  11585. +
  11586.  
  11587. +[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] owner changed to 0
  11588.  
  11589. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] group changed to 0
  11590.  
  11591. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] mode changed to 644
  11592.  
  11593.  
  11594. - change mode from '' to '0644'
  11595.  
  11596. - change owner from '' to 'root'
  11597.  
  11598. - change group from '' to 'root'
  11599.  
  11600. [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)
  11601.  
  11602. * 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
  11603.  
  11604.  
  11605. - execute the ruby block verify_chown_persisted_on_alertmanager
  11606.  
  11607. * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
  11608.  
  11609. * link[/var/log/gitlab/alertmanager/config] action create[2023-06-12T08:53:26+00:00] INFO: link[/var/log/gitlab/alertmanager/config] created
  11610.  
  11611.  
  11612. - create symlink at /var/log/gitlab/alertmanager/config to /opt/gitlab/sv/alertmanager/log/config
  11613.  
  11614. * 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
  11615.  
  11616.  
  11617. - 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
  11618.  
  11619.  
  11620. - update content in file /opt/gitlab/sv/alertmanager/log/run from none to 9a4626
  11621.  
  11622. --- /opt/gitlab/sv/alertmanager/log/run 2023-06-12 08:53:26.871415884 +0000
  11623.  
  11624. +++ /opt/gitlab/sv/alertmanager/log/.chef-run20230612-2522091-k1zlvz 2023-06-12 08:53:26.871415884 +0000
  11625.  
  11626. @@ -1,5 +1,10 @@
  11627.  
  11628. +#!/bin/sh
  11629.  
  11630. +exec chpst -P \
  11631.  
  11632. + -U root:root \
  11633.  
  11634. + -u root:root \
  11635.  
  11636. + 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
  11637.  
  11638. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] group changed to 0
  11639.  
  11640. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] mode changed to 755
  11641.  
  11642.  
  11643. - change mode from '' to '0755'
  11644.  
  11645. - change owner from '' to 'root'
  11646.  
  11647. - change group from '' to 'root'
  11648.  
  11649. * 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
  11650.  
  11651.  
  11652. - 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
  11653.  
  11654. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/env] group changed to 0
  11655.  
  11656. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/env] mode changed to 755
  11657.  
  11658.  
  11659. - change mode from '' to '0755'
  11660.  
  11661. - change owner from '' to 'root'
  11662.  
  11663. - change group from '' to 'root'
  11664.  
  11665. * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
  11666.  
  11667. * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
  11668.  
  11669. * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
  11670.  
  11671. * 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
  11672.  
  11673.  
  11674. - 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
  11675.  
  11676. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/control] group changed to 0
  11677.  
  11678. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/control] mode changed to 755
  11679.  
  11680.  
  11681. - change mode from '' to '0755'
  11682.  
  11683. - change owner from '' to 'root'
  11684.  
  11685. - change group from '' to 'root'
  11686.  
  11687. * link[/opt/gitlab/init/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: link[/opt/gitlab/init/alertmanager] created
  11688.  
  11689.  
  11690. - create symlink at /opt/gitlab/init/alertmanager to /opt/gitlab/embedded/bin/sv
  11691.  
  11692. * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
  11693.  
  11694. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] sending run action to ruby_block[restart_service] (delayed)
  11695.  
  11696. * ruby_block[restart_service] action run (skipped due to only_if)
  11697.  
  11698. [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)
  11699.  
  11700. * ruby_block[reload_log_service] action create
  11701.  
  11702. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  11703.  
  11704. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  11705.  
  11706. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  11707.  
  11708. * directory[/opt/gitlab/sv/alertmanager] action create (up to date)
  11709.  
  11710. * template[/opt/gitlab/sv/alertmanager/run] action create (up to date)
  11711.  
  11712. * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date)
  11713.  
  11714. * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date)
  11715.  
  11716. * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date)
  11717.  
  11718. * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
  11719.  
  11720. * link[/var/log/gitlab/alertmanager/config] action create (up to date)
  11721.  
  11722. * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date)
  11723.  
  11724. * directory[/opt/gitlab/sv/alertmanager/env] action create (up to date)
  11725.  
  11726. * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
  11727.  
  11728. * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
  11729.  
  11730. * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
  11731.  
  11732. * directory[/opt/gitlab/sv/alertmanager/control] action create (up to date)
  11733.  
  11734. * link[/opt/gitlab/init/alertmanager] action create (up to date)
  11735.  
  11736. * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
  11737.  
  11738. * directory[/opt/gitlab/service] action create (up to date)
  11739.  
  11740. * link[/opt/gitlab/service/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: link[/opt/gitlab/service/alertmanager] created
  11741.  
  11742.  
  11743. - create symlink at /opt/gitlab/service/alertmanager to /opt/gitlab/sv/alertmanager
  11744.  
  11745. * 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
  11746.  
  11747.  
  11748. - execute the ruby block wait for alertmanager service socket
  11749.  
  11750. * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
  11751.  
  11752. [2023-06-12T08:53:28+00:00] INFO: ruby_block[reload_log_service] called
  11753.  
  11754. - execute the ruby block reload_log_service
  11755.  
  11756. [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)
  11757.  
  11758. * ruby_block[restart_log_service] action run
  11759.  
  11760. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  11761.  
  11762. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  11763.  
  11764. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  11765.  
  11766. * directory[/opt/gitlab/sv/alertmanager] action create (up to date)
  11767.  
  11768. * template[/opt/gitlab/sv/alertmanager/run] action create (up to date)
  11769.  
  11770. * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date)
  11771.  
  11772. * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date)
  11773.  
  11774. * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date)
  11775.  
  11776. * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
  11777.  
  11778. * link[/var/log/gitlab/alertmanager/config] action create (up to date)
  11779.  
  11780. * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date)
  11781.  
  11782. * directory[/opt/gitlab/sv/alertmanager/env] action create (up to date)
  11783.  
  11784. * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
  11785.  
  11786. * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
  11787.  
  11788. * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
  11789.  
  11790. * directory[/opt/gitlab/sv/alertmanager/control] action create (up to date)
  11791.  
  11792. * link[/opt/gitlab/init/alertmanager] action create (up to date)
  11793.  
  11794. * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
  11795.  
  11796. * directory[/opt/gitlab/service] action create (up to date)
  11797.  
  11798. * link[/opt/gitlab/service/alertmanager] action create (up to date)
  11799.  
  11800. * ruby_block[wait for alertmanager service socket] action run (skipped due to not_if)
  11801.  
  11802. * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
  11803.  
  11804. [2023-06-12T08:53:30+00:00] INFO: ruby_block[restart_log_service] called
  11805.  
  11806. - execute the ruby block restart_log_service
  11807.  
  11808. * directory[/opt/gitlab/service] action create (up to date)
  11809.  
  11810. * link[/opt/gitlab/service/alertmanager] action create (up to date)
  11811.  
  11812. * ruby_block[wait for alertmanager service socket] action run (skipped due to not_if)
  11813.  
  11814. * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
  11815.  
  11816.  
  11817. * execute[/opt/gitlab/bin/gitlab-ctl start alertmanager] action run
  11818.  
  11819. [execute] ok: run: alertmanager: (pid 2523928) 3s
  11820.  
  11821. [2023-06-12T08:53:31+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start alertmanager] ran successfully
  11822.  
  11823. - execute /opt/gitlab/bin/gitlab-ctl start alertmanager
  11824.  
  11825. Recipe: monitoring::postgres-exporter
  11826.  
  11827. * 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
  11828.  
  11829.  
  11830. - 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
  11831.  
  11832. [2023-06-12T08:53:31+00:00] INFO: directory[/var/log/gitlab/postgres-exporter] mode changed to 700
  11833.  
  11834.  
  11835. - change mode from '' to '0700'
  11836.  
  11837. - change owner from '' to 'gitlab-psql'
  11838.  
  11839. * 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
  11840.  
  11841.  
  11842. - 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
  11843.  
  11844. [2023-06-12T08:53:31+00:00] INFO: directory[/var/opt/gitlab/postgres-exporter] mode changed to 700
  11845.  
  11846.  
  11847. - change mode from '' to '0700'
  11848.  
  11849. - change owner from '' to 'gitlab-psql'
  11850.  
  11851. * env_dir[/opt/gitlab/etc/postgres-exporter/env] action create
  11852.  
  11853. * 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
  11854.  
  11855.  
  11856. - create new directory /opt/gitlab/etc/postgres-exporter/env
  11857.  
  11858. * 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
  11859.  
  11860.  
  11861. - 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
  11862.  
  11863.  
  11864. - update content in file /opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR from none to 4f45cf
  11865.  
  11866. - suppressed sensitive resource
  11867.  
  11868. * 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
  11869.  
  11870.  
  11871. - 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
  11872.  
  11873.  
  11874. - update content in file /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME from none to af4c92
  11875.  
  11876. - suppressed sensitive resource
  11877.  
  11878.  
  11879. * service[postgres-exporter] action nothing (skipped due to action :nothing)
  11880.  
  11881. * runit_service[postgres-exporter] action enable
  11882.  
  11883. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  11884.  
  11885. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  11886.  
  11887. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  11888.  
  11889. * 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
  11890.  
  11891.  
  11892. - 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
  11893.  
  11894. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter] group changed to 0
  11895.  
  11896. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter] mode changed to 755
  11897.  
  11898.  
  11899. - change mode from '' to '0755'
  11900.  
  11901. - change owner from '' to 'root'
  11902.  
  11903. - change group from '' to 'root'
  11904.  
  11905. * 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
  11906.  
  11907.  
  11908. - 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
  11909.  
  11910.  
  11911. - update content in file /opt/gitlab/sv/postgres-exporter/run from none to b40d34
  11912.  
  11913. --- /opt/gitlab/sv/postgres-exporter/run 2023-06-12 08:53:31.119403884 +0000
  11914.  
  11915. +++ /opt/gitlab/sv/postgres-exporter/.chef-run20230612-2522091-p5wfmt 2023-06-12 08:53:31.119403884 +0000
  11916.  
  11917. @@ -1,6 +1,12 @@
  11918.  
  11919. +#!/bin/sh
  11920.  
  11921. +exec 2>&1
  11922.  
  11923. +
  11924.  
  11925. +umask 077
  11926.  
  11927. +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
  11928.  
  11929. +[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] owner changed to 0
  11930.  
  11931. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] group changed to 0
  11932.  
  11933. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] mode changed to 755
  11934.  
  11935.  
  11936. - change mode from '' to '0755'
  11937.  
  11938. - change owner from '' to 'root'
  11939.  
  11940. - change group from '' to 'root'
  11941.  
  11942. * 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
  11943.  
  11944.  
  11945. - 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
  11946.  
  11947. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log] group changed to 0
  11948.  
  11949. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log] mode changed to 755
  11950.  
  11951.  
  11952. - change mode from '' to '0755'
  11953.  
  11954. - change owner from '' to 'root'
  11955.  
  11956. - change group from '' to 'root'
  11957.  
  11958. * 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
  11959.  
  11960.  
  11961. - 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
  11962.  
  11963. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log/main] group changed to 0
  11964.  
  11965. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log/main] mode changed to 755
  11966.  
  11967.  
  11968. - change mode from '' to '0755'
  11969.  
  11970. - change owner from '' to 'root'
  11971.  
  11972. - change group from '' to 'root'
  11973.  
  11974. * 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
  11975.  
  11976.  
  11977. - 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
  11978.  
  11979.  
  11980. - update content in file /opt/gitlab/sv/postgres-exporter/log/config from none to 623c00
  11981.  
  11982. --- /opt/gitlab/sv/postgres-exporter/log/config 2023-06-12 08:53:31.143403816 +0000
  11983.  
  11984. +++ /opt/gitlab/sv/postgres-exporter/log/.chef-config20230612-2522091-vcni3a 2023-06-12 08:53:31.143403816 +0000
  11985.  
  11986. @@ -1,6 +1,12 @@
  11987.  
  11988. +s209715200
  11989.  
  11990. +n30
  11991.  
  11992. +t86400
  11993.  
  11994. +!gzip
  11995.  
  11996. +
  11997.  
  11998. +[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] owner changed to 0
  11999.  
  12000. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] group changed to 0
  12001.  
  12002. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] mode changed to 644
  12003.  
  12004.  
  12005. - change mode from '' to '0644'
  12006.  
  12007. - change owner from '' to 'root'
  12008.  
  12009. - change group from '' to 'root'
  12010.  
  12011. [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)
  12012.  
  12013. * 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
  12014.  
  12015.  
  12016. - execute the ruby block verify_chown_persisted_on_postgres-exporter
  12017.  
  12018. * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
  12019.  
  12020. * 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
  12021.  
  12022.  
  12023. - create symlink at /var/log/gitlab/postgres-exporter/config to /opt/gitlab/sv/postgres-exporter/log/config
  12024.  
  12025. * 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
  12026.  
  12027.  
  12028. - 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
  12029.  
  12030.  
  12031. - update content in file /opt/gitlab/sv/postgres-exporter/log/run from none to fd2977
  12032.  
  12033. --- /opt/gitlab/sv/postgres-exporter/log/run 2023-06-12 08:53:31.159403771 +0000
  12034.  
  12035. +++ /opt/gitlab/sv/postgres-exporter/log/.chef-run20230612-2522091-kypatg 2023-06-12 08:53:31.159403771 +0000
  12036.  
  12037. @@ -1,5 +1,10 @@
  12038.  
  12039. +#!/bin/sh
  12040.  
  12041. +exec chpst -P \
  12042.  
  12043. + -U root:root \
  12044.  
  12045. + -u root:root \
  12046.  
  12047. + 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
  12048.  
  12049. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] group changed to 0
  12050.  
  12051. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] mode changed to 755
  12052.  
  12053.  
  12054. - change mode from '' to '0755'
  12055.  
  12056. - change owner from '' to 'root'
  12057.  
  12058. - change group from '' to 'root'
  12059.  
  12060. * 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
  12061.  
  12062.  
  12063. - 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
  12064.  
  12065. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/env] group changed to 0
  12066.  
  12067. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/env] mode changed to 755
  12068.  
  12069.  
  12070. - change mode from '' to '0755'
  12071.  
  12072. - change owner from '' to 'root'
  12073.  
  12074. - change group from '' to 'root'
  12075.  
  12076. * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
  12077.  
  12078. * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
  12079.  
  12080. * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
  12081.  
  12082. * 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
  12083.  
  12084.  
  12085. - 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
  12086.  
  12087. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/control] group changed to 0
  12088.  
  12089. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/control] mode changed to 755
  12090.  
  12091.  
  12092. - change mode from '' to '0755'
  12093.  
  12094. - change owner from '' to 'root'
  12095.  
  12096. - change group from '' to 'root'
  12097.  
  12098. * link[/opt/gitlab/init/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: link[/opt/gitlab/init/postgres-exporter] created
  12099.  
  12100.  
  12101. - create symlink at /opt/gitlab/init/postgres-exporter to /opt/gitlab/embedded/bin/sv
  12102.  
  12103. * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
  12104.  
  12105. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] sending run action to ruby_block[restart_service] (delayed)
  12106.  
  12107. * ruby_block[restart_service] action run (skipped due to only_if)
  12108.  
  12109. [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)
  12110.  
  12111. * ruby_block[reload_log_service] action create
  12112.  
  12113. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  12114.  
  12115. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  12116.  
  12117. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  12118.  
  12119. * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date)
  12120.  
  12121. * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date)
  12122.  
  12123. * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date)
  12124.  
  12125. * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date)
  12126.  
  12127. * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date)
  12128.  
  12129. * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
  12130.  
  12131. * link[/var/log/gitlab/postgres-exporter/config] action create (up to date)
  12132.  
  12133. * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date)
  12134.  
  12135. * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date)
  12136.  
  12137. * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
  12138.  
  12139. * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
  12140.  
  12141. * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
  12142.  
  12143. * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date)
  12144.  
  12145. * link[/opt/gitlab/init/postgres-exporter] action create (up to date)
  12146.  
  12147. * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
  12148.  
  12149. * directory[/opt/gitlab/service] action create (up to date)
  12150.  
  12151. * link[/opt/gitlab/service/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: link[/opt/gitlab/service/postgres-exporter] created
  12152.  
  12153.  
  12154. - create symlink at /opt/gitlab/service/postgres-exporter to /opt/gitlab/sv/postgres-exporter
  12155.  
  12156. * 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
  12157.  
  12158.  
  12159. - execute the ruby block wait for postgres-exporter service socket
  12160.  
  12161. * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
  12162.  
  12163. [2023-06-12T08:53:36+00:00] INFO: ruby_block[reload_log_service] called
  12164.  
  12165. - execute the ruby block reload_log_service
  12166.  
  12167. [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)
  12168.  
  12169. * ruby_block[restart_log_service] action run
  12170.  
  12171. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  12172.  
  12173. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  12174.  
  12175. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  12176.  
  12177. * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date)
  12178.  
  12179. * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date)
  12180.  
  12181. * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date)
  12182.  
  12183. * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date)
  12184.  
  12185. * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date)
  12186.  
  12187. * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
  12188.  
  12189. * link[/var/log/gitlab/postgres-exporter/config] action create (up to date)
  12190.  
  12191. * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date)
  12192.  
  12193. * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date)
  12194.  
  12195. * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
  12196.  
  12197. * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
  12198.  
  12199. * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
  12200.  
  12201. * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date)
  12202.  
  12203. * link[/opt/gitlab/init/postgres-exporter] action create (up to date)
  12204.  
  12205. * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
  12206.  
  12207. * directory[/opt/gitlab/service] action create (up to date)
  12208.  
  12209. * link[/opt/gitlab/service/postgres-exporter] action create (up to date)
  12210.  
  12211. * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if)
  12212.  
  12213. * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
  12214.  
  12215. [2023-06-12T08:53:36+00:00] INFO: ruby_block[restart_log_service] called
  12216.  
  12217. - execute the ruby block restart_log_service
  12218.  
  12219. * directory[/opt/gitlab/service] action create (up to date)
  12220.  
  12221. * link[/opt/gitlab/service/postgres-exporter] action create (up to date)
  12222.  
  12223. * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if)
  12224.  
  12225. * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
  12226.  
  12227.  
  12228. * 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
  12229.  
  12230.  
  12231. - 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
  12232.  
  12233.  
  12234. - update content in file /var/opt/gitlab/postgres-exporter/queries.yaml from none to 7d7e14
  12235.  
  12236. --- /var/opt/gitlab/postgres-exporter/queries.yaml 2023-06-12 08:53:36.659388203 +0000
  12237.  
  12238. +++ /var/opt/gitlab/postgres-exporter/.chef-queries20230612-2522091-vck3z3.yaml 2023-06-12 08:53:36.659388203 +0000
  12239.  
  12240. @@ -1,404 +1,808 @@
  12241.  
  12242. +pg_replication:
  12243.  
  12244. + 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"
  12245.  
  12246. + metrics:
  12247.  
  12248. + - lag:
  12249.  
  12250. + usage: "GAUGE"
  12251.  
  12252. + description: "Replication lag behind master in seconds"
  12253.  
  12254. + - is_replica:
  12255.  
  12256. + usage: "GAUGE"
  12257.  
  12258. + description: "Indicates if this host is a slave"
  12259.  
  12260. +
  12261.  
  12262. +pg_postmaster:
  12263.  
  12264. + query: "SELECT pg_postmaster_start_time as start_time_seconds from pg_postmaster_start_time()"
  12265.  
  12266. + metrics:
  12267.  
  12268. + - start_time_seconds:
  12269.  
  12270. + usage: "GAUGE"
  12271.  
  12272. + description: "Time at which postmaster started"
  12273.  
  12274. +
  12275.  
  12276. +pg_total_relation_size:
  12277.  
  12278. + query: |
  12279.  
  12280. + SELECT relnamespace::regnamespace as schemaname,
  12281.  
  12282. + relname as relname,
  12283.  
  12284. + pg_total_relation_size(oid) bytes
  12285.  
  12286. + FROM pg_class
  12287.  
  12288. + WHERE relkind = 'r';
  12289.  
  12290. + metrics:
  12291.  
  12292. + - schemaname:
  12293.  
  12294. + usage: "LABEL"
  12295.  
  12296. + description: "Name of the schema that this table is in"
  12297.  
  12298. + - relname:
  12299.  
  12300. + usage: "LABEL"
  12301.  
  12302. + description: "Name of this table"
  12303.  
  12304. + - bytes:
  12305.  
  12306. + usage: "GAUGE"
  12307.  
  12308. + description: "total disk space usage for the specified table and associated indexes"
  12309.  
  12310. +
  12311.  
  12312. +pg_blocked:
  12313.  
  12314. + query: |
  12315.  
  12316. + SELECT
  12317.  
  12318. + count(blocked.transactionid) AS queries,
  12319.  
  12320. + '__transaction__' AS table
  12321.  
  12322. + FROM pg_catalog.pg_locks blocked
  12323.  
  12324. + WHERE NOT blocked.granted AND locktype = 'transactionid'
  12325.  
  12326. + GROUP BY locktype
  12327.  
  12328. + UNION
  12329.  
  12330. + SELECT
  12331.  
  12332. + count(blocked.relation) AS queries,
  12333.  
  12334. + blocked.relation::regclass::text AS table
  12335.  
  12336. + FROM pg_catalog.pg_locks blocked
  12337.  
  12338. + WHERE NOT blocked.granted AND locktype != 'transactionid'
  12339.  
  12340. + GROUP BY relation
  12341.  
  12342. + metrics:
  12343.  
  12344. + - queries:
  12345.  
  12346. + usage: "GAUGE"
  12347.  
  12348. + description: "The current number of blocked queries"
  12349.  
  12350. + - table:
  12351.  
  12352. + usage: "LABEL"
  12353.  
  12354. + description: "The table on which a query is blocked"
  12355.  
  12356. +
  12357.  
  12358. +pg_oldest_blocked:
  12359.  
  12360. + query: |
  12361.  
  12362. + SELECT coalesce(extract('epoch' from max(clock_timestamp() - state_change)), 0) age_seconds
  12363.  
  12364. + FROM pg_stat_activity
  12365.  
  12366. + WHERE wait_event_type = 'Lock'
  12367.  
  12368. + AND state='active'
  12369.  
  12370. + metrics:
  12371.  
  12372. + - age_seconds:
  12373.  
  12374. + usage: "GAUGE"
  12375.  
  12376. + description: "Largest number of seconds any transaction is currently waiting on a lock"
  12377.  
  12378. +
  12379.  
  12380. +pg_slow:
  12381.  
  12382. + query: |
  12383.  
  12384. + SELECT COUNT(*) AS queries
  12385.  
  12386. + FROM pg_stat_activity
  12387.  
  12388. + WHERE state = 'active' AND (now() - query_start) > '1 seconds'::interval
  12389.  
  12390. + metrics:
  12391.  
  12392. + - queries:
  12393.  
  12394. + usage: "GAUGE"
  12395.  
  12396. + description: "Current number of slow queries"
  12397.  
  12398. +
  12399.  
  12400. +pg_long_running_transactions:
  12401.  
  12402. + query: |
  12403.  
  12404. + SELECT COUNT(*) as transactions,
  12405.  
  12406. + coalesce(MAX(EXTRACT(EPOCH FROM (clock_timestamp() - xact_start))), 0) AS age_in_seconds
  12407.  
  12408. + FROM pg_stat_activity
  12409.  
  12410. + WHERE state is distinct from 'idle' AND (now() - xact_start) > '1 minutes'::interval AND query not like 'autovacuum:%'
  12411.  
  12412. + metrics:
  12413.  
  12414. + - transactions:
  12415.  
  12416. + usage: "GAUGE"
  12417.  
  12418. + description: "Current number of long running transactions"
  12419.  
  12420. + - age_in_seconds:
  12421.  
  12422. + usage: "GAUGE"
  12423.  
  12424. + description: "The current maximum transaction age in seconds"
  12425.  
  12426. +
  12427.  
  12428. +pg_stuck_idle_in_transaction:
  12429.  
  12430. + query: |
  12431.  
  12432. + SELECT COUNT(*) AS queries
  12433.  
  12434. + FROM pg_stat_activity
  12435.  
  12436. + WHERE state = 'idle in transaction' AND (now() - query_start) > '10 minutes'::interval
  12437.  
  12438. + metrics:
  12439.  
  12440. + - queries:
  12441.  
  12442. + usage: "GAUGE"
  12443.  
  12444. + description: "Current number of queries that are stuck being idle in transactions"
  12445.  
  12446. +
  12447.  
  12448. +# All xid and lsn metrics here are reported mod 2^52 to ensure they
  12449.  
  12450. +# fit within a float for Prometheus :( Really annoying that counters
  12451.  
  12452. +# aren't stored in a 64-bit integer. Note that for queries that report
  12453.  
  12454. +# floats this only works because postgres_exporter does know to set
  12455.  
  12456. +# extra_float_digits (which it sets to 2). So they don't print in
  12457.  
  12458. +# exponential notation and precision is maintained up to 2^53-1.
  12459.  
  12460. +
  12461.  
  12462. +pg_vacuum:
  12463.  
  12464. + query: |
  12465.  
  12466. + SELECT
  12467.  
  12468. + COUNT(*) AS queries,
  12469.  
  12470. + MAX(EXTRACT(EPOCH FROM (clock_timestamp() - query_start))) AS age_in_seconds
  12471.  
  12472. + FROM pg_catalog.pg_stat_activity
  12473.  
  12474. + WHERE state = 'active' AND trim(query) ~* '\AVACUUM (?!ANALYZE)'
  12475.  
  12476. + metrics:
  12477.  
  12478. + - queries:
  12479.  
  12480. + usage: "GAUGE"
  12481.  
  12482. + description: "The current number of VACUUM queries"
  12483.  
  12484. + - age_in_seconds:
  12485.  
  12486. + usage: "GAUGE"
  12487.  
  12488. + description: "The current maximum VACUUM query age in seconds"
  12489.  
  12490. +
  12491.  
  12492. +pg_vacuum_analyze:
  12493.  
  12494. + query: |
  12495.  
  12496. + SELECT
  12497.  
  12498. + COUNT(*) AS queries,
  12499.  
  12500. + MAX(EXTRACT(EPOCH FROM (clock_timestamp() - query_start))) AS age_in_seconds
  12501.  
  12502. + FROM pg_catalog.pg_stat_activity
  12503.  
  12504. + WHERE state = 'active' AND trim(query) ~* '\AVACUUM ANALYZE'
  12505.  
  12506. + metrics:
  12507.  
  12508. + - queries:
  12509.  
  12510. + usage: "GAUGE"
  12511.  
  12512. + description: "The current number of VACUUM ANALYZE queries"
  12513.  
  12514. + - age_in_seconds:
  12515.  
  12516. + usage: "GAUGE"
  12517.  
  12518. + description: "The current maximum VACUUM ANALYZE query age in seconds"
  12519.  
  12520. +
  12521.  
  12522. +pg_stuck_idle_in_transaction:
  12523.  
  12524. + query: |
  12525.  
  12526. + SELECT COUNT(*) AS queries
  12527.  
  12528. + FROM pg_stat_activity
  12529.  
  12530. + WHERE state = 'idle in transaction' AND (now() - query_start) > '10 minutes'::interval
  12531.  
  12532. + metrics:
  12533.  
  12534. + - queries:
  12535.  
  12536. + usage: "GAUGE"
  12537.  
  12538. + description: "Current number of queries that are stuck being idle in transactions"
  12539.  
  12540. +
  12541.  
  12542. +pg_vacuum_queue:
  12543.  
  12544. + #master: true
  12545.  
  12546. + # Until postgres_exporter is upgraded. See
  12547.  
  12548. + # https://gitlab.com/gitlab-org/omnibus-gitlab/issues/4887
  12549.  
  12550. + query: |
  12551.  
  12552. + with table_opts_vs_statistic as (
  12553.  
  12554. + select
  12555.  
  12556. + pg_class.oid,
  12557.  
  12558. + pg_class.relname,
  12559.  
  12560. + coalesce(nspname, 'public') as schemaname,
  12561.  
  12562. + pg_class.relpages,
  12563.  
  12564. + pg_class.reltuples,
  12565.  
  12566. + case
  12567.  
  12568. + when array_to_string(reloptions, '') like '%autovacuum_vacuum_threshold%' then regexp_replace(array_to_string(reloptions, ''), '.*autovacuum_vacuum_threshold=([0-9.]+).*', E'\\1')::int8
  12569.  
  12570. + else current_setting('autovacuum_vacuum_threshold')::int8
  12571.  
  12572. + end as autovacuum_vacuum_threshold,
  12573.  
  12574. + case
  12575.  
  12576. + 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
  12577.  
  12578. + else current_setting('autovacuum_vacuum_scale_factor')::numeric
  12579.  
  12580. + end as autovacuum_vacuum_scale_factor,
  12581.  
  12582. + case when array_to_string(reloptions, '') ~ 'autovacuum_enabled=(false|off)' then false else true end as autovacuum_enabled,
  12583.  
  12584. + n_dead_tup,
  12585.  
  12586. + last_autovacuum,
  12587.  
  12588. + last_vacuum
  12589.  
  12590. + from pg_class
  12591.  
  12592. + join pg_namespace ns on relnamespace = ns.oid
  12593.  
  12594. + join pg_stat_all_tables psat on psat.relid = pg_class.oid
  12595.  
  12596. + where relkind in ('r','m')
  12597.  
  12598. + ), p as (
  12599.  
  12600. + select pgspv.*,a.query,a.wait_event_type,a.wait_event,a.query_start
  12601.  
  12602. + from pg_stat_progress_vacuum pgspv
  12603.  
  12604. + left join pg_stat_activity a using (pid)
  12605.  
  12606. + )
  12607.  
  12608. + select
  12609.  
  12610. + table_opts_vs_statistic.schemaname as schemaname,
  12611.  
  12612. + table_opts_vs_statistic.relname as relname,
  12613.  
  12614. + round((100 * table_opts_vs_statistic.n_dead_tup::numeric / nullif(table_opts_vs_statistic.reltuples, 0))::numeric, 2) as dead_tup_pct,
  12615.  
  12616. + table_opts_vs_statistic.reltuples::numeric as reltuples,
  12617.  
  12618. + table_opts_vs_statistic.n_dead_tup,
  12619.  
  12620. + (relpages::bigint*8*1024) AS table_size_bytes,
  12621.  
  12622. + 'V. Threshold:' || table_opts_vs_statistic.autovacuum_vacuum_threshold
  12623.  
  12624. + || ', V. Scale Factor: ' || (table_opts_vs_statistic.autovacuum_vacuum_scale_factor)::numeric *100 ||' %'
  12625.  
  12626. + || case when not autovacuum_enabled then ', DISABLED' else ', enabled' end as "effective_settings",
  12627.  
  12628. + case
  12629.  
  12630. + when last_autovacuum > coalesce(last_vacuum, '0001-01-01') then last_autovacuum::timestamp(0)
  12631.  
  12632. + when last_vacuum is not null then last_vacuum::timestamp(0)
  12633.  
  12634. + else null
  12635.  
  12636. + end as "last_vacuumed",
  12637.  
  12638. + case
  12639.  
  12640. + when last_autovacuum > coalesce(last_vacuum, '0001-01-01') then 'auto'
  12641.  
  12642. + when last_vacuum is not null then 'manual'
  12643.  
  12644. + else null
  12645.  
  12646. + end as "type",
  12647.  
  12648. + coalesce(p.phase, 'in queue') as status,
  12649.  
  12650. + p.pid as pid,
  12651.  
  12652. + coalesce (p.query,'')as action,
  12653.  
  12654. + case when p.pid is null then null else coalesce(wait_event_type ||'.'|| wait_event, 'f') end as waiting,
  12655.  
  12656. + round(100.0 * p.heap_blks_scanned / nullif(p.heap_blks_total, 0), 1) AS scanned_pct,
  12657.  
  12658. + round(100.0 * p.heap_blks_vacuumed / nullif(p.heap_blks_total, 0), 1) AS vacuumed_pct,
  12659.  
  12660. + extract ('epoch' from now()-query_start) elapsed_time
  12661.  
  12662. + from
  12663.  
  12664. + table_opts_vs_statistic
  12665.  
  12666. + full outer join p on p.relid = table_opts_vs_statistic.oid and p.datname = current_database()
  12667.  
  12668. + where
  12669.  
  12670. + table_opts_vs_statistic.relpages >= 8
  12671.  
  12672. + and autovacuum_vacuum_threshold + (autovacuum_vacuum_scale_factor::numeric * table_opts_vs_statistic.reltuples) < table_opts_vs_statistic.n_dead_tup
  12673.  
  12674. + metrics:
  12675.  
  12676. + - schemaname:
  12677.  
  12678. + usage: "LABEL"
  12679.  
  12680. + description: "Table Schema"
  12681.  
  12682. + - relname:
  12683.  
  12684. + usage: "LABEL"
  12685.  
  12686. + description: "Table name"
  12687.  
  12688. + - dead_tup_pct:
  12689.  
  12690. + usage: "GAUGE"
  12691.  
  12692. + description: "Estimated dead tuples percent"
  12693.  
  12694. + - reltuples:
  12695.  
  12696. + usage: "GAUGE"
  12697.  
  12698. + description: "Number of tuples in table"
  12699.  
  12700. + - n_dead_tup:
  12701.  
  12702. + usage: "GAUGE"
  12703.  
  12704. + description: "Estimated number of dead tuples"
  12705.  
  12706. + - table_size_bytes:
  12707.  
  12708. + usage: "GAUGE"
  12709.  
  12710. + description: "Estimated table size"
  12711.  
  12712. + - effective_settings:
  12713.  
  12714. + usage: "LABEL"
  12715.  
  12716. + description: "Autovacuums settings"
  12717.  
  12718. + - last_vacuumed:
  12719.  
  12720. + usage: "GAUGE"
  12721.  
  12722. + description: "Last time at which this table was vacuumed"
  12723.  
  12724. + - type:
  12725.  
  12726. + usage: "LABEL"
  12727.  
  12728. + description: "Last vacuum type"
  12729.  
  12730. + - status:
  12731.  
  12732. + usage: "LABEL"
  12733.  
  12734. + description: "Vacuum actual status"
  12735.  
  12736. + - pid:
  12737.  
  12738. + usage: "GAUGE"
  12739.  
  12740. + description: "Vacuum process id"
  12741.  
  12742. + - action:
  12743.  
  12744. + usage: "LABEL"
  12745.  
  12746. + description: "Type of vacuum executed"
  12747.  
  12748. + - waiting:
  12749.  
  12750. + usage: "LABEL"
  12751.  
  12752. + description: "Vacuum queue status"
  12753.  
  12754. + - scanned_pct:
  12755.  
  12756. + usage: "GAUGE"
  12757.  
  12758. + description: "Estimated rows scanned percent"
  12759.  
  12760. + - vacuumed_pct:
  12761.  
  12762. + usage: "GAUGE"
  12763.  
  12764. + description: "Estimated vacuumed rows percent"
  12765.  
  12766. + - elapsed_time:
  12767.  
  12768. + usage: "GAUGE"
  12769.  
  12770. + description: "Elapsed time vacuuming (in seconds)"
  12771.  
  12772. +
  12773.  
  12774. +#
  12775.  
  12776. +# This query extracts marginalia comments from pg_stat_activity and provides a sampled summary of the type of
  12777.  
  12778. +# endpoints that are actively making calls
  12779.  
  12780. +#
  12781.  
  12782. +pg_stat_activity_marginalia_sampler:
  12783.  
  12784. + query: >
  12785.  
  12786. + SELECT
  12787.  
  12788. + usename AS usename,
  12789.  
  12790. + a.matches[1] AS application,
  12791.  
  12792. + a.matches[2] AS endpoint,
  12793.  
  12794. + a.matches[3] AS command,
  12795.  
  12796. + a.wait_event AS wait_event,
  12797.  
  12798. + a.state AS state,
  12799.  
  12800. + a.wait_event_type AS wait_event_type,
  12801.  
  12802. + COUNT(*) active_count,
  12803.  
  12804. + MAX(coalesce(age_in_seconds, 0)) AS max_tx_age_in_seconds
  12805.  
  12806. + FROM (
  12807.  
  12808. + SELECT
  12809.  
  12810. + usename,
  12811.  
  12812. + regexp_matches(query, '^\s*(?:\/\*(?:application:(\w+),?)?(?:correlation_id:\w+,?)?(?:jid:\w+,?)?(?:endpoint_id:([\w/\-\.:\#\s]+),?)?.*?\*\/)?\s*(\w+)') AS matches,
  12813.  
  12814. + state,
  12815.  
  12816. + wait_event,
  12817.  
  12818. + wait_event_type,
  12819.  
  12820. + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
  12821.  
  12822. + FROM
  12823.  
  12824. + pg_stat_activity
  12825.  
  12826. + ) a
  12827.  
  12828. + GROUP BY usename, application, endpoint, command, state, wait_event, wait_event_type
  12829.  
  12830. + ORDER BY active_count DESC
  12831.  
  12832. + metrics:
  12833.  
  12834. + - usename:
  12835.  
  12836. + usage: LABEL
  12837.  
  12838. + description: The user running the command
  12839.  
  12840. + - application:
  12841.  
  12842. + usage: LABEL
  12843.  
  12844. + description: Name of the application as presented in marginalia comment
  12845.  
  12846. + - endpoint:
  12847.  
  12848. + usage: LABEL
  12849.  
  12850. + description: Name of the web endpoint or sidekiq job as presented in marginalia comment
  12851.  
  12852. + - command:
  12853.  
  12854. + usage: LABEL
  12855.  
  12856. + description: The first word for the running command
  12857.  
  12858. + - wait_event:
  12859.  
  12860. + usage: LABEL
  12861.  
  12862. + description: Wait event of the activity as presented by pg_stat_activity.wait_event
  12863.  
  12864. + - state:
  12865.  
  12866. + usage: LABEL
  12867.  
  12868. + description: State of the activity as presented by pg_stat_activity.state
  12869.  
  12870. + - wait_event_type:
  12871.  
  12872. + usage: LABEL
  12873.  
  12874. + description: Wait event type of the activity as presented by pg_stat_activity.wait_event_type
  12875.  
  12876. + - active_count:
  12877.  
  12878. + usage: GAUGE
  12879.  
  12880. + description: Number of active queries at time of sample
  12881.  
  12882. + - max_tx_age_in_seconds:
  12883.  
  12884. + usage: GAUGE
  12885.  
  12886. + description: Number of active queries at time of sample
  12887.  
  12888. +
  12889.  
  12890. +# This records long running autovacuum processes. The reason we limit to
  12891.  
  12892. +# long-running processes is to avoid cardinality problems in prometheus. Since
  12893.  
  12894. +# we're only concerned about long running processes we limit the output only to
  12895.  
  12896. +# those that take longer than 5 minutes.
  12897.  
  12898. +pg_stat_activity_autovacuum:
  12899.  
  12900. + query: >
  12901.  
  12902. + SELECT
  12903.  
  12904. + SPLIT_PART(query, '.', 2) AS relname,
  12905.  
  12906. + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
  12907.  
  12908. + FROM
  12909.  
  12910. + pg_stat_activity
  12911.  
  12912. + WHERE
  12913.  
  12914. + query like 'autovacuum:%'
  12915.  
  12916. + AND
  12917.  
  12918. + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) > 300
  12919.  
  12920. + metrics:
  12921.  
  12922. + - relname:
  12923.  
  12924. + usage: LABEL
  12925.  
  12926. + description: The table being vacuumed
  12927.  
  12928. + - age_in_seconds:
  12929.  
  12930. + usage: GAUGE
  12931.  
  12932. + description: The age of the vacuum process in seconds
  12933.  
  12934. +
  12935.  
  12936. +# Keep track of the number of the total number of autovacuum workers
  12937.  
  12938. +# currently active
  12939.  
  12940. +pg_stat_activity_autovacuum_active:
  12941.  
  12942. + query: >
  12943.  
  12944. + SELECT v.phase,
  12945.  
  12946. + CASE
  12947.  
  12948. + when a.query ~ '^autovacuum.*to prevent wraparound' then 'wraparound'
  12949.  
  12950. + when a.query ~* '^vacuum' then 'user'
  12951.  
  12952. + when a.pid is null then null
  12953.  
  12954. + ELSE 'regular'
  12955.  
  12956. + END as mode,
  12957.  
  12958. + count(1) as workers_count
  12959.  
  12960. + FROM pg_stat_progress_vacuum v
  12961.  
  12962. + LEFT JOIN pg_stat_activity a using (pid)
  12963.  
  12964. + GROUP BY 1,2
  12965.  
  12966. + metrics:
  12967.  
  12968. + - phase:
  12969.  
  12970. + usage: LABEL
  12971.  
  12972. + description: Vacuum phase
  12973.  
  12974. + - mode:
  12975.  
  12976. + usage: LABEL
  12977.  
  12978. + description: Vacuum mode
  12979.  
  12980. + - workers_count:
  12981.  
  12982. + usage: GAUGE
  12983.  
  12984. + description: The number of active autovacuum workers in this state
  12985.  
  12986. +
  12987.  
  12988. +#
  12989.  
  12990. +# This query extracts marginalia metadata from pg_stat_activity and provides a sampled summary about the long running transactions.
  12991.  
  12992. +#
  12993.  
  12994. +pg_long_running_transactions_marginalia:
  12995.  
  12996. + query: >
  12997.  
  12998. + SELECT
  12999.  
  13000. + activity.matches[1] AS application,
  13001.  
  13002. + activity.matches[2] AS endpoint,
  13003.  
  13004. + MAX(age_in_seconds) AS max_age_in_seconds
  13005.  
  13006. + FROM (
  13007.  
  13008. + SELECT
  13009.  
  13010. + regexp_matches(query, '^\s*(?:\/\*(?:application:(\w+),?)?(?:correlation_id:\w+,?)?(?:jid:\w+,?)?(?:endpoint_id:([\w/\-\.:\#\s]+),?)?.*?\*\/)?\s*(\w+)') AS matches,
  13011.  
  13012. + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
  13013.  
  13014. + FROM
  13015.  
  13016. + pg_stat_activity
  13017.  
  13018. + WHERE state <> 'idle'
  13019.  
  13020. + AND (clock_timestamp() - xact_start) > '30 seconds'::interval
  13021.  
  13022. + AND query NOT LIKE 'autovacuum:%'
  13023.  
  13024. + ) activity
  13025.  
  13026. + GROUP BY application, endpoint
  13027.  
  13028. + ORDER BY max_age_in_seconds DESC
  13029.  
  13030. + metrics:
  13031.  
  13032. + - application:
  13033.  
  13034. + usage: LABEL
  13035.  
  13036. + description: Name of the application as presented in marginalia comment
  13037.  
  13038. + - endpoint:
  13039.  
  13040. + usage: LABEL
  13041.  
  13042. + description: Name of the web endpoint or sidekiq job as presented in marginalia comment
  13043.  
  13044. + - max_age_in_seconds:
  13045.  
  13046. + usage: GAUGE
  13047.  
  13048. + 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
  13049.  
  13050. [2023-06-12T08:53:36+00:00] INFO: template[/var/opt/gitlab/postgres-exporter/queries.yaml] mode changed to 644
  13051.  
  13052.  
  13053. - change mode from '' to '0644'
  13054.  
  13055. - change owner from '' to 'gitlab-psql'
  13056.  
  13057. [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
  13058.  
  13059. * execute[/opt/gitlab/bin/gitlab-ctl start postgres-exporter] action run
  13060.  
  13061. [execute] ok: run: postgres-exporter: (pid 2524007) 3s
  13062.  
  13063. [2023-06-12T08:53:37+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start postgres-exporter] ran successfully
  13064.  
  13065. - execute /opt/gitlab/bin/gitlab-ctl start postgres-exporter
  13066.  
  13067. * consul_service[postgres-exporter] action delete
  13068.  
  13069. * file[/var/opt/gitlab/consul/config.d/postgres-exporter-service.json] action delete (up to date)
  13070.  
  13071. (up to date)
  13072.  
  13073. Recipe: monitoring::grafana_disable
  13074.  
  13075. * service[grafana] action nothing (skipped due to action :nothing)
  13076.  
  13077. * runit_service[grafana] action disable
  13078.  
  13079. * ruby_block[disable grafana] action run (skipped due to only_if)
  13080.  
  13081. (up to date)
  13082.  
  13083. Recipe: gitlab::database_reindexing_disable
  13084.  
  13085. * crond_job[database-reindexing] action delete
  13086.  
  13087. * file[/var/opt/gitlab/crond/database-reindexing] action delete (up to date)
  13088.  
  13089. (up to date)
  13090.  
  13091. Recipe: gitlab-ee::sentinel_disable
  13092.  
  13093. * sentinel_service[redis] action disable
  13094.  
  13095. * service[sentinel] action nothing (skipped due to action :nothing)
  13096.  
  13097. * runit_service[sentinel] action disable
  13098.  
  13099. * ruby_block[disable sentinel] action run (skipped due to only_if)
  13100.  
  13101. (up to date)
  13102.  
  13103. * file[/var/opt/gitlab/sentinel/sentinel.conf] action delete (up to date)
  13104.  
  13105. * directory[/var/opt/gitlab/sentinel] action delete (up to date)
  13106.  
  13107. (up to date)
  13108.  
  13109. Recipe: gitlab-ee::geo-postgresql_disable
  13110.  
  13111. * service[geo-postgresql] action nothing (skipped due to action :nothing)
  13112.  
  13113. * runit_service[geo-postgresql] action disable
  13114.  
  13115. * ruby_block[disable geo-postgresql] action run (skipped due to only_if)
  13116.  
  13117. (up to date)
  13118.  
  13119. Recipe: gitlab-ee::geo-logcursor_disable
  13120.  
  13121. * service[geo-logcursor] action nothing (skipped due to action :nothing)
  13122.  
  13123. * runit_service[geo-logcursor] action disable
  13124.  
  13125. * ruby_block[disable geo-logcursor] action run (skipped due to only_if)
  13126.  
  13127. (up to date)
  13128.  
  13129. Recipe: consul::disable_daemon
  13130.  
  13131. * service[consul] action nothing (skipped due to action :nothing)
  13132.  
  13133. * runit_service[consul] action disable
  13134.  
  13135. * ruby_block[disable consul] action run (skipped due to only_if)
  13136.  
  13137. (up to date)
  13138.  
  13139. Recipe: pgbouncer::disable
  13140.  
  13141. * service[pgbouncer] action nothing (skipped due to action :nothing)
  13142.  
  13143. * runit_service[pgbouncer] action disable
  13144.  
  13145. * ruby_block[disable pgbouncer] action run (skipped due to only_if)
  13146.  
  13147. (up to date)
  13148.  
  13149. Recipe: patroni::disable
  13150.  
  13151. * service[patroni] action nothing (skipped due to action :nothing)
  13152.  
  13153. * runit_service[patroni] action disable
  13154.  
  13155. * ruby_block[disable patroni] action run (skipped due to only_if)
  13156.  
  13157. (up to date)
  13158.  
  13159. Recipe: spamcheck::disable
  13160.  
  13161. * service[spamcheck] action nothing (skipped due to action :nothing)
  13162.  
  13163. * runit_service[spamcheck] action disable
  13164.  
  13165. * ruby_block[disable spamcheck] action run (skipped due to only_if)
  13166.  
  13167. (up to date)
  13168.  
  13169. * service[spam-classifier] action nothing (skipped due to action :nothing)
  13170.  
  13171. * runit_service[spam-classifier] action disable
  13172.  
  13173. * ruby_block[disable spam-classifier] action run (skipped due to only_if)
  13174.  
  13175. (up to date)
  13176.  
  13177. Recipe: gitlab-ee::geo-secondary_disable
  13178.  
  13179. * templatesymlink[Removes the geo database settings from database.yml and create a symlink to Rails root] action create
  13180.  
  13181. * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
  13182.  
  13183. * 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)
  13184.  
  13185. (up to date)
  13186.  
  13187. Recipe: gitlab-ee::suggested_reviewers
  13188.  
  13189. * 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?
  13190.  
  13191.  
  13192. * 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
  13193.  
  13194.  
  13195. - 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
  13196.  
  13197.  
  13198. - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret from none to 6163f6
  13199.  
  13200. - 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
  13201.  
  13202. [2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] group changed to 0
  13203.  
  13204. [2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] mode changed to 644
  13205.  
  13206.  
  13207. - change mode from '' to '0644'
  13208.  
  13209. - change owner from '' to 'root'
  13210.  
  13211. - change group from '' to 'root'
  13212.  
  13213. * 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
  13214.  
  13215.  
  13216. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_suggested_reviewers_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret
  13217.  
  13218.  
  13219. [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)
  13220.  
  13221. Recipe: gitlab::gitlab-rails
  13222.  
  13223. * execute[clear the gitlab-rails cache] action run[2023-06-12T08:53:57+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully
  13224.  
  13225.  
  13226. - execute /opt/gitlab/bin/gitlab-rake cache:clear
  13227.  
  13228. [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)
  13229.  
  13230. Recipe: gitlab-kas::enable
  13231.  
  13232. * runit_service[gitlab-kas] action restart (up to date)
  13233.  
  13234. [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)
  13235.  
  13236. Recipe: package::sysctl
  13237.  
  13238. * execute[reload all sysctl conf] action run
  13239.  
  13240. [execute] * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  13241.  
  13242. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
  13243.  
  13244. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
  13245.  
  13246. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
  13247.  
  13248. * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
  13249.  
  13250. * Applying /etc/sysctl.d/99-sysctl.conf ...
  13251.  
  13252. * Applying /usr/lib/sysctl.d/protect-links.conf ...
  13253.  
  13254. * Applying /etc/sysctl.conf ...
  13255.  
  13256. sysctl: permission denied on key "kernel.pid_max"
  13257.  
  13258. sysctl: permission denied on key "kernel.sem"
  13259.  
  13260. sysctl: permission denied on key "kernel.shmall"
  13261.  
  13262. sysctl: permission denied on key "kernel.shmmax"
  13263.  
  13264. sysctl: permission denied on key "fs.protected_fifos"
  13265.  
  13266. sysctl: permission denied on key "fs.protected_hardlinks"
  13267.  
  13268. sysctl: permission denied on key "fs.protected_regular"
  13269.  
  13270. sysctl: permission denied on key "fs.protected_symlinks"
  13271.  
  13272.  
  13273. ================================================================================
  13274.  
  13275. Error executing action `run` on resource 'execute[reload all sysctl conf]'
  13276.  
  13277. ================================================================================
  13278.  
  13279.  
  13280. Mixlib::ShellOut::ShellCommandFailed
  13281.  
  13282. ------------------------------------
  13283.  
  13284. Expected process to exit with [0], but received '255'
  13285.  
  13286. ---- Begin output of sysctl -e --system ----
  13287.  
  13288. STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  13289.  
  13290. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
  13291.  
  13292. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
  13293.  
  13294. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
  13295.  
  13296. * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
  13297.  
  13298. * Applying /etc/sysctl.d/99-sysctl.conf ...
  13299.  
  13300. * Applying /usr/lib/sysctl.d/protect-links.conf ...
  13301.  
  13302. * Applying /etc/sysctl.conf ...
  13303.  
  13304. STDERR: sysctl: permission denied on key "kernel.pid_max"
  13305.  
  13306. sysctl: permission denied on key "kernel.sem"
  13307.  
  13308. sysctl: permission denied on key "kernel.shmall"
  13309.  
  13310. sysctl: permission denied on key "kernel.shmmax"
  13311.  
  13312. sysctl: permission denied on key "fs.protected_fifos"
  13313.  
  13314. sysctl: permission denied on key "fs.protected_hardlinks"
  13315.  
  13316. sysctl: permission denied on key "fs.protected_regular"
  13317.  
  13318. sysctl: permission denied on key "fs.protected_symlinks"
  13319.  
  13320. ---- End output of sysctl -e --system ----
  13321.  
  13322. Ran sysctl -e --system returned 255
  13323.  
  13324.  
  13325. Resource Declaration:
  13326.  
  13327. ---------------------
  13328.  
  13329. # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/recipes/sysctl.rb
  13330.  
  13331.  
  13332. 18: execute "reload all sysctl conf" do
  13333.  
  13334. 19: command "sysctl -e --system"
  13335.  
  13336. 20: action :nothing
  13337.  
  13338. 21:
  13339.  
  13340. 22: only_if { node['package']['modify_kernel_parameters'] }
  13341.  
  13342. 23: end
  13343.  
  13344.  
  13345. Compiled Resource:
  13346.  
  13347. ------------------
  13348.  
  13349. # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/recipes/sysctl.rb:18:in `from_file'
  13350.  
  13351.  
  13352. execute("reload all sysctl conf") do
  13353.  
  13354. action [:nothing]
  13355.  
  13356. default_guard_interpreter :execute
  13357.  
  13358. command "sysctl -e --system"
  13359.  
  13360. declared_type :execute
  13361.  
  13362. cookbook_name "package"
  13363.  
  13364. recipe_name "sysctl"
  13365.  
  13366. domain nil
  13367.  
  13368. user nil
  13369.  
  13370. only_if { #code block }
  13371.  
  13372. end
  13373.  
  13374.  
  13375. System Info:
  13376.  
  13377. ------------
  13378.  
  13379. chef_version=17.10.0
  13380.  
  13381. platform=debian
  13382.  
  13383. platform_version=11
  13384.  
  13385. ruby=ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux]
  13386.  
  13387. program_name=/opt/gitlab/embedded/bin/cinc-client
  13388.  
  13389. executable=/opt/gitlab/embedded/bin/cinc-client
  13390.  
  13391.  
  13392. [2023-06-12T08:54:07+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] sending restart action to runit_service[gitlab-workhorse] (delayed)
  13393.  
  13394. Recipe: gitlab::gitlab-workhorse
  13395.  
  13396. * runit_service[gitlab-workhorse] action restart (up to date)
  13397.  
  13398. [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)
  13399.  
  13400. Recipe: monitoring::node-exporter
  13401.  
  13402. * runit_service[node-exporter] action restart (up to date)
  13403.  
  13404. [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)
  13405.  
  13406. Recipe: monitoring::gitlab-exporter
  13407.  
  13408. * runit_service[gitlab-exporter] action restart (up to date)
  13409.  
  13410. [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)
  13411.  
  13412. Recipe: monitoring::redis-exporter
  13413.  
  13414. * runit_service[redis-exporter] action restart (up to date)
  13415.  
  13416. [2023-06-12T08:54:09+00:00] INFO: env_dir[/opt/gitlab/etc/prometheus/env] sending restart action to runit_service[prometheus] (delayed)
  13417.  
  13418. Recipe: monitoring::prometheus
  13419.  
  13420. * runit_service[prometheus] action restart (up to date)
  13421.  
  13422. [2023-06-12T08:54:09+00:00] INFO: file[Prometheus config] sending run action to execute[reload prometheus] (delayed)
  13423.  
  13424. * execute[reload prometheus] action run[2023-06-12T08:54:10+00:00] INFO: execute[reload prometheus] ran successfully
  13425.  
  13426.  
  13427. - execute /opt/gitlab/bin/gitlab-ctl hup prometheus
  13428.  
  13429. [2023-06-12T08:54:10+00:00] INFO: env_dir[/opt/gitlab/etc/alertmanager/env] sending restart action to runit_service[alertmanager] (delayed)
  13430.  
  13431. Recipe: monitoring::alertmanager
  13432.  
  13433. * runit_service[alertmanager] action restart (up to date)
  13434.  
  13435. [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)
  13436.  
  13437. Recipe: monitoring::postgres-exporter
  13438.  
  13439. * runit_service[postgres-exporter] action restart (up to date)
  13440.  
  13441.  
  13442. Running handlers:
  13443.  
  13444. [2023-06-12T08:54:11+00:00] ERROR: Running exception handlers
  13445.  
  13446. There was an error running gitlab-ctl reconfigure:
  13447.  
  13448.  
  13449. execute[reload all sysctl conf] (package::sysctl line 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
  13450.  
  13451. ---- Begin output of sysctl -e --system ----
  13452.  
  13453. STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  13454.  
  13455. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
  13456.  
  13457. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
  13458.  
  13459. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
  13460.  
  13461. * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
  13462.  
  13463. * Applying /etc/sysctl.d/99-sysctl.conf ...
  13464.  
  13465. * Applying /usr/lib/sysctl.d/protect-links.conf ...
  13466.  
  13467. * Applying /etc/sysctl.conf ...
  13468.  
  13469. STDERR: sysctl: permission denied on key "kernel.pid_max"
  13470.  
  13471. sysctl: permission denied on key "kernel.sem"
  13472.  
  13473. sysctl: permission denied on key "kernel.shmall"
  13474.  
  13475. sysctl: permission denied on key "kernel.shmmax"
  13476.  
  13477. sysctl: permission denied on key "fs.protected_fifos"
  13478.  
  13479. sysctl: permission denied on key "fs.protected_hardlinks"
  13480.  
  13481. sysctl: permission denied on key "fs.protected_regular"
  13482.  
  13483. sysctl: permission denied on key "fs.protected_symlinks"
  13484.  
  13485. ---- End output of sysctl -e --system ----
  13486.  
  13487. Ran sysctl -e --system returned 255
  13488.  
  13489.  
  13490.  
  13491. Warnings:
  13492.  
  13493. Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
  13494.  
  13495.  
  13496.  
  13497. Notes:
  13498.  
  13499. Default admin account has been configured with following details:
  13500.  
  13501. Username: root
  13502.  
  13503. Password: You didn't opt-in to print initial root password to STDOUT.
  13504.  
  13505. Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
  13506.  
  13507.  
  13508. 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.
  13509.  
  13510.  
  13511. Running handlers complete
  13512.  
  13513. [2023-06-12T08:54:11+00:00] ERROR: Exception handlers complete
  13514.  
  13515. Infra Phase failed. 350 resources updated in 03 minutes 01 seconds
  13516.  
  13517.  
  13518. Warnings:
  13519.  
  13520. Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
  13521.  
  13522.  
  13523.  
  13524. Notes:
  13525.  
  13526. Default admin account has been configured with following details:
  13527.  
  13528. Username: root
  13529.  
  13530. Password: You didn't opt-in to print initial root password to STDOUT.
  13531.  
  13532. Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
  13533.  
  13534.  
  13535. 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.
  13536.  
  13537.  
  13538. [2023-06-12T08:54:11+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
  13539.  
  13540. [2023-06-12T08:54:11+00:00] FATAL: ---------------------------------------------------------------------------------------
  13541.  
  13542. [2023-06-12T08:54:11+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
  13543.  
  13544. [2023-06-12T08:54:11+00:00] FATAL: ---------------------------------------------------------------------------------------
  13545.  
  13546. [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'
  13547.  
  13548. ---- Begin output of sysctl -e --system ----
  13549.  
  13550. STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  13551.  
  13552. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
  13553.  
  13554. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
  13555.  
  13556. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
  13557.  
  13558. * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
  13559.  
  13560. * Applying /etc/sysctl.d/99-sysctl.conf ...
  13561.  
  13562. * Applying /usr/lib/sysctl.d/protect-links.conf ...
  13563.  
  13564. * Applying /etc/sysctl.conf ...
  13565.  
  13566. STDERR: sysctl: permission denied on key "kernel.pid_max"
  13567.  
  13568. sysctl: permission denied on key "kernel.sem"
  13569.  
  13570. sysctl: permission denied on key "kernel.shmall"
  13571.  
  13572. sysctl: permission denied on key "kernel.shmmax"
  13573.  
  13574. sysctl: permission denied on key "fs.protected_fifos"
  13575.  
  13576. sysctl: permission denied on key "fs.protected_hardlinks"
  13577.  
  13578. sysctl: permission denied on key "fs.protected_regular"
  13579.  
  13580. sysctl: permission denied on key "fs.protected_symlinks"
  13581.  
  13582. ---- End output of sysctl -e --system ----
  13583.  
  13584. Ran sysctl -e --system returned 255
Add Comment
Please, Sign In to add comment