Guest User

Untitled

a guest
Jun 12th, 2023
165
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.  
  32. Synchronizing cookbooks:
  33.  
  34. - gitlab-ee (0.0.1)
  35.  
  36. - package (0.1.0)
  37.  
  38. - gitlab (0.0.1)
  39.  
  40. - consul (0.1.0)
  41.  
  42. - patroni (0.1.0)
  43.  
  44. - pgbouncer (0.1.0)
  45.  
  46. - spamcheck (0.1.0)
  47.  
  48. - postgresql (0.1.0)
  49.  
  50. - runit (5.1.7)
  51.  
  52. - logrotate (0.1.0)
  53.  
  54. - redis (0.1.0)
  55.  
  56. - monitoring (0.1.0)
  57.  
  58. - registry (0.1.0)
  59.  
  60. - mattermost (0.1.0)
  61.  
  62. - gitaly (0.1.0)
  63.  
  64. - praefect (0.1.0)
  65.  
  66. - gitlab-kas (0.1.0)
  67.  
  68. - gitlab-pages (0.1.0)
  69.  
  70. - letsencrypt (0.1.0)
  71.  
  72. - nginx (0.1.0)
  73.  
  74. - acme (4.1.6)
  75.  
  76. - crond (0.1.0)
  77.  
  78. Installing cookbook gem dependencies:
  79.  
  80. Compiling cookbooks...
  81.  
  82. Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
  83.  
  84. Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
  85.  
  86. Loading Cinc Auditor profile files:
  87.  
  88. Loading Cinc Auditor input files:
  89.  
  90. Loading Cinc Auditor waiver files:
  91.  
  92. [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.
  93.  
  94. Recipe: gitlab::default
  95.  
  96. * directory[/etc/gitlab] action create (up to date)
  97.  
  98. [2023-06-12T08:51:13+00:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
  99.  
  100. [2023-06-12T08:51:13+00:00] WARN: Selected systemd because /run/systemd/system/ exists
  101.  
  102. [2023-06-12T08:51:13+00:00] WARN: gitlab-shell does not have a log_group or default logdir mode defined. Setting to 0700.
  103.  
  104. [2023-06-12T08:51:13+00:00] WARN: gitlab-sshd does not have a log_group or default logdir mode defined. Setting to 0700.
  105.  
  106. [2023-06-12T08:51:13+00:00] WARN: logrotate does not have a log_group or default logdir mode defined. Setting to 0700.
  107.  
  108. [2023-06-12T08:51:13+00:00] WARN: logrotate does not have a log_group or default logdir mode defined. Setting to 0700.
  109.  
  110. [2023-06-12T08:51:13+00:00] WARN: puma does not have a log_group or default logdir mode defined. Setting to 0700.
  111.  
  112. [2023-06-12T08:51:13+00:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
  113.  
  114. [2023-06-12T08:51:13+00:00] WARN: gitlab-shell does not have a log_group or default logdir mode defined. Setting to 0700.
  115.  
  116. [2023-06-12T08:51:13+00:00] WARN: gitlab-workhorse does not have a log_group or default logdir mode defined. Setting to 0700.
  117.  
  118. [2023-06-12T08:51:13+00:00] WARN: gitlab-pages does not have a log_group or default logdir mode defined. Setting to 0700.
  119.  
  120. [2023-06-12T08:51:13+00:00] WARN: gitlab-kas does not have a log_group or default logdir mode defined. Setting to 0700.
  121.  
  122. [2023-06-12T08:51:13+00:00] WARN: gitaly does not have a log_group or default logdir mode defined. Setting to 0700.
  123.  
  124. [2023-06-12T08:51:13+00:00] WARN: mailroom does not have a log_group or default logdir mode defined. Setting to 0700.
  125.  
  126. [2023-06-12T08:51:13+00:00] WARN: gitaly does not have a log_group or default logdir mode defined. Setting to 0700.
  127.  
  128. [2023-06-12T08:51:13+00:00] WARN: postgresql does not have a log_group or default logdir mode defined. Setting to 0700.
  129.  
  130. [2023-06-12T08:51:13+00:00] WARN: postgresql does not have a log_group or default logdir mode defined. Setting to 0700.
  131.  
  132. [2023-06-12T08:51:13+00:00] INFO: /opt/gitlab/init/postgresql status does not exist.
  133.  
  134. [2023-06-12T08:51:13+00:00] WARN: gitlab-kas does not have a log_group or default logdir mode defined. Setting to 0700.
  135.  
  136. [2023-06-12T08:51:13+00:00] WARN: puma does not have a log_group or default logdir mode defined. Setting to 0700.
  137.  
  138. [2023-06-12T08:51:13+00:00] WARN: sidekiq does not have a log_group or default logdir mode defined. Setting to 0700.
  139.  
  140. [2023-06-12T08:51:13+00:00] WARN: gitlab-workhorse does not have a log_group or default logdir mode defined. Setting to 0700.
  141.  
  142. [2023-06-12T08:51:13+00:00] WARN: node-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
  143.  
  144. [2023-06-12T08:51:13+00:00] WARN: gitlab-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
  145.  
  146. [2023-06-12T08:51:13+00:00] WARN: redis-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
  147.  
  148. [2023-06-12T08:51:13+00:00] WARN: prometheus does not have a log_group or default logdir mode defined. Setting to 0700.
  149.  
  150. [2023-06-12T08:51:14+00:00] WARN: alertmanager does not have a log_group or default logdir mode defined. Setting to 0700.
  151.  
  152. [2023-06-12T08:51:14+00:00] WARN: postgres-exporter does not have a log_group or default logdir mode defined. Setting to 0700.
  153.  
  154. /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
  155.  
  156. /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
  157.  
  158. /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
  159.  
  160. /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
  161.  
  162. Converging 304 resources
  163.  
  164. * directory[/etc/gitlab] action create (up to date)
  165.  
  166. * directory[Create /var/opt/gitlab] action create (up to date)
  167.  
  168. * directory[Create /var/log/gitlab] action create (up to date)
  169.  
  170. * directory[/opt/gitlab/embedded/etc] action create (up to date)
  171.  
  172. * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date)
  173.  
  174. Recipe: gitlab::web-server
  175.  
  176. * account[Webserver user and group] action create
  177.  
  178. * group[Webserver user and group] action create (up to date)
  179.  
  180. * linux_user[Webserver user and group] action create (up to date)
  181.  
  182. (up to date)
  183.  
  184. Recipe: gitlab::users
  185.  
  186. * directory[/var/opt/gitlab] action create (up to date)
  187.  
  188. * account[GitLab user and group] action create
  189.  
  190. * group[GitLab user and group] action create (up to date)
  191.  
  192. * linux_user[GitLab user and group] action create (up to date)
  193.  
  194. (up to date)
  195.  
  196. * 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
  197.  
  198. [2023-06-12T08:51:14+00:00] INFO: template[/var/opt/gitlab/.gitconfig] updated file contents /var/opt/gitlab/.gitconfig
  199.  
  200.  
  201. - update content in file /var/opt/gitlab/.gitconfig from cbd37b to 24783d
  202.  
  203. --- /var/opt/gitlab/.gitconfig 2023-06-08 17:23:57.709198852 +0000
  204.  
  205. +++ /var/opt/gitlab/.chef-.gitconfig20230612-2522091-sxu4dc.gitconfig 2023-06-12 08:51:14.399777780 +0000
  206.  
  207. @@ -4,7 +4,7 @@
  208.  
  209.  
  210. [user]
  211.  
  212. name = GitLab
  213.  
  214. - email = [email protected]
  215.  
  216. + email = [email protected]
  217.  
  218. [core]
  219.  
  220. autocrlf = input
  221.  
  222.  
  223. * directory[/var/opt/gitlab/.bundle] action create (up to date)
  224.  
  225. Recipe: gitlab::gitlab-rails
  226.  
  227. * storage_directory[/var/opt/gitlab/git-data] action create
  228.  
  229. * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if)
  230.  
  231. (up to date)
  232.  
  233. * storage_directory[/var/opt/gitlab/git-data/repositories] action create
  234.  
  235. * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if)
  236.  
  237. (up to date)
  238.  
  239. Recipe: gitlab::rails_pages_shared_path
  240.  
  241. * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create
  242.  
  243. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if)
  244.  
  245. (up to date)
  246.  
  247. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
  248.  
  249. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if)
  250.  
  251. (up to date)
  252.  
  253. Recipe: gitlab::gitlab-rails
  254.  
  255. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
  256.  
  257. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if)
  258.  
  259. (up to date)
  260.  
  261. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create
  262.  
  263. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if)
  264.  
  265. (up to date)
  266.  
  267. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
  268.  
  269. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if)
  270.  
  271. (up to date)
  272.  
  273. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create
  274.  
  275. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if)
  276.  
  277. (up to date)
  278.  
  279. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create
  280.  
  281. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if)
  282.  
  283. (up to date)
  284.  
  285. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/terraform_state] action create
  286.  
  287. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/terraform_state] action run (skipped due to not_if)
  288.  
  289. (up to date)
  290.  
  291. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action create
  292.  
  293. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action run (skipped due to not_if)
  294.  
  295. (up to date)
  296.  
  297. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action create
  298.  
  299. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action run (skipped due to not_if)
  300.  
  301. (up to date)
  302.  
  303. * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create
  304.  
  305. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if)
  306.  
  307. (up to date)
  308.  
  309. * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create
  310.  
  311. * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if)
  312.  
  313. (up to date)
  314.  
  315. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create
  316.  
  317. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if)
  318.  
  319. (up to date)
  320.  
  321. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create
  322.  
  323. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if)
  324.  
  325. (up to date)
  326.  
  327. * storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if)
  328.  
  329. * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date)
  330.  
  331. * directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date)
  332.  
  333. * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date)
  334.  
  335. * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date)
  336.  
  337. * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date)
  338.  
  339. * directory[/var/log/gitlab/gitlab-rails] action create (up to date)
  340.  
  341. * storage_directory[/var/opt/gitlab/backups] action create
  342.  
  343. * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if)
  344.  
  345. (up to date)
  346.  
  347. * directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
  348.  
  349. * directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
  350.  
  351. * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
  352.  
  353. * 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
  354.  
  355. [2023-06-12T08:51:15+00:00] INFO: template[/opt/gitlab/etc/gitlab-rails-rc] updated file contents /opt/gitlab/etc/gitlab-rails-rc
  356.  
  357.  
  358. - update content in file /opt/gitlab/etc/gitlab-rails-rc from 000a09 to 7b16c8
  359.  
  360. --- /opt/gitlab/etc/gitlab-rails-rc 2023-06-08 17:24:00.873186764 +0000
  361.  
  362. +++ /opt/gitlab/etc/.chef-gitlab-rails-rc20230612-2522091-qv30p3 2023-06-12 08:51:15.199775672 +0000
  363.  
  364. @@ -1,6 +1,6 @@
  365.  
  366. gitlab_user='git'
  367.  
  368. gitlab_group='git'
  369.  
  370. -registry_dir='/var/opt/gitlab/gitlab-rails/shared/registry'
  371.  
  372. +registry_dir=''
  373.  
  374. registry_user='registry'
  375.  
  376. registry_group='registry'
  377.  
  378. * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
  379.  
  380. * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
  381.  
  382. * templatesymlink[Create a database.yml and create a symlink to Rails root] action create
  383.  
  384. * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
  385.  
  386. * 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)
  387.  
  388. (up to date)
  389.  
  390. * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
  391.  
  392. * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
  393.  
  394. * 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)
  395.  
  396. (up to date)
  397.  
  398. * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
  399.  
  400. * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
  401.  
  402. * 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)
  403.  
  404. (up to date)
  405.  
  406. * templatesymlink[Create an override redis.yml and create a symlink to Rails root] action create
  407.  
  408. * template[/var/opt/gitlab/gitlab-rails/etc/redis.yml] action create (up to date)
  409.  
  410. * 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)
  411.  
  412. (up to date)
  413.  
  414. * templatesymlink[Create a cable.yml and create a symlink to Rails root] action create
  415.  
  416. * template[/var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date)
  417.  
  418. * 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)
  419.  
  420. (up to date)
  421.  
  422. * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action delete
  423.  
  424. * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date)
  425.  
  426. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date)
  427.  
  428. (up to date)
  429.  
  430. * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action delete
  431.  
  432. * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date)
  433.  
  434. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date)
  435.  
  436. (up to date)
  437.  
  438. * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action delete
  439.  
  440. * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date)
  441.  
  442. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date)
  443.  
  444. (up to date)
  445.  
  446. * templatesymlink[Create a redis.trace_chunks.yml and create a symlink to Rails root] action delete
  447.  
  448. * file[/var/opt/gitlab/gitlab-rails/etc/redis.trace_chunks.yml] action delete (up to date)
  449.  
  450. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.trace_chunks.yml] action delete (up to date)
  451.  
  452. (up to date)
  453.  
  454. * templatesymlink[Create a redis.rate_limiting.yml and create a symlink to Rails root] action delete
  455.  
  456. * file[/var/opt/gitlab/gitlab-rails/etc/redis.rate_limiting.yml] action delete (up to date)
  457.  
  458. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.rate_limiting.yml] action delete (up to date)
  459.  
  460. (up to date)
  461.  
  462. * templatesymlink[Create a redis.sessions.yml and create a symlink to Rails root] action delete
  463.  
  464. * file[/var/opt/gitlab/gitlab-rails/etc/redis.sessions.yml] action delete (up to date)
  465.  
  466. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.sessions.yml] action delete (up to date)
  467.  
  468. (up to date)
  469.  
  470. * templatesymlink[Create a redis.repository_cache.yml and create a symlink to Rails root] action delete
  471.  
  472. * file[/var/opt/gitlab/gitlab-rails/etc/redis.repository_cache.yml] action delete (up to date)
  473.  
  474. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.repository_cache.yml] action delete (up to date)
  475.  
  476. (up to date)
  477.  
  478. * templatesymlink[Create a redis.cluster_rate_limiting.yml and create a symlink to Rails root] action delete
  479.  
  480. * file[/var/opt/gitlab/gitlab-rails/etc/redis.cluster_rate_limiting.yml] action delete (up to date)
  481.  
  482. * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cluster_rate_limiting.yml] action delete (up to date)
  483.  
  484. (up to date)
  485.  
  486. * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete
  487.  
  488. * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
  489.  
  490. * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date)
  491.  
  492. (up to date)
  493.  
  494. * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
  495.  
  496. * 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
  497.  
  498. [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
  499.  
  500.  
  501. - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from 0a686e to c48272
  502.  
  503. - suppressed sensitive resource
  504.  
  505. * 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)
  506.  
  507.  
  508. * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
  509.  
  510. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
  511.  
  512. * 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)
  513.  
  514. (up to date)
  515.  
  516. * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
  517.  
  518. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
  519.  
  520. * 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)
  521.  
  522. (up to date)
  523.  
  524. * templatesymlink[Create a gitlab_incoming_email_secret and create a symlink to Rails root] action create (skipped due to only_if)
  525.  
  526. * templatesymlink[Create a gitlab_service_desk_email_secret and create a symlink to Rails root] action create (skipped due to only_if)
  527.  
  528. * 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?
  529.  
  530.  
  531. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date)
  532.  
  533. * 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)
  534.  
  535. (up to date)
  536.  
  537. * 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?
  538.  
  539.  
  540. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date)
  541.  
  542. * 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)
  543.  
  544. (up to date)
  545.  
  546. * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
  547.  
  548. * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
  549.  
  550. * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
  551.  
  552. * directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)
  553.  
  554. * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)
  555.  
  556. * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)
  557.  
  558. * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)
  559.  
  560. * file[/opt/gitlab/etc/gitlab-rails/env/PUMA_WORKER_MAX_MEMORY] action create (up to date)
  561.  
  562. * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)
  563.  
  564. * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)
  565.  
  566. * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date)
  567.  
  568. * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date)
  569.  
  570. * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date)
  571.  
  572. * file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create (up to date)
  573.  
  574. * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_DIR] action create (up to date)
  575.  
  576. * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_FILE] action create (up to date)
  577.  
  578. (up to date)
  579.  
  580. * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)
  581.  
  582. * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)
  583.  
  584. * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)
  585.  
  586. * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action delete (skipped due to only_if)
  587.  
  588. * file[/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql] action create (up to date)
  589.  
  590. * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date)
  591.  
  592. * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date)
  593.  
  594. * version_file[Create version file for Rails] action create
  595.  
  596. * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date)
  597.  
  598. (up to date)
  599.  
  600. * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
  601.  
  602. * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
  603.  
  604. Recipe: gitlab::selinux
  605.  
  606. * bash[Set proper security context on ssh files for selinux] action nothing (skipped due to action :nothing)
  607.  
  608. Recipe: gitlab::add_trusted_certs
  609.  
  610. * directory[/etc/gitlab/trusted-certs] action create (up to date)
  611.  
  612. * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
  613.  
  614. * file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date)
  615.  
  616. * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if)
  617.  
  618. Recipe: gitlab::default
  619.  
  620. * service[create a temporary puma service] action nothing (skipped due to action :nothing)
  621.  
  622. * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
  623.  
  624. * service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
  625.  
  626. Recipe: package::runit_systemd
  627.  
  628. * directory[/usr/lib/systemd/system] action create (up to date)
  629.  
  630. * template[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
  631.  
  632. * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
  633.  
  634. * file[/etc/systemd/system/basic.target.wants/gitlab-runsvdir.service] action delete (up to date)
  635.  
  636. * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
  637.  
  638. * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
  639.  
  640. * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing)
  641.  
  642. Recipe: gitlab::gitlab-shell
  643.  
  644. * storage_directory[/var/opt/gitlab/.ssh] action create
  645.  
  646. * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if)
  647.  
  648. (up to date)
  649.  
  650. * directory[/var/opt/gitlab/gitlab-shell] action create (up to date)
  651.  
  652. * directory[/var/log/gitlab/gitlab-shell] action create (up to date)
  653.  
  654. * bash[generate gitlab-sshd host keys] action run (skipped due to only_if)
  655.  
  656. * templatesymlink[Create a config.yml and create a symlink to Rails root] action create
  657.  
  658. * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
  659.  
  660. * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
  661.  
  662. (up to date)
  663.  
  664. * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
  665.  
  666. * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date)
  667.  
  668. * env_dir[/opt/gitlab/etc/gitlab-sshd/env] action nothing (skipped due to action :nothing)
  669.  
  670. * service[gitlab-sshd] action nothing (skipped due to action :nothing)
  671.  
  672. * runit_service[gitlab-sshd] action disable
  673.  
  674. * ruby_block[disable gitlab-sshd] action run (skipped due to only_if)
  675.  
  676. (up to date)
  677.  
  678. Recipe: package::sysctl
  679.  
  680. * execute[reload all sysctl conf] action nothing (skipped due to action :nothing)
  681.  
  682. Recipe: logrotate::folders_and_configs
  683.  
  684. * directory[/var/opt/gitlab/logrotate] action create (up to date)
  685.  
  686. * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date)
  687.  
  688. * directory[/var/log/gitlab/logrotate] action create (up to date)
  689.  
  690. * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date)
  691.  
  692. * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date)
  693.  
  694. * template[/var/opt/gitlab/logrotate/logrotate.d/puma] action create (up to date)
  695.  
  696. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date)
  697.  
  698. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date)
  699.  
  700. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date)
  701.  
  702. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date)
  703.  
  704. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-kas] action create (up to date)
  705.  
  706. * template[/var/opt/gitlab/logrotate/logrotate.d/gitaly] action create (up to date)
  707.  
  708. * template[/var/opt/gitlab/logrotate/logrotate.d/mailroom] action create (up to date)
  709.  
  710. Recipe: logrotate::enable
  711.  
  712. * service[logrotate] action nothing (skipped due to action :nothing)
  713.  
  714. * runit_service[logrotate] action enable
  715.  
  716. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  717.  
  718. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  719.  
  720. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  721.  
  722. * directory[/opt/gitlab/sv/logrotate] action create (up to date)
  723.  
  724. * template[/opt/gitlab/sv/logrotate/run] action create (up to date)
  725.  
  726. * directory[/opt/gitlab/sv/logrotate/log] action create (up to date)
  727.  
  728. * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date)
  729.  
  730. * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date)
  731.  
  732. * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing)
  733.  
  734. * link[/var/log/gitlab/logrotate/config] action create (up to date)
  735.  
  736. * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date)
  737.  
  738. * directory[/opt/gitlab/sv/logrotate/env] action create (up to date)
  739.  
  740. * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if)
  741.  
  742. * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if)
  743.  
  744. * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if)
  745.  
  746. * directory[/opt/gitlab/sv/logrotate/control] action create (up to date)
  747.  
  748. * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date)
  749.  
  750. * link[/opt/gitlab/init/logrotate] action create (up to date)
  751.  
  752. * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing)
  753.  
  754. * directory[/opt/gitlab/service] action create (up to date)
  755.  
  756. * link[/opt/gitlab/service/logrotate] action create (up to date)
  757.  
  758. * ruby_block[wait for logrotate service socket] action run (skipped due to not_if)
  759.  
  760. * file[/var/log/gitlab/logrotate/current] action touch (skipped due to only_if)
  761.  
  762. (up to date)
  763.  
  764. * execute[/opt/gitlab/bin/gitlab-ctl start logrotate] action run
  765.  
  766. [execute] ok: run: logrotate: (pid 2496851) 1627s
  767.  
  768. [2023-06-12T08:51:16+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start logrotate] ran successfully
  769.  
  770. - execute /opt/gitlab/bin/gitlab-ctl start logrotate
  771.  
  772. Recipe: redis::enable
  773.  
  774. * 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.
  775.  
  776.  
  777. * account[user and group for redis] action create
  778.  
  779. * group[user and group for redis] action create (up to date)
  780.  
  781. * linux_user[user and group for redis] action create (up to date)
  782.  
  783. (up to date)
  784.  
  785. * group[Socket group] action create (up to date)
  786.  
  787. * directory[/var/opt/gitlab/redis] action create (up to date)
  788.  
  789. * directory[/var/log/gitlab/redis] action create (up to date)
  790.  
  791. * template[/var/opt/gitlab/redis/redis.conf] action create (up to date)
  792.  
  793. * service[redis] action nothing (skipped due to action :nothing)
  794.  
  795. * runit_service[redis] action enable
  796.  
  797. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  798.  
  799. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  800.  
  801. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  802.  
  803. * directory[/opt/gitlab/sv/redis] action create (up to date)
  804.  
  805. * template[/opt/gitlab/sv/redis/run] action create (up to date)
  806.  
  807. * directory[/opt/gitlab/sv/redis/log] action create (up to date)
  808.  
  809. * directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
  810.  
  811. * template[/opt/gitlab/sv/redis/log/config] action create (up to date)
  812.  
  813. * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing)
  814.  
  815. * link[/var/log/gitlab/redis/config] action create (up to date)
  816.  
  817. * template[/opt/gitlab/sv/redis/log/run] action create (up to date)
  818.  
  819. * directory[/opt/gitlab/sv/redis/env] action create (up to date)
  820.  
  821. * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if)
  822.  
  823. * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if)
  824.  
  825. * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if)
  826.  
  827. * directory[/opt/gitlab/sv/redis/control] action create (up to date)
  828.  
  829. * link[/opt/gitlab/init/redis] action create (up to date)
  830.  
  831. * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing)
  832.  
  833. * directory[/opt/gitlab/service] action create (up to date)
  834.  
  835. * link[/opt/gitlab/service/redis] action create (up to date)
  836.  
  837. * ruby_block[wait for redis service socket] action run (skipped due to not_if)
  838.  
  839. * file[/var/log/gitlab/redis/current] action touch (skipped due to only_if)
  840.  
  841. (up to date)
  842.  
  843. * execute[/opt/gitlab/bin/gitlab-ctl start redis] action run
  844.  
  845. [execute] ok: run: redis: (pid 30925) 314825s
  846.  
  847. [2023-06-12T08:51:17+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start redis] ran successfully
  848.  
  849. - execute /opt/gitlab/bin/gitlab-ctl start redis
  850.  
  851. * ruby_block[warn pending redis restart] action run (skipped due to only_if)
  852.  
  853.  
  854. * template[/opt/gitlab/etc/gitlab-redis-cli-rc] action create (up to date)
  855.  
  856. Recipe: gitaly::enable
  857.  
  858. * directory[/var/opt/gitlab/gitaly] action create (up to date)
  859.  
  860. * directory[/var/opt/gitlab/gitaly/run] action create (up to date)
  861.  
  862. * directory[/var/log/gitlab/gitaly] action create (up to date)
  863.  
  864. * directory[/var/opt/gitlab/gitaly/internal_sockets] action delete (up to date)
  865.  
  866. * env_dir[/opt/gitlab/etc/gitaly/env] action create
  867.  
  868. * directory[/opt/gitlab/etc/gitaly/env] action create (up to date)
  869.  
  870. * file[/opt/gitlab/etc/gitaly/env/HOME] action create (up to date)
  871.  
  872. * file[/opt/gitlab/etc/gitaly/env/PATH] action create (up to date)
  873.  
  874. * file[/opt/gitlab/etc/gitaly/env/TZ] action create (up to date)
  875.  
  876. * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create (up to date)
  877.  
  878. * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create (up to date)
  879.  
  880. * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create (up to date)
  881.  
  882. * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create (up to date)
  883.  
  884. * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create (up to date)
  885.  
  886. (up to date)
  887.  
  888. * template[Create Gitaly config.toml] action create (up to date)
  889.  
  890. * service[gitaly] action nothing (skipped due to action :nothing)
  891.  
  892. * runit_service[gitaly] action enable
  893.  
  894. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  895.  
  896. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  897.  
  898. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  899.  
  900. * directory[/opt/gitlab/sv/gitaly] action create (up to date)
  901.  
  902. * template[/opt/gitlab/sv/gitaly/run] action create (up to date)
  903.  
  904. * directory[/opt/gitlab/sv/gitaly/log] action create (up to date)
  905.  
  906. * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date)
  907.  
  908. * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date)
  909.  
  910. * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing)
  911.  
  912. * link[/var/log/gitlab/gitaly/config] action create (up to date)
  913.  
  914. * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date)
  915.  
  916. * directory[/opt/gitlab/sv/gitaly/env] action create (up to date)
  917.  
  918. * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
  919.  
  920. * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
  921.  
  922. * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
  923.  
  924. * directory[/opt/gitlab/sv/gitaly/control] action create (up to date)
  925.  
  926. * link[/opt/gitlab/init/gitaly] action create (up to date)
  927.  
  928. * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing)
  929.  
  930. * directory[/opt/gitlab/service] action create (up to date)
  931.  
  932. * link[/opt/gitlab/service/gitaly] action create (up to date)
  933.  
  934. * ruby_block[wait for gitaly service socket] action run (skipped due to not_if)
  935.  
  936. * file[/var/log/gitlab/gitaly/current] action touch (skipped due to only_if)
  937.  
  938. (up to date)
  939.  
  940. * execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run
  941.  
  942. [execute] ok: run: gitaly: (pid 31291) 314793s
  943.  
  944. [2023-06-12T08:51:18+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start gitaly] ran successfully
  945.  
  946. - execute /opt/gitlab/bin/gitlab-ctl start gitaly
  947.  
  948. * version_file[Create version file for Gitaly] action create
  949.  
  950. * file[/var/opt/gitlab/gitaly/VERSION] action create (up to date)
  951.  
  952. (up to date)
  953.  
  954. * consul_service[gitaly] action delete
  955.  
  956. * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date)
  957.  
  958. (up to date)
  959.  
  960. Recipe: postgresql::bin
  961.  
  962. * ruby_block[check_postgresql_version] action run (skipped due to not_if)
  963.  
  964. * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if)
  965.  
  966. * 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
  967.  
  968.  
  969. - execute the ruby block Link postgresql bin files to the correct version
  970.  
  971. * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
  972.  
  973. Recipe: postgresql::user
  974.  
  975. * account[Postgresql user and group] action create
  976.  
  977. * group[Postgresql user and group] action create (up to date)
  978.  
  979. * linux_user[Postgresql user and group] action create (up to date)
  980.  
  981. (up to date)
  982.  
  983. * directory[/var/opt/gitlab/postgresql] action create (up to date)
  984.  
  985. * file[/var/opt/gitlab/postgresql/.profile] action create (up to date)
  986.  
  987. Recipe: postgresql::sysctl
  988.  
  989. * gitlab_sysctl[kernel.shmmax] action create
  990.  
  991. * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date)
  992.  
  993. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date)
  994.  
  995. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date)
  996.  
  997. * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing)
  998.  
  999. (up to date)
  1000.  
  1001. * gitlab_sysctl[kernel.shmall] action create
  1002.  
  1003. * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date)
  1004.  
  1005. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date)
  1006.  
  1007. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date)
  1008.  
  1009. * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing)
  1010.  
  1011. (up to date)
  1012.  
  1013. * gitlab_sysctl[kernel.sem] action create
  1014.  
  1015. * directory[create /etc/sysctl.d for kernel.sem] action create (up to date)
  1016.  
  1017. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date)
  1018.  
  1019. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date)
  1020.  
  1021. * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing)
  1022.  
  1023. (up to date)
  1024.  
  1025. Recipe: postgresql::enable
  1026.  
  1027. * directory[/var/opt/gitlab/postgresql] action create (up to date)
  1028.  
  1029. * 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
  1030.  
  1031.  
  1032. - 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
  1033.  
  1034. [2023-06-12T08:51:19+00:00] INFO: directory[/var/opt/gitlab/postgresql/data] mode changed to 700
  1035.  
  1036.  
  1037. - change mode from '' to '0700'
  1038.  
  1039. - change owner from '' to 'gitlab-psql'
  1040.  
  1041. * directory[/var/opt/gitlab/postgresql/data] action create (up to date)
  1042.  
  1043. * 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
  1044.  
  1045.  
  1046. - create new directory /var/log/gitlab/postgresql[2023-06-12T08:51:19+00:00] INFO: directory[/var/log/gitlab/postgresql] owner changed to 995
  1047.  
  1048. [2023-06-12T08:51:19+00:00] INFO: directory[/var/log/gitlab/postgresql] mode changed to 700
  1049.  
  1050.  
  1051. - change mode from '' to '0700'
  1052.  
  1053. - change owner from '' to 'gitlab-psql'
  1054.  
  1055. * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run
  1056.  
  1057. [execute] The files belonging to this database system will be owned by user "gitlab-psql".
  1058.  
  1059. This user must also own the server process.
  1060.  
  1061.  
  1062. The database cluster will be initialized with locale "C".
  1063.  
  1064. The default text search configuration will be set to "english".
  1065.  
  1066.  
  1067. Data page checksums are disabled.
  1068.  
  1069.  
  1070. fixing permissions on existing directory /var/opt/gitlab/postgresql/data ... ok
  1071.  
  1072. creating subdirectories ... ok
  1073.  
  1074. selecting dynamic shared memory implementation ... posix
  1075.  
  1076. selecting default max_connections ... 100
  1077.  
  1078. selecting default shared_buffers ... 128MB
  1079.  
  1080. selecting default time zone ... Etc/UTC
  1081.  
  1082. creating configuration files ... ok
  1083.  
  1084. running bootstrap script ... ok
  1085.  
  1086. performing post-bootstrap initialization ... ok
  1087.  
  1088. syncing data to disk ... ok
  1089.  
  1090.  
  1091.  
  1092. Success. You can now start the database server using:
  1093.  
  1094.  
  1095. /opt/gitlab/embedded/bin/pg_ctl -D /var/opt/gitlab/postgresql/data -l logfile start
  1096.  
  1097.  
  1098. initdb: warning: enabling "trust" authentication for local connections
  1099.  
  1100. You can change this by editing pg_hba.conf or using the option -A, or
  1101.  
  1102. --auth-local and --auth-host, the next time you run initdb.
  1103.  
  1104. [2023-06-12T08:51:23+00:00] INFO: execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] ran successfully
  1105.  
  1106. - execute /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8
  1107.  
  1108. * 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
  1109.  
  1110.  
  1111. - 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
  1112.  
  1113.  
  1114. - update content in file /var/opt/gitlab/postgresql/data/server.crt from none to 11600b
  1115.  
  1116. - suppressed sensitive resource[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] owner changed to 995
  1117.  
  1118. [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] group changed to 995
  1119.  
  1120. [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.crt] mode changed to 600
  1121.  
  1122.  
  1123. - change mode from '' to '0600'
  1124.  
  1125. - change owner from '' to 'gitlab-psql'
  1126.  
  1127. - change group from '' to 'gitlab-psql'
  1128.  
  1129. * 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
  1130.  
  1131.  
  1132. - 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
  1133.  
  1134.  
  1135. - update content in file /var/opt/gitlab/postgresql/data/server.key from none to b520be
  1136.  
  1137. - suppressed sensitive resource[2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] owner changed to 995
  1138.  
  1139. [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] group changed to 995
  1140.  
  1141. [2023-06-12T08:51:23+00:00] INFO: file[/var/opt/gitlab/postgresql/data/server.key] mode changed to 600
  1142.  
  1143.  
  1144. - change mode from '' to '0600'
  1145.  
  1146. - change owner from '' to 'gitlab-psql'
  1147.  
  1148. - change group from '' to 'gitlab-psql'
  1149.  
  1150. * postgresql_config[gitlab] action create
  1151.  
  1152. * 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
  1153.  
  1154. [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
  1155.  
  1156.  
  1157. - update content in file /var/opt/gitlab/postgresql/data/postgresql.conf from 345513 to e0d332
  1158.  
  1159. --- /var/opt/gitlab/postgresql/data/postgresql.conf 2023-06-12 08:51:19.947763143 +0000
  1160.  
  1161. +++ /var/opt/gitlab/postgresql/data/.chef-postgresql20230612-2522091-hzdfsa.conf 2023-06-12 08:51:23.611753451 +0000
  1162.  
  1163. @@ -1,3 +1,7 @@
  1164.  
  1165. +# This file is managed by gitlab-ctl. Manual changes will be
  1166.  
  1167. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  1168.  
  1169. +# and run `sudo gitlab-ctl reconfigure`.
  1170.  
  1171. +
  1172.  
  1173. # -----------------------------
  1174.  
  1175. # PostgreSQL configuration file
  1176.  
  1177. # -----------------------------
  1178.  
  1179. @@ -16,19 +20,18 @@
  1180.  
  1181. #
  1182.  
  1183. # This file is read on server startup and when the server receives a SIGHUP
  1184.  
  1185. # signal. If you edit the file on a running system, you have to SIGHUP the
  1186.  
  1187. -# server for the changes to take effect, run "pg_ctl reload", or execute
  1188.  
  1189. -# "SELECT pg_reload_conf()". Some parameters, which are marked below,
  1190.  
  1191. -# require a server shutdown and restart to take effect.
  1192.  
  1193. +# server for the changes to take effect, or use "pg_ctl reload". Some
  1194.  
  1195. +# parameters, which are marked below, require a server shutdown and restart to
  1196.  
  1197. +# take effect.
  1198.  
  1199. #
  1200.  
  1201. # Any parameter can also be given as a command-line option to the server, e.g.,
  1202.  
  1203. # "postgres -c log_connections=on". Some parameters can be changed at run time
  1204.  
  1205. # with the "SET" SQL command.
  1206.  
  1207. #
  1208.  
  1209. -# Memory units: B = bytes Time units: us = microseconds
  1210.  
  1211. -# kB = kilobytes ms = milliseconds
  1212.  
  1213. +# Memory units: kB = kilobytes Time units: ms = milliseconds
  1214.  
  1215. # MB = megabytes s = seconds
  1216.  
  1217. # GB = gigabytes min = minutes
  1218.  
  1219. -# TB = terabytes h = hours
  1220.  
  1221. +# h = hours
  1222.  
  1223. # d = days
  1224.  
  1225.  
  1226.  
  1227. @@ -39,16 +42,16 @@
  1228.  
  1229. # The default values of these variables are driven from the -D command-line
  1230.  
  1231. # option or PGDATA environment variable, represented here as ConfigDir.
  1232.  
  1233.  
  1234. -#data_directory = 'ConfigDir' # use data in another directory
  1235.  
  1236. - # (change requires restart)
  1237.  
  1238. -#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
  1239.  
  1240. - # (change requires restart)
  1241.  
  1242. -#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
  1243.  
  1244. - # (change requires restart)
  1245.  
  1246. +#data_directory = 'ConfigDir' # use data in another directory
  1247.  
  1248. + # (change requires restart)
  1249.  
  1250. +#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
  1251.  
  1252. + # (change requires restart)
  1253.  
  1254. +#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
  1255.  
  1256. + # (change requires restart)
  1257.  
  1258.  
  1259. # If external_pid_file is not explicitly set, no extra PID file is written.
  1260.  
  1261. -#external_pid_file = '' # write an extra PID file
  1262.  
  1263. - # (change requires restart)
  1264.  
  1265. +#external_pid_file = '(none)' # write an extra PID file
  1266.  
  1267. + # (change requires restart)
  1268.  
  1269.  
  1270.  
  1271. #------------------------------------------------------------------------------
  1272.  
  1273. @@ -57,60 +60,57 @@
  1274.  
  1275.  
  1276. # - Connection Settings -
  1277.  
  1278.  
  1279. -#listen_addresses = 'localhost' # what IP address(es) to listen on;
  1280.  
  1281. - # comma-separated list of addresses;
  1282.  
  1283. - # defaults to 'localhost'; use '*' for all
  1284.  
  1285. - # (change requires restart)
  1286.  
  1287. -#port = 5432 # (change requires restart)
  1288.  
  1289. -max_connections = 100 # (change requires restart)
  1290.  
  1291. -#superuser_reserved_connections = 3 # (change requires restart)
  1292.  
  1293. -#unix_socket_directories = '/tmp' # comma-separated list of directories
  1294.  
  1295. - # (change requires restart)
  1296.  
  1297. -#unix_socket_group = '' # (change requires restart)
  1298.  
  1299. -#unix_socket_permissions = 0777 # begin with 0 to use octal notation
  1300.  
  1301. - # (change requires restart)
  1302.  
  1303. -#bonjour = off # advertise server via Bonjour
  1304.  
  1305. - # (change requires restart)
  1306.  
  1307. -#bonjour_name = '' # defaults to the computer name
  1308.  
  1309. - # (change requires restart)
  1310.  
  1311. +listen_addresses = '' # what IP address(es) to listen on;
  1312.  
  1313. + # comma-separated list of addresses;
  1314.  
  1315. + # defaults to 'localhost', '*' = all
  1316.  
  1317. + # (change requires restart)
  1318.  
  1319. +port = 5432 # (change requires restart)
  1320.  
  1321. +max_connections = 400 # (change requires restart)
  1322.  
  1323. +# Note: Increasing max_connections costs ~400 bytes of shared memory per
  1324.  
  1325. +# connection slot, plus lock space (see max_locks_per_transaction).
  1326.  
  1327. +#superuser_reserved_connections = 3 # (change requires restart)
  1328.  
  1329. +unix_socket_directories = '/var/opt/gitlab/postgresql' # (change requires restart)
  1330.  
  1331. +#unix_socket_group = '' # (change requires restart)
  1332.  
  1333. +#unix_socket_permissions = 0777 # begin with 0 to use octal notation
  1334.  
  1335. + # (change requires restart)
  1336.  
  1337. +#bonjour = off # advertise server via Bonjour
  1338.  
  1339. + # (change requires restart)
  1340.  
  1341. +#bonjour_name = '' # defaults to the computer name
  1342.  
  1343. + # (change requires restart)
  1344.  
  1345.  
  1346. -# - TCP settings -
  1347.  
  1348. -# see "man tcp" for details
  1349.  
  1350. +# - Security and Authentication -
  1351.  
  1352.  
  1353. -#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
  1354.  
  1355. - # 0 selects the system default
  1356.  
  1357. -#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
  1358.  
  1359. - # 0 selects the system default
  1360.  
  1361. -#tcp_keepalives_count = 0 # TCP_KEEPCNT;
  1362.  
  1363. - # 0 selects the system default
  1364.  
  1365. -#tcp_user_timeout = 0 # TCP_USER_TIMEOUT, in milliseconds;
  1366.  
  1367. - # 0 selects the system default
  1368.  
  1369. +#authentication_timeout = 1min # 1s-600s
  1370.  
  1371.  
  1372. -# - Authentication -
  1373.  
  1374. +# change requires restart
  1375.  
  1376. +ssl = on
  1377.  
  1378.  
  1379. -#authentication_timeout = 1min # 1s-600s
  1380.  
  1381. -#password_encryption = md5 # md5 or scram-sha-256
  1382.  
  1383. +# allowed SSL ciphers
  1384.  
  1385. +ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL:!SSLv3:!TLSv1'
  1386.  
  1387. +
  1388.  
  1389. +ssl_cert_file = 'server.crt'
  1390.  
  1391. +ssl_key_file = 'server.key'
  1392.  
  1393. +ssl_ca_file = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
  1394.  
  1395. +
  1396.  
  1397. +
  1398.  
  1399. +#ssl_renegotiation_limit = 512MB # amount of data between renegotiations
  1400.  
  1401. +#password_encryption = on
  1402.  
  1403. #db_user_namespace = off
  1404.  
  1405.  
  1406. -# GSSAPI using Kerberos
  1407.  
  1408. -#krb_server_keyfile = 'FILE:${sysconfdir}/krb5.keytab'
  1409.  
  1410. +# Kerberos and GSSAPI
  1411.  
  1412. +#krb_server_keyfile = ''
  1413.  
  1414. +#krb_srvname = 'postgres' # (Kerberos only)
  1415.  
  1416. #krb_caseins_users = off
  1417.  
  1418.  
  1419. -# - SSL -
  1420.  
  1421. +# - TCP Keepalives -
  1422.  
  1423. +# see "man 7 tcp" for details
  1424.  
  1425.  
  1426. -#ssl = off
  1427.  
  1428. -#ssl_ca_file = ''
  1429.  
  1430. -#ssl_cert_file = 'server.crt'
  1431.  
  1432. -#ssl_crl_file = ''
  1433.  
  1434. -#ssl_key_file = 'server.key'
  1435.  
  1436. -#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
  1437.  
  1438. -#ssl_prefer_server_ciphers = on
  1439.  
  1440. -#ssl_ecdh_curve = 'prime256v1'
  1441.  
  1442. -#ssl_min_protocol_version = 'TLSv1.2'
  1443.  
  1444. -#ssl_max_protocol_version = ''
  1445.  
  1446. -#ssl_dh_params_file = ''
  1447.  
  1448. -#ssl_passphrase_command = ''
  1449.  
  1450. -#ssl_passphrase_command_supports_reload = off
  1451.  
  1452. +#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
  1453.  
  1454. + # 0 selects the system default
  1455.  
  1456. +#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
  1457.  
  1458. + # 0 selects the system default
  1459.  
  1460. +#tcp_keepalives_count = 0 # TCP_KEEPCNT;
  1461.  
  1462. + # 0 selects the system default
  1463.  
  1464.  
  1465.  
  1466. #------------------------------------------------------------------------------
  1467.  
  1468. @@ -119,233 +119,105 @@
  1469.  
  1470.  
  1471. # - Memory -
  1472.  
  1473.  
  1474. -shared_buffers = 128MB # min 128kB
  1475.  
  1476. - # (change requires restart)
  1477.  
  1478. -#huge_pages = try # on, off, or try
  1479.  
  1480. - # (change requires restart)
  1481.  
  1482. -#temp_buffers = 8MB # min 800kB
  1483.  
  1484. -#max_prepared_transactions = 0 # zero disables the feature
  1485.  
  1486. - # (change requires restart)
  1487.  
  1488. -# Caution: it is not advisable to set max_prepared_transactions nonzero unless
  1489.  
  1490. -# you actively intend to use prepared transactions.
  1491.  
  1492. -#work_mem = 4MB # min 64kB
  1493.  
  1494. -#hash_mem_multiplier = 1.0 # 1-1000.0 multiplier on hash table work_mem
  1495.  
  1496. -#maintenance_work_mem = 64MB # min 1MB
  1497.  
  1498. -#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
  1499.  
  1500. -#logical_decoding_work_mem = 64MB # min 64kB
  1501.  
  1502. -#max_stack_depth = 2MB # min 100kB
  1503.  
  1504. -#shared_memory_type = mmap # the default is the first option
  1505.  
  1506. - # supported by the operating system:
  1507.  
  1508. - # mmap
  1509.  
  1510. - # sysv
  1511.  
  1512. - # windows
  1513.  
  1514. - # (change requires restart)
  1515.  
  1516. -dynamic_shared_memory_type = posix # the default is the first option
  1517.  
  1518. - # supported by the operating system:
  1519.  
  1520. - # posix
  1521.  
  1522. - # sysv
  1523.  
  1524. - # windows
  1525.  
  1526. - # mmap
  1527.  
  1528. - # (change requires restart)
  1529.  
  1530. +shared_buffers = 2048MB # min 128kB
  1531.  
  1532. + # (change requires restart)
  1533.  
  1534. +#temp_buffers = 8MB # min 800kB
  1535.  
  1536. +#max_prepared_transactions = 0 # zero disables the feature
  1537.  
  1538. + # (change requires restart)
  1539.  
  1540. +# Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
  1541.  
  1542. +# per transaction slot, plus lock space (see max_locks_per_transaction).
  1543.  
  1544. +# It is not advisable to set max_prepared_transactions nonzero unless you
  1545.  
  1546. +# actively intend to use prepared transactions.
  1547.  
  1548. +#max_stack_depth = 2MB # min 100kB
  1549.  
  1550.  
  1551. -# - Disk -
  1552.  
  1553. +# - Kernel Resource Usage -
  1554.  
  1555.  
  1556. -#temp_file_limit = -1 # limits per-process temp file space
  1557.  
  1558. - # in kilobytes, or -1 for no limit
  1559.  
  1560. +#max_files_per_process = 1000 # min 25
  1561.  
  1562. + # (change requires restart)
  1563.  
  1564. +shared_preload_libraries = '' # (change requires restart)
  1565.  
  1566.  
  1567. -# - Kernel Resources -
  1568.  
  1569. -
  1570.  
  1571. -#max_files_per_process = 1000 # min 64
  1572.  
  1573. - # (change requires restart)
  1574.  
  1575. -
  1576.  
  1577. # - Cost-Based Vacuum Delay -
  1578.  
  1579.  
  1580. -#vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables)
  1581.  
  1582. -#vacuum_cost_page_hit = 1 # 0-10000 credits
  1583.  
  1584. -#vacuum_cost_page_miss = 10 # 0-10000 credits
  1585.  
  1586. -#vacuum_cost_page_dirty = 20 # 0-10000 credits
  1587.  
  1588. -#vacuum_cost_limit = 200 # 1-10000 credits
  1589.  
  1590. +#vacuum_cost_delay = 0ms # 0-100 milliseconds
  1591.  
  1592. +#vacuum_cost_page_hit = 1 # 0-10000 credits
  1593.  
  1594. +#vacuum_cost_page_miss = 10 # 0-10000 credits
  1595.  
  1596. +#vacuum_cost_page_dirty = 20 # 0-10000 credits
  1597.  
  1598. +#vacuum_cost_limit = 200 # 1-10000 credits
  1599.  
  1600.  
  1601. # - Background Writer -
  1602.  
  1603.  
  1604. -#bgwriter_delay = 200ms # 10-10000ms between rounds
  1605.  
  1606. -#bgwriter_lru_maxpages = 100 # max buffers written/round, 0 disables
  1607.  
  1608. -#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round
  1609.  
  1610. -#bgwriter_flush_after = 512kB # measured in pages, 0 disables
  1611.  
  1612. +#bgwriter_delay = 200ms # 10-10000ms between rounds
  1613.  
  1614. +#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
  1615.  
  1616. +#bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
  1617.  
  1618.  
  1619. # - Asynchronous Behavior -
  1620.  
  1621.  
  1622. -#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
  1623.  
  1624. -#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
  1625.  
  1626. -#max_worker_processes = 8 # (change requires restart)
  1627.  
  1628. -#max_parallel_maintenance_workers = 2 # taken from max_parallel_workers
  1629.  
  1630. -#max_parallel_workers_per_gather = 2 # taken from max_parallel_workers
  1631.  
  1632. -#parallel_leader_participation = on
  1633.  
  1634. -#max_parallel_workers = 8 # maximum number of max_worker_processes that
  1635.  
  1636. - # can be used in parallel operations
  1637.  
  1638. -#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
  1639.  
  1640. - # (change requires restart)
  1641.  
  1642. -#backend_flush_after = 0 # measured in pages, 0 disables
  1643.  
  1644. +#effective_io_concurrency = 1 # 1-1000. 0 disables prefetching
  1645.  
  1646.  
  1647.  
  1648. #------------------------------------------------------------------------------
  1649.  
  1650. -# WRITE-AHEAD LOG
  1651.  
  1652. +# WRITE AHEAD LOG
  1653.  
  1654. #------------------------------------------------------------------------------
  1655.  
  1656.  
  1657. # - Settings -
  1658.  
  1659.  
  1660. -#wal_level = replica # minimal, replica, or logical
  1661.  
  1662. - # (change requires restart)
  1663.  
  1664. -#fsync = on # flush data to disk for crash safety
  1665.  
  1666. - # (turning this off can cause
  1667.  
  1668. - # unrecoverable data corruption)
  1669.  
  1670. -#synchronous_commit = on # synchronization level;
  1671.  
  1672. - # off, local, remote_write, remote_apply, or on
  1673.  
  1674. -#wal_sync_method = fsync # the default is the first option
  1675.  
  1676. - # supported by the operating system:
  1677.  
  1678. - # open_datasync
  1679.  
  1680. - # fdatasync (default on Linux and FreeBSD)
  1681.  
  1682. - # fsync
  1683.  
  1684. - # fsync_writethrough
  1685.  
  1686. - # open_sync
  1687.  
  1688. -#full_page_writes = on # recover from partial page writes
  1689.  
  1690. -#wal_compression = off # enable compression of full-page writes
  1691.  
  1692. -#wal_log_hints = off # also do full page writes of non-critical updates
  1693.  
  1694. - # (change requires restart)
  1695.  
  1696. -#wal_init_zero = on # zero-fill new WAL files
  1697.  
  1698. -#wal_recycle = on # recycle WAL files
  1699.  
  1700. -#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
  1701.  
  1702. - # (change requires restart)
  1703.  
  1704. -#wal_writer_delay = 200ms # 1-10000 milliseconds
  1705.  
  1706. -#wal_writer_flush_after = 1MB # measured in pages, 0 disables
  1707.  
  1708. -#wal_skip_threshold = 2MB
  1709.  
  1710. +wal_level = minimal
  1711.  
  1712. +wal_log_hints = off # also do full page writes of non-critical updates
  1713.  
  1714. + # (change requires restart)
  1715.  
  1716. +#fsync = on # turns forced synchronization on or off
  1717.  
  1718. +#wal_sync_method = fsync # the default is the first option
  1719.  
  1720. + # supported by the operating system:
  1721.  
  1722. + # open_datasync
  1723.  
  1724. + # fdatasync (default on Linux)
  1725.  
  1726. + # fsync
  1727.  
  1728. + # fsync_writethrough
  1729.  
  1730. + # open_sync
  1731.  
  1732. +#full_page_writes = on # recover from partial page writes
  1733.  
  1734. +wal_buffers = -1 # -1 # min 32kB, -1 sets based on shared_buffers
  1735.  
  1736. + # (change requires restart)
  1737.  
  1738. +#wal_writer_delay = 200ms # 1-10000 milliseconds
  1739.  
  1740.  
  1741. -#commit_delay = 0 # range 0-100000, in microseconds
  1742.  
  1743. -#commit_siblings = 5 # range 1-1000
  1744.  
  1745. +#commit_delay = 0 # range 0-100000, in microseconds
  1746.  
  1747. +#commit_siblings = 5 # range 1-1000
  1748.  
  1749.  
  1750. -# - Checkpoints -
  1751.  
  1752. -
  1753.  
  1754. -#checkpoint_timeout = 5min # range 30s-1d
  1755.  
  1756. -max_wal_size = 1GB
  1757.  
  1758. min_wal_size = 80MB
  1759.  
  1760. -#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
  1761.  
  1762. -#checkpoint_flush_after = 256kB # measured in pages, 0 disables
  1763.  
  1764. -#checkpoint_warning = 30s # 0 disables
  1765.  
  1766. +max_wal_size = 1GB
  1767.  
  1768.  
  1769. -# - Archiving -
  1770.  
  1771. +# The number of replication slots to reserve.
  1772.  
  1773. +max_replication_slots = 0
  1774.  
  1775.  
  1776. -#archive_mode = off # enables archiving; off, on, or always
  1777.  
  1778. - # (change requires restart)
  1779.  
  1780. -#archive_command = '' # command to use to archive a logfile segment
  1781.  
  1782. - # placeholders: %p = path of file to archive
  1783.  
  1784. - # %f = file name only
  1785.  
  1786. - # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
  1787.  
  1788. -#archive_timeout = 0 # force a logfile segment switch after this
  1789.  
  1790. - # number of seconds; 0 disables
  1791.  
  1792.  
  1793. -# - Archive Recovery -
  1794.  
  1795. +# - Archiving -
  1796.  
  1797.  
  1798. -# These are only used in recovery mode.
  1799.  
  1800. +archive_mode = off # allows archiving to be done
  1801.  
  1802. + # (change requires restart, also requires 'wal_level' of 'hot_standby' OR 'replica')
  1803.  
  1804.  
  1805. -#restore_command = '' # command to use to restore an archived logfile segment
  1806.  
  1807. - # placeholders: %p = path of file to restore
  1808.  
  1809. - # %f = file name only
  1810.  
  1811. - # e.g. 'cp /mnt/server/archivedir/%f %p'
  1812.  
  1813. - # (change requires restart)
  1814.  
  1815. -#archive_cleanup_command = '' # command to execute at every restartpoint
  1816.  
  1817. -#recovery_end_command = '' # command to execute at completion of recovery
  1818.  
  1819. -
  1820.  
  1821. -# - Recovery Target -
  1822.  
  1823. -
  1824.  
  1825. -# Set these only when performing a targeted recovery.
  1826.  
  1827. -
  1828.  
  1829. -#recovery_target = '' # 'immediate' to end recovery as soon as a
  1830.  
  1831. - # consistent state is reached
  1832.  
  1833. - # (change requires restart)
  1834.  
  1835. -#recovery_target_name = '' # the named restore point to which recovery will proceed
  1836.  
  1837. - # (change requires restart)
  1838.  
  1839. -#recovery_target_time = '' # the time stamp up to which recovery will proceed
  1840.  
  1841. - # (change requires restart)
  1842.  
  1843. -#recovery_target_xid = '' # the transaction ID up to which recovery will proceed
  1844.  
  1845. - # (change requires restart)
  1846.  
  1847. -#recovery_target_lsn = '' # the WAL LSN up to which recovery will proceed
  1848.  
  1849. - # (change requires restart)
  1850.  
  1851. -#recovery_target_inclusive = on # Specifies whether to stop:
  1852.  
  1853. - # just after the specified recovery target (on)
  1854.  
  1855. - # just before the recovery target (off)
  1856.  
  1857. - # (change requires restart)
  1858.  
  1859. -#recovery_target_timeline = 'latest' # 'current', 'latest', or timeline ID
  1860.  
  1861. - # (change requires restart)
  1862.  
  1863. -#recovery_target_action = 'pause' # 'pause', 'promote', 'shutdown'
  1864.  
  1865. - # (change requires restart)
  1866.  
  1867. -
  1868.  
  1869. -
  1870.  
  1871. #------------------------------------------------------------------------------
  1872.  
  1873. # REPLICATION
  1874.  
  1875. #------------------------------------------------------------------------------
  1876.  
  1877.  
  1878. -# - Sending Servers -
  1879.  
  1880. -
  1881.  
  1882. -# Set these on the master and on any standby that will send replication data.
  1883.  
  1884. -
  1885.  
  1886. -#max_wal_senders = 10 # max number of walsender processes
  1887.  
  1888. - # (change requires restart)
  1889.  
  1890. -#wal_keep_size = 0 # in megabytes; 0 disables
  1891.  
  1892. -#max_slot_wal_keep_size = -1 # in megabytes; -1 disables
  1893.  
  1894. -#wal_sender_timeout = 60s # in milliseconds; 0 disables
  1895.  
  1896. -
  1897.  
  1898. -#max_replication_slots = 10 # max number of replication slots
  1899.  
  1900. - # (change requires restart)
  1901.  
  1902. -#track_commit_timestamp = off # collect timestamp of transaction commit
  1903.  
  1904. - # (change requires restart)
  1905.  
  1906. -
  1907.  
  1908. # - Master Server -
  1909.  
  1910.  
  1911. -# These settings are ignored on a standby server.
  1912.  
  1913. +# These settings are ignored on a standby server
  1914.  
  1915.  
  1916. -#synchronous_standby_names = '' # standby servers that provide sync rep
  1917.  
  1918. - # method to choose sync standbys, number of sync standbys,
  1919.  
  1920. - # and comma-separated list of application_name
  1921.  
  1922. - # from standby(s); '*' = all
  1923.  
  1924. -#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
  1925.  
  1926. +max_wal_senders = 0
  1927.  
  1928. + # (change requires restart)
  1929.  
  1930. +#wal_sender_delay = 1s # walsender cycle time, 1-10000 milliseconds
  1931.  
  1932. +#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
  1933.  
  1934. +#replication_timeout = 60s # in milliseconds; 0 disables
  1935.  
  1936. +#synchronous_standby_names = '' # standby servers that provide sync rep
  1937.  
  1938. + # comma-separated list of application_name
  1939.  
  1940. + # from standby(s); '*' = all
  1941.  
  1942.  
  1943. # - Standby Servers -
  1944.  
  1945.  
  1946. -# These settings are ignored on a master server.
  1947.  
  1948. +# These settings are ignored on a master server
  1949.  
  1950.  
  1951. -#primary_conninfo = '' # connection string to sending server
  1952.  
  1953. -#primary_slot_name = '' # replication slot on sending server
  1954.  
  1955. -#promote_trigger_file = '' # file name whose presence ends recovery
  1956.  
  1957. -#hot_standby = on # "off" disallows queries during recovery
  1958.  
  1959. - # (change requires restart)
  1960.  
  1961. -#max_standby_archive_delay = 30s # max delay before canceling queries
  1962.  
  1963. - # when reading WAL from archive;
  1964.  
  1965. - # -1 allows indefinite delay
  1966.  
  1967. -#max_standby_streaming_delay = 30s # max delay before canceling queries
  1968.  
  1969. - # when reading streaming WAL;
  1970.  
  1971. - # -1 allows indefinite delay
  1972.  
  1973. -#wal_receiver_create_temp_slot = off # create temp slot if primary_slot_name
  1974.  
  1975. - # is not set
  1976.  
  1977. -#wal_receiver_status_interval = 10s # send replies at least this often
  1978.  
  1979. - # 0 disables
  1980.  
  1981. -#hot_standby_feedback = off # send info from standby to prevent
  1982.  
  1983. - # query conflicts
  1984.  
  1985. -#wal_receiver_timeout = 60s # time that receiver waits for
  1986.  
  1987. - # communication from master
  1988.  
  1989. - # in milliseconds; 0 disables
  1990.  
  1991. -#wal_retrieve_retry_interval = 5s # time to wait before retrying to
  1992.  
  1993. - # retrieve WAL after a failed attempt
  1994.  
  1995. -#recovery_min_apply_delay = 0 # minimum delay for applying changes during recovery
  1996.  
  1997. +hot_standby = off
  1998.  
  1999. + # (change requires restart)
  2000.  
  2001. +#wal_receiver_status_interval = 10s # send replies at least this often
  2002.  
  2003. + # 0 disables
  2004.  
  2005.  
  2006. -# - Subscribers -
  2007.  
  2008. -
  2009.  
  2010. -# These settings are ignored on a publisher.
  2011.  
  2012. -
  2013.  
  2014. -#max_logical_replication_workers = 4 # taken from max_worker_processes
  2015.  
  2016. - # (change requires restart)
  2017.  
  2018. -#max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers
  2019.  
  2020. -
  2021.  
  2022. -
  2023.  
  2024. #------------------------------------------------------------------------------
  2025.  
  2026. # QUERY TUNING
  2027.  
  2028. #------------------------------------------------------------------------------
  2029.  
  2030. @@ -356,237 +228,126 @@
  2031.  
  2032. #enable_hashagg = on
  2033.  
  2034. #enable_hashjoin = on
  2035.  
  2036. #enable_indexscan = on
  2037.  
  2038. -#enable_indexonlyscan = on
  2039.  
  2040. #enable_material = on
  2041.  
  2042. #enable_mergejoin = on
  2043.  
  2044. #enable_nestloop = on
  2045.  
  2046. -#enable_parallel_append = on
  2047.  
  2048. #enable_seqscan = on
  2049.  
  2050. #enable_sort = on
  2051.  
  2052. -#enable_incremental_sort = on
  2053.  
  2054. #enable_tidscan = on
  2055.  
  2056. -#enable_partitionwise_join = off
  2057.  
  2058. -#enable_partitionwise_aggregate = off
  2059.  
  2060. -#enable_parallel_hash = on
  2061.  
  2062. -#enable_partition_pruning = on
  2063.  
  2064.  
  2065. # - Planner Cost Constants -
  2066.  
  2067.  
  2068. -#seq_page_cost = 1.0 # measured on an arbitrary scale
  2069.  
  2070. -#random_page_cost = 4.0 # same scale as above
  2071.  
  2072. -#cpu_tuple_cost = 0.01 # same scale as above
  2073.  
  2074. -#cpu_index_tuple_cost = 0.005 # same scale as above
  2075.  
  2076. -#cpu_operator_cost = 0.0025 # same scale as above
  2077.  
  2078. -#parallel_tuple_cost = 0.1 # same scale as above
  2079.  
  2080. -#parallel_setup_cost = 1000.0 # same scale as above
  2081.  
  2082. +#cpu_tuple_cost = 0.01 # same scale as above
  2083.  
  2084. +#cpu_index_tuple_cost = 0.005 # same scale as above
  2085.  
  2086. +#cpu_operator_cost = 0.0025 # same scale as above
  2087.  
  2088.  
  2089. -#jit_above_cost = 100000 # perform JIT compilation if available
  2090.  
  2091. - # and query more expensive than this;
  2092.  
  2093. - # -1 disables
  2094.  
  2095. -#jit_inline_above_cost = 500000 # inline small functions if query is
  2096.  
  2097. - # more expensive than this; -1 disables
  2098.  
  2099. -#jit_optimize_above_cost = 500000 # use expensive JIT optimizations if
  2100.  
  2101. - # query is more expensive than this;
  2102.  
  2103. - # -1 disables
  2104.  
  2105. -
  2106.  
  2107. -#min_parallel_table_scan_size = 8MB
  2108.  
  2109. -#min_parallel_index_scan_size = 512kB
  2110.  
  2111. -#effective_cache_size = 4GB
  2112.  
  2113. -
  2114.  
  2115. # - Genetic Query Optimizer -
  2116.  
  2117.  
  2118. #geqo = on
  2119.  
  2120. #geqo_threshold = 12
  2121.  
  2122. -#geqo_effort = 5 # range 1-10
  2123.  
  2124. -#geqo_pool_size = 0 # selects default based on effort
  2125.  
  2126. -#geqo_generations = 0 # selects default based on effort
  2127.  
  2128. -#geqo_selection_bias = 2.0 # range 1.5-2.0
  2129.  
  2130. -#geqo_seed = 0.0 # range 0.0-1.0
  2131.  
  2132. +#geqo_effort = 5 # range 1-10
  2133.  
  2134. +#geqo_pool_size = 0 # selects default based on effort
  2135.  
  2136. +#geqo_generations = 0 # selects default based on effort
  2137.  
  2138. +#geqo_selection_bias = 2.0 # range 1.5-2.0
  2139.  
  2140. +#geqo_seed = 0.0 # range 0.0-1.0
  2141.  
  2142.  
  2143. # - Other Planner Options -
  2144.  
  2145.  
  2146. -#default_statistics_target = 100 # range 1-10000
  2147.  
  2148. -#constraint_exclusion = partition # on, off, or partition
  2149.  
  2150. -#cursor_tuple_fraction = 0.1 # range 0.0-1.0
  2151.  
  2152. +#default_statistics_target = 100 # range 1-10000
  2153.  
  2154. +#constraint_exclusion = partition # on, off, or partition
  2155.  
  2156. +#cursor_tuple_fraction = 0.1 # range 0.0-1.0
  2157.  
  2158. #from_collapse_limit = 8
  2159.  
  2160. -#join_collapse_limit = 8 # 1 disables collapsing of explicit
  2161.  
  2162. - # JOIN clauses
  2163.  
  2164. -#force_parallel_mode = off
  2165.  
  2166. -#jit = on # allow JIT compilation
  2167.  
  2168. -#plan_cache_mode = auto # auto, force_generic_plan or
  2169.  
  2170. - # force_custom_plan
  2171.  
  2172. +#join_collapse_limit = 8 # 1 disables collapsing of explicit
  2173.  
  2174. + # JOIN clauses
  2175.  
  2176.  
  2177.  
  2178. #------------------------------------------------------------------------------
  2179.  
  2180. -# REPORTING AND LOGGING
  2181.  
  2182. +# ERROR REPORTING AND LOGGING
  2183.  
  2184. #------------------------------------------------------------------------------
  2185.  
  2186.  
  2187. -# - Where to Log -
  2188.  
  2189.  
  2190. -#log_destination = 'stderr' # Valid values are combinations of
  2191.  
  2192. - # stderr, csvlog, syslog, and eventlog,
  2193.  
  2194. - # depending on platform. csvlog
  2195.  
  2196. - # requires logging_collector to be on.
  2197.  
  2198. -
  2199.  
  2200. -# This is used when logging to stderr:
  2201.  
  2202. -#logging_collector = off # Enable capturing of stderr and csvlog
  2203.  
  2204. - # into log files. Required to be on for
  2205.  
  2206. - # csvlogs.
  2207.  
  2208. - # (change requires restart)
  2209.  
  2210. -
  2211.  
  2212. -# These are only used if logging_collector is on:
  2213.  
  2214. -#log_directory = 'log' # directory where log files are written,
  2215.  
  2216. - # can be absolute or relative to PGDATA
  2217.  
  2218. -#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
  2219.  
  2220. - # can include strftime() escapes
  2221.  
  2222. -#log_file_mode = 0600 # creation mode for log files,
  2223.  
  2224. - # begin with 0 to use octal notation
  2225.  
  2226. -#log_truncate_on_rotation = off # If on, an existing log file with the
  2227.  
  2228. - # same name as the new log file will be
  2229.  
  2230. - # truncated rather than appended to.
  2231.  
  2232. - # But such truncation only occurs on
  2233.  
  2234. - # time-driven rotation, not on restarts
  2235.  
  2236. - # or size-driven rotation. Default is
  2237.  
  2238. - # off, meaning append to existing files
  2239.  
  2240. - # in all cases.
  2241.  
  2242. -#log_rotation_age = 1d # Automatic rotation of logfiles will
  2243.  
  2244. - # happen after that time. 0 disables.
  2245.  
  2246. -#log_rotation_size = 10MB # Automatic rotation of logfiles will
  2247.  
  2248. - # happen after that much log output.
  2249.  
  2250. - # 0 disables.
  2251.  
  2252. -
  2253.  
  2254. # These are relevant when logging to syslog:
  2255.  
  2256. #syslog_facility = 'LOCAL0'
  2257.  
  2258. #syslog_ident = 'postgres'
  2259.  
  2260. -#syslog_sequence_numbers = on
  2261.  
  2262. -#syslog_split_messages = on
  2263.  
  2264.  
  2265. -# This is only relevant when logging to eventlog (win32):
  2266.  
  2267. -# (change requires restart)
  2268.  
  2269. -#event_source = 'PostgreSQL'
  2270.  
  2271. +#silent_mode = off # Run server silently.
  2272.  
  2273. + # DO NOT USE without syslog or
  2274.  
  2275. + # logging_collector
  2276.  
  2277. + # (change requires restart)
  2278.  
  2279.  
  2280. +
  2281.  
  2282. # - When to Log -
  2283.  
  2284.  
  2285. -#log_min_messages = warning # values in order of decreasing detail:
  2286.  
  2287. - # debug5
  2288.  
  2289. - # debug4
  2290.  
  2291. - # debug3
  2292.  
  2293. - # debug2
  2294.  
  2295. - # debug1
  2296.  
  2297. - # info
  2298.  
  2299. - # notice
  2300.  
  2301. - # warning
  2302.  
  2303. - # error
  2304.  
  2305. - # log
  2306.  
  2307. - # fatal
  2308.  
  2309. - # panic
  2310.  
  2311. +#client_min_messages = notice # values in order of decreasing detail:
  2312.  
  2313. + # debug5
  2314.  
  2315. + # debug4
  2316.  
  2317. + # debug3
  2318.  
  2319. + # debug2
  2320.  
  2321. + # debug1
  2322.  
  2323. + # log
  2324.  
  2325. + # notice
  2326.  
  2327. + # warning
  2328.  
  2329. + # error
  2330.  
  2331.  
  2332. -#log_min_error_statement = error # values in order of decreasing detail:
  2333.  
  2334. - # debug5
  2335.  
  2336. - # debug4
  2337.  
  2338. - # debug3
  2339.  
  2340. - # debug2
  2341.  
  2342. - # debug1
  2343.  
  2344. - # info
  2345.  
  2346. - # notice
  2347.  
  2348. - # warning
  2349.  
  2350. - # error
  2351.  
  2352. - # log
  2353.  
  2354. - # fatal
  2355.  
  2356. - # panic (effectively off)
  2357.  
  2358. +#log_min_messages = warning # values in order of decreasing detail:
  2359.  
  2360. + # debug5
  2361.  
  2362. + # debug4
  2363.  
  2364. + # debug3
  2365.  
  2366. + # debug2
  2367.  
  2368. + # debug1
  2369.  
  2370. + # info
  2371.  
  2372. + # notice
  2373.  
  2374. + # warning
  2375.  
  2376. + # error
  2377.  
  2378. + # log
  2379.  
  2380. + # fatal
  2381.  
  2382. + # panic
  2383.  
  2384.  
  2385. -#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
  2386.  
  2387. - # and their durations, > 0 logs only
  2388.  
  2389. - # statements running at least this number
  2390.  
  2391. - # of milliseconds
  2392.  
  2393. +#log_min_error_statement = error # values in order of decreasing detail:
  2394.  
  2395. + # debug5
  2396.  
  2397. + # debug4
  2398.  
  2399. + # debug3
  2400.  
  2401. + # debug2
  2402.  
  2403. + # debug1
  2404.  
  2405. + # info
  2406.  
  2407. + # notice
  2408.  
  2409. + # warning
  2410.  
  2411. + # error
  2412.  
  2413. + # log
  2414.  
  2415. + # fatal
  2416.  
  2417. + # panic (effectively off)
  2418.  
  2419.  
  2420. -#log_min_duration_sample = -1 # -1 is disabled, 0 logs a sample of statements
  2421.  
  2422. - # and their durations, > 0 logs only a sample of
  2423.  
  2424. - # statements running at least this number
  2425.  
  2426. - # of milliseconds;
  2427.  
  2428. - # sample fraction is determined by log_statement_sample_rate
  2429.  
  2430. -
  2431.  
  2432. -#log_statement_sample_rate = 1.0 # fraction of logged statements exceeding
  2433.  
  2434. - # log_min_duration_sample to be logged;
  2435.  
  2436. - # 1.0 logs all such statements, 0.0 never logs
  2437.  
  2438. -
  2439.  
  2440. -
  2441.  
  2442. -#log_transaction_sample_rate = 0.0 # fraction of transactions whose statements
  2443.  
  2444. - # are logged regardless of their duration; 1.0 logs all
  2445.  
  2446. - # statements from all transactions, 0.0 never logs
  2447.  
  2448. -
  2449.  
  2450. # - What to Log -
  2451.  
  2452.  
  2453. #debug_print_parse = off
  2454.  
  2455. #debug_print_rewritten = off
  2456.  
  2457. #debug_print_plan = off
  2458.  
  2459. #debug_pretty_print = on
  2460.  
  2461. -#log_checkpoints = off
  2462.  
  2463. #log_connections = off
  2464.  
  2465. #log_disconnections = off
  2466.  
  2467. #log_duration = off
  2468.  
  2469. -#log_error_verbosity = default # terse, default, or verbose messages
  2470.  
  2471. +#log_error_verbosity = default # terse, default, or verbose messages
  2472.  
  2473. #log_hostname = off
  2474.  
  2475. -#log_line_prefix = '%m [%p] ' # special values:
  2476.  
  2477. - # %a = application name
  2478.  
  2479. - # %u = user name
  2480.  
  2481. - # %d = database name
  2482.  
  2483. - # %r = remote host and port
  2484.  
  2485. - # %h = remote host
  2486.  
  2487. - # %b = backend type
  2488.  
  2489. - # %p = process ID
  2490.  
  2491. - # %t = timestamp without milliseconds
  2492.  
  2493. - # %m = timestamp with milliseconds
  2494.  
  2495. - # %n = timestamp with milliseconds (as a Unix epoch)
  2496.  
  2497. - # %i = command tag
  2498.  
  2499. - # %e = SQL state
  2500.  
  2501. - # %c = session ID
  2502.  
  2503. - # %l = session line number
  2504.  
  2505. - # %s = session start timestamp
  2506.  
  2507. - # %v = virtual transaction ID
  2508.  
  2509. - # %x = transaction ID (0 if none)
  2510.  
  2511. - # %q = stop here in non-session
  2512.  
  2513. - # processes
  2514.  
  2515. - # %% = '%'
  2516.  
  2517. - # e.g. '<%u%%%d> '
  2518.  
  2519. -#log_lock_waits = off # log lock waits >= deadlock_timeout
  2520.  
  2521. -#log_parameter_max_length = -1 # when logging statements, limit logged
  2522.  
  2523. - # bind-parameter values to N bytes;
  2524.  
  2525. - # -1 means print in full, 0 disables
  2526.  
  2527. -#log_parameter_max_length_on_error = 0 # when logging an error, limit logged
  2528.  
  2529. - # bind-parameter values to N bytes;
  2530.  
  2531. - # -1 means print in full, 0 disables
  2532.  
  2533. -#log_statement = 'none' # none, ddl, mod, all
  2534.  
  2535. -#log_replication_commands = off
  2536.  
  2537. -#log_temp_files = -1 # log temporary files equal or larger
  2538.  
  2539. - # than the specified size in kilobytes;
  2540.  
  2541. - # -1 disables, 0 logs all temp files
  2542.  
  2543. -log_timezone = 'Etc/UTC'
  2544.  
  2545. +#log_lock_waits = off # log lock waits >= deadlock_timeout
  2546.  
  2547. +#log_statement = 'none' # none, ddl, mod, all
  2548.  
  2549. +#log_timezone = '(defaults to server environment setting)'
  2550.  
  2551.  
  2552. -#------------------------------------------------------------------------------
  2553.  
  2554. -# PROCESS TITLE
  2555.  
  2556. -#------------------------------------------------------------------------------
  2557.  
  2558.  
  2559. -#cluster_name = '' # added to process titles if nonempty
  2560.  
  2561. - # (change requires restart)
  2562.  
  2563. -#update_process_title = on
  2564.  
  2565. -
  2566.  
  2567. -
  2568.  
  2569. #------------------------------------------------------------------------------
  2570.  
  2571. -# STATISTICS
  2572.  
  2573. +# RUNTIME STATISTICS
  2574.  
  2575. #------------------------------------------------------------------------------
  2576.  
  2577.  
  2578. -# - Query and Index Statistics Collector -
  2579.  
  2580. +# - Query/Index Statistics Collector -
  2581.  
  2582.  
  2583. #track_activities = on
  2584.  
  2585. #track_counts = on
  2586.  
  2587. -#track_io_timing = off
  2588.  
  2589. -#track_functions = none # none, pl, all
  2590.  
  2591. -#track_activity_query_size = 1024 # (change requires restart)
  2592.  
  2593. +#track_functions = none # none, pl, all
  2594.  
  2595. +track_activity_query_size = 1024 # (change requires restart)
  2596.  
  2597. +#update_process_title = on
  2598.  
  2599. #stats_temp_directory = 'pg_stat_tmp'
  2600.  
  2601.  
  2602.  
  2603. -# - Monitoring -
  2604.  
  2605. +# - Statistics Monitoring -
  2606.  
  2607.  
  2608. #log_parser_stats = off
  2609.  
  2610. #log_planner_stats = off
  2611.  
  2612. @@ -595,122 +356,53 @@
  2613.  
  2614.  
  2615.  
  2616. #------------------------------------------------------------------------------
  2617.  
  2618. -# AUTOVACUUM
  2619.  
  2620. +# AUTOVACUUM PARAMETERS
  2621.  
  2622. #------------------------------------------------------------------------------
  2623.  
  2624.  
  2625. -#autovacuum = on # Enable autovacuum subprocess? 'on'
  2626.  
  2627. - # requires track_counts to also be on.
  2628.  
  2629. -#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
  2630.  
  2631. - # their durations, > 0 logs only
  2632.  
  2633. - # actions running at least this number
  2634.  
  2635. - # of milliseconds.
  2636.  
  2637. -#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
  2638.  
  2639. - # (change requires restart)
  2640.  
  2641. -#autovacuum_naptime = 1min # time between autovacuum runs
  2642.  
  2643. -#autovacuum_vacuum_threshold = 50 # min number of row updates before
  2644.  
  2645. - # vacuum
  2646.  
  2647. -#autovacuum_vacuum_insert_threshold = 1000 # min number of row inserts
  2648.  
  2649. - # before vacuum; -1 disables insert
  2650.  
  2651. - # vacuums
  2652.  
  2653. -#autovacuum_analyze_threshold = 50 # min number of row updates before
  2654.  
  2655. - # analyze
  2656.  
  2657. -#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
  2658.  
  2659. -#autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of inserts over table
  2660.  
  2661. - # size before insert vacuum
  2662.  
  2663. -#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
  2664.  
  2665. -#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
  2666.  
  2667. - # (change requires restart)
  2668.  
  2669. -#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
  2670.  
  2671. - # before forced vacuum
  2672.  
  2673. - # (change requires restart)
  2674.  
  2675. -#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
  2676.  
  2677. - # autovacuum, in milliseconds;
  2678.  
  2679. - # -1 means use vacuum_cost_delay
  2680.  
  2681. -#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
  2682.  
  2683. - # autovacuum, -1 means use
  2684.  
  2685. - # vacuum_cost_limit
  2686.  
  2687. -
  2688.  
  2689. -
  2690.  
  2691. +autovacuum_max_workers = 3 # max number of autovacuum subprocesses
  2692.  
  2693. + # (change requires restart)
  2694.  
  2695. +autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
  2696.  
  2697. + # (change requires restart)
  2698.  
  2699. #------------------------------------------------------------------------------
  2700.  
  2701. # CLIENT CONNECTION DEFAULTS
  2702.  
  2703. #------------------------------------------------------------------------------
  2704.  
  2705.  
  2706. # - Statement Behavior -
  2707.  
  2708.  
  2709. -#client_min_messages = notice # values in order of decreasing detail:
  2710.  
  2711. - # debug5
  2712.  
  2713. - # debug4
  2714.  
  2715. - # debug3
  2716.  
  2717. - # debug2
  2718.  
  2719. - # debug1
  2720.  
  2721. - # log
  2722.  
  2723. - # notice
  2724.  
  2725. - # warning
  2726.  
  2727. - # error
  2728.  
  2729. -#search_path = '"$user", public' # schema names
  2730.  
  2731. -#row_security = on
  2732.  
  2733. -#default_tablespace = '' # a tablespace name, '' uses the default
  2734.  
  2735. -#temp_tablespaces = '' # a list of tablespace names, '' uses
  2736.  
  2737. - # only default tablespace
  2738.  
  2739. -#default_table_access_method = 'heap'
  2740.  
  2741. +#search_path = '"$user",public' # schema names
  2742.  
  2743. +#default_tablespace = '' # a tablespace name, '' uses the default
  2744.  
  2745. +#temp_tablespaces = '' # a list of tablespace names, '' uses
  2746.  
  2747. + # only default tablespace
  2748.  
  2749. #check_function_bodies = on
  2750.  
  2751. #default_transaction_isolation = 'read committed'
  2752.  
  2753. #default_transaction_read_only = off
  2754.  
  2755. #default_transaction_deferrable = off
  2756.  
  2757. #session_replication_role = 'origin'
  2758.  
  2759. -#statement_timeout = 0 # in milliseconds, 0 is disabled
  2760.  
  2761. -#lock_timeout = 0 # in milliseconds, 0 is disabled
  2762.  
  2763. -#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
  2764.  
  2765. #vacuum_freeze_min_age = 50000000
  2766.  
  2767. #vacuum_freeze_table_age = 150000000
  2768.  
  2769. -#vacuum_multixact_freeze_min_age = 5000000
  2770.  
  2771. -#vacuum_multixact_freeze_table_age = 150000000
  2772.  
  2773. -#vacuum_cleanup_index_scale_factor = 0.1 # fraction of total number of tuples
  2774.  
  2775. - # before index cleanup, 0 always performs
  2776.  
  2777. - # index cleanup
  2778.  
  2779. -#bytea_output = 'hex' # hex, escape
  2780.  
  2781. +#bytea_output = 'hex' # hex, escape
  2782.  
  2783. #xmlbinary = 'base64'
  2784.  
  2785. #xmloption = 'content'
  2786.  
  2787. -#gin_fuzzy_search_limit = 0
  2788.  
  2789. -#gin_pending_list_limit = 4MB
  2790.  
  2791.  
  2792. # - Locale and Formatting -
  2793.  
  2794.  
  2795. -datestyle = 'iso, mdy'
  2796.  
  2797. #intervalstyle = 'postgres'
  2798.  
  2799. -timezone = 'Etc/UTC'
  2800.  
  2801. +#timezone = '(defaults to server environment setting)'
  2802.  
  2803. #timezone_abbreviations = 'Default' # Select the set of available time zone
  2804.  
  2805. - # abbreviations. Currently, there are
  2806.  
  2807. - # Default
  2808.  
  2809. - # Australia (historical usage)
  2810.  
  2811. - # India
  2812.  
  2813. - # You can create your own file in
  2814.  
  2815. - # share/timezonesets/.
  2816.  
  2817. -#extra_float_digits = 1 # min -15, max 3; any value >0 actually
  2818.  
  2819. - # selects precise output mode
  2820.  
  2821. -#client_encoding = sql_ascii # actually, defaults to database
  2822.  
  2823. - # encoding
  2824.  
  2825. + # abbreviations. Currently, there are
  2826.  
  2827. + # Default
  2828.  
  2829. + # Australia
  2830.  
  2831. + # India
  2832.  
  2833. + # You can create your own file in
  2834.  
  2835. + # share/timezonesets/.
  2836.  
  2837. +#extra_float_digits = 0 # min -15, max 3
  2838.  
  2839. +#client_encoding = sql_ascii # actually, defaults to database
  2840.  
  2841. + # encoding
  2842.  
  2843.  
  2844. -# These settings are initialized by initdb, but they can be changed.
  2845.  
  2846. -lc_messages = 'C' # locale for system error message
  2847.  
  2848. - # strings
  2849.  
  2850. -lc_monetary = 'C' # locale for monetary formatting
  2851.  
  2852. -lc_numeric = 'C' # locale for number formatting
  2853.  
  2854. -lc_time = 'C' # locale for time formatting
  2855.  
  2856. -
  2857.  
  2858. -# default configuration for text search
  2859.  
  2860. -default_text_search_config = 'pg_catalog.english'
  2861.  
  2862. -
  2863.  
  2864. -# - Shared Library Preloading -
  2865.  
  2866. -
  2867.  
  2868. -#shared_preload_libraries = '' # (change requires restart)
  2869.  
  2870. -#local_preload_libraries = ''
  2871.  
  2872. -#session_preload_libraries = ''
  2873.  
  2874. -#jit_provider = 'llvmjit' # JIT library to use
  2875.  
  2876. -
  2877.  
  2878. # - Other Defaults -
  2879.  
  2880.  
  2881. #dynamic_library_path = '$libdir'
  2882.  
  2883. +#local_preload_libraries = ''
  2884.  
  2885.  
  2886.  
  2887. #------------------------------------------------------------------------------
  2888.  
  2889. @@ -718,28 +410,27 @@
  2890.  
  2891. #------------------------------------------------------------------------------
  2892.  
  2893.  
  2894. #deadlock_timeout = 1s
  2895.  
  2896. -#max_locks_per_transaction = 64 # min 10
  2897.  
  2898. - # (change requires restart)
  2899.  
  2900. -#max_pred_locks_per_transaction = 64 # min 10
  2901.  
  2902. - # (change requires restart)
  2903.  
  2904. -#max_pred_locks_per_relation = -2 # negative values mean
  2905.  
  2906. - # (max_pred_locks_per_transaction
  2907.  
  2908. - # / -max_pred_locks_per_relation) - 1
  2909.  
  2910. -#max_pred_locks_per_page = 2 # min 0
  2911.  
  2912. +max_locks_per_transaction = 128 # min 10
  2913.  
  2914. + # (change requires restart)
  2915.  
  2916. +# Note: Each lock table slot uses ~270 bytes of shared memory, and there are
  2917.  
  2918. +# max_locks_per_transaction * (max_connections + max_prepared_transactions)
  2919.  
  2920. +# lock table slots.
  2921.  
  2922. +#max_pred_locks_per_transaction = 64 # min 10
  2923.  
  2924. + # (change requires restart)
  2925.  
  2926.  
  2927. -
  2928.  
  2929. #------------------------------------------------------------------------------
  2930.  
  2931. -# VERSION AND PLATFORM COMPATIBILITY
  2932.  
  2933. +# VERSION/PLATFORM COMPATIBILITY
  2934.  
  2935. #------------------------------------------------------------------------------
  2936.  
  2937.  
  2938. # - Previous PostgreSQL Versions -
  2939.  
  2940.  
  2941. #array_nulls = on
  2942.  
  2943. -#backslash_quote = safe_encoding # on, off, or safe_encoding
  2944.  
  2945. +#backslash_quote = safe_encoding # on, off, or safe_encoding
  2946.  
  2947. +#default_with_oids = off
  2948.  
  2949. #escape_string_warning = on
  2950.  
  2951. #lo_compat_privileges = off
  2952.  
  2953. -#operator_precedence_warning = off
  2954.  
  2955. #quote_all_identifiers = off
  2956.  
  2957. +#sql_inheritance = on
  2958.  
  2959. #standard_conforming_strings = on
  2960.  
  2961. #synchronize_seqscans = on
  2962.  
  2963.  
  2964. @@ -752,30 +443,15 @@
  2965.  
  2966. # ERROR HANDLING
  2967.  
  2968. #------------------------------------------------------------------------------
  2969.  
  2970.  
  2971. -#exit_on_error = off # terminate session on any error?
  2972.  
  2973. -#restart_after_crash = on # reinitialize after backend crash?
  2974.  
  2975. -#data_sync_retry = off # retry or panic on failure to fsync
  2976.  
  2977. - # data?
  2978.  
  2979. - # (change requires restart)
  2980.  
  2981. +#exit_on_error = off # terminate session on any error?
  2982.  
  2983. +#restart_after_crash = on # reinitialize after backend crash?
  2984.  
  2985.  
  2986.  
  2987. #------------------------------------------------------------------------------
  2988.  
  2989. -# CONFIG FILE INCLUDES
  2990.  
  2991. -#------------------------------------------------------------------------------
  2992.  
  2993. -
  2994.  
  2995. -# These options allow settings to be loaded from files other than the
  2996.  
  2997. -# default postgresql.conf. Note that these are directives, not variable
  2998.  
  2999. -# assignments, so they can usefully be given more than once.
  3000.  
  3001. -
  3002.  
  3003. -#include_dir = '...' # include files ending in '.conf' from
  3004.  
  3005. - # a directory, e.g., 'conf.d'
  3006.  
  3007. -#include_if_exists = '...' # include file only if it exists
  3008.  
  3009. -#include = '...' # include file
  3010.  
  3011. -
  3012.  
  3013. -
  3014.  
  3015. -#------------------------------------------------------------------------------
  3016.  
  3017. # CUSTOMIZED OPTIONS
  3018.  
  3019. #------------------------------------------------------------------------------
  3020.  
  3021.  
  3022. -# Add settings for extensions here
  3023.  
  3024. +#custom_variable_classes = '' # list of custom variable class names
  3025.  
  3026. +
  3027.  
  3028. +include 'runtime.conf'[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/postgresql.conf] mode changed to 644
  3029.  
  3030.  
  3031. - change mode from '0600' to '0644'
  3032.  
  3033. * 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
  3034.  
  3035.  
  3036. - 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
  3037.  
  3038.  
  3039. - update content in file /var/opt/gitlab/postgresql/data/runtime.conf from none to 27284b
  3040.  
  3041. --- /var/opt/gitlab/postgresql/data/runtime.conf 2023-06-12 08:51:23.651753344 +0000
  3042.  
  3043. +++ /var/opt/gitlab/postgresql/data/.chef-runtime20230612-2522091-6rnzb4.conf 2023-06-12 08:51:23.651753344 +0000
  3044.  
  3045. @@ -1,134 +1,268 @@
  3046.  
  3047. +# This file is managed by gitlab-ctl. Manual changes will be
  3048.  
  3049. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  3050.  
  3051. +# and run `sudo gitlab-ctl reconfigure`.
  3052.  
  3053. +
  3054.  
  3055. +# Changing variables in this file should only require a reload of PostgreSQL
  3056.  
  3057. +# As the gitlab-psql user, run:
  3058.  
  3059. +# /opt/gitlab/embedded/bin/pg_ctl reload -D /var/opt/gitlab/postgresql/data
  3060.  
  3061. +work_mem = 16MB # min 64kB
  3062.  
  3063. +maintenance_work_mem = 16MB # 16MB # min 1MB
  3064.  
  3065. +synchronous_commit = on # synchronization level; on, off, or local
  3066.  
  3067. +synchronous_standby_names = ''
  3068.  
  3069. +
  3070.  
  3071. +# - Checkpoints -
  3072.  
  3073. +min_wal_size = 80MB
  3074.  
  3075. +max_wal_size = 1GB
  3076.  
  3077. +
  3078.  
  3079. +checkpoint_timeout = 5min # range 30s-1h, default 5min
  3080.  
  3081. +checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0, default 0.5
  3082.  
  3083. +checkpoint_warning = 30s # 0 disables, default 30s
  3084.  
  3085. +
  3086.  
  3087. +# - Logging -
  3088.  
  3089. +log_directory = '/var/log/gitlab/postgresql'
  3090.  
  3091. +
  3092.  
  3093. +# - Archiving -
  3094.  
  3095. +archive_command = '' # command to use to archive a logfile segment
  3096.  
  3097. +archive_timeout = 0 # force a logfile segment switch after this
  3098.  
  3099. + # number of seconds; 0 disables
  3100.  
  3101. +
  3102.  
  3103. +# - Replication
  3104.  
  3105. +wal_keep_size = 160
  3106.  
  3107. +
  3108.  
  3109. +max_standby_archive_delay = 30s # max delay before canceling queries
  3110.  
  3111. + # when reading WAL from archive;
  3112.  
  3113. + # -1 allows indefinite delay
  3114.  
  3115. +max_standby_streaming_delay = 30s # max delay before canceling queries
  3116.  
  3117. + # when reading streaming WAL;
  3118.  
  3119. + # -1 allows indefinite delay
  3120.  
  3121. +
  3122.  
  3123. +hot_standby_feedback = off # send info from standby to prevent
  3124.  
  3125. + # query conflicts
  3126.  
  3127. +
  3128.  
  3129. +# - Planner Cost Constants -
  3130.  
  3131. +#seq_page_cost = 1.0 # measured on an arbitrary scale
  3132.  
  3133. +random_page_cost = 2.0 # same scale as above
  3134.  
  3135. +
  3136.  
  3137. +effective_cache_size = 4096MB # Default 128MB
  3138.  
  3139. +
  3140.  
  3141. +log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
  3142.  
  3143. + # and their durations, > 0 logs only
  3144.  
  3145. + # statements running at least this number
  3146.  
  3147. + # of milliseconds
  3148.  
  3149. +
  3150.  
  3151. +log_checkpoints = off
  3152.  
  3153. +
  3154.  
  3155. +log_line_prefix = '' # default '', special values:
  3156.  
  3157. + # %a = application name
  3158.  
  3159. + # %u = user name
  3160.  
  3161. + # %d = database name
  3162.  
  3163. + # %r = remote host and port
  3164.  
  3165. + # %h = remote host
  3166.  
  3167. + # %p = process ID
  3168.  
  3169. + # %t = timestamp without milliseconds
  3170.  
  3171. + # %m = timestamp with milliseconds
  3172.  
  3173. + # %i = command tag
  3174.  
  3175. + # %e = SQL state
  3176.  
  3177. + # %c = session ID
  3178.  
  3179. + # %l = session line number
  3180.  
  3181. + # %s = session start timestamp
  3182.  
  3183. + # %v = virtual transaction ID
  3184.  
  3185. + # %x = transaction ID (0 if none)
  3186.  
  3187. + # %q = stop here in non-session
  3188.  
  3189. + # processes
  3190.  
  3191. + # %% = '%'
  3192.  
  3193. +
  3194.  
  3195. +log_temp_files = -1 # log temporary files equal or larger
  3196.  
  3197. + # than the specified size in kilobytes;
  3198.  
  3199. + # -1 disables, 0 logs all temp files
  3200.  
  3201. +
  3202.  
  3203. +
  3204.  
  3205. +# - Autovacuum parameters -
  3206.  
  3207. +autovacuum = on # Enable autovacuum subprocess? 'on'
  3208.  
  3209. + # requires track_counts to also be on.
  3210.  
  3211. +
  3212.  
  3213. +log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
  3214.  
  3215. + # their durations, > 0 logs only
  3216.  
  3217. + # actions running at least this number
  3218.  
  3219. + # of milliseconds.
  3220.  
  3221. +
  3222.  
  3223. +autovacuum_naptime = 1min # time between autovacuum runs
  3224.  
  3225. +autovacuum_vacuum_threshold = 50 # min number of row updates before
  3226.  
  3227. + # vacuum
  3228.  
  3229. +autovacuum_analyze_threshold = 50 # min number of row updates before
  3230.  
  3231. + # analyze
  3232.  
  3233. +autovacuum_vacuum_scale_factor = 0.02 # fraction of table size before vacuum
  3234.  
  3235. +autovacuum_analyze_scale_factor = 0.01 # fraction of table size before analyze
  3236.  
  3237. +autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
  3238.  
  3239. + # autovacuum, in milliseconds;
  3240.  
  3241. + # -1 means use vacuum_cost_delay
  3242.  
  3243. +autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
  3244.  
  3245. + # autovacuum, -1 means use
  3246.  
  3247. + # vacuum_cost_limit
  3248.  
  3249. +
  3250.  
  3251. +# Parameters for gathering statistics
  3252.  
  3253. +default_statistics_target = 1000
  3254.  
  3255. +
  3256.  
  3257. +# - Client connection timeouts
  3258.  
  3259. +statement_timeout = 60000
  3260.  
  3261. +
  3262.  
  3263. +idle_in_transaction_session_timeout = 60000
  3264.  
  3265. +
  3266.  
  3267. +# IO settings
  3268.  
  3269. +effective_io_concurrency = 1
  3270.  
  3271. +track_io_timing = 'off'
  3272.  
  3273. +
  3274.  
  3275. +# Parallel worker settings
  3276.  
  3277. +max_worker_processes = 8
  3278.  
  3279. +max_parallel_workers_per_gather = 0
  3280.  
  3281. +
  3282.  
  3283. +# Deadlock handling and logging
  3284.  
  3285. +deadlock_timeout = '5s'
  3286.  
  3287. +log_lock_waits = 1
  3288.  
  3289. +
  3290.  
  3291. +# - Locale and Formatting -
  3292.  
  3293. +datestyle = 'iso, mdy'
  3294.  
  3295. +
  3296.  
  3297. +# These settings are initialized by initdb, but they can be changed.
  3298.  
  3299. +lc_messages = 'C' # locale for system error message
  3300.  
  3301. + # strings
  3302.  
  3303. +lc_monetary = 'C' # locale for monetary formatting
  3304.  
  3305. +lc_numeric = 'C' # locale for number formatting
  3306.  
  3307. +lc_time = 'C' # locale for time formatting
  3308.  
  3309. +
  3310.  
  3311. +# default configuration for text search
  3312.  
  3313. +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
  3314.  
  3315. [2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/runtime.conf] mode changed to 644
  3316.  
  3317.  
  3318. - change mode from '' to '0644'
  3319.  
  3320. - change owner from '' to 'gitlab-psql'
  3321.  
  3322. * 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
  3323.  
  3324. [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
  3325.  
  3326.  
  3327. - update content in file /var/opt/gitlab/postgresql/data/pg_hba.conf from 98c8d4 to 40e348
  3328.  
  3329. --- /var/opt/gitlab/postgresql/data/pg_hba.conf 2023-06-12 08:51:19.947763143 +0000
  3330.  
  3331. +++ /var/opt/gitlab/postgresql/data/.chef-pg_hba20230612-2522091-g44no7.conf 2023-06-12 08:51:23.667753303 +0000
  3332.  
  3333. @@ -1,98 +1,74 @@
  3334.  
  3335. +# This file is managed by gitlab-ctl. Manual changes will be
  3336.  
  3337. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  3338.  
  3339. +# and run `sudo gitlab-ctl reconfigure`.
  3340.  
  3341. +
  3342.  
  3343. # PostgreSQL Client Authentication Configuration File
  3344.  
  3345. # ===================================================
  3346.  
  3347. #
  3348.  
  3349. -# Refer to the "Client Authentication" section in the PostgreSQL
  3350.  
  3351. -# documentation for a complete description of this file. A short
  3352.  
  3353. -# synopsis follows.
  3354.  
  3355. +# Refer to the "Client Authentication" section in the
  3356.  
  3357. +# PostgreSQL documentation for a complete description
  3358.  
  3359. +# of this file. A short synopsis follows.
  3360.  
  3361. #
  3362.  
  3363. # This file controls: which hosts are allowed to connect, how clients
  3364.  
  3365. # are authenticated, which PostgreSQL user names they can use, which
  3366.  
  3367. # databases they can access. Records take one of these forms:
  3368.  
  3369. #
  3370.  
  3371. -# local DATABASE USER METHOD [OPTIONS]
  3372.  
  3373. -# host DATABASE USER ADDRESS METHOD [OPTIONS]
  3374.  
  3375. -# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
  3376.  
  3377. -# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
  3378.  
  3379. -# hostgssenc DATABASE USER ADDRESS METHOD [OPTIONS]
  3380.  
  3381. -# hostnogssenc DATABASE USER ADDRESS METHOD [OPTIONS]
  3382.  
  3383. +# local DATABASE USER METHOD [OPTION]
  3384.  
  3385. +# host DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  3386.  
  3387. +# hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  3388.  
  3389. +# hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  3390.  
  3391. #
  3392.  
  3393. # (The uppercase items must be replaced by actual values.)
  3394.  
  3395. #
  3396.  
  3397. -# The first field is the connection type: "local" is a Unix-domain
  3398.  
  3399. -# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
  3400.  
  3401. -# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
  3402.  
  3403. -# non-SSL TCP/IP socket. Similarly, "hostgssenc" uses a
  3404.  
  3405. -# GSSAPI-encrypted TCP/IP socket, while "hostnogssenc" uses a
  3406.  
  3407. -# non-GSSAPI socket.
  3408.  
  3409. +# The first field is the connection type: "local" is a Unix-domain socket,
  3410.  
  3411. +# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
  3412.  
  3413. +# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
  3414.  
  3415. #
  3416.  
  3417. -# DATABASE can be "all", "sameuser", "samerole", "replication", a
  3418.  
  3419. -# database name, or a comma-separated list thereof. The "all"
  3420.  
  3421. -# keyword does not match "replication". Access to replication
  3422.  
  3423. -# must be enabled in a separate record (see example below).
  3424.  
  3425. +# DATABASE can be "all", "sameuser", "samerole", a database name, or
  3426.  
  3427. +# a comma-separated list thereof.
  3428.  
  3429. #
  3430.  
  3431. -# USER can be "all", a user name, a group name prefixed with "+", or a
  3432.  
  3433. -# comma-separated list thereof. In both the DATABASE and USER fields
  3434.  
  3435. -# you can also write a file name prefixed with "@" to include names
  3436.  
  3437. -# from a separate file.
  3438.  
  3439. +# USER can be "all", a user name, a group name prefixed with "+", or
  3440.  
  3441. +# a comma-separated list thereof. In both the DATABASE and USER fields
  3442.  
  3443. +# you can also write a file name prefixed with "@" to include names from
  3444.  
  3445. +# a separate file.
  3446.  
  3447. #
  3448.  
  3449. -# ADDRESS specifies the set of hosts the record matches. It can be a
  3450.  
  3451. -# host name, or it is made up of an IP address and a CIDR mask that is
  3452.  
  3453. -# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that
  3454.  
  3455. -# specifies the number of significant bits in the mask. A host name
  3456.  
  3457. -# that starts with a dot (.) matches a suffix of the actual host name.
  3458.  
  3459. -# Alternatively, you can write an IP address and netmask in separate
  3460.  
  3461. -# columns to specify the set of hosts. Instead of a CIDR-address, you
  3462.  
  3463. -# can write "samehost" to match any of the server's own IP addresses,
  3464.  
  3465. -# or "samenet" to match any address in any subnet that the server is
  3466.  
  3467. -# directly connected to.
  3468.  
  3469. +# CIDR-ADDRESS specifies the set of hosts the record matches.
  3470.  
  3471. +# It is made up of an IP address and a CIDR mask that is an integer
  3472.  
  3473. +# (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
  3474.  
  3475. +# the number of significant bits in the mask. Alternatively, you can write
  3476.  
  3477. +# an IP address and netmask in separate columns to specify the set of hosts.
  3478.  
  3479. #
  3480.  
  3481. -# METHOD can be "trust", "reject", "md5", "password", "scram-sha-256",
  3482.  
  3483. -# "gss", "sspi", "ident", "peer", "pam", "ldap", "radius" or "cert".
  3484.  
  3485. -# Note that "password" sends passwords in clear text; "md5" or
  3486.  
  3487. -# "scram-sha-256" are preferred since they send encrypted passwords.
  3488.  
  3489. +# METHOD can be "trust", "reject", "md5", "crypt", "password", "gss", "sspi",
  3490.  
  3491. +# "krb5", "ident", "pam" or "ldap". Note that "password" sends passwords
  3492.  
  3493. +# in clear text; "md5" is preferred since it sends encrypted passwords.
  3494.  
  3495. #
  3496.  
  3497. -# OPTIONS are a set of options for the authentication in the format
  3498.  
  3499. -# NAME=VALUE. The available options depend on the different
  3500.  
  3501. -# authentication methods -- refer to the "Client Authentication"
  3502.  
  3503. -# section in the documentation for a list of which options are
  3504.  
  3505. -# available for which authentication methods.
  3506.  
  3507. +# OPTION is the ident map or the name of the PAM service, depending on METHOD.
  3508.  
  3509. #
  3510.  
  3511. -# Database and user names containing spaces, commas, quotes and other
  3512.  
  3513. -# special characters must be quoted. Quoting one of the keywords
  3514.  
  3515. -# "all", "sameuser", "samerole" or "replication" makes the name lose
  3516.  
  3517. -# its special character, and just match a database or username with
  3518.  
  3519. -# that name.
  3520.  
  3521. +# Database and user names containing spaces, commas, quotes and other special
  3522.  
  3523. +# characters must be quoted. Quoting one of the keywords "all", "sameuser" or
  3524.  
  3525. +# "samerole" makes the name lose its special character, and just match a
  3526.  
  3527. +# database or username with that name.
  3528.  
  3529. #
  3530.  
  3531. -# This file is read on server startup and when the server receives a
  3532.  
  3533. -# SIGHUP signal. If you edit the file on a running system, you have to
  3534.  
  3535. -# SIGHUP the server for the changes to take effect, run "pg_ctl reload",
  3536.  
  3537. -# or execute "SELECT pg_reload_conf()".
  3538.  
  3539. -#
  3540.  
  3541. +# This file is read on server startup and when the postmaster receives
  3542.  
  3543. +# a SIGHUP signal. If you edit the file on a running system, you have
  3544.  
  3545. +# to SIGHUP the postmaster for the changes to take effect. You can use
  3546.  
  3547. +# "pg_ctl reload" to do that.
  3548.  
  3549. +
  3550.  
  3551. # Put your actual configuration here
  3552.  
  3553. # ----------------------------------
  3554.  
  3555. #
  3556.  
  3557. # If you want to allow non-local connections, you need to add more
  3558.  
  3559. -# "host" records. In that case you will also need to make PostgreSQL
  3560.  
  3561. -# listen on a non-local interface via the listen_addresses
  3562.  
  3563. -# configuration parameter, or via the -i or -h command line switches.
  3564.  
  3565. +# "host" records. In that case you will also need to make PostgreSQL listen
  3566.  
  3567. +# on a non-local interface via the listen_addresses configuration parameter,
  3568.  
  3569. +# or via the -i or -h command line switches.
  3570.  
  3571. +#
  3572.  
  3573.  
  3574. -# CAUTION: Configuring the system for local "trust" authentication
  3575.  
  3576. -# allows any local user to connect as any PostgreSQL user, including
  3577.  
  3578. -# the database superuser. If you do not trust all your local users,
  3579.  
  3580. -# use another authentication method.
  3581.  
  3582.  
  3583. +# TYPE DATABASE USER CIDR-ADDRESS METHOD
  3584.  
  3585.  
  3586. -# TYPE DATABASE USER ADDRESS METHOD
  3587.  
  3588. -
  3589.  
  3590. # "local" is for Unix domain socket connections only
  3591.  
  3592. -local all all trust
  3593.  
  3594. -# IPv4 local connections:
  3595.  
  3596. -host all all 127.0.0.1/32 trust
  3597.  
  3598. -# IPv6 local connections:
  3599.  
  3600. -host all all ::1/128 trust
  3601.  
  3602. -# Allow replication connections from localhost, by a user with the
  3603.  
  3604. -# replication privilege.
  3605.  
  3606. -local replication all trust
  3607.  
  3608. -host replication all 127.0.0.1/32 trust
  3609.  
  3610. -host replication all ::1/128 trust
  3611.  
  3612. +local all all peer map=gitlab
  3613.  
  3614. +
  3615.  
  3616. +
  3617.  
  3618. +[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_hba.conf] mode changed to 644
  3619.  
  3620.  
  3621. - change mode from '0600' to '0644'
  3622.  
  3623. * 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
  3624.  
  3625. [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
  3626.  
  3627.  
  3628. - update content in file /var/opt/gitlab/postgresql/data/pg_ident.conf from 297f46 to 5399a1
  3629.  
  3630. --- /var/opt/gitlab/postgresql/data/pg_ident.conf 2023-06-12 08:51:19.947763143 +0000
  3631.  
  3632. +++ /var/opt/gitlab/postgresql/data/.chef-pg_ident20230612-2522091-l24mg2.conf 2023-06-12 08:51:23.687753249 +0000
  3633.  
  3634. @@ -40,4 +40,8 @@
  3635.  
  3636. # ----------------------------------
  3637.  
  3638.  
  3639. # MAPNAME SYSTEM-USERNAME PG-USERNAME
  3640.  
  3641. +gitlab git gitlab
  3642.  
  3643. +gitlab mattermost gitlab_mattermost
  3644.  
  3645. +# Default to a 1-1 mapping between system usernames and Postgres usernames
  3646.  
  3647. +gitlab /^(.*)$ \1[2023-06-12T08:51:23+00:00] INFO: template[/var/opt/gitlab/postgresql/data/pg_ident.conf] mode changed to 644
  3648.  
  3649.  
  3650. - change mode from '0600' to '0644'
  3651.  
  3652.  
  3653. Recipe: postgresql::standalone
  3654.  
  3655. * service[postgresql] action nothing (skipped due to action :nothing)
  3656.  
  3657. * runit_service[postgresql] action enable
  3658.  
  3659. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  3660.  
  3661. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  3662.  
  3663. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  3664.  
  3665. * 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
  3666.  
  3667.  
  3668. - create new directory /opt/gitlab/sv/postgresql[2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] owner changed to 0
  3669.  
  3670. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] group changed to 0
  3671.  
  3672. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql] mode changed to 755
  3673.  
  3674.  
  3675. - change mode from '' to '0755'
  3676.  
  3677. - change owner from '' to 'root'
  3678.  
  3679. - change group from '' to 'root'
  3680.  
  3681. * 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
  3682.  
  3683.  
  3684. - 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
  3685.  
  3686.  
  3687. - update content in file /opt/gitlab/sv/postgresql/run from none to dc5689
  3688.  
  3689. --- /opt/gitlab/sv/postgresql/run 2023-06-12 08:51:23.707753196 +0000
  3690.  
  3691. +++ /opt/gitlab/sv/postgresql/.chef-run20230612-2522091-omjpma 2023-06-12 08:51:23.707753196 +0000
  3692.  
  3693. @@ -1,4 +1,8 @@
  3694.  
  3695. +#!/bin/sh
  3696.  
  3697. +exec 2>&1
  3698.  
  3699. +
  3700.  
  3701. +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
  3702.  
  3703. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] group changed to 0
  3704.  
  3705. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] mode changed to 755
  3706.  
  3707.  
  3708. - change mode from '' to '0755'
  3709.  
  3710. - change owner from '' to 'root'
  3711.  
  3712. - change group from '' to 'root'
  3713.  
  3714. * 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
  3715.  
  3716.  
  3717. - 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
  3718.  
  3719. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log] group changed to 0
  3720.  
  3721. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log] mode changed to 755
  3722.  
  3723.  
  3724. - change mode from '' to '0755'
  3725.  
  3726. - change owner from '' to 'root'
  3727.  
  3728. - change group from '' to 'root'
  3729.  
  3730. * 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
  3731.  
  3732.  
  3733. - 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
  3734.  
  3735. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log/main] group changed to 0
  3736.  
  3737. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/log/main] mode changed to 755
  3738.  
  3739.  
  3740. - change mode from '' to '0755'
  3741.  
  3742. - change owner from '' to 'root'
  3743.  
  3744. - change group from '' to 'root'
  3745.  
  3746. * 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
  3747.  
  3748.  
  3749. - 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
  3750.  
  3751.  
  3752. - update content in file /opt/gitlab/sv/postgresql/log/config from none to 623c00
  3753.  
  3754. --- /opt/gitlab/sv/postgresql/log/config 2023-06-12 08:51:23.727753144 +0000
  3755.  
  3756. +++ /opt/gitlab/sv/postgresql/log/.chef-config20230612-2522091-9uadtc 2023-06-12 08:51:23.723753154 +0000
  3757.  
  3758. @@ -1,6 +1,12 @@
  3759.  
  3760. +s209715200
  3761.  
  3762. +n30
  3763.  
  3764. +t86400
  3765.  
  3766. +!gzip
  3767.  
  3768. +
  3769.  
  3770. +[2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] owner changed to 0
  3771.  
  3772. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] group changed to 0
  3773.  
  3774. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/config] mode changed to 644
  3775.  
  3776.  
  3777. - change mode from '' to '0644'
  3778.  
  3779. - change owner from '' to 'root'
  3780.  
  3781. - change group from '' to 'root'
  3782.  
  3783. [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)
  3784.  
  3785. * 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
  3786.  
  3787.  
  3788. - execute the ruby block verify_chown_persisted_on_postgresql
  3789.  
  3790. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
  3791.  
  3792. * link[/var/log/gitlab/postgresql/config] action create[2023-06-12T08:51:23+00:00] INFO: link[/var/log/gitlab/postgresql/config] created
  3793.  
  3794.  
  3795. - create symlink at /var/log/gitlab/postgresql/config to /opt/gitlab/sv/postgresql/log/config
  3796.  
  3797. * 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
  3798.  
  3799.  
  3800. - 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
  3801.  
  3802.  
  3803. - update content in file /opt/gitlab/sv/postgresql/log/run from none to 9c7bfd
  3804.  
  3805. --- /opt/gitlab/sv/postgresql/log/run 2023-06-12 08:51:23.743753101 +0000
  3806.  
  3807. +++ /opt/gitlab/sv/postgresql/log/.chef-run20230612-2522091-x9zlga 2023-06-12 08:51:23.743753101 +0000
  3808.  
  3809. @@ -1,5 +1,10 @@
  3810.  
  3811. +#!/bin/sh
  3812.  
  3813. +exec chpst -P \
  3814.  
  3815. + -U root:root \
  3816.  
  3817. + -u root:root \
  3818.  
  3819. + 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
  3820.  
  3821. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] group changed to 0
  3822.  
  3823. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/log/run] mode changed to 755
  3824.  
  3825.  
  3826. - change mode from '' to '0755'
  3827.  
  3828. - change owner from '' to 'root'
  3829.  
  3830. - change group from '' to 'root'
  3831.  
  3832. * 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
  3833.  
  3834.  
  3835. - 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
  3836.  
  3837. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/env] group changed to 0
  3838.  
  3839. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/env] mode changed to 755
  3840.  
  3841.  
  3842. - change mode from '' to '0755'
  3843.  
  3844. - change owner from '' to 'root'
  3845.  
  3846. - change group from '' to 'root'
  3847.  
  3848. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
  3849.  
  3850. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
  3851.  
  3852. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
  3853.  
  3854. * 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
  3855.  
  3856.  
  3857. - 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
  3858.  
  3859. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/control] group changed to 0
  3860.  
  3861. [2023-06-12T08:51:23+00:00] INFO: directory[/opt/gitlab/sv/postgresql/control] mode changed to 755
  3862.  
  3863.  
  3864. - change mode from '' to '0755'
  3865.  
  3866. - change owner from '' to 'root'
  3867.  
  3868. - change group from '' to 'root'
  3869.  
  3870. * 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
  3871.  
  3872.  
  3873. - 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
  3874.  
  3875.  
  3876. - update content in file /opt/gitlab/sv/postgresql/control/t from none to 05ae12
  3877.  
  3878. --- /opt/gitlab/sv/postgresql/control/t 2023-06-12 08:51:23.759753059 +0000
  3879.  
  3880. +++ /opt/gitlab/sv/postgresql/control/.chef-t20230612-2522091-ixpiq5 2023-06-12 08:51:23.759753059 +0000
  3881.  
  3882. @@ -1,3 +1,6 @@
  3883.  
  3884. +#!/bin/sh
  3885.  
  3886. +echo "received TERM from runit, sending INT instead to force quit connections"
  3887.  
  3888. +/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
  3889.  
  3890. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] group changed to 0
  3891.  
  3892. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/control/t] mode changed to 755
  3893.  
  3894.  
  3895. - change mode from '' to '0755'
  3896.  
  3897. - change owner from '' to 'root'
  3898.  
  3899. - change group from '' to 'root'
  3900.  
  3901. * link[/opt/gitlab/init/postgresql] action create[2023-06-12T08:51:23+00:00] INFO: link[/opt/gitlab/init/postgresql] created
  3902.  
  3903.  
  3904. - create symlink at /opt/gitlab/init/postgresql to /opt/gitlab/embedded/bin/sv
  3905.  
  3906. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
  3907.  
  3908. [2023-06-12T08:51:23+00:00] INFO: template[/opt/gitlab/sv/postgresql/run] sending run action to ruby_block[restart_service] (delayed)
  3909.  
  3910. * ruby_block[restart_service] action run (skipped due to only_if)
  3911.  
  3912. [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)
  3913.  
  3914. * ruby_block[reload_log_service] action create
  3915.  
  3916. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  3917.  
  3918. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  3919.  
  3920. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  3921.  
  3922. * directory[/opt/gitlab/sv/postgresql] action create (up to date)
  3923.  
  3924. * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
  3925.  
  3926. * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
  3927.  
  3928. * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
  3929.  
  3930. * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date)
  3931.  
  3932. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
  3933.  
  3934. * link[/var/log/gitlab/postgresql/config] action create (up to date)
  3935.  
  3936. * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
  3937.  
  3938. * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
  3939.  
  3940. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
  3941.  
  3942. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
  3943.  
  3944. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
  3945.  
  3946. * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
  3947.  
  3948. * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
  3949.  
  3950. * link[/opt/gitlab/init/postgresql] action create (up to date)
  3951.  
  3952. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
  3953.  
  3954. * directory[/opt/gitlab/service] action create (up to date)
  3955.  
  3956. * link[/opt/gitlab/service/postgresql] action create[2023-06-12T08:51:23+00:00] INFO: link[/opt/gitlab/service/postgresql] created
  3957.  
  3958.  
  3959. - create symlink at /opt/gitlab/service/postgresql to /opt/gitlab/sv/postgresql
  3960.  
  3961. * 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
  3962.  
  3963.  
  3964. - execute the ruby block wait for postgresql service socket
  3965.  
  3966. * 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
  3967.  
  3968.  
  3969. - change mode from '0700' to '0755'
  3970.  
  3971. * 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
  3972.  
  3973.  
  3974. - change mode from '0700' to '0755'
  3975.  
  3976. * 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
  3977.  
  3978.  
  3979. - 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
  3980.  
  3981. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/ok] group changed to 995
  3982.  
  3983.  
  3984. - change owner from '' to 'gitlab-psql'
  3985.  
  3986. - 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
  3987.  
  3988.  
  3989. - update utime on file /opt/gitlab/service/postgresql/supervise/ok
  3990.  
  3991. * 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
  3992.  
  3993.  
  3994. - 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
  3995.  
  3996. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/ok] group changed to 995
  3997.  
  3998.  
  3999. - change owner from '' to 'gitlab-psql'
  4000.  
  4001. - 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
  4002.  
  4003.  
  4004. - update utime on file /opt/gitlab/service/postgresql/log/supervise/ok
  4005.  
  4006. * 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
  4007.  
  4008. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] group changed to 995
  4009.  
  4010.  
  4011. - change owner from 'root' to 'gitlab-psql'
  4012.  
  4013. - 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
  4014.  
  4015.  
  4016. - update utime on file /opt/gitlab/service/postgresql/supervise/status
  4017.  
  4018. * 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
  4019.  
  4020. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
  4021.  
  4022.  
  4023. - change owner from 'root' to 'gitlab-psql'
  4024.  
  4025. - 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
  4026.  
  4027.  
  4028. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
  4029.  
  4030. * 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
  4031.  
  4032.  
  4033. - 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
  4034.  
  4035. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/control] group changed to 995
  4036.  
  4037.  
  4038. - change owner from '' to 'gitlab-psql'
  4039.  
  4040. - 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
  4041.  
  4042.  
  4043. - update utime on file /opt/gitlab/service/postgresql/supervise/control
  4044.  
  4045. * 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
  4046.  
  4047.  
  4048. - 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
  4049.  
  4050. [2023-06-12T08:51:28+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/control] group changed to 995
  4051.  
  4052.  
  4053. - change owner from '' to 'gitlab-psql'
  4054.  
  4055. - 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
  4056.  
  4057.  
  4058. - update utime on file /opt/gitlab/service/postgresql/log/supervise/control
  4059.  
  4060. * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
  4061.  
  4062. [2023-06-12T08:51:29+00:00] INFO: ruby_block[reload_log_service] called
  4063.  
  4064. - execute the ruby block reload_log_service
  4065.  
  4066. [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)
  4067.  
  4068. * ruby_block[restart_log_service] action run
  4069.  
  4070. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  4071.  
  4072. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  4073.  
  4074. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  4075.  
  4076. * directory[/opt/gitlab/sv/postgresql] action create (up to date)
  4077.  
  4078. * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
  4079.  
  4080. * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
  4081.  
  4082. * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
  4083.  
  4084. * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date)
  4085.  
  4086. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
  4087.  
  4088. * link[/var/log/gitlab/postgresql/config] action create (up to date)
  4089.  
  4090. * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
  4091.  
  4092. * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
  4093.  
  4094. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
  4095.  
  4096. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
  4097.  
  4098. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
  4099.  
  4100. * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
  4101.  
  4102. * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
  4103.  
  4104. * link[/opt/gitlab/init/postgresql] action create (up to date)
  4105.  
  4106. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
  4107.  
  4108. * directory[/opt/gitlab/service] action create (up to date)
  4109.  
  4110. * link[/opt/gitlab/service/postgresql] action create (up to date)
  4111.  
  4112. * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
  4113.  
  4114. * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
  4115.  
  4116. * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
  4117.  
  4118. * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if)
  4119.  
  4120. * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if)
  4121.  
  4122. * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if)
  4123.  
  4124. * 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
  4125.  
  4126. [2023-06-12T08:51:29+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
  4127.  
  4128.  
  4129. - change owner from 'root' to 'gitlab-psql'
  4130.  
  4131. - 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
  4132.  
  4133.  
  4134. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
  4135.  
  4136. * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if)
  4137.  
  4138. * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if)
  4139.  
  4140. * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
  4141.  
  4142. [2023-06-12T08:51:30+00:00] INFO: ruby_block[restart_log_service] called
  4143.  
  4144. - execute the ruby block restart_log_service
  4145.  
  4146. * directory[/opt/gitlab/service] action create (up to date)
  4147.  
  4148. * link[/opt/gitlab/service/postgresql] action create (up to date)
  4149.  
  4150. * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
  4151.  
  4152. * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
  4153.  
  4154. * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
  4155.  
  4156. * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if)
  4157.  
  4158. * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if)
  4159.  
  4160. * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if)
  4161.  
  4162. * 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
  4163.  
  4164. [2023-06-12T08:51:30+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 995
  4165.  
  4166.  
  4167. - change owner from 'root' to 'gitlab-psql'
  4168.  
  4169. - 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
  4170.  
  4171.  
  4172. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
  4173.  
  4174. * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if)
  4175.  
  4176. * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if)
  4177.  
  4178. * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)
  4179.  
  4180.  
  4181. * execute[/opt/gitlab/bin/gitlab-ctl start postgresql] action run
  4182.  
  4183. [execute] ok: run: postgresql: (pid 2522511) 4s
  4184.  
  4185. [2023-06-12T08:51:31+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start postgresql] ran successfully
  4186.  
  4187. - execute /opt/gitlab/bin/gitlab-ctl start postgresql
  4188.  
  4189. * database_objects[postgresql] action create
  4190.  
  4191. * postgresql_user[gitlab] action create
  4192.  
  4193. * execute[create gitlab postgresql user] action run
  4194.  
  4195. [execute] CREATE ROLE
  4196.  
  4197. [2023-06-12T08:51:31+00:00] INFO: execute[create gitlab postgresql user] ran successfully
  4198.  
  4199. - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER \"gitlab\""
  4200.  
  4201.  
  4202. * postgresql_user[gitlab_replicator] action create
  4203.  
  4204. * execute[create gitlab_replicator postgresql user] action run
  4205.  
  4206. [execute] CREATE ROLE
  4207.  
  4208. [2023-06-12T08:51:31+00:00] INFO: execute[create gitlab_replicator postgresql user] ran successfully
  4209.  
  4210. - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER \"gitlab_replicator\""
  4211.  
  4212. * execute[set options for gitlab_replicator postgresql user] action run
  4213.  
  4214. [execute] ALTER ROLE
  4215.  
  4216. [2023-06-12T08:51:31+00:00] INFO: execute[set options for gitlab_replicator postgresql user] ran successfully
  4217.  
  4218. - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "ALTER USER \"gitlab_replicator\" replication"
  4219.  
  4220.  
  4221. * postgresql_database[gitlabhq_production] action create
  4222.  
  4223. * execute[create database gitlabhq_production] action run[2023-06-12T08:51:33+00:00] INFO: execute[create database gitlabhq_production] ran successfully
  4224.  
  4225.  
  4226. - execute /opt/gitlab/embedded/bin/createdb --port 5432 -h /var/opt/gitlab/postgresql -O gitlab gitlabhq_production
  4227.  
  4228.  
  4229. * postgresql_extension[pg_trgm] action enable
  4230.  
  4231. * postgresql_query[enable pg_trgm extension] action run
  4232.  
  4233. * execute[enable pg_trgm extension (postgresql)] action run
  4234.  
  4235. [execute] CREATE EXTENSION
  4236.  
  4237. [2023-06-12T08:51:33+00:00] INFO: execute[enable pg_trgm extension (postgresql)] ran successfully
  4238.  
  4239. - execute /opt/gitlab/bin/gitlab-psql -d gitlabhq_production -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
  4240.  
  4241.  
  4242.  
  4243. * postgresql_extension[btree_gist] action enable
  4244.  
  4245. * postgresql_query[enable btree_gist extension] action run
  4246.  
  4247. * execute[enable btree_gist extension (postgresql)] action run
  4248.  
  4249. [execute] CREATE EXTENSION
  4250.  
  4251. [2023-06-12T08:51:33+00:00] INFO: execute[enable btree_gist extension (postgresql)] ran successfully
  4252.  
  4253. - execute /opt/gitlab/bin/gitlab-psql -d gitlabhq_production -c "CREATE EXTENSION IF NOT EXISTS btree_gist"
  4254.  
  4255.  
  4256.  
  4257.  
  4258. * version_file[Create version file for PostgreSQL] action create
  4259.  
  4260. * 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
  4261.  
  4262.  
  4263. - 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
  4264.  
  4265.  
  4266. - update content in file /var/opt/gitlab/postgresql/VERSION from none to cfc50c
  4267.  
  4268. --- /var/opt/gitlab/postgresql/VERSION 2023-06-12 08:51:33.895726132 +0000
  4269.  
  4270. +++ /var/opt/gitlab/postgresql/.chef-VERSION20230612-2522091-hnp3ds 2023-06-12 08:51:33.891726144 +0000
  4271.  
  4272. @@ -1 +1,2 @@
  4273.  
  4274. +postgres (PostgreSQL) 13.11
  4275.  
  4276.  
  4277. * ruby_block[warn pending postgresql restart] action run (skipped due to only_if)
  4278.  
  4279. * execute[reload postgresql] action nothing (skipped due to action :nothing)
  4280.  
  4281. * execute[start postgresql] action nothing (skipped due to action :nothing)
  4282.  
  4283. Recipe: praefect::disable
  4284.  
  4285. * service[praefect] action nothing (skipped due to action :nothing)
  4286.  
  4287. * runit_service[praefect] action disable
  4288.  
  4289. * ruby_block[disable praefect] action run (skipped due to only_if)
  4290.  
  4291. (up to date)
  4292.  
  4293. * consul_service[praefect] action delete
  4294.  
  4295. * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date)
  4296.  
  4297. (up to date)
  4298.  
  4299. Recipe: gitlab-kas::enable
  4300.  
  4301. * 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
  4302.  
  4303.  
  4304. - 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
  4305.  
  4306. [2023-06-12T08:51:33+00:00] INFO: directory[/var/opt/gitlab/gitlab-kas] mode changed to 700
  4307.  
  4308.  
  4309. - change mode from '' to '0700'
  4310.  
  4311. - change owner from '' to 'git'
  4312.  
  4313. * 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
  4314.  
  4315.  
  4316. - 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
  4317.  
  4318. [2023-06-12T08:51:33+00:00] INFO: directory[/opt/gitlab/etc/gitlab-kas] mode changed to 700
  4319.  
  4320.  
  4321. - change mode from '' to '0700'
  4322.  
  4323. - change owner from '' to 'git'
  4324.  
  4325. * 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
  4326.  
  4327.  
  4328. - 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
  4329.  
  4330. [2023-06-12T08:51:33+00:00] INFO: directory[/var/log/gitlab/gitlab-kas] mode changed to 700
  4331.  
  4332.  
  4333. - change mode from '' to '0700'
  4334.  
  4335. - change owner from '' to 'git'
  4336.  
  4337. * ruby_block[websocket TLS termination] action run (skipped due to only_if)
  4338.  
  4339. * version_file[Create version file for Gitlab KAS] action create
  4340.  
  4341. * 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
  4342.  
  4343.  
  4344. - 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
  4345.  
  4346.  
  4347. - update content in file /var/opt/gitlab/gitlab-kas/VERSION from none to 3e4d4b
  4348.  
  4349. --- /var/opt/gitlab/gitlab-kas/VERSION 2023-06-12 08:51:34.027725781 +0000
  4350.  
  4351. +++ /var/opt/gitlab/gitlab-kas/.chef-VERSION20230612-2522091-3w4sxd 2023-06-12 08:51:34.027725781 +0000
  4352.  
  4353. @@ -1 +1,2 @@
  4354.  
  4355. +kas version v16.0.1, commit: 27e3eb8e, built: 20230608.113856
  4356.  
  4357.  
  4358. * 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
  4359.  
  4360.  
  4361. - 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
  4362.  
  4363.  
  4364. - update content in file /var/opt/gitlab/gitlab-kas/authentication_secret_file from none to c5258b
  4365.  
  4366. --- /var/opt/gitlab/gitlab-kas/authentication_secret_file 2023-06-12 08:51:34.043725738 +0000
  4367.  
  4368. +++ /var/opt/gitlab/gitlab-kas/.chef-authentication_secret_file20230612-2522091-9jxw6q 2023-06-12 08:51:34.043725738 +0000
  4369.  
  4370. @@ -1 +1,2 @@
  4371.  
  4372. +M2ZiNGFkNmNhYTI1MmE5Y2ExNTE5NTFjZjFkZmQzOWQ=[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] owner changed to 0
  4373.  
  4374. [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] group changed to 997
  4375.  
  4376. [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] mode changed to 640
  4377.  
  4378.  
  4379. - change mode from '' to '0640'
  4380.  
  4381. - change owner from '' to 'root'
  4382.  
  4383. - change group from '' to 'git'
  4384.  
  4385. [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
  4386.  
  4387. * 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
  4388.  
  4389.  
  4390. - 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
  4391.  
  4392.  
  4393. - update content in file /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file from none to 6df2ef
  4394.  
  4395. --- /var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file 2023-06-12 08:51:34.059725696 +0000
  4396.  
  4397. +++ /var/opt/gitlab/gitlab-kas/.chef-private_api_authentication_secret_file20230612-2522091-1xwyut 2023-06-12 08:51:34.059725696 +0000
  4398.  
  4399. @@ -1 +1,2 @@
  4400.  
  4401. +ZmE1ODc4MWU5MzY0YmNjMWEwZGMwNGIzOTQwMDY0NGY=[2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] owner changed to 0
  4402.  
  4403. [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] group changed to 997
  4404.  
  4405. [2023-06-12T08:51:34+00:00] INFO: file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] mode changed to 640
  4406.  
  4407.  
  4408. - change mode from '' to '0640'
  4409.  
  4410. - change owner from '' to 'root'
  4411.  
  4412. - change group from '' to 'git'
  4413.  
  4414. [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
  4415.  
  4416. * file[/var/opt/gitlab/gitlab-kas/redis_password_file] action create (skipped due to only_if)
  4417.  
  4418. * 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
  4419.  
  4420.  
  4421. - 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
  4422.  
  4423.  
  4424. - update content in file /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml from none to 67eff7
  4425.  
  4426. --- /var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml 2023-06-12 08:51:34.075725653 +0000
  4427.  
  4428. +++ /var/opt/gitlab/gitlab-kas/.chef-gitlab-kas-config20230612-2522091-ht08q5.yml 2023-06-12 08:51:34.075725653 +0000
  4429.  
  4430. @@ -1,44 +1,88 @@
  4431.  
  4432. +agent:
  4433.  
  4434. + listen:
  4435.  
  4436. + address: localhost:8150
  4437.  
  4438. + network: tcp
  4439.  
  4440. + websocket: true
  4441.  
  4442. + configuration:
  4443.  
  4444. + poll_period: 20s
  4445.  
  4446. + gitops:
  4447.  
  4448. + poll_period: 20s
  4449.  
  4450. + project_info_cache_ttl: 300s
  4451.  
  4452. + project_info_cache_error_ttl: 60s
  4453.  
  4454. + kubernetes_api:
  4455.  
  4456. + listen:
  4457.  
  4458. + address: localhost:8154
  4459.  
  4460. + url_path_prefix: /
  4461.  
  4462. + info_cache_ttl: 300s
  4463.  
  4464. + info_cache_error_ttl: 60s
  4465.  
  4466. +gitlab:
  4467.  
  4468. + address: http://192.168.100.33
  4469.  
  4470. + external_url: http://192.168.100.33
  4471.  
  4472. + authentication_secret_file: /var/opt/gitlab/gitlab-kas/authentication_secret_file
  4473.  
  4474. +observability:
  4475.  
  4476. + listen:
  4477.  
  4478. + address: localhost:8151
  4479.  
  4480. + network: tcp
  4481.  
  4482. + usage_reporting_period: 60s
  4483.  
  4484. + logging:
  4485.  
  4486. + level: info
  4487.  
  4488. +redis:
  4489.  
  4490. + network: unix
  4491.  
  4492. + tls:
  4493.  
  4494. + enabled: false
  4495.  
  4496. + server:
  4497.  
  4498. + address: '/var/opt/gitlab/redis/redis.socket'
  4499.  
  4500. +api:
  4501.  
  4502. + listen:
  4503.  
  4504. + network: tcp
  4505.  
  4506. + address: localhost:8153
  4507.  
  4508. + authentication_secret_file: /var/opt/gitlab/gitlab-kas/authentication_secret_file
  4509.  
  4510. +private_api:
  4511.  
  4512. + listen:
  4513.  
  4514. + network: tcp
  4515.  
  4516. + address: localhost:8155
  4517.  
  4518. + 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
  4519.  
  4520. [2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] group changed to 997
  4521.  
  4522. [2023-06-12T08:51:34+00:00] INFO: template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] mode changed to 640
  4523.  
  4524.  
  4525. - change mode from '' to '0640'
  4526.  
  4527. - change owner from '' to 'root'
  4528.  
  4529. - change group from '' to 'git'
  4530.  
  4531. [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
  4532.  
  4533. * env_dir[/opt/gitlab/etc/gitlab-kas/env] action create
  4534.  
  4535. * 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
  4536.  
  4537.  
  4538. - create new directory /opt/gitlab/etc/gitlab-kas/env
  4539.  
  4540. * 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
  4541.  
  4542.  
  4543. - 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
  4544.  
  4545.  
  4546. - update content in file /opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR from none to 4f45cf
  4547.  
  4548. - suppressed sensitive resource
  4549.  
  4550. * 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
  4551.  
  4552.  
  4553. - 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
  4554.  
  4555.  
  4556. - update content in file /opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL from none to 45b898
  4557.  
  4558. - suppressed sensitive resource
  4559.  
  4560.  
  4561. * service[gitlab-kas] action nothing (skipped due to action :nothing)
  4562.  
  4563. * runit_service[gitlab-kas] action enable
  4564.  
  4565. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  4566.  
  4567. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  4568.  
  4569. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  4570.  
  4571. * 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
  4572.  
  4573.  
  4574. - 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
  4575.  
  4576. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas] group changed to 0
  4577.  
  4578. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas] mode changed to 755
  4579.  
  4580.  
  4581. - change mode from '' to '0755'
  4582.  
  4583. - change owner from '' to 'root'
  4584.  
  4585. - change group from '' to 'root'
  4586.  
  4587. * 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
  4588.  
  4589.  
  4590. - 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
  4591.  
  4592.  
  4593. - update content in file /opt/gitlab/sv/gitlab-kas/run from none to ac037b
  4594.  
  4595. --- /opt/gitlab/sv/gitlab-kas/run 2023-06-12 08:51:34.131725504 +0000
  4596.  
  4597. +++ /opt/gitlab/sv/gitlab-kas/.chef-run20230612-2522091-h4rsos 2023-06-12 08:51:34.131725504 +0000
  4598.  
  4599. @@ -1,11 +1,22 @@
  4600.  
  4601. +#!/bin/bash
  4602.  
  4603. +
  4604.  
  4605. +# Let runit capture all script error messages
  4606.  
  4607. +exec 2>&1
  4608.  
  4609. +
  4610.  
  4611. +
  4612.  
  4613. +
  4614.  
  4615. +exec chpst -e /opt/gitlab/etc/gitlab-kas/env -P \
  4616.  
  4617. + -u git:git \
  4618.  
  4619. + -U git:git \
  4620.  
  4621. + /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
  4622.  
  4623. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] group changed to 0
  4624.  
  4625. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] mode changed to 755
  4626.  
  4627.  
  4628. - change mode from '' to '0755'
  4629.  
  4630. - change owner from '' to 'root'
  4631.  
  4632. - change group from '' to 'root'
  4633.  
  4634. * 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
  4635.  
  4636.  
  4637. - 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
  4638.  
  4639. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log] group changed to 0
  4640.  
  4641. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log] mode changed to 755
  4642.  
  4643.  
  4644. - change mode from '' to '0755'
  4645.  
  4646. - change owner from '' to 'root'
  4647.  
  4648. - change group from '' to 'root'
  4649.  
  4650. * 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
  4651.  
  4652.  
  4653. - 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
  4654.  
  4655. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log/main] group changed to 0
  4656.  
  4657. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/log/main] mode changed to 755
  4658.  
  4659.  
  4660. - change mode from '' to '0755'
  4661.  
  4662. - change owner from '' to 'root'
  4663.  
  4664. - change group from '' to 'root'
  4665.  
  4666. * 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
  4667.  
  4668.  
  4669. - 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
  4670.  
  4671.  
  4672. - update content in file /opt/gitlab/sv/gitlab-kas/log/config from none to 623c00
  4673.  
  4674. --- /opt/gitlab/sv/gitlab-kas/log/config 2023-06-12 08:51:34.151725451 +0000
  4675.  
  4676. +++ /opt/gitlab/sv/gitlab-kas/log/.chef-config20230612-2522091-i9j01s 2023-06-12 08:51:34.151725451 +0000
  4677.  
  4678. @@ -1,6 +1,12 @@
  4679.  
  4680. +s209715200
  4681.  
  4682. +n30
  4683.  
  4684. +t86400
  4685.  
  4686. +!gzip
  4687.  
  4688. +
  4689.  
  4690. +[2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] owner changed to 0
  4691.  
  4692. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] group changed to 0
  4693.  
  4694. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/config] mode changed to 644
  4695.  
  4696.  
  4697. - change mode from '' to '0644'
  4698.  
  4699. - change owner from '' to 'root'
  4700.  
  4701. - change group from '' to 'root'
  4702.  
  4703. [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)
  4704.  
  4705. * 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
  4706.  
  4707.  
  4708. - execute the ruby block verify_chown_persisted_on_gitlab-kas
  4709.  
  4710. * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
  4711.  
  4712. * 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
  4713.  
  4714.  
  4715. - create symlink at /var/log/gitlab/gitlab-kas/config to /opt/gitlab/sv/gitlab-kas/log/config
  4716.  
  4717. * 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
  4718.  
  4719.  
  4720. - 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
  4721.  
  4722.  
  4723. - update content in file /opt/gitlab/sv/gitlab-kas/log/run from none to 22436c
  4724.  
  4725. --- /opt/gitlab/sv/gitlab-kas/log/run 2023-06-12 08:51:34.167725408 +0000
  4726.  
  4727. +++ /opt/gitlab/sv/gitlab-kas/log/.chef-run20230612-2522091-va16ps 2023-06-12 08:51:34.167725408 +0000
  4728.  
  4729. @@ -1,5 +1,10 @@
  4730.  
  4731. +#!/bin/sh
  4732.  
  4733. +exec chpst -P \
  4734.  
  4735. + -U root:root \
  4736.  
  4737. + -u root:root \
  4738.  
  4739. + 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
  4740.  
  4741. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] group changed to 0
  4742.  
  4743. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/log/run] mode changed to 755
  4744.  
  4745.  
  4746. - change mode from '' to '0755'
  4747.  
  4748. - change owner from '' to 'root'
  4749.  
  4750. - change group from '' to 'root'
  4751.  
  4752. * 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
  4753.  
  4754.  
  4755. - 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
  4756.  
  4757. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/env] group changed to 0
  4758.  
  4759. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/env] mode changed to 755
  4760.  
  4761.  
  4762. - change mode from '' to '0755'
  4763.  
  4764. - change owner from '' to 'root'
  4765.  
  4766. - change group from '' to 'root'
  4767.  
  4768. * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
  4769.  
  4770. * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
  4771.  
  4772. * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
  4773.  
  4774. * 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
  4775.  
  4776.  
  4777. - 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
  4778.  
  4779. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/control] group changed to 0
  4780.  
  4781. [2023-06-12T08:51:34+00:00] INFO: directory[/opt/gitlab/sv/gitlab-kas/control] mode changed to 755
  4782.  
  4783.  
  4784. - change mode from '' to '0755'
  4785.  
  4786. - change owner from '' to 'root'
  4787.  
  4788. - change group from '' to 'root'
  4789.  
  4790. * link[/opt/gitlab/init/gitlab-kas] action create[2023-06-12T08:51:34+00:00] INFO: link[/opt/gitlab/init/gitlab-kas] created
  4791.  
  4792.  
  4793. - create symlink at /opt/gitlab/init/gitlab-kas to /opt/gitlab/embedded/bin/sv
  4794.  
  4795. * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
  4796.  
  4797. [2023-06-12T08:51:34+00:00] INFO: template[/opt/gitlab/sv/gitlab-kas/run] sending run action to ruby_block[restart_service] (delayed)
  4798.  
  4799. * ruby_block[restart_service] action run (skipped due to only_if)
  4800.  
  4801. [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)
  4802.  
  4803. * ruby_block[reload_log_service] action create
  4804.  
  4805. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  4806.  
  4807. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  4808.  
  4809. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  4810.  
  4811. * directory[/opt/gitlab/sv/gitlab-kas] action create (up to date)
  4812.  
  4813. * template[/opt/gitlab/sv/gitlab-kas/run] action create (up to date)
  4814.  
  4815. * directory[/opt/gitlab/sv/gitlab-kas/log] action create (up to date)
  4816.  
  4817. * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create (up to date)
  4818.  
  4819. * template[/opt/gitlab/sv/gitlab-kas/log/config] action create (up to date)
  4820.  
  4821. * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
  4822.  
  4823. * link[/var/log/gitlab/gitlab-kas/config] action create (up to date)
  4824.  
  4825. * template[/opt/gitlab/sv/gitlab-kas/log/run] action create (up to date)
  4826.  
  4827. * directory[/opt/gitlab/sv/gitlab-kas/env] action create (up to date)
  4828.  
  4829. * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
  4830.  
  4831. * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
  4832.  
  4833. * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
  4834.  
  4835. * directory[/opt/gitlab/sv/gitlab-kas/control] action create (up to date)
  4836.  
  4837. * link[/opt/gitlab/init/gitlab-kas] action create (up to date)
  4838.  
  4839. * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
  4840.  
  4841. * directory[/opt/gitlab/service] action create (up to date)
  4842.  
  4843. * link[/opt/gitlab/service/gitlab-kas] action create[2023-06-12T08:51:34+00:00] INFO: link[/opt/gitlab/service/gitlab-kas] created
  4844.  
  4845.  
  4846. - create symlink at /opt/gitlab/service/gitlab-kas to /opt/gitlab/sv/gitlab-kas
  4847.  
  4848. * 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
  4849.  
  4850.  
  4851. - execute the ruby block wait for gitlab-kas service socket
  4852.  
  4853. * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
  4854.  
  4855. [2023-06-12T08:51:40+00:00] INFO: ruby_block[reload_log_service] called
  4856.  
  4857. - execute the ruby block reload_log_service
  4858.  
  4859. [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)
  4860.  
  4861. * ruby_block[restart_log_service] action run
  4862.  
  4863. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  4864.  
  4865. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  4866.  
  4867. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  4868.  
  4869. * directory[/opt/gitlab/sv/gitlab-kas] action create (up to date)
  4870.  
  4871. * template[/opt/gitlab/sv/gitlab-kas/run] action create (up to date)
  4872.  
  4873. * directory[/opt/gitlab/sv/gitlab-kas/log] action create (up to date)
  4874.  
  4875. * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create (up to date)
  4876.  
  4877. * template[/opt/gitlab/sv/gitlab-kas/log/config] action create (up to date)
  4878.  
  4879. * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing)
  4880.  
  4881. * link[/var/log/gitlab/gitlab-kas/config] action create (up to date)
  4882.  
  4883. * template[/opt/gitlab/sv/gitlab-kas/log/run] action create (up to date)
  4884.  
  4885. * directory[/opt/gitlab/sv/gitlab-kas/env] action create (up to date)
  4886.  
  4887. * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if)
  4888.  
  4889. * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if)
  4890.  
  4891. * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if)
  4892.  
  4893. * directory[/opt/gitlab/sv/gitlab-kas/control] action create (up to date)
  4894.  
  4895. * link[/opt/gitlab/init/gitlab-kas] action create (up to date)
  4896.  
  4897. * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing)
  4898.  
  4899. * directory[/opt/gitlab/service] action create (up to date)
  4900.  
  4901. * link[/opt/gitlab/service/gitlab-kas] action create (up to date)
  4902.  
  4903. * ruby_block[wait for gitlab-kas service socket] action run (skipped due to not_if)
  4904.  
  4905. * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
  4906.  
  4907. [2023-06-12T08:51:40+00:00] INFO: ruby_block[restart_log_service] called
  4908.  
  4909. - execute the ruby block restart_log_service
  4910.  
  4911. * directory[/opt/gitlab/service] action create (up to date)
  4912.  
  4913. * link[/opt/gitlab/service/gitlab-kas] action create (up to date)
  4914.  
  4915. * ruby_block[wait for gitlab-kas service socket] action run (skipped due to not_if)
  4916.  
  4917. * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if)
  4918.  
  4919.  
  4920. Recipe: gitlab::database_migrations
  4921.  
  4922. * ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
  4923.  
  4924. * 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.
  4925.  
  4926.  
  4927. * bash_hide_env[migrate gitlab-rails database] action run
  4928.  
  4929. [execute] Running db:schema:load rake task
  4930.  
  4931. psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:9: NOTICE: extension "btree_gist" already exists, skipping
  4932.  
  4933. psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:11: NOTICE: extension "pg_trgm" already exists, skipping
  4934.  
  4935.  
  4936. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/001_application_settings.rb
  4937.  
  4938. Creating the default ApplicationSetting record.
  4939.  
  4940.  
  4941. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/002_admin.rb
  4942.  
  4943. Administrator account created:
  4944.  
  4945.  
  4946. login: root
  4947.  
  4948. password: ******
  4949.  
  4950.  
  4951.  
  4952. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/003_create_base_work_item_types.rb
  4953.  
  4954.  
  4955. OK
  4956.  
  4957.  
  4958. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/004_add_security_training_providers.rb
  4959.  
  4960.  
  4961. OK
  4962.  
  4963.  
  4964. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb
  4965.  
  4966. Saved CI JWT signing key
  4967.  
  4968.  
  4969. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/020_create_work_item_hierarchy_restrictions.rb
  4970.  
  4971.  
  4972. OK
  4973.  
  4974.  
  4975. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/999_common_metrics.rb
  4976.  
  4977.  
  4978. == Seed from ee/db/fixtures/production/010_license.rb
  4979.  
  4980.  
  4981. == Seed from ee/db/fixtures/production/027_plans.rb
  4982.  
  4983.  
  4984. OK
  4985.  
  4986. [2023-06-12T08:52:14+00:00] INFO: bash_hide_env[migrate gitlab-rails database] ran successfully
  4987.  
  4988. - execute "bash"
  4989.  
  4990.  
  4991. [2023-06-12T08:52:14+00:00] INFO: rails_migration[gitlab-rails] sending run action to execute[clear the gitlab-rails cache] (immediate)
  4992.  
  4993. Recipe: gitlab::gitlab-rails
  4994.  
  4995. * execute[clear the gitlab-rails cache] action run[2023-06-12T08:52:35+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully
  4996.  
  4997.  
  4998. - execute /opt/gitlab/bin/gitlab-rake cache:clear
  4999.  
  5000. [2023-06-12T08:52:35+00:00] INFO: rails_migration[gitlab-rails] sending run action to ruby_block[check remote PG version] (immediate)
  5001.  
  5002. Recipe: gitlab::database_migrations
  5003.  
  5004. * ruby_block[check remote PG version] action run (skipped due to only_if)
  5005.  
  5006. Recipe: crond::disable
  5007.  
  5008. * service[crond] action nothing (skipped due to action :nothing)
  5009.  
  5010. * runit_service[crond] action disable
  5011.  
  5012. * ruby_block[disable crond] action run (skipped due to only_if)
  5013.  
  5014. (up to date)
  5015.  
  5016. Recipe: gitlab::puma
  5017.  
  5018. * 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
  5019.  
  5020.  
  5021. - create new directory /opt/gitlab/var/puma[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/var/puma] owner changed to 997
  5022.  
  5023. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/var/puma] mode changed to 700
  5024.  
  5025.  
  5026. - change mode from '' to '0700'
  5027.  
  5028. - change owner from '' to 'git'
  5029.  
  5030. * 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
  5031.  
  5032.  
  5033. - create new directory /var/log/gitlab/puma[2023-06-12T08:52:35+00:00] INFO: directory[/var/log/gitlab/puma] owner changed to 997
  5034.  
  5035. [2023-06-12T08:52:35+00:00] INFO: directory[/var/log/gitlab/puma] mode changed to 700
  5036.  
  5037.  
  5038. - change mode from '' to '0700'
  5039.  
  5040. - change owner from '' to 'git'
  5041.  
  5042. * 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
  5043.  
  5044.  
  5045. - 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
  5046.  
  5047. [2023-06-12T08:52:35+00:00] INFO: directory[/var/opt/gitlab/gitlab-rails/sockets] group changed to 998
  5048.  
  5049. [2023-06-12T08:52:35+00:00] INFO: directory[/var/opt/gitlab/gitlab-rails/sockets] mode changed to 750
  5050.  
  5051.  
  5052. - change mode from '' to '0750'
  5053.  
  5054. - change owner from '' to 'git'
  5055.  
  5056. - change group from '' to 'gitlab-www'
  5057.  
  5058. * puma_config[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create
  5059.  
  5060. * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date)
  5061.  
  5062. * 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
  5063.  
  5064.  
  5065. - 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
  5066.  
  5067.  
  5068. - update content in file /var/opt/gitlab/gitlab-rails/etc/puma.rb from none to f597e7
  5069.  
  5070. --- /var/opt/gitlab/gitlab-rails/etc/puma.rb 2023-06-12 08:52:35.119560204 +0000
  5071.  
  5072. +++ /var/opt/gitlab/gitlab-rails/etc/.chef-puma20230612-2522091-9obfb7.rb 2023-06-12 08:52:35.119560204 +0000
  5073.  
  5074. @@ -1,109 +1,218 @@
  5075.  
  5076. +# frozen_string_literal: true
  5077.  
  5078. +
  5079.  
  5080. +# This file is managed by gitlab-ctl. Manual changes will be
  5081.  
  5082. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  5083.  
  5084. +# and run `sudo gitlab-ctl reconfigure`.
  5085.  
  5086. +
  5087.  
  5088. +# Load "path" as a rackup file.
  5089.  
  5090. +#
  5091.  
  5092. +# The default is "config.ru".
  5093.  
  5094. +#
  5095.  
  5096. +environment 'production'
  5097.  
  5098. +rackup '/opt/gitlab/embedded/service/gitlab-rails/config.ru'
  5099.  
  5100. +pidfile '/opt/gitlab/var/puma/puma.pid'
  5101.  
  5102. +state_path '/opt/gitlab/var/puma/puma.state'
  5103.  
  5104. +
  5105.  
  5106. +stdout_redirect '/var/log/gitlab/puma/puma_stdout.log', '/var/log/gitlab/puma/puma_stderr.log', true
  5107.  
  5108. +
  5109.  
  5110. +# Configure "min" to be the minimum number of threads to use to answer
  5111.  
  5112. +# requests and "max" the maximum.
  5113.  
  5114. +#
  5115.  
  5116. +# The default is "0, 16".
  5117.  
  5118. +#
  5119.  
  5120. +threads 4, 4
  5121.  
  5122. +
  5123.  
  5124. +# By default, workers accept all requests and queue them to pass to handlers.
  5125.  
  5126. +# When false, workers accept the number of simultaneous requests configured.
  5127.  
  5128. +#
  5129.  
  5130. +# Queueing requests generally improves performance, but can cause deadlocks if
  5131.  
  5132. +# the app is waiting on a request to itself. See https://github.com/puma/puma/issues/612
  5133.  
  5134. +#
  5135.  
  5136. +# When set to false this may require a reverse proxy to handle slow clients and
  5137.  
  5138. +# queue requests before they reach puma. This is due to disabling HTTP keepalive
  5139.  
  5140. +queue_requests false
  5141.  
  5142. +
  5143.  
  5144. +# Bind the server to "url". "tcp://", "unix://" and "ssl://" are the only
  5145.  
  5146. +# accepted protocols.
  5147.  
  5148. +bind 'unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  5149.  
  5150. +
  5151.  
  5152. +bind 'tcp://127.0.0.1:8080'
  5153.  
  5154. +
  5155.  
  5156. +
  5157.  
  5158. +directory '/var/opt/gitlab/gitlab-rails/working'
  5159.  
  5160. +
  5161.  
  5162. +workers 2
  5163.  
  5164. +
  5165.  
  5166. +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/lifecycle_events"
  5167.  
  5168. +
  5169.  
  5170. +on_restart do
  5171.  
  5172. + # Signal application hooks that we're about to restart
  5173.  
  5174. + Gitlab::Cluster::LifecycleEvents.do_before_master_restart
  5175.  
  5176. +end
  5177.  
  5178. +
  5179.  
  5180. +options = { workers: 2 }
  5181.  
  5182. +
  5183.  
  5184. +before_fork do
  5185.  
  5186. + # Signal application hooks that we're about to fork
  5187.  
  5188. + Gitlab::Cluster::LifecycleEvents.do_before_fork
  5189.  
  5190. +end
  5191.  
  5192. +
  5193.  
  5194. +Gitlab::Cluster::LifecycleEvents.set_puma_options options
  5195.  
  5196. +on_worker_boot do
  5197.  
  5198. + # Signal application hooks of worker start
  5199.  
  5200. + Gitlab::Cluster::LifecycleEvents.do_worker_start
  5201.  
  5202. +end
  5203.  
  5204. +
  5205.  
  5206. +on_worker_shutdown do
  5207.  
  5208. + # Signal application hooks that a worker is shutting down
  5209.  
  5210. + Gitlab::Cluster::LifecycleEvents.do_worker_stop
  5211.  
  5212. +end
  5213.  
  5214. +
  5215.  
  5216. +# Preload the application before starting the workers; this conflicts with
  5217.  
  5218. +# phased restart feature. (off by default)
  5219.  
  5220. +
  5221.  
  5222. +preload_app!
  5223.  
  5224. +
  5225.  
  5226. +tag 'gitlab-puma-worker'
  5227.  
  5228. +
  5229.  
  5230. +# Verifies that all workers have checked in to the master process within
  5231.  
  5232. +# the given timeout. If not the worker process will be restarted. Default
  5233.  
  5234. +# value is 60 seconds.
  5235.  
  5236. +#
  5237.  
  5238. +worker_timeout 60
  5239.  
  5240. +
  5241.  
  5242. +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput
  5243.  
  5244. +wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
  5245.  
  5246. +
  5247.  
  5248. +# nakayoshi_fork was removed in Puma 6.0: https://github.com/puma/puma/issues/2258
  5249.  
  5250. +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork
  5251.  
  5252. +if Gem::Version.new(Puma::Const::PUMA_VERSION).canonical_segments.first == 5 &&
  5253.  
  5254. + ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] != 'true'
  5255.  
  5256. + nakayoshi_fork
  5257.  
  5258. +end
  5259.  
  5260. +
  5261.  
  5262. +# Use customised JSON formatter for Puma log
  5263.  
  5264. +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/puma_logging/json_formatter"
  5265.  
  5266. +
  5267.  
  5268. +json_formatter = Gitlab::PumaLogging::JSONFormatter.new
  5269.  
  5270. +log_formatter do |str|
  5271.  
  5272. + json_formatter.call(str)
  5273.  
  5274. +end
  5275.  
  5276. +
  5277.  
  5278. +lowlevel_error_handler do |ex, env|
  5279.  
  5280. + if Raven.configuration.capture_allowed?
  5281.  
  5282. + Raven.capture_exception(ex, tags: { 'handler': 'puma_low_level' }, extra: { puma_env: env })
  5283.  
  5284. + end
  5285.  
  5286. +
  5287.  
  5288. + # note the below is just a Rack response
  5289.  
  5290. + [500, {}, ["An error has occurred and reported in the system's low-level error handler."]]
  5291.  
  5292. +end[2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] owner changed to 0
  5293.  
  5294. [2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] group changed to 0
  5295.  
  5296. [2023-06-12T08:52:35+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] mode changed to 644
  5297.  
  5298.  
  5299. - change mode from '' to '0644'
  5300.  
  5301. - change owner from '' to 'root'
  5302.  
  5303. - change group from '' to 'root'
  5304.  
  5305.  
  5306. * service[puma] action nothing (skipped due to action :nothing)
  5307.  
  5308. * runit_service[puma] action enable
  5309.  
  5310. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  5311.  
  5312. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  5313.  
  5314. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  5315.  
  5316. * 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
  5317.  
  5318.  
  5319. - create new directory /opt/gitlab/sv/puma[2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] owner changed to 0
  5320.  
  5321. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] group changed to 0
  5322.  
  5323. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma] mode changed to 755
  5324.  
  5325.  
  5326. - change mode from '' to '0755'
  5327.  
  5328. - change owner from '' to 'root'
  5329.  
  5330. - change group from '' to 'root'
  5331.  
  5332. * 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
  5333.  
  5334.  
  5335. - 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
  5336.  
  5337.  
  5338. - update content in file /opt/gitlab/sv/puma/run from none to d9c6f4
  5339.  
  5340. --- /opt/gitlab/sv/puma/run 2023-06-12 08:52:35.155560104 +0000
  5341.  
  5342. +++ /opt/gitlab/sv/puma/.chef-run20230612-2522091-t2yz31 2023-06-12 08:52:35.155560104 +0000
  5343.  
  5344. @@ -1,22 +1,44 @@
  5345.  
  5346. +#!/bin/bash
  5347.  
  5348. +
  5349.  
  5350. +# Let runit capture all script error messages
  5351.  
  5352. +exec 2>&1
  5353.  
  5354. +
  5355.  
  5356. +# Setup run directory.
  5357.  
  5358. +mkdir -p /run/gitlab/puma
  5359.  
  5360. +chmod 0700 /run/gitlab/puma
  5361.  
  5362. +chown git /run/gitlab/puma
  5363.  
  5364. +export prometheus_run_dir='/run/gitlab/puma'
  5365.  
  5366. +
  5367.  
  5368. +
  5369.  
  5370. +
  5371.  
  5372. +
  5373.  
  5374. +exec chpst -P \
  5375.  
  5376. + -u git:git \
  5377.  
  5378. + -U git:git \
  5379.  
  5380. + -e /opt/gitlab/etc/gitlab-rails/env \
  5381.  
  5382. + /usr/bin/env \
  5383.  
  5384. + prometheus_multiproc_dir="${prometheus_run_dir}" \
  5385.  
  5386. + ACTION_CABLE_WORKER_POOL_SIZE=4 \
  5387.  
  5388. + /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
  5389.  
  5390. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] group changed to 0
  5391.  
  5392. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] mode changed to 755
  5393.  
  5394.  
  5395. - change mode from '' to '0755'
  5396.  
  5397. - change owner from '' to 'root'
  5398.  
  5399. - change group from '' to 'root'
  5400.  
  5401. * 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
  5402.  
  5403.  
  5404. - 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
  5405.  
  5406. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log] group changed to 0
  5407.  
  5408. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log] mode changed to 755
  5409.  
  5410.  
  5411. - change mode from '' to '0755'
  5412.  
  5413. - change owner from '' to 'root'
  5414.  
  5415. - change group from '' to 'root'
  5416.  
  5417. * 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
  5418.  
  5419.  
  5420. - 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
  5421.  
  5422. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log/main] group changed to 0
  5423.  
  5424. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/log/main] mode changed to 755
  5425.  
  5426.  
  5427. - change mode from '' to '0755'
  5428.  
  5429. - change owner from '' to 'root'
  5430.  
  5431. - change group from '' to 'root'
  5432.  
  5433. * 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
  5434.  
  5435.  
  5436. - 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
  5437.  
  5438.  
  5439. - update content in file /opt/gitlab/sv/puma/log/config from none to 623c00
  5440.  
  5441. --- /opt/gitlab/sv/puma/log/config 2023-06-12 08:52:35.183560027 +0000
  5442.  
  5443. +++ /opt/gitlab/sv/puma/log/.chef-config20230612-2522091-z7jvlw 2023-06-12 08:52:35.183560027 +0000
  5444.  
  5445. @@ -1,6 +1,12 @@
  5446.  
  5447. +s209715200
  5448.  
  5449. +n30
  5450.  
  5451. +t86400
  5452.  
  5453. +!gzip
  5454.  
  5455. +
  5456.  
  5457. +[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] owner changed to 0
  5458.  
  5459. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] group changed to 0
  5460.  
  5461. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/config] mode changed to 644
  5462.  
  5463.  
  5464. - change mode from '' to '0644'
  5465.  
  5466. - change owner from '' to 'root'
  5467.  
  5468. - change group from '' to 'root'
  5469.  
  5470. [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)
  5471.  
  5472. * 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
  5473.  
  5474.  
  5475. - execute the ruby block verify_chown_persisted_on_puma
  5476.  
  5477. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
  5478.  
  5479. * link[/var/log/gitlab/puma/config] action create[2023-06-12T08:52:35+00:00] INFO: link[/var/log/gitlab/puma/config] created
  5480.  
  5481.  
  5482. - create symlink at /var/log/gitlab/puma/config to /opt/gitlab/sv/puma/log/config
  5483.  
  5484. * 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
  5485.  
  5486.  
  5487. - 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
  5488.  
  5489.  
  5490. - update content in file /opt/gitlab/sv/puma/log/run from none to b9d2d5
  5491.  
  5492. --- /opt/gitlab/sv/puma/log/run 2023-06-12 08:52:35.203559973 +0000
  5493.  
  5494. +++ /opt/gitlab/sv/puma/log/.chef-run20230612-2522091-it29bt 2023-06-12 08:52:35.203559973 +0000
  5495.  
  5496. @@ -1,5 +1,10 @@
  5497.  
  5498. +#!/bin/sh
  5499.  
  5500. +exec chpst -P \
  5501.  
  5502. + -U root:root \
  5503.  
  5504. + -u root:root \
  5505.  
  5506. + 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
  5507.  
  5508. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] group changed to 0
  5509.  
  5510. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/log/run] mode changed to 755
  5511.  
  5512.  
  5513. - change mode from '' to '0755'
  5514.  
  5515. - change owner from '' to 'root'
  5516.  
  5517. - change group from '' to 'root'
  5518.  
  5519. * 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
  5520.  
  5521.  
  5522. - 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
  5523.  
  5524. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/env] group changed to 0
  5525.  
  5526. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/env] mode changed to 755
  5527.  
  5528.  
  5529. - change mode from '' to '0755'
  5530.  
  5531. - change owner from '' to 'root'
  5532.  
  5533. - change group from '' to 'root'
  5534.  
  5535. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
  5536.  
  5537. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
  5538.  
  5539. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
  5540.  
  5541. * 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
  5542.  
  5543.  
  5544. - 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
  5545.  
  5546. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/control] group changed to 0
  5547.  
  5548. [2023-06-12T08:52:35+00:00] INFO: directory[/opt/gitlab/sv/puma/control] mode changed to 755
  5549.  
  5550.  
  5551. - change mode from '' to '0755'
  5552.  
  5553. - change owner from '' to 'root'
  5554.  
  5555. - change group from '' to 'root'
  5556.  
  5557. * 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
  5558.  
  5559.  
  5560. - 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
  5561.  
  5562.  
  5563. - update content in file /opt/gitlab/sv/puma/control/t from none to d8e9e7
  5564.  
  5565. --- /opt/gitlab/sv/puma/control/t 2023-06-12 08:52:35.219559928 +0000
  5566.  
  5567. +++ /opt/gitlab/sv/puma/control/.chef-t20230612-2522091-mgnhjm 2023-06-12 08:52:35.219559928 +0000
  5568.  
  5569. @@ -1,3 +1,6 @@
  5570.  
  5571. +#!/bin/sh
  5572.  
  5573. +echo "Received TERM from runit, sending to process group (-PID)"
  5574.  
  5575. +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
  5576.  
  5577. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] group changed to 0
  5578.  
  5579. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/t] mode changed to 755
  5580.  
  5581.  
  5582. - change mode from '' to '0755'
  5583.  
  5584. - change owner from '' to 'root'
  5585.  
  5586. - change group from '' to 'root'
  5587.  
  5588. * 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
  5589.  
  5590.  
  5591. - 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
  5592.  
  5593.  
  5594. - update content in file /opt/gitlab/sv/puma/control/h from none to 22e721
  5595.  
  5596. --- /opt/gitlab/sv/puma/control/h 2023-06-12 08:52:35.235559885 +0000
  5597.  
  5598. +++ /opt/gitlab/sv/puma/control/.chef-h20230612-2522091-j89l6i 2023-06-12 08:52:35.235559885 +0000
  5599.  
  5600. @@ -1,47 +1,94 @@
  5601.  
  5602. +#!/bin/sh
  5603.  
  5604. +
  5605.  
  5606. +# This control handler is meant to be invoked by omnibus-gitlab via Runit
  5607.  
  5608. +
  5609.  
  5610. +# Let runit capture all script error messages
  5611.  
  5612. +exec 2>&1
  5613.  
  5614. +
  5615.  
  5616. +PID=$(cat /opt/gitlab/service/puma/supervise/pid)
  5617.  
  5618. +
  5619.  
  5620. +readonly puma_graceful_shutdown_sec=90
  5621.  
  5622. +readonly puma_forceful_shutdown_sec=20
  5623.  
  5624. +readonly puma_kill_shutdown_sec=10
  5625.  
  5626. +
  5627.  
  5628. +echo "Received HUP from runit, sending INT signal to perform graceful restart"
  5629.  
  5630. +
  5631.  
  5632. +signal() {
  5633.  
  5634. + local pid="$1"
  5635.  
  5636. + local signal="$2"
  5637.  
  5638. + local tries="$3"
  5639.  
  5640. +
  5641.  
  5642. + echo "Sending $signal signal to Puma $pid..."
  5643.  
  5644. + kill "-$signal" "$pid"
  5645.  
  5646. +
  5647.  
  5648. + for i in $(seq 1 "$tries"); do
  5649.  
  5650. + echo "Waiting for Puma $pid to exit ($i)..."
  5651.  
  5652. + if ! kill -0 "$pid"; then
  5653.  
  5654. + echo "Puma $pid did exit."
  5655.  
  5656. + return 0
  5657.  
  5658. + fi
  5659.  
  5660. +
  5661.  
  5662. + sleep 1
  5663.  
  5664. + done
  5665.  
  5666. +
  5667.  
  5668. + echo "Puma $pid did not exit after $signal."
  5669.  
  5670. + return 1
  5671.  
  5672. +}
  5673.  
  5674. +
  5675.  
  5676. +(
  5677.  
  5678. + # we run it in subshell, as `runit` requires
  5679.  
  5680. + # the process it runs to exit in order to reap
  5681.  
  5682. + # the service
  5683.  
  5684. + signal "$PID" "INT" "$puma_graceful_shutdown_sec" ||
  5685.  
  5686. + signal "$PID" "TERM" "$puma_forceful_shutdown_sec" ||
  5687.  
  5688. + signal "$PID" "KILL" "$puma_kill_shutdown_sec"
  5689.  
  5690. +) &
  5691.  
  5692. +
  5693.  
  5694. +exit 0[2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] owner changed to 0
  5695.  
  5696. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] group changed to 0
  5697.  
  5698. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/control/h] mode changed to 755
  5699.  
  5700.  
  5701. - change mode from '' to '0755'
  5702.  
  5703. - change owner from '' to 'root'
  5704.  
  5705. - change group from '' to 'root'
  5706.  
  5707. * link[/opt/gitlab/init/puma] action create[2023-06-12T08:52:35+00:00] INFO: link[/opt/gitlab/init/puma] created
  5708.  
  5709.  
  5710. - create symlink at /opt/gitlab/init/puma to /opt/gitlab/embedded/bin/sv
  5711.  
  5712. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
  5713.  
  5714. [2023-06-12T08:52:35+00:00] INFO: template[/opt/gitlab/sv/puma/run] sending run action to ruby_block[restart_service] (delayed)
  5715.  
  5716. * ruby_block[restart_service] action run (skipped due to only_if)
  5717.  
  5718. [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)
  5719.  
  5720. * ruby_block[reload_log_service] action create
  5721.  
  5722. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  5723.  
  5724. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  5725.  
  5726. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  5727.  
  5728. * directory[/opt/gitlab/sv/puma] action create (up to date)
  5729.  
  5730. * template[/opt/gitlab/sv/puma/run] action create (up to date)
  5731.  
  5732. * directory[/opt/gitlab/sv/puma/log] action create (up to date)
  5733.  
  5734. * directory[/opt/gitlab/sv/puma/log/main] action create (up to date)
  5735.  
  5736. * template[/opt/gitlab/sv/puma/log/config] action create (up to date)
  5737.  
  5738. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
  5739.  
  5740. * link[/var/log/gitlab/puma/config] action create (up to date)
  5741.  
  5742. * template[/opt/gitlab/sv/puma/log/run] action create (up to date)
  5743.  
  5744. * directory[/opt/gitlab/sv/puma/env] action create (up to date)
  5745.  
  5746. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
  5747.  
  5748. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
  5749.  
  5750. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
  5751.  
  5752. * directory[/opt/gitlab/sv/puma/control] action create (up to date)
  5753.  
  5754. * template[/opt/gitlab/sv/puma/control/t] action create (up to date)
  5755.  
  5756. * template[/opt/gitlab/sv/puma/control/h] action create (up to date)
  5757.  
  5758. * link[/opt/gitlab/init/puma] action create (up to date)
  5759.  
  5760. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
  5761.  
  5762. * directory[/opt/gitlab/service] action create (up to date)
  5763.  
  5764. * link[/opt/gitlab/service/puma] action create[2023-06-12T08:52:35+00:00] INFO: link[/opt/gitlab/service/puma] created
  5765.  
  5766.  
  5767. - create symlink at /opt/gitlab/service/puma to /opt/gitlab/sv/puma
  5768.  
  5769. * 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
  5770.  
  5771.  
  5772. - execute the ruby block wait for puma service socket
  5773.  
  5774. * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
  5775.  
  5776. [2023-06-12T08:52:40+00:00] INFO: ruby_block[reload_log_service] called
  5777.  
  5778. - execute the ruby block reload_log_service
  5779.  
  5780. [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)
  5781.  
  5782. * ruby_block[restart_log_service] action run
  5783.  
  5784. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  5785.  
  5786. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  5787.  
  5788. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  5789.  
  5790. * directory[/opt/gitlab/sv/puma] action create (up to date)
  5791.  
  5792. * template[/opt/gitlab/sv/puma/run] action create (up to date)
  5793.  
  5794. * directory[/opt/gitlab/sv/puma/log] action create (up to date)
  5795.  
  5796. * directory[/opt/gitlab/sv/puma/log/main] action create (up to date)
  5797.  
  5798. * template[/opt/gitlab/sv/puma/log/config] action create (up to date)
  5799.  
  5800. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing)
  5801.  
  5802. * link[/var/log/gitlab/puma/config] action create (up to date)
  5803.  
  5804. * template[/opt/gitlab/sv/puma/log/run] action create (up to date)
  5805.  
  5806. * directory[/opt/gitlab/sv/puma/env] action create (up to date)
  5807.  
  5808. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if)
  5809.  
  5810. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if)
  5811.  
  5812. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if)
  5813.  
  5814. * directory[/opt/gitlab/sv/puma/control] action create (up to date)
  5815.  
  5816. * template[/opt/gitlab/sv/puma/control/t] action create (up to date)
  5817.  
  5818. * template[/opt/gitlab/sv/puma/control/h] action create (up to date)
  5819.  
  5820. * link[/opt/gitlab/init/puma] action create (up to date)
  5821.  
  5822. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing)
  5823.  
  5824. * directory[/opt/gitlab/service] action create (up to date)
  5825.  
  5826. * link[/opt/gitlab/service/puma] action create (up to date)
  5827.  
  5828. * ruby_block[wait for puma service socket] action run (skipped due to not_if)
  5829.  
  5830. * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
  5831.  
  5832. [2023-06-12T08:52:41+00:00] INFO: ruby_block[restart_log_service] called
  5833.  
  5834. - execute the ruby block restart_log_service
  5835.  
  5836. * directory[/opt/gitlab/service] action create (up to date)
  5837.  
  5838. * link[/opt/gitlab/service/puma] action create (up to date)
  5839.  
  5840. * ruby_block[wait for puma service socket] action run (skipped due to not_if)
  5841.  
  5842. * file[/var/log/gitlab/puma/current] action touch (skipped due to only_if)
  5843.  
  5844.  
  5845. * execute[/opt/gitlab/bin/gitlab-ctl start puma] action run
  5846.  
  5847. [execute] ok: run: puma: (pid 2523282) 2s
  5848.  
  5849. [2023-06-12T08:52:42+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start puma] ran successfully
  5850.  
  5851. - execute /opt/gitlab/bin/gitlab-ctl start puma
  5852.  
  5853. * consul_service[rails] action delete
  5854.  
  5855. * file[/var/opt/gitlab/consul/config.d/rails-service.json] action delete (up to date)
  5856.  
  5857. (up to date)
  5858.  
  5859. * gitlab_sysctl[net.core.somaxconn] action create
  5860.  
  5861. * directory[create /etc/sysctl.d for net.core.somaxconn] action create (up to date)
  5862.  
  5863. * 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
  5864.  
  5865.  
  5866. - 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
  5867.  
  5868.  
  5869. - update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf from none to 353a75
  5870.  
  5871. --- /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf 2023-06-12 08:52:42.511539808 +0000
  5872.  
  5873. +++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-net20230612-2522091-5dk65q.core.somaxconn.conf 2023-06-12 08:52:42.511539808 +0000
  5874.  
  5875. @@ -1 +1,2 @@
  5876.  
  5877. +net.core.somaxconn = 1024
  5878.  
  5879. * 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
  5880.  
  5881.  
  5882. - 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
  5883.  
  5884. [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
  5885.  
  5886. [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
  5887.  
  5888. * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing)
  5889.  
  5890. [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)
  5891.  
  5892. * 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
  5893.  
  5894.  
  5895. - execute sysctl -e -p /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf
  5896.  
  5897.  
  5898. Recipe: gitlab::sidekiq
  5899.  
  5900. * 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.
  5901.  
  5902.  
  5903. * 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
  5904.  
  5905.  
  5906. - create new directory /var/log/gitlab/sidekiq[2023-06-12T08:52:42+00:00] INFO: directory[/var/log/gitlab/sidekiq] owner changed to 997
  5907.  
  5908. [2023-06-12T08:52:42+00:00] INFO: directory[/var/log/gitlab/sidekiq] mode changed to 700
  5909.  
  5910.  
  5911. - change mode from '' to '0700'
  5912.  
  5913. - change owner from '' to 'git'
  5914.  
  5915. * service[sidekiq] action nothing (skipped due to action :nothing)
  5916.  
  5917. * runit_service[sidekiq] action enable
  5918.  
  5919. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  5920.  
  5921. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  5922.  
  5923. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  5924.  
  5925. * 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
  5926.  
  5927.  
  5928. - create new directory /opt/gitlab/sv/sidekiq[2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] owner changed to 0
  5929.  
  5930. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] group changed to 0
  5931.  
  5932. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq] mode changed to 755
  5933.  
  5934.  
  5935. - change mode from '' to '0755'
  5936.  
  5937. - change owner from '' to 'root'
  5938.  
  5939. - change group from '' to 'root'
  5940.  
  5941. * 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
  5942.  
  5943.  
  5944. - 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
  5945.  
  5946.  
  5947. - update content in file /opt/gitlab/sv/sidekiq/run from none to 68cc5b
  5948.  
  5949. --- /opt/gitlab/sv/sidekiq/run 2023-06-12 08:52:42.579539620 +0000
  5950.  
  5951. +++ /opt/gitlab/sv/sidekiq/.chef-run20230612-2522091-m8mdui 2023-06-12 08:52:42.579539620 +0000
  5952.  
  5953. @@ -1,27 +1,54 @@
  5954.  
  5955. +#!/bin/sh
  5956.  
  5957. +
  5958.  
  5959. +cd /var/opt/gitlab/gitlab-rails/working
  5960.  
  5961. +
  5962.  
  5963. +exec 2>&1
  5964.  
  5965. +# Setup run directory.
  5966.  
  5967. +mkdir -p /run/gitlab/sidekiq
  5968.  
  5969. +rm /run/gitlab/sidekiq/*.db 2> /dev/null
  5970.  
  5971. +chmod 0700 /run/gitlab/sidekiq
  5972.  
  5973. +chown git /run/gitlab/sidekiq
  5974.  
  5975. +export prometheus_run_dir='/run/gitlab/sidekiq'
  5976.  
  5977. +
  5978.  
  5979. +
  5980.  
  5981. +
  5982.  
  5983. +exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \
  5984.  
  5985. + -U git:git \
  5986.  
  5987. + -u git:git \
  5988.  
  5989. + /usr/bin/env \
  5990.  
  5991. + prometheus_multiproc_dir="${prometheus_run_dir}" \
  5992.  
  5993. + /opt/gitlab/embedded/service/gitlab-rails/bin/sidekiq-cluster \
  5994.  
  5995. + -e production \
  5996.  
  5997. + -r /opt/gitlab/embedded/service/gitlab-rails \
  5998.  
  5999. + -m 20 \
  6000.  
  6001. + --timeout 25 \
  6002.  
  6003. + "*" \
  6004.  
  6005. +
  6006.  
  6007. +# 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
  6008.  
  6009. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] group changed to 0
  6010.  
  6011. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] mode changed to 755
  6012.  
  6013.  
  6014. - change mode from '' to '0755'
  6015.  
  6016. - change owner from '' to 'root'
  6017.  
  6018. - change group from '' to 'root'
  6019.  
  6020. * 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
  6021.  
  6022.  
  6023. - 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
  6024.  
  6025. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log] group changed to 0
  6026.  
  6027. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log] mode changed to 755
  6028.  
  6029.  
  6030. - change mode from '' to '0755'
  6031.  
  6032. - change owner from '' to 'root'
  6033.  
  6034. - change group from '' to 'root'
  6035.  
  6036. * 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
  6037.  
  6038.  
  6039. - 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
  6040.  
  6041. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log/main] group changed to 0
  6042.  
  6043. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/log/main] mode changed to 755
  6044.  
  6045.  
  6046. - change mode from '' to '0755'
  6047.  
  6048. - change owner from '' to 'root'
  6049.  
  6050. - change group from '' to 'root'
  6051.  
  6052. * 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
  6053.  
  6054.  
  6055. - 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
  6056.  
  6057.  
  6058. - update content in file /opt/gitlab/sv/sidekiq/log/config from none to 623c00
  6059.  
  6060. --- /opt/gitlab/sv/sidekiq/log/config 2023-06-12 08:52:42.599539564 +0000
  6061.  
  6062. +++ /opt/gitlab/sv/sidekiq/log/.chef-config20230612-2522091-7gjz9p 2023-06-12 08:52:42.599539564 +0000
  6063.  
  6064. @@ -1,6 +1,12 @@
  6065.  
  6066. +s209715200
  6067.  
  6068. +n30
  6069.  
  6070. +t86400
  6071.  
  6072. +!gzip
  6073.  
  6074. +
  6075.  
  6076. +[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] owner changed to 0
  6077.  
  6078. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] group changed to 0
  6079.  
  6080. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/config] mode changed to 644
  6081.  
  6082.  
  6083. - change mode from '' to '0644'
  6084.  
  6085. - change owner from '' to 'root'
  6086.  
  6087. - change group from '' to 'root'
  6088.  
  6089. [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)
  6090.  
  6091. * 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
  6092.  
  6093.  
  6094. - execute the ruby block verify_chown_persisted_on_sidekiq
  6095.  
  6096. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
  6097.  
  6098. * link[/var/log/gitlab/sidekiq/config] action create[2023-06-12T08:52:42+00:00] INFO: link[/var/log/gitlab/sidekiq/config] created
  6099.  
  6100.  
  6101. - create symlink at /var/log/gitlab/sidekiq/config to /opt/gitlab/sv/sidekiq/log/config
  6102.  
  6103. * 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
  6104.  
  6105.  
  6106. - 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
  6107.  
  6108.  
  6109. - update content in file /opt/gitlab/sv/sidekiq/log/run from none to 421ac5
  6110.  
  6111. --- /opt/gitlab/sv/sidekiq/log/run 2023-06-12 08:52:42.619539509 +0000
  6112.  
  6113. +++ /opt/gitlab/sv/sidekiq/log/.chef-run20230612-2522091-7ijph6 2023-06-12 08:52:42.619539509 +0000
  6114.  
  6115. @@ -1,5 +1,10 @@
  6116.  
  6117. +#!/bin/sh
  6118.  
  6119. +exec chpst -P \
  6120.  
  6121. + -U root:root \
  6122.  
  6123. + -u root:root \
  6124.  
  6125. + svlogd /var/log/gitlab/sidekiq[2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] owner changed to 0
  6126.  
  6127. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] group changed to 0
  6128.  
  6129. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/log/run] mode changed to 755
  6130.  
  6131.  
  6132. - change mode from '' to '0755'
  6133.  
  6134. - change owner from '' to 'root'
  6135.  
  6136. - change group from '' to 'root'
  6137.  
  6138. * 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
  6139.  
  6140.  
  6141. - 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
  6142.  
  6143. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/env] group changed to 0
  6144.  
  6145. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/env] mode changed to 755
  6146.  
  6147.  
  6148. - change mode from '' to '0755'
  6149.  
  6150. - change owner from '' to 'root'
  6151.  
  6152. - change group from '' to 'root'
  6153.  
  6154. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
  6155.  
  6156. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
  6157.  
  6158. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
  6159.  
  6160. * 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
  6161.  
  6162.  
  6163. - 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
  6164.  
  6165. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/control] group changed to 0
  6166.  
  6167. [2023-06-12T08:52:42+00:00] INFO: directory[/opt/gitlab/sv/sidekiq/control] mode changed to 755
  6168.  
  6169.  
  6170. - change mode from '' to '0755'
  6171.  
  6172. - change owner from '' to 'root'
  6173.  
  6174. - change group from '' to 'root'
  6175.  
  6176. * link[/opt/gitlab/init/sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: link[/opt/gitlab/init/sidekiq] created
  6177.  
  6178.  
  6179. - create symlink at /opt/gitlab/init/sidekiq to /opt/gitlab/embedded/bin/sv
  6180.  
  6181. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
  6182.  
  6183. [2023-06-12T08:52:42+00:00] INFO: template[/opt/gitlab/sv/sidekiq/run] sending run action to ruby_block[restart_service] (delayed)
  6184.  
  6185. * ruby_block[restart_service] action run (skipped due to only_if)
  6186.  
  6187. [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)
  6188.  
  6189. * ruby_block[reload_log_service] action create
  6190.  
  6191. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6192.  
  6193. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6194.  
  6195. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6196.  
  6197. * directory[/opt/gitlab/sv/sidekiq] action create (up to date)
  6198.  
  6199. * template[/opt/gitlab/sv/sidekiq/run] action create (up to date)
  6200.  
  6201. * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date)
  6202.  
  6203. * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date)
  6204.  
  6205. * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date)
  6206.  
  6207. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
  6208.  
  6209. * link[/var/log/gitlab/sidekiq/config] action create (up to date)
  6210.  
  6211. * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date)
  6212.  
  6213. * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date)
  6214.  
  6215. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
  6216.  
  6217. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
  6218.  
  6219. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
  6220.  
  6221. * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date)
  6222.  
  6223. * link[/opt/gitlab/init/sidekiq] action create (up to date)
  6224.  
  6225. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
  6226.  
  6227. * directory[/opt/gitlab/service] action create (up to date)
  6228.  
  6229. * link[/opt/gitlab/service/sidekiq] action create[2023-06-12T08:52:42+00:00] INFO: link[/opt/gitlab/service/sidekiq] created
  6230.  
  6231.  
  6232. - create symlink at /opt/gitlab/service/sidekiq to /opt/gitlab/sv/sidekiq
  6233.  
  6234. * 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
  6235.  
  6236.  
  6237. - execute the ruby block wait for sidekiq service socket
  6238.  
  6239. * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
  6240.  
  6241. [2023-06-12T08:52:46+00:00] INFO: ruby_block[reload_log_service] called
  6242.  
  6243. - execute the ruby block reload_log_service
  6244.  
  6245. [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)
  6246.  
  6247. * ruby_block[restart_log_service] action run
  6248.  
  6249. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6250.  
  6251. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6252.  
  6253. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6254.  
  6255. * directory[/opt/gitlab/sv/sidekiq] action create (up to date)
  6256.  
  6257. * template[/opt/gitlab/sv/sidekiq/run] action create (up to date)
  6258.  
  6259. * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date)
  6260.  
  6261. * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date)
  6262.  
  6263. * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date)
  6264.  
  6265. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing)
  6266.  
  6267. * link[/var/log/gitlab/sidekiq/config] action create (up to date)
  6268.  
  6269. * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date)
  6270.  
  6271. * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date)
  6272.  
  6273. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if)
  6274.  
  6275. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if)
  6276.  
  6277. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if)
  6278.  
  6279. * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date)
  6280.  
  6281. * link[/opt/gitlab/init/sidekiq] action create (up to date)
  6282.  
  6283. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing)
  6284.  
  6285. * directory[/opt/gitlab/service] action create (up to date)
  6286.  
  6287. * link[/opt/gitlab/service/sidekiq] action create (up to date)
  6288.  
  6289. * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if)
  6290.  
  6291. * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
  6292.  
  6293. [2023-06-12T08:52:48+00:00] INFO: ruby_block[restart_log_service] called
  6294.  
  6295. - execute the ruby block restart_log_service
  6296.  
  6297. * directory[/opt/gitlab/service] action create (up to date)
  6298.  
  6299. * link[/opt/gitlab/service/sidekiq] action create (up to date)
  6300.  
  6301. * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if)
  6302.  
  6303. * file[/var/log/gitlab/sidekiq/current] action touch (skipped due to only_if)
  6304.  
  6305.  
  6306. * execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] action run
  6307.  
  6308. [execute] ok: run: sidekiq: (pid 2523347) 2s
  6309.  
  6310. [2023-06-12T08:52:48+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] ran successfully
  6311.  
  6312. - execute /opt/gitlab/bin/gitlab-ctl start sidekiq
  6313.  
  6314.  
  6315. * consul_service[sidekiq] action delete
  6316.  
  6317. * file[/var/opt/gitlab/consul/config.d/sidekiq-service.json] action delete (up to date)
  6318.  
  6319. (up to date)
  6320.  
  6321. Recipe: gitlab::gitlab-workhorse
  6322.  
  6323. * 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
  6324.  
  6325.  
  6326. - 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
  6327.  
  6328. [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse] group changed to 998
  6329.  
  6330. [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse] mode changed to 750
  6331.  
  6332.  
  6333. - change mode from '' to '0750'
  6334.  
  6335. - change owner from '' to 'git'
  6336.  
  6337. - change group from '' to 'gitlab-www'
  6338.  
  6339. * 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
  6340.  
  6341.  
  6342. - 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
  6343.  
  6344. [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] group changed to 998
  6345.  
  6346. [2023-06-12T08:52:48+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] mode changed to 750
  6347.  
  6348.  
  6349. - change mode from '' to '0750'
  6350.  
  6351. - change owner from '' to 'git'
  6352.  
  6353. - change group from '' to 'gitlab-www'
  6354.  
  6355. * 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
  6356.  
  6357.  
  6358. - 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
  6359.  
  6360. [2023-06-12T08:52:48+00:00] INFO: directory[/var/log/gitlab/gitlab-workhorse] mode changed to 700
  6361.  
  6362.  
  6363. - change mode from '' to '0700'
  6364.  
  6365. - change owner from '' to 'git'
  6366.  
  6367. * 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
  6368.  
  6369.  
  6370. - 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
  6371.  
  6372. [2023-06-12T08:52:48+00:00] INFO: directory[/opt/gitlab/etc/gitlab-workhorse] mode changed to 700
  6373.  
  6374.  
  6375. - change mode from '' to '0700'
  6376.  
  6377. - change owner from '' to 'git'
  6378.  
  6379. * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create
  6380.  
  6381. * 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
  6382.  
  6383.  
  6384. - create new directory /opt/gitlab/etc/gitlab-workhorse/env
  6385.  
  6386. * 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
  6387.  
  6388.  
  6389. - 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
  6390.  
  6391.  
  6392. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/PATH from none to d5dc07
  6393.  
  6394. - suppressed sensitive resource
  6395.  
  6396. * 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
  6397.  
  6398.  
  6399. - 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
  6400.  
  6401.  
  6402. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/HOME from none to 205bb9
  6403.  
  6404. - suppressed sensitive resource
  6405.  
  6406. * 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
  6407.  
  6408.  
  6409. - 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
  6410.  
  6411.  
  6412. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR from none to 4f45cf
  6413.  
  6414. - suppressed sensitive resource
  6415.  
  6416.  
  6417. [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
  6418.  
  6419. * service[gitlab-workhorse] action nothing (skipped due to action :nothing)
  6420.  
  6421. * runit_service[gitlab-workhorse] action enable
  6422.  
  6423. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6424.  
  6425. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6426.  
  6427. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6428.  
  6429. * 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
  6430.  
  6431.  
  6432. - 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
  6433.  
  6434. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse] group changed to 0
  6435.  
  6436. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse] mode changed to 755
  6437.  
  6438.  
  6439. - change mode from '' to '0755'
  6440.  
  6441. - change owner from '' to 'root'
  6442.  
  6443. - change group from '' to 'root'
  6444.  
  6445. * 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
  6446.  
  6447.  
  6448. - 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
  6449.  
  6450.  
  6451. - update content in file /opt/gitlab/sv/gitlab-workhorse/run from none to b1d72f
  6452.  
  6453. --- /opt/gitlab/sv/gitlab-workhorse/run 2023-06-12 08:52:49.043521722 +0000
  6454.  
  6455. +++ /opt/gitlab/sv/gitlab-workhorse/.chef-run20230612-2522091-o8lp8y 2023-06-12 08:52:49.043521722 +0000
  6456.  
  6457. @@ -1,27 +1,54 @@
  6458.  
  6459. +#!/bin/sh
  6460.  
  6461. +set -e # fail on errors
  6462.  
  6463. +
  6464.  
  6465. +# Redirect stderr -> stdout
  6466.  
  6467. +exec 2>&1
  6468.  
  6469. +
  6470.  
  6471. +
  6472.  
  6473. +
  6474.  
  6475. +cd /var/opt/gitlab/gitlab-workhorse
  6476.  
  6477. +
  6478.  
  6479. +exec chpst -e /opt/gitlab/etc/gitlab-workhorse/env -P \
  6480.  
  6481. + -U git:git \
  6482.  
  6483. + -u git:git \
  6484.  
  6485. + /opt/gitlab/embedded/bin/gitlab-workhorse \
  6486.  
  6487. + -listenNetwork unix \
  6488.  
  6489. + -listenUmask 0 \
  6490.  
  6491. + -listenAddr /var/opt/gitlab/gitlab-workhorse/sockets/socket \
  6492.  
  6493. + -authBackend http://localhost:8080 \
  6494.  
  6495. + -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket \
  6496.  
  6497. + -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public \
  6498.  
  6499. + -pprofListenAddr ''\
  6500.  
  6501. + -prometheusListenAddr localhost:9229 \
  6502.  
  6503. + -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \
  6504.  
  6505. + -logFormat json \
  6506.  
  6507. + -config config.toml \
  6508.  
  6509. +
  6510.  
  6511. +# 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
  6512.  
  6513. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] group changed to 0
  6514.  
  6515. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] mode changed to 755
  6516.  
  6517.  
  6518. - change mode from '' to '0755'
  6519.  
  6520. - change owner from '' to 'root'
  6521.  
  6522. - change group from '' to 'root'
  6523.  
  6524. * 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
  6525.  
  6526.  
  6527. - 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
  6528.  
  6529. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log] group changed to 0
  6530.  
  6531. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log] mode changed to 755
  6532.  
  6533.  
  6534. - change mode from '' to '0755'
  6535.  
  6536. - change owner from '' to 'root'
  6537.  
  6538. - change group from '' to 'root'
  6539.  
  6540. * 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
  6541.  
  6542.  
  6543. - 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
  6544.  
  6545. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log/main] group changed to 0
  6546.  
  6547. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/log/main] mode changed to 755
  6548.  
  6549.  
  6550. - change mode from '' to '0755'
  6551.  
  6552. - change owner from '' to 'root'
  6553.  
  6554. - change group from '' to 'root'
  6555.  
  6556. * 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
  6557.  
  6558.  
  6559. - 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
  6560.  
  6561.  
  6562. - update content in file /opt/gitlab/sv/gitlab-workhorse/log/config from none to 623c00
  6563.  
  6564. --- /opt/gitlab/sv/gitlab-workhorse/log/config 2023-06-12 08:52:49.067521656 +0000
  6565.  
  6566. +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-config20230612-2522091-xtsi5l 2023-06-12 08:52:49.067521656 +0000
  6567.  
  6568. @@ -1,6 +1,12 @@
  6569.  
  6570. +s209715200
  6571.  
  6572. +n30
  6573.  
  6574. +t86400
  6575.  
  6576. +!gzip
  6577.  
  6578. +
  6579.  
  6580. +[2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] owner changed to 0
  6581.  
  6582. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] group changed to 0
  6583.  
  6584. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/config] mode changed to 644
  6585.  
  6586.  
  6587. - change mode from '' to '0644'
  6588.  
  6589. - change owner from '' to 'root'
  6590.  
  6591. - change group from '' to 'root'
  6592.  
  6593. [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)
  6594.  
  6595. * 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
  6596.  
  6597.  
  6598. - execute the ruby block verify_chown_persisted_on_gitlab-workhorse
  6599.  
  6600. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
  6601.  
  6602. * 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
  6603.  
  6604.  
  6605. - create symlink at /var/log/gitlab/gitlab-workhorse/config to /opt/gitlab/sv/gitlab-workhorse/log/config
  6606.  
  6607. * 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
  6608.  
  6609.  
  6610. - 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
  6611.  
  6612.  
  6613. - update content in file /opt/gitlab/sv/gitlab-workhorse/log/run from none to b3b03a
  6614.  
  6615. --- /opt/gitlab/sv/gitlab-workhorse/log/run 2023-06-12 08:52:49.091521589 +0000
  6616.  
  6617. +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-run20230612-2522091-le1jfs 2023-06-12 08:52:49.091521589 +0000
  6618.  
  6619. @@ -1,5 +1,10 @@
  6620.  
  6621. +#!/bin/sh
  6622.  
  6623. +exec chpst -P \
  6624.  
  6625. + -U root:root \
  6626.  
  6627. + -u root:root \
  6628.  
  6629. + 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
  6630.  
  6631. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] group changed to 0
  6632.  
  6633. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/log/run] mode changed to 755
  6634.  
  6635.  
  6636. - change mode from '' to '0755'
  6637.  
  6638. - change owner from '' to 'root'
  6639.  
  6640. - change group from '' to 'root'
  6641.  
  6642. * 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
  6643.  
  6644.  
  6645. - 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
  6646.  
  6647. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/env] group changed to 0
  6648.  
  6649. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/env] mode changed to 755
  6650.  
  6651.  
  6652. - change mode from '' to '0755'
  6653.  
  6654. - change owner from '' to 'root'
  6655.  
  6656. - change group from '' to 'root'
  6657.  
  6658. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
  6659.  
  6660. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
  6661.  
  6662. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
  6663.  
  6664. * 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
  6665.  
  6666.  
  6667. - 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
  6668.  
  6669. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/control] group changed to 0
  6670.  
  6671. [2023-06-12T08:52:49+00:00] INFO: directory[/opt/gitlab/sv/gitlab-workhorse/control] mode changed to 755
  6672.  
  6673.  
  6674. - change mode from '' to '0755'
  6675.  
  6676. - change owner from '' to 'root'
  6677.  
  6678. - change group from '' to 'root'
  6679.  
  6680. * link[/opt/gitlab/init/gitlab-workhorse] action create[2023-06-12T08:52:49+00:00] INFO: link[/opt/gitlab/init/gitlab-workhorse] created
  6681.  
  6682.  
  6683. - create symlink at /opt/gitlab/init/gitlab-workhorse to /opt/gitlab/embedded/bin/sv
  6684.  
  6685. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
  6686.  
  6687. [2023-06-12T08:52:49+00:00] INFO: template[/opt/gitlab/sv/gitlab-workhorse/run] sending run action to ruby_block[restart_service] (delayed)
  6688.  
  6689. * ruby_block[restart_service] action run (skipped due to only_if)
  6690.  
  6691. [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)
  6692.  
  6693. * ruby_block[reload_log_service] action create
  6694.  
  6695. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6696.  
  6697. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6698.  
  6699. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6700.  
  6701. * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date)
  6702.  
  6703. * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date)
  6704.  
  6705. * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date)
  6706.  
  6707. * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date)
  6708.  
  6709. * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date)
  6710.  
  6711. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
  6712.  
  6713. * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date)
  6714.  
  6715. * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date)
  6716.  
  6717. * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date)
  6718.  
  6719. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
  6720.  
  6721. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
  6722.  
  6723. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
  6724.  
  6725. * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date)
  6726.  
  6727. * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date)
  6728.  
  6729. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
  6730.  
  6731. * directory[/opt/gitlab/service] action create (up to date)
  6732.  
  6733. * link[/opt/gitlab/service/gitlab-workhorse] action create[2023-06-12T08:52:49+00:00] INFO: link[/opt/gitlab/service/gitlab-workhorse] created
  6734.  
  6735.  
  6736. - create symlink at /opt/gitlab/service/gitlab-workhorse to /opt/gitlab/sv/gitlab-workhorse
  6737.  
  6738. * 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
  6739.  
  6740.  
  6741. - execute the ruby block wait for gitlab-workhorse service socket
  6742.  
  6743. * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
  6744.  
  6745. [2023-06-12T08:52:53+00:00] INFO: ruby_block[reload_log_service] called
  6746.  
  6747. - execute the ruby block reload_log_service
  6748.  
  6749. [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)
  6750.  
  6751. * ruby_block[restart_log_service] action run
  6752.  
  6753. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  6754.  
  6755. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  6756.  
  6757. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  6758.  
  6759. * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date)
  6760.  
  6761. * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date)
  6762.  
  6763. * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date)
  6764.  
  6765. * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date)
  6766.  
  6767. * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date)
  6768.  
  6769. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing)
  6770.  
  6771. * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date)
  6772.  
  6773. * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date)
  6774.  
  6775. * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date)
  6776.  
  6777. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if)
  6778.  
  6779. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if)
  6780.  
  6781. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if)
  6782.  
  6783. * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date)
  6784.  
  6785. * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date)
  6786.  
  6787. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing)
  6788.  
  6789. * directory[/opt/gitlab/service] action create (up to date)
  6790.  
  6791. * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date)
  6792.  
  6793. * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if)
  6794.  
  6795. * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
  6796.  
  6797. [2023-06-12T08:52:53+00:00] INFO: ruby_block[restart_log_service] called
  6798.  
  6799. - execute the ruby block restart_log_service
  6800.  
  6801. * directory[/opt/gitlab/service] action create (up to date)
  6802.  
  6803. * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date)
  6804.  
  6805. * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if)
  6806.  
  6807. * file[/var/log/gitlab/gitlab-workhorse/current] action touch (skipped due to only_if)
  6808.  
  6809.  
  6810. * consul_service[workhorse] action delete
  6811.  
  6812. * file[/var/opt/gitlab/consul/config.d/workhorse-service.json] action delete (up to date)
  6813.  
  6814. (up to date)
  6815.  
  6816. * version_file[Create version file for Workhorse] action create
  6817.  
  6818. * 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
  6819.  
  6820.  
  6821. - 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
  6822.  
  6823.  
  6824. - update content in file /var/opt/gitlab/gitlab-workhorse/VERSION from none to 885f2f
  6825.  
  6826. --- /var/opt/gitlab/gitlab-workhorse/VERSION 2023-06-12 08:52:53.775508584 +0000
  6827.  
  6828. +++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20230612-2522091-pzhlfs 2023-06-12 08:52:53.775508584 +0000
  6829.  
  6830. @@ -1 +1,2 @@
  6831.  
  6832. +gitlab-workhorse (v16.0.4-ee)-(20230608.114126)
  6833.  
  6834.  
  6835. [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
  6836.  
  6837. * 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
  6838.  
  6839.  
  6840. - 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
  6841.  
  6842.  
  6843. - update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from none to 4f571b
  6844.  
  6845. - suppressed sensitive resource[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] owner changed to 0
  6846.  
  6847. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] group changed to 997
  6848.  
  6849. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/gitlab-workhorse/config.toml] mode changed to 640
  6850.  
  6851.  
  6852. - change mode from '' to '0640'
  6853.  
  6854. - change owner from '' to 'root'
  6855.  
  6856. - change group from '' to 'git'
  6857.  
  6858. [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
  6859.  
  6860. Recipe: gitlab::mailroom_disable
  6861.  
  6862. * service[mailroom] action nothing (skipped due to action :nothing)
  6863.  
  6864. * runit_service[mailroom] action disable
  6865.  
  6866. * ruby_block[disable mailroom] action run (skipped due to only_if)
  6867.  
  6868. (up to date)
  6869.  
  6870. Recipe: gitlab::nginx
  6871.  
  6872. * 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
  6873.  
  6874.  
  6875. - create new directory /var/opt/gitlab/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] owner changed to 0
  6876.  
  6877. [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] group changed to 998
  6878.  
  6879. [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx] mode changed to 750
  6880.  
  6881.  
  6882. - change mode from '' to '0750'
  6883.  
  6884. - change owner from '' to 'root'
  6885.  
  6886. - change group from '' to 'gitlab-www'
  6887.  
  6888. * 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
  6889.  
  6890.  
  6891. - 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
  6892.  
  6893. [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx/conf] group changed to 998
  6894.  
  6895. [2023-06-12T08:52:53+00:00] INFO: directory[/var/opt/gitlab/nginx/conf] mode changed to 750
  6896.  
  6897.  
  6898. - change mode from '' to '0750'
  6899.  
  6900. - change owner from '' to 'root'
  6901.  
  6902. - change group from '' to 'gitlab-www'
  6903.  
  6904. * 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
  6905.  
  6906.  
  6907. - create new directory /var/log/gitlab/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] owner changed to 0
  6908.  
  6909. [2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] group changed to 998
  6910.  
  6911. [2023-06-12T08:52:53+00:00] INFO: directory[/var/log/gitlab/nginx] mode changed to 750
  6912.  
  6913.  
  6914. - change mode from '' to '0750'
  6915.  
  6916. - change owner from '' to 'root'
  6917.  
  6918. - change group from '' to 'gitlab-www'
  6919.  
  6920. * link[/var/opt/gitlab/nginx/logs] action create[2023-06-12T08:52:53+00:00] INFO: link[/var/opt/gitlab/nginx/logs] created
  6921.  
  6922.  
  6923. - create symlink at /var/opt/gitlab/nginx/logs to /var/log/gitlab/nginx
  6924.  
  6925. * 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
  6926.  
  6927.  
  6928. - 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
  6929.  
  6930.  
  6931. - update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from none to 45c6c2
  6932.  
  6933. --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2023-06-12 08:52:53.823508451 +0000
  6934.  
  6935. +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20230612-2522091-i69cpk.conf 2023-06-12 08:52:53.819508462 +0000
  6936.  
  6937. @@ -1,142 +1,284 @@
  6938.  
  6939. +# This file is managed by gitlab-ctl. Manual changes will be
  6940.  
  6941. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  6942.  
  6943. +# and run `sudo gitlab-ctl reconfigure`.
  6944.  
  6945. +
  6946.  
  6947. +## GitLab
  6948.  
  6949. +## 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
  6950.  
  6951. +##
  6952.  
  6953. +## Lines starting with two hashes (##) are comments with information.
  6954.  
  6955. +## Lines starting with one hash (#) are configuration parameters that can be uncommented.
  6956.  
  6957. +##
  6958.  
  6959. +##################################
  6960.  
  6961. +## CHUNKED TRANSFER ##
  6962.  
  6963. +##################################
  6964.  
  6965. +##
  6966.  
  6967. +## It is a known issue that Git-over-HTTP requires chunked transfer encoding [0]
  6968.  
  6969. +## which is not supported by Nginx < 1.3.9 [1]. As a result, pushing a large object
  6970.  
  6971. +## with Git (i.e. a single large file) can lead to a 411 error. In theory you can get
  6972.  
  6973. +## around this by tweaking this configuration file and either:
  6974.  
  6975. +## - installing an old version of Nginx with the chunkin module [2] compiled in, or
  6976.  
  6977. +## - using a newer version of Nginx.
  6978.  
  6979. +##
  6980.  
  6981. +## At the time of writing we do not know if either of these theoretical solutions works.
  6982.  
  6983. +## As a workaround users can use Git over SSH to push large files.
  6984.  
  6985. +##
  6986.  
  6987. +## [0] https://git.kernel.org/cgit/git/git.git/tree/Documentation/technical/http-protocol.txt#n99
  6988.  
  6989. +## [1] https://github.com/agentzh/chunkin-nginx-module#status
  6990.  
  6991. +## [2] https://github.com/agentzh/chunkin-nginx-module
  6992.  
  6993. +##
  6994.  
  6995. +###################################
  6996.  
  6997. +## configuration ##
  6998.  
  6999. +###################################
  7000.  
  7001. +
  7002.  
  7003. +
  7004.  
  7005. +server { ## HTTPS server
  7006.  
  7007. + listen *:80;
  7008.  
  7009. +
  7010.  
  7011. +
  7012.  
  7013. + server_name 192.168.100.33;
  7014.  
  7015. + server_tokens off; ## Don't show the nginx version number, a security best practice
  7016.  
  7017. +
  7018.  
  7019. + ## Increase this if you want to upload large attachments
  7020.  
  7021. + ## Or if you want to accept large git objects over http
  7022.  
  7023. + client_max_body_size 0;
  7024.  
  7025. +
  7026.  
  7027. +
  7028.  
  7029. + ## Real IP Module Config
  7030.  
  7031. + ## http://nginx.org/en/docs/http/ngx_http_realip_module.html
  7032.  
  7033. +
  7034.  
  7035. + ## HSTS Config
  7036.  
  7037. + ## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/
  7038.  
  7039. + add_header Strict-Transport-Security "max-age=63072000";
  7040.  
  7041. +
  7042.  
  7043. + # Rails sets a default policy of strict-origin-when-cross-origin, so
  7044.  
  7045. + # hide that and just send the one we've configured for nginx
  7046.  
  7047. + proxy_hide_header Referrer-Policy;
  7048.  
  7049. + add_header Referrer-Policy strict-origin-when-cross-origin;
  7050.  
  7051. +
  7052.  
  7053. + ## Individual nginx logs for this GitLab vhost
  7054.  
  7055. + access_log /var/log/gitlab/nginx/gitlab_access.log gitlab_access;
  7056.  
  7057. + error_log /var/log/gitlab/nginx/gitlab_error.log error;
  7058.  
  7059. +
  7060.  
  7061. + if ($http_host = "") {
  7062.  
  7063. + set $http_host_with_default "192.168.100.33";
  7064.  
  7065. + }
  7066.  
  7067. +
  7068.  
  7069. + if ($http_host != "") {
  7070.  
  7071. + set $http_host_with_default $http_host;
  7072.  
  7073. + }
  7074.  
  7075. +
  7076.  
  7077. + gzip on;
  7078.  
  7079. + gzip_static on;
  7080.  
  7081. + gzip_comp_level 2;
  7082.  
  7083. + gzip_http_version 1.1;
  7084.  
  7085. + gzip_vary on;
  7086.  
  7087. + gzip_disable "msie6";
  7088.  
  7089. + gzip_min_length 250;
  7090.  
  7091. + gzip_proxied no-cache no-store private expired auth;
  7092.  
  7093. + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
  7094.  
  7095. +
  7096.  
  7097. + ## https://github.com/gitlabhq/gitlabhq/issues/694
  7098.  
  7099. + ## Some requests take more than 30 seconds.
  7100.  
  7101. + proxy_read_timeout 3600;
  7102.  
  7103. + proxy_connect_timeout 300;
  7104.  
  7105. + proxy_redirect off;
  7106.  
  7107. + proxy_http_version 1.1;
  7108.  
  7109. +
  7110.  
  7111. + proxy_set_header Host $http_host_with_default;
  7112.  
  7113. + proxy_set_header X-Real-IP $remote_addr;
  7114.  
  7115. + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  7116.  
  7117. + proxy_set_header Upgrade $http_upgrade;
  7118.  
  7119. + proxy_set_header Connection $connection_upgrade;
  7120.  
  7121. + proxy_set_header X-Forwarded-Proto http;
  7122.  
  7123. +
  7124.  
  7125. + location ~ (/api/v\d/jobs/\d+/artifacts$|/import/gitlab_project$|\.git/git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$) {
  7126.  
  7127. + proxy_cache off;
  7128.  
  7129. + proxy_pass http://gitlab-workhorse;
  7130.  
  7131. + proxy_request_buffering off;
  7132.  
  7133. + }
  7134.  
  7135. +
  7136.  
  7137. + location ~ ^/api/v\d {
  7138.  
  7139. + proxy_cache off;
  7140.  
  7141. + proxy_pass http://gitlab-workhorse;
  7142.  
  7143. + proxy_intercept_errors off;
  7144.  
  7145. + }
  7146.  
  7147. +
  7148.  
  7149. +
  7150.  
  7151. + location = /-/kubernetes-agent/ {
  7152.  
  7153. + proxy_pass http://localhost:8150/;
  7154.  
  7155. + proxy_intercept_errors off;
  7156.  
  7157. + }
  7158.  
  7159. +
  7160.  
  7161. + location /-/kubernetes-agent/k8s-proxy/ {
  7162.  
  7163. + proxy_pass http://localhost:8154/;
  7164.  
  7165. + proxy_buffering off;
  7166.  
  7167. + proxy_intercept_errors off;
  7168.  
  7169. + }
  7170.  
  7171. +
  7172.  
  7173. + # health checks configuration
  7174.  
  7175. + include /var/opt/gitlab/nginx/conf/gitlab-health.conf;
  7176.  
  7177. +
  7178.  
  7179. +
  7180.  
  7181. + location / {
  7182.  
  7183. + proxy_cache off;
  7184.  
  7185. + proxy_pass http://gitlab-workhorse;
  7186.  
  7187. + }
  7188.  
  7189. +
  7190.  
  7191. + location /assets {
  7192.  
  7193. + add_header X-Content-Type-Options nosniff;
  7194.  
  7195. + proxy_cache gitlab;
  7196.  
  7197. + proxy_pass http://gitlab-workhorse;
  7198.  
  7199. + }
  7200.  
  7201. +
  7202.  
  7203. + error_page 404 /404.html;
  7204.  
  7205. + error_page 500 /500.html;
  7206.  
  7207. + error_page 502 /502.html;
  7208.  
  7209. + location ~ ^/(404|500|502)(-custom)?\.html$ {
  7210.  
  7211. + root /opt/gitlab/embedded/service/gitlab-rails/public;
  7212.  
  7213. + internal;
  7214.  
  7215. + }
  7216.  
  7217. +
  7218.  
  7219. +
  7220.  
  7221. +} ## end HTTPS server[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] owner changed to 0
  7222.  
  7223. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] group changed to 0
  7224.  
  7225. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] mode changed to 644
  7226.  
  7227.  
  7228. - change mode from '' to '0644'
  7229.  
  7230. - change owner from '' to 'root'
  7231.  
  7232. - change group from '' to 'root'
  7233.  
  7234. * template[/var/opt/gitlab/nginx/conf/gitlab-smartcard-http.conf] action delete (up to date)
  7235.  
  7236. * 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
  7237.  
  7238.  
  7239. - 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
  7240.  
  7241.  
  7242. - update content in file /var/opt/gitlab/nginx/conf/gitlab-health.conf from none to 92d04b
  7243.  
  7244. --- /var/opt/gitlab/nginx/conf/gitlab-health.conf 2023-06-12 08:52:53.851508373 +0000
  7245.  
  7246. +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-health20230612-2522091-murp3t.conf 2023-06-12 08:52:53.851508373 +0000
  7247.  
  7248. @@ -1,29 +1,58 @@
  7249.  
  7250. +# This file is managed by gitlab-ctl. Manual changes will be
  7251.  
  7252. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  7253.  
  7254. +# and run `sudo gitlab-ctl reconfigure`.
  7255.  
  7256. +
  7257.  
  7258. +location /error.txt {
  7259.  
  7260. + # return code here is ignored by the error_page directive
  7261.  
  7262. + return 500 'nginx returned $status when communicating with gitlab-workhorse\n';
  7263.  
  7264. +}
  7265.  
  7266. +
  7267.  
  7268. +location /error.json {
  7269.  
  7270. + # return code here is ignored by the error_page directive
  7271.  
  7272. + return 500 '{"error":"nginx returned $status when communicating with gitlab-workhorse","status":$status}\n';
  7273.  
  7274. +}
  7275.  
  7276. +
  7277.  
  7278. +location = /-/health {
  7279.  
  7280. + proxy_cache off;
  7281.  
  7282. + proxy_pass http://gitlab-workhorse;
  7283.  
  7284. + error_page 404 500 502 /error.txt;
  7285.  
  7286. +}
  7287.  
  7288. +location = /-/readiness {
  7289.  
  7290. + proxy_cache off;
  7291.  
  7292. + proxy_pass http://gitlab-workhorse;
  7293.  
  7294. + error_page 404 500 502 /error.json;
  7295.  
  7296. +}
  7297.  
  7298. +location = /-/liveness {
  7299.  
  7300. + proxy_cache off;
  7301.  
  7302. + proxy_pass http://gitlab-workhorse;
  7303.  
  7304. + error_page 404 500 502 /error.json;
  7305.  
  7306. +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] owner changed to 0
  7307.  
  7308. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] group changed to 0
  7309.  
  7310. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] mode changed to 644
  7311.  
  7312.  
  7313. - change mode from '' to '0644'
  7314.  
  7315. - change owner from '' to 'root'
  7316.  
  7317. - change group from '' to 'root'
  7318.  
  7319. * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date)
  7320.  
  7321. * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date)
  7322.  
  7323. * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date)
  7324.  
  7325. * template[/var/opt/gitlab/nginx/conf/gitlab-kas.conf] action delete (up to date)
  7326.  
  7327. * 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
  7328.  
  7329.  
  7330. - 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
  7331.  
  7332.  
  7333. - update content in file /var/opt/gitlab/nginx/conf/nginx-status.conf from none to 74440c
  7334.  
  7335. --- /var/opt/gitlab/nginx/conf/nginx-status.conf 2023-06-12 08:52:53.907508217 +0000
  7336.  
  7337. +++ /var/opt/gitlab/nginx/conf/.chef-nginx-status20230612-2522091-hjco70.conf 2023-06-12 08:52:53.907508217 +0000
  7338.  
  7339. @@ -1,28 +1,56 @@
  7340.  
  7341. +server {
  7342.  
  7343. + listen *:8060;
  7344.  
  7345. + server_name localhost;
  7346.  
  7347. + location /nginx_status {
  7348.  
  7349. + stub_status;
  7350.  
  7351. + server_tokens off;
  7352.  
  7353. + access_log off;
  7354.  
  7355. + allow 127.0.0.1;
  7356.  
  7357. + deny all;
  7358.  
  7359. + }
  7360.  
  7361. + location /metrics {
  7362.  
  7363. + vhost_traffic_status_display;
  7364.  
  7365. + vhost_traffic_status_display_format prometheus;
  7366.  
  7367. + server_tokens off;
  7368.  
  7369. + access_log off;
  7370.  
  7371. + allow 127.0.0.1;
  7372.  
  7373. + deny all;
  7374.  
  7375. + }
  7376.  
  7377. +
  7378.  
  7379. + location /rails-metrics {
  7380.  
  7381. + proxy_cache off;
  7382.  
  7383. + proxy_pass http://gitlab-workhorse/-/metrics;
  7384.  
  7385. + server_tokens off;
  7386.  
  7387. + access_log off;
  7388.  
  7389. + allow 127.0.0.1;
  7390.  
  7391. + deny all;
  7392.  
  7393. + }
  7394.  
  7395. +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] owner changed to 0
  7396.  
  7397. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] group changed to 0
  7398.  
  7399. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx-status.conf] mode changed to 644
  7400.  
  7401.  
  7402. - change mode from '' to '0644'
  7403.  
  7404. - change owner from '' to 'root'
  7405.  
  7406. - change group from '' to 'root'
  7407.  
  7408. * consul_service[nginx] action delete
  7409.  
  7410. * file[/var/opt/gitlab/consul/config.d/nginx-service.json] action delete (up to date)
  7411.  
  7412. (up to date)
  7413.  
  7414. * 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
  7415.  
  7416.  
  7417. - 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
  7418.  
  7419.  
  7420. - update content in file /var/opt/gitlab/nginx/conf/nginx.conf from none to dd81f1
  7421.  
  7422. --- /var/opt/gitlab/nginx/conf/nginx.conf 2023-06-12 08:52:53.935508140 +0000
  7423.  
  7424. +++ /var/opt/gitlab/nginx/conf/.chef-nginx20230612-2522091-kyz5o6.conf 2023-06-12 08:52:53.935508140 +0000
  7425.  
  7426. @@ -1,94 +1,188 @@
  7427.  
  7428. +# This file is managed by gitlab-ctl. Manual changes will be
  7429.  
  7430. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  7431.  
  7432. +# and run `sudo gitlab-ctl reconfigure`.
  7433.  
  7434. +
  7435.  
  7436. +user gitlab-www gitlab-www;
  7437.  
  7438. +worker_processes 1;
  7439.  
  7440. +error_log stderr;
  7441.  
  7442. +pid nginx.pid;
  7443.  
  7444. +
  7445.  
  7446. +daemon off;
  7447.  
  7448. +
  7449.  
  7450. +events {
  7451.  
  7452. + worker_connections 10240;
  7453.  
  7454. +}
  7455.  
  7456. +
  7457.  
  7458. +http {
  7459.  
  7460. + 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';
  7461.  
  7462. + 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';
  7463.  
  7464. +
  7465.  
  7466. + hide_server_tokens off;
  7467.  
  7468. +
  7469.  
  7470. + server_names_hash_bucket_size 64;
  7471.  
  7472. +
  7473.  
  7474. + sendfile on;
  7475.  
  7476. + tcp_nopush on;
  7477.  
  7478. + tcp_nodelay on;
  7479.  
  7480. +
  7481.  
  7482. + keepalive_timeout 65;
  7483.  
  7484. + keepalive_time 1h;
  7485.  
  7486. +
  7487.  
  7488. + gzip on;
  7489.  
  7490. + gzip_http_version 1.1;
  7491.  
  7492. + gzip_comp_level 2;
  7493.  
  7494. + gzip_proxied no-cache no-store private expired auth;
  7495.  
  7496. + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
  7497.  
  7498. +
  7499.  
  7500. + include /opt/gitlab/embedded/conf/mime.types;
  7501.  
  7502. +
  7503.  
  7504. + proxy_cache_path proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2;
  7505.  
  7506. + proxy_cache gitlab;
  7507.  
  7508. +
  7509.  
  7510. + map $http_upgrade $connection_upgrade {
  7511.  
  7512. + default upgrade;
  7513.  
  7514. + '' close;
  7515.  
  7516. + }
  7517.  
  7518. +
  7519.  
  7520. + # Remove private_token from the request URI
  7521.  
  7522. + # In: /foo?private_token=unfiltered&authenticity_token=unfiltered&rss_token=unfiltered&...
  7523.  
  7524. + # Out: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...
  7525.  
  7526. + map $request_uri $temp_request_uri_1 {
  7527.  
  7528. + default $request_uri;
  7529.  
  7530. + ~(?i)^(?<start>.*)(?<temp>[\?&]private[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
  7531.  
  7532. + }
  7533.  
  7534. +
  7535.  
  7536. + # Remove authenticity_token from the request URI
  7537.  
  7538. + # In: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...
  7539.  
  7540. + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...
  7541.  
  7542. + map $temp_request_uri_1 $temp_request_uri_2 {
  7543.  
  7544. + default $temp_request_uri_1;
  7545.  
  7546. + ~(?i)^(?<start>.*)(?<temp>[\?&]authenticity[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
  7547.  
  7548. + }
  7549.  
  7550. +
  7551.  
  7552. + # Remove rss_token from the request URI
  7553.  
  7554. + # In: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...
  7555.  
  7556. + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=[FILTERED]&...
  7557.  
  7558. + map $temp_request_uri_2 $filtered_request_uri {
  7559.  
  7560. + default $temp_request_uri_2;
  7561.  
  7562. + ~(?i)^(?<start>.*)(?<temp>[\?&]rss[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";
  7563.  
  7564. + }
  7565.  
  7566. +
  7567.  
  7568. + # A version of the referer without the query string
  7569.  
  7570. + map $http_referer $filtered_http_referer {
  7571.  
  7572. + default $http_referer;
  7573.  
  7574. + ~^(?<temp>.*)\? $temp;
  7575.  
  7576. + }
  7577.  
  7578. +
  7579.  
  7580. + # Enable vts status module.
  7581.  
  7582. + vhost_traffic_status_zone;
  7583.  
  7584. +
  7585.  
  7586. + upstream gitlab-workhorse {
  7587.  
  7588. + server unix:/var/opt/gitlab/gitlab-workhorse/sockets/socket;
  7589.  
  7590. + }
  7591.  
  7592. +
  7593.  
  7594. + include /var/opt/gitlab/nginx/conf/gitlab-http.conf;
  7595.  
  7596. +
  7597.  
  7598. +
  7599.  
  7600. +
  7601.  
  7602. +
  7603.  
  7604. +
  7605.  
  7606. +
  7607.  
  7608. + include /var/opt/gitlab/nginx/conf/nginx-status.conf;
  7609.  
  7610. +
  7611.  
  7612. +
  7613.  
  7614. +}[2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] owner changed to 0
  7615.  
  7616. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] group changed to 0
  7617.  
  7618. [2023-06-12T08:52:53+00:00] INFO: template[/var/opt/gitlab/nginx/conf/nginx.conf] mode changed to 644
  7619.  
  7620.  
  7621. - change mode from '' to '0644'
  7622.  
  7623. - change owner from '' to 'root'
  7624.  
  7625. - change group from '' to 'root'
  7626.  
  7627. Recipe: nginx::enable
  7628.  
  7629. * service[nginx] action nothing (skipped due to action :nothing)
  7630.  
  7631. * runit_service[nginx] action enable
  7632.  
  7633. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  7634.  
  7635. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  7636.  
  7637. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  7638.  
  7639. * 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
  7640.  
  7641.  
  7642. - create new directory /opt/gitlab/sv/nginx[2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] owner changed to 0
  7643.  
  7644. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] group changed to 0
  7645.  
  7646. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx] mode changed to 755
  7647.  
  7648.  
  7649. - change mode from '' to '0755'
  7650.  
  7651. - change owner from '' to 'root'
  7652.  
  7653. - change group from '' to 'root'
  7654.  
  7655. * 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
  7656.  
  7657.  
  7658. - 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
  7659.  
  7660.  
  7661. - update content in file /opt/gitlab/sv/nginx/run from none to d75aea
  7662.  
  7663. --- /opt/gitlab/sv/nginx/run 2023-06-12 08:52:53.959508073 +0000
  7664.  
  7665. +++ /opt/gitlab/sv/nginx/.chef-run20230612-2522091-c9f36h 2023-06-12 08:52:53.959508073 +0000
  7666.  
  7667. @@ -1,5 +1,10 @@
  7668.  
  7669. +#!/bin/sh
  7670.  
  7671. +exec 2>&1
  7672.  
  7673. +
  7674.  
  7675. +cd /var/opt/gitlab/nginx
  7676.  
  7677. +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
  7678.  
  7679. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] group changed to 0
  7680.  
  7681. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/run] mode changed to 755
  7682.  
  7683.  
  7684. - change mode from '' to '0755'
  7685.  
  7686. - change owner from '' to 'root'
  7687.  
  7688. - change group from '' to 'root'
  7689.  
  7690. * 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
  7691.  
  7692.  
  7693. - 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
  7694.  
  7695. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log] group changed to 0
  7696.  
  7697. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log] mode changed to 755
  7698.  
  7699.  
  7700. - change mode from '' to '0755'
  7701.  
  7702. - change owner from '' to 'root'
  7703.  
  7704. - change group from '' to 'root'
  7705.  
  7706. * 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
  7707.  
  7708.  
  7709. - 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
  7710.  
  7711. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log/main] group changed to 0
  7712.  
  7713. [2023-06-12T08:52:53+00:00] INFO: directory[/opt/gitlab/sv/nginx/log/main] mode changed to 755
  7714.  
  7715.  
  7716. - change mode from '' to '0755'
  7717.  
  7718. - change owner from '' to 'root'
  7719.  
  7720. - change group from '' to 'root'
  7721.  
  7722. * 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
  7723.  
  7724.  
  7725. - 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
  7726.  
  7727.  
  7728. - update content in file /opt/gitlab/sv/nginx/log/config from none to 623c00
  7729.  
  7730. --- /opt/gitlab/sv/nginx/log/config 2023-06-12 08:52:53.979508017 +0000
  7731.  
  7732. +++ /opt/gitlab/sv/nginx/log/.chef-config20230612-2522091-xqkqpj 2023-06-12 08:52:53.975508028 +0000
  7733.  
  7734. @@ -1,6 +1,12 @@
  7735.  
  7736. +s209715200
  7737.  
  7738. +n30
  7739.  
  7740. +t86400
  7741.  
  7742. +!gzip
  7743.  
  7744. +
  7745.  
  7746. +[2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] owner changed to 0
  7747.  
  7748. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] group changed to 0
  7749.  
  7750. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/config] mode changed to 644
  7751.  
  7752.  
  7753. - change mode from '' to '0644'
  7754.  
  7755. - change owner from '' to 'root'
  7756.  
  7757. - change group from '' to 'root'
  7758.  
  7759. [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)
  7760.  
  7761. * 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
  7762.  
  7763.  
  7764. - execute the ruby block verify_chown_persisted_on_nginx
  7765.  
  7766. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
  7767.  
  7768. * link[/var/log/gitlab/nginx/config] action create[2023-06-12T08:52:53+00:00] INFO: link[/var/log/gitlab/nginx/config] created
  7769.  
  7770.  
  7771. - create symlink at /var/log/gitlab/nginx/config to /opt/gitlab/sv/nginx/log/config
  7772.  
  7773. * 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
  7774.  
  7775.  
  7776. - 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
  7777.  
  7778.  
  7779. - update content in file /opt/gitlab/sv/nginx/log/run from none to 2d00df
  7780.  
  7781. --- /opt/gitlab/sv/nginx/log/run 2023-06-12 08:52:53.991507984 +0000
  7782.  
  7783. +++ /opt/gitlab/sv/nginx/log/.chef-run20230612-2522091-ml6z7r 2023-06-12 08:52:53.991507984 +0000
  7784.  
  7785. @@ -1,5 +1,10 @@
  7786.  
  7787. +#!/bin/sh
  7788.  
  7789. +exec chpst -P \
  7790.  
  7791. + -U root:root \
  7792.  
  7793. + -u root:root \
  7794.  
  7795. + 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
  7796.  
  7797. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] group changed to 0
  7798.  
  7799. [2023-06-12T08:52:53+00:00] INFO: template[/opt/gitlab/sv/nginx/log/run] mode changed to 755
  7800.  
  7801.  
  7802. - change mode from '' to '0755'
  7803.  
  7804. - change owner from '' to 'root'
  7805.  
  7806. - change group from '' to 'root'
  7807.  
  7808. * 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
  7809.  
  7810.  
  7811. - 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
  7812.  
  7813. [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/env] group changed to 0
  7814.  
  7815. [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/env] mode changed to 755
  7816.  
  7817.  
  7818. - change mode from '' to '0755'
  7819.  
  7820. - change owner from '' to 'root'
  7821.  
  7822. - change group from '' to 'root'
  7823.  
  7824. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
  7825.  
  7826. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
  7827.  
  7828. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
  7829.  
  7830. * 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
  7831.  
  7832.  
  7833. - 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
  7834.  
  7835. [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/control] group changed to 0
  7836.  
  7837. [2023-06-12T08:52:54+00:00] INFO: directory[/opt/gitlab/sv/nginx/control] mode changed to 755
  7838.  
  7839.  
  7840. - change mode from '' to '0755'
  7841.  
  7842. - change owner from '' to 'root'
  7843.  
  7844. - change group from '' to 'root'
  7845.  
  7846. * link[/opt/gitlab/init/nginx] action create[2023-06-12T08:52:54+00:00] INFO: link[/opt/gitlab/init/nginx] created
  7847.  
  7848.  
  7849. - create symlink at /opt/gitlab/init/nginx to /opt/gitlab/embedded/bin/sv
  7850.  
  7851. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
  7852.  
  7853. [2023-06-12T08:52:54+00:00] INFO: template[/opt/gitlab/sv/nginx/run] sending run action to ruby_block[restart_service] (delayed)
  7854.  
  7855. * ruby_block[restart_service] action run (skipped due to only_if)
  7856.  
  7857. [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)
  7858.  
  7859. * ruby_block[reload_log_service] action create
  7860.  
  7861. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  7862.  
  7863. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  7864.  
  7865. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  7866.  
  7867. * directory[/opt/gitlab/sv/nginx] action create (up to date)
  7868.  
  7869. * template[/opt/gitlab/sv/nginx/run] action create (up to date)
  7870.  
  7871. * directory[/opt/gitlab/sv/nginx/log] action create (up to date)
  7872.  
  7873. * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date)
  7874.  
  7875. * template[/opt/gitlab/sv/nginx/log/config] action create (up to date)
  7876.  
  7877. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
  7878.  
  7879. * link[/var/log/gitlab/nginx/config] action create (up to date)
  7880.  
  7881. * template[/opt/gitlab/sv/nginx/log/run] action create (up to date)
  7882.  
  7883. * directory[/opt/gitlab/sv/nginx/env] action create (up to date)
  7884.  
  7885. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
  7886.  
  7887. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
  7888.  
  7889. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
  7890.  
  7891. * directory[/opt/gitlab/sv/nginx/control] action create (up to date)
  7892.  
  7893. * link[/opt/gitlab/init/nginx] action create (up to date)
  7894.  
  7895. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
  7896.  
  7897. * directory[/opt/gitlab/service] action create (up to date)
  7898.  
  7899. * link[/opt/gitlab/service/nginx] action create[2023-06-12T08:52:54+00:00] INFO: link[/opt/gitlab/service/nginx] created
  7900.  
  7901.  
  7902. - create symlink at /opt/gitlab/service/nginx to /opt/gitlab/sv/nginx
  7903.  
  7904. * 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
  7905.  
  7906.  
  7907. - execute the ruby block wait for nginx service socket
  7908.  
  7909. * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
  7910.  
  7911. [2023-06-12T08:53:00+00:00] INFO: ruby_block[reload_log_service] called
  7912.  
  7913. - execute the ruby block reload_log_service
  7914.  
  7915. [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)
  7916.  
  7917. * ruby_block[restart_log_service] action run
  7918.  
  7919. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  7920.  
  7921. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  7922.  
  7923. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  7924.  
  7925. * directory[/opt/gitlab/sv/nginx] action create (up to date)
  7926.  
  7927. * template[/opt/gitlab/sv/nginx/run] action create (up to date)
  7928.  
  7929. * directory[/opt/gitlab/sv/nginx/log] action create (up to date)
  7930.  
  7931. * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date)
  7932.  
  7933. * template[/opt/gitlab/sv/nginx/log/config] action create (up to date)
  7934.  
  7935. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing)
  7936.  
  7937. * link[/var/log/gitlab/nginx/config] action create (up to date)
  7938.  
  7939. * template[/opt/gitlab/sv/nginx/log/run] action create (up to date)
  7940.  
  7941. * directory[/opt/gitlab/sv/nginx/env] action create (up to date)
  7942.  
  7943. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if)
  7944.  
  7945. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if)
  7946.  
  7947. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if)
  7948.  
  7949. * directory[/opt/gitlab/sv/nginx/control] action create (up to date)
  7950.  
  7951. * link[/opt/gitlab/init/nginx] action create (up to date)
  7952.  
  7953. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing)
  7954.  
  7955. * directory[/opt/gitlab/service] action create (up to date)
  7956.  
  7957. * link[/opt/gitlab/service/nginx] action create (up to date)
  7958.  
  7959. * ruby_block[wait for nginx service socket] action run (skipped due to not_if)
  7960.  
  7961. * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
  7962.  
  7963. [2023-06-12T08:53:00+00:00] INFO: ruby_block[restart_log_service] called
  7964.  
  7965. - execute the ruby block restart_log_service
  7966.  
  7967. * directory[/opt/gitlab/service] action create (up to date)
  7968.  
  7969. * link[/opt/gitlab/service/nginx] action create (up to date)
  7970.  
  7971. * ruby_block[wait for nginx service socket] action run (skipped due to not_if)
  7972.  
  7973. * file[/var/log/gitlab/nginx/current] action touch (skipped due to only_if)
  7974.  
  7975.  
  7976. * execute[reload nginx] action nothing (skipped due to action :nothing)
  7977.  
  7978. Recipe: gitlab::nginx
  7979.  
  7980. * execute[/opt/gitlab/bin/gitlab-ctl start nginx] action run
  7981.  
  7982. [execute] ok: run: nginx: (pid 2523525) 3s
  7983.  
  7984. [2023-06-12T08:53:01+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start nginx] ran successfully
  7985.  
  7986. - execute /opt/gitlab/bin/gitlab-ctl start nginx
  7987.  
  7988. Recipe: gitlab::remote-syslog_disable
  7989.  
  7990. * service[remote-syslog] action nothing (skipped due to action :nothing)
  7991.  
  7992. * runit_service[remote-syslog] action disable
  7993.  
  7994. * ruby_block[disable remote-syslog] action run (skipped due to only_if)
  7995.  
  7996. (up to date)
  7997.  
  7998. Recipe: gitlab::bootstrap
  7999.  
  8000. * 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
  8001.  
  8002.  
  8003. - 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
  8004.  
  8005.  
  8006. - update content in file /var/opt/gitlab/bootstrapped from none to 4ae00c
  8007.  
  8008. --- /var/opt/gitlab/bootstrapped 2023-06-12 08:53:01.211487880 +0000
  8009.  
  8010. +++ /var/opt/gitlab/.chef-bootstrapped20230612-2522091-e8pveq 2023-06-12 08:53:01.211487880 +0000
  8011.  
  8012. @@ -1 +1,2 @@
  8013.  
  8014. +All your bootstraps are belong to Chef[2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] owner changed to 0
  8015.  
  8016. [2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] group changed to 0
  8017.  
  8018. [2023-06-12T08:53:01+00:00] INFO: file[/var/opt/gitlab/bootstrapped] mode changed to 600
  8019.  
  8020.  
  8021. - change mode from '' to '0600'
  8022.  
  8023. - change owner from '' to 'root'
  8024.  
  8025. - change group from '' to 'root'
  8026.  
  8027. Recipe: gitlab::storage-check_disable
  8028.  
  8029. * service[storage-check] action nothing (skipped due to action :nothing)
  8030.  
  8031. * runit_service[storage-check] action disable
  8032.  
  8033. * ruby_block[disable storage-check] action run (skipped due to only_if)
  8034.  
  8035. (up to date)
  8036.  
  8037. Recipe: gitlab-pages::disable
  8038.  
  8039. * service[gitlab-pages] action nothing (skipped due to action :nothing)
  8040.  
  8041. * runit_service[gitlab-pages] action disable
  8042.  
  8043. * ruby_block[disable gitlab-pages] action run (skipped due to only_if)
  8044.  
  8045. (up to date)
  8046.  
  8047. Recipe: registry::disable
  8048.  
  8049. * service[registry] action nothing (skipped due to action :nothing)
  8050.  
  8051. * runit_service[registry] action disable
  8052.  
  8053. * ruby_block[disable registry] action run (skipped due to only_if)
  8054.  
  8055. (up to date)
  8056.  
  8057. Recipe: mattermost::disable
  8058.  
  8059. * service[mattermost] action nothing (skipped due to action :nothing)
  8060.  
  8061. * runit_service[mattermost] action disable
  8062.  
  8063. * ruby_block[disable mattermost] action run (skipped due to only_if)
  8064.  
  8065. (up to date)
  8066.  
  8067. Recipe: letsencrypt::disable
  8068.  
  8069. * crond_job[letsencrypt-renew] action delete
  8070.  
  8071. * file[/var/opt/gitlab/crond/letsencrypt-renew] action delete (up to date)
  8072.  
  8073. (up to date)
  8074.  
  8075. Recipe: gitlab::gitlab-healthcheck
  8076.  
  8077. * 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
  8078.  
  8079.  
  8080. - 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
  8081.  
  8082.  
  8083. - update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from none to f612c8
  8084.  
  8085. --- /opt/gitlab/etc/gitlab-healthcheck-rc 2023-06-12 08:53:01.243487791 +0000
  8086.  
  8087. +++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20230612-2522091-va0903 2023-06-12 08:53:01.243487791 +0000
  8088.  
  8089. @@ -1,2 +1,4 @@
  8090.  
  8091. +url='http://localhost:80/help'
  8092.  
  8093. +flags=(--insecure)[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] owner changed to 0
  8094.  
  8095. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/etc/gitlab-healthcheck-rc] group changed to 0
  8096.  
  8097.  
  8098. - change owner from '' to 'root'
  8099.  
  8100. - change group from '' to 'root'
  8101.  
  8102. Recipe: monitoring::pgbouncer-exporter_disable
  8103.  
  8104. * service[pgbouncer-exporter] action nothing (skipped due to action :nothing)
  8105.  
  8106. * runit_service[pgbouncer-exporter] action disable
  8107.  
  8108. * ruby_block[disable pgbouncer-exporter] action run (skipped due to only_if)
  8109.  
  8110. (up to date)
  8111.  
  8112. Recipe: monitoring::user
  8113.  
  8114. * account[Prometheus user and group] action create
  8115.  
  8116. * group[Prometheus user and group] action create[2023-06-12T08:53:01+00:00] INFO: group[Prometheus user and group] created
  8117.  
  8118.  
  8119. - create group gitlab-prometheus
  8120.  
  8121. * linux_user[Prometheus user and group] action create[2023-06-12T08:53:01+00:00] INFO: linux_user[Prometheus user and group] created
  8122.  
  8123.  
  8124. - create user gitlab-prometheus
  8125.  
  8126.  
  8127. Recipe: monitoring::node-exporter
  8128.  
  8129. * 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
  8130.  
  8131.  
  8132. - 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
  8133.  
  8134. [2023-06-12T08:53:01+00:00] INFO: directory[/var/log/gitlab/node-exporter] mode changed to 700
  8135.  
  8136.  
  8137. - change mode from '' to '0700'
  8138.  
  8139. - change owner from '' to 'gitlab-prometheus'
  8140.  
  8141. * 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
  8142.  
  8143.  
  8144. - 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
  8145.  
  8146. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/etc/node-exporter/env] mode changed to 700
  8147.  
  8148.  
  8149. - change mode from '' to '0700'
  8150.  
  8151. - change owner from '' to 'gitlab-prometheus'
  8152.  
  8153. * env_dir[/opt/gitlab/etc/node-exporter/env] action create
  8154.  
  8155. * directory[/opt/gitlab/etc/node-exporter/env] action create (up to date)
  8156.  
  8157. * 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
  8158.  
  8159.  
  8160. - 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
  8161.  
  8162.  
  8163. - update content in file /opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR from none to 4f45cf
  8164.  
  8165. - suppressed sensitive resource
  8166.  
  8167.  
  8168. * 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
  8169.  
  8170.  
  8171. - 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
  8172.  
  8173. [2023-06-12T08:53:01+00:00] INFO: directory[/var/opt/gitlab/node-exporter/textfile_collector] mode changed to 755
  8174.  
  8175.  
  8176. - change mode from '' to '0755'
  8177.  
  8178. - change owner from '' to 'gitlab-prometheus'
  8179.  
  8180. * service[node-exporter] action nothing (skipped due to action :nothing)
  8181.  
  8182. * runit_service[node-exporter] action enable
  8183.  
  8184. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8185.  
  8186. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8187.  
  8188. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8189.  
  8190. * 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
  8191.  
  8192.  
  8193. - 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
  8194.  
  8195. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter] group changed to 0
  8196.  
  8197. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter] mode changed to 755
  8198.  
  8199.  
  8200. - change mode from '' to '0755'
  8201.  
  8202. - change owner from '' to 'root'
  8203.  
  8204. - change group from '' to 'root'
  8205.  
  8206. * 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
  8207.  
  8208.  
  8209. - 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
  8210.  
  8211.  
  8212. - update content in file /opt/gitlab/sv/node-exporter/run from none to 744544
  8213.  
  8214. --- /opt/gitlab/sv/node-exporter/run 2023-06-12 08:53:01.499487076 +0000
  8215.  
  8216. +++ /opt/gitlab/sv/node-exporter/.chef-run20230612-2522091-xiuwyk 2023-06-12 08:53:01.499487076 +0000
  8217.  
  8218. @@ -1,8 +1,16 @@
  8219.  
  8220. +#!/bin/sh
  8221.  
  8222. +exec 2>&1
  8223.  
  8224. +
  8225.  
  8226. +umask 077
  8227.  
  8228. +exec chpst -P -e /opt/gitlab/etc/node-exporter/env \
  8229.  
  8230. + -U gitlab-prometheus:gitlab-prometheus \
  8231.  
  8232. + -u gitlab-prometheus:gitlab-prometheus \
  8233.  
  8234. + /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
  8235.  
  8236. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] group changed to 0
  8237.  
  8238. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] mode changed to 755
  8239.  
  8240.  
  8241. - change mode from '' to '0755'
  8242.  
  8243. - change owner from '' to 'root'
  8244.  
  8245. - change group from '' to 'root'
  8246.  
  8247. * 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
  8248.  
  8249.  
  8250. - 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
  8251.  
  8252. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log] group changed to 0
  8253.  
  8254. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log] mode changed to 755
  8255.  
  8256.  
  8257. - change mode from '' to '0755'
  8258.  
  8259. - change owner from '' to 'root'
  8260.  
  8261. - change group from '' to 'root'
  8262.  
  8263. * 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
  8264.  
  8265.  
  8266. - 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
  8267.  
  8268. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log/main] group changed to 0
  8269.  
  8270. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/log/main] mode changed to 755
  8271.  
  8272.  
  8273. - change mode from '' to '0755'
  8274.  
  8275. - change owner from '' to 'root'
  8276.  
  8277. - change group from '' to 'root'
  8278.  
  8279. * 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
  8280.  
  8281.  
  8282. - 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
  8283.  
  8284.  
  8285. - update content in file /opt/gitlab/sv/node-exporter/log/config from none to 623c00
  8286.  
  8287. --- /opt/gitlab/sv/node-exporter/log/config 2023-06-12 08:53:01.519487021 +0000
  8288.  
  8289. +++ /opt/gitlab/sv/node-exporter/log/.chef-config20230612-2522091-y8ojao 2023-06-12 08:53:01.519487021 +0000
  8290.  
  8291. @@ -1,6 +1,12 @@
  8292.  
  8293. +s209715200
  8294.  
  8295. +n30
  8296.  
  8297. +t86400
  8298.  
  8299. +!gzip
  8300.  
  8301. +
  8302.  
  8303. +[2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] owner changed to 0
  8304.  
  8305. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] group changed to 0
  8306.  
  8307. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/config] mode changed to 644
  8308.  
  8309.  
  8310. - change mode from '' to '0644'
  8311.  
  8312. - change owner from '' to 'root'
  8313.  
  8314. - change group from '' to 'root'
  8315.  
  8316. [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)
  8317.  
  8318. * 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
  8319.  
  8320.  
  8321. - execute the ruby block verify_chown_persisted_on_node-exporter
  8322.  
  8323. * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
  8324.  
  8325. * 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
  8326.  
  8327.  
  8328. - create symlink at /var/log/gitlab/node-exporter/config to /opt/gitlab/sv/node-exporter/log/config
  8329.  
  8330. * 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
  8331.  
  8332.  
  8333. - 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
  8334.  
  8335.  
  8336. - update content in file /opt/gitlab/sv/node-exporter/log/run from none to ed81f2
  8337.  
  8338. --- /opt/gitlab/sv/node-exporter/log/run 2023-06-12 08:53:01.539486965 +0000
  8339.  
  8340. +++ /opt/gitlab/sv/node-exporter/log/.chef-run20230612-2522091-fihvtr 2023-06-12 08:53:01.539486965 +0000
  8341.  
  8342. @@ -1,5 +1,10 @@
  8343.  
  8344. +#!/bin/sh
  8345.  
  8346. +exec chpst -P \
  8347.  
  8348. + -U root:root \
  8349.  
  8350. + -u root:root \
  8351.  
  8352. + 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
  8353.  
  8354. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] group changed to 0
  8355.  
  8356. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/log/run] mode changed to 755
  8357.  
  8358.  
  8359. - change mode from '' to '0755'
  8360.  
  8361. - change owner from '' to 'root'
  8362.  
  8363. - change group from '' to 'root'
  8364.  
  8365. * 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
  8366.  
  8367.  
  8368. - 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
  8369.  
  8370. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/env] group changed to 0
  8371.  
  8372. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/env] mode changed to 755
  8373.  
  8374.  
  8375. - change mode from '' to '0755'
  8376.  
  8377. - change owner from '' to 'root'
  8378.  
  8379. - change group from '' to 'root'
  8380.  
  8381. * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
  8382.  
  8383. * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
  8384.  
  8385. * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
  8386.  
  8387. * 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
  8388.  
  8389.  
  8390. - 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
  8391.  
  8392. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/control] group changed to 0
  8393.  
  8394. [2023-06-12T08:53:01+00:00] INFO: directory[/opt/gitlab/sv/node-exporter/control] mode changed to 755
  8395.  
  8396.  
  8397. - change mode from '' to '0755'
  8398.  
  8399. - change owner from '' to 'root'
  8400.  
  8401. - change group from '' to 'root'
  8402.  
  8403. * link[/opt/gitlab/init/node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: link[/opt/gitlab/init/node-exporter] created
  8404.  
  8405.  
  8406. - create symlink at /opt/gitlab/init/node-exporter to /opt/gitlab/embedded/bin/sv
  8407.  
  8408. * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
  8409.  
  8410. [2023-06-12T08:53:01+00:00] INFO: template[/opt/gitlab/sv/node-exporter/run] sending run action to ruby_block[restart_service] (delayed)
  8411.  
  8412. * ruby_block[restart_service] action run (skipped due to only_if)
  8413.  
  8414. [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)
  8415.  
  8416. * ruby_block[reload_log_service] action create
  8417.  
  8418. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8419.  
  8420. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8421.  
  8422. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8423.  
  8424. * directory[/opt/gitlab/sv/node-exporter] action create (up to date)
  8425.  
  8426. * template[/opt/gitlab/sv/node-exporter/run] action create (up to date)
  8427.  
  8428. * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date)
  8429.  
  8430. * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date)
  8431.  
  8432. * template[/opt/gitlab/sv/node-exporter/log/config] action create (up to date)
  8433.  
  8434. * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
  8435.  
  8436. * link[/var/log/gitlab/node-exporter/config] action create (up to date)
  8437.  
  8438. * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date)
  8439.  
  8440. * directory[/opt/gitlab/sv/node-exporter/env] action create (up to date)
  8441.  
  8442. * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
  8443.  
  8444. * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
  8445.  
  8446. * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
  8447.  
  8448. * directory[/opt/gitlab/sv/node-exporter/control] action create (up to date)
  8449.  
  8450. * link[/opt/gitlab/init/node-exporter] action create (up to date)
  8451.  
  8452. * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
  8453.  
  8454. * directory[/opt/gitlab/service] action create (up to date)
  8455.  
  8456. * link[/opt/gitlab/service/node-exporter] action create[2023-06-12T08:53:01+00:00] INFO: link[/opt/gitlab/service/node-exporter] created
  8457.  
  8458.  
  8459. - create symlink at /opt/gitlab/service/node-exporter to /opt/gitlab/sv/node-exporter
  8460.  
  8461. * 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
  8462.  
  8463.  
  8464. - execute the ruby block wait for node-exporter service socket
  8465.  
  8466. * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
  8467.  
  8468. [2023-06-12T08:53:04+00:00] INFO: ruby_block[reload_log_service] called
  8469.  
  8470. - execute the ruby block reload_log_service
  8471.  
  8472. [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)
  8473.  
  8474. * ruby_block[restart_log_service] action run
  8475.  
  8476. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8477.  
  8478. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8479.  
  8480. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8481.  
  8482. * directory[/opt/gitlab/sv/node-exporter] action create (up to date)
  8483.  
  8484. * template[/opt/gitlab/sv/node-exporter/run] action create (up to date)
  8485.  
  8486. * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date)
  8487.  
  8488. * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date)
  8489.  
  8490. * template[/opt/gitlab/sv/node-exporter/log/config] action create (up to date)
  8491.  
  8492. * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing)
  8493.  
  8494. * link[/var/log/gitlab/node-exporter/config] action create (up to date)
  8495.  
  8496. * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date)
  8497.  
  8498. * directory[/opt/gitlab/sv/node-exporter/env] action create (up to date)
  8499.  
  8500. * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if)
  8501.  
  8502. * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if)
  8503.  
  8504. * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if)
  8505.  
  8506. * directory[/opt/gitlab/sv/node-exporter/control] action create (up to date)
  8507.  
  8508. * link[/opt/gitlab/init/node-exporter] action create (up to date)
  8509.  
  8510. * file[/opt/gitlab/sv/node-exporter/down] action nothing (skipped due to action :nothing)
  8511.  
  8512. * directory[/opt/gitlab/service] action create (up to date)
  8513.  
  8514. * link[/opt/gitlab/service/node-exporter] action create (up to date)
  8515.  
  8516. * ruby_block[wait for node-exporter service socket] action run (skipped due to not_if)
  8517.  
  8518. * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
  8519.  
  8520. [2023-06-12T08:53:06+00:00] INFO: ruby_block[restart_log_service] called
  8521.  
  8522. - execute the ruby block restart_log_service
  8523.  
  8524. * directory[/opt/gitlab/service] action create (up to date)
  8525.  
  8526. * link[/opt/gitlab/service/node-exporter] action create (up to date)
  8527.  
  8528. * ruby_block[wait for node-exporter service socket] action run (skipped due to not_if)
  8529.  
  8530. * file[/var/log/gitlab/node-exporter/current] action touch (skipped due to only_if)
  8531.  
  8532.  
  8533. * execute[/opt/gitlab/bin/gitlab-ctl start node-exporter] action run
  8534.  
  8535. [execute] ok: run: node-exporter: (pid 2523620) 2s
  8536.  
  8537. [2023-06-12T08:53:06+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start node-exporter] ran successfully
  8538.  
  8539. - execute /opt/gitlab/bin/gitlab-ctl start node-exporter
  8540.  
  8541. * consul_service[node-exporter] action delete
  8542.  
  8543. * file[/var/opt/gitlab/consul/config.d/node-exporter-service.json] action delete (up to date)
  8544.  
  8545. (up to date)
  8546.  
  8547. Recipe: monitoring::gitlab-exporter
  8548.  
  8549. * 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
  8550.  
  8551.  
  8552. - 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
  8553.  
  8554. [2023-06-12T08:53:06+00:00] INFO: directory[/var/opt/gitlab/gitlab-exporter] mode changed to 755
  8555.  
  8556.  
  8557. - change mode from '' to '0755'
  8558.  
  8559. - change owner from '' to 'git'
  8560.  
  8561. * 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
  8562.  
  8563.  
  8564. - 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
  8565.  
  8566. [2023-06-12T08:53:06+00:00] INFO: directory[/var/log/gitlab/gitlab-exporter] mode changed to 700
  8567.  
  8568.  
  8569. - change mode from '' to '0700'
  8570.  
  8571. - change owner from '' to 'git'
  8572.  
  8573. * env_dir[/opt/gitlab/etc/gitlab-exporter/env] action create
  8574.  
  8575. * 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
  8576.  
  8577.  
  8578. - create new directory /opt/gitlab/etc/gitlab-exporter/env
  8579.  
  8580. * 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
  8581.  
  8582.  
  8583. - 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
  8584.  
  8585.  
  8586. - update content in file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF from none to 2ea29b
  8587.  
  8588. - suppressed sensitive resource
  8589.  
  8590. * 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
  8591.  
  8592.  
  8593. - 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
  8594.  
  8595.  
  8596. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS from none to 47b250
  8597.  
  8598. - suppressed sensitive resource
  8599.  
  8600. * 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
  8601.  
  8602.  
  8603. - 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
  8604.  
  8605.  
  8606. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO from none to c945fb
  8607.  
  8608. - suppressed sensitive resource
  8609.  
  8610. * 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
  8611.  
  8612.  
  8613. - 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
  8614.  
  8615.  
  8616. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO from none to 8a60e9
  8617.  
  8618. - suppressed sensitive resource
  8619.  
  8620. * 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
  8621.  
  8622.  
  8623. - 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
  8624.  
  8625.  
  8626. - update content in file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_DIR from none to 4f45cf
  8627.  
  8628. - suppressed sensitive resource
  8629.  
  8630. * 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
  8631.  
  8632.  
  8633. - 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
  8634.  
  8635.  
  8636. - update content in file /opt/gitlab/etc/gitlab-exporter/env/SSL_CERT_FILE from none to f7ce84
  8637.  
  8638. - suppressed sensitive resource
  8639.  
  8640.  
  8641. * 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
  8642.  
  8643.  
  8644. - 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
  8645.  
  8646.  
  8647. - update content in file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml from none to d60133
  8648.  
  8649. - suppressed sensitive resource[2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] owner changed to 997
  8650.  
  8651. [2023-06-12T08:53:06+00:00] INFO: template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] mode changed to 600
  8652.  
  8653.  
  8654. - change mode from '' to '0600'
  8655.  
  8656. - change owner from '' to 'git'
  8657.  
  8658. [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
  8659.  
  8660. * version_file[Create version file for GitLab-Exporter] action create
  8661.  
  8662. * 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
  8663.  
  8664.  
  8665. - 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
  8666.  
  8667.  
  8668. - update content in file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION from none to b4a021
  8669.  
  8670. --- /var/opt/gitlab/gitlab-exporter/RUBY_VERSION 2023-06-12 08:53:06.971471792 +0000
  8671.  
  8672. +++ /var/opt/gitlab/gitlab-exporter/.chef-RUBY_VERSION20230612-2522091-17e8qb 2023-06-12 08:53:06.967471804 +0000
  8673.  
  8674. @@ -1 +1,2 @@
  8675.  
  8676. +ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux]
  8677.  
  8678.  
  8679. [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
  8680.  
  8681. * service[gitlab-exporter] action nothing (skipped due to action :nothing)
  8682.  
  8683. * runit_service[gitlab-exporter] action enable
  8684.  
  8685. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8686.  
  8687. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8688.  
  8689. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8690.  
  8691. * 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
  8692.  
  8693.  
  8694. - 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
  8695.  
  8696. [2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter] group changed to 0
  8697.  
  8698. [2023-06-12T08:53:06+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter] mode changed to 755
  8699.  
  8700.  
  8701. - change mode from '' to '0755'
  8702.  
  8703. - change owner from '' to 'root'
  8704.  
  8705. - change group from '' to 'root'
  8706.  
  8707. * 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
  8708.  
  8709.  
  8710. - 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
  8711.  
  8712.  
  8713. - update content in file /opt/gitlab/sv/gitlab-exporter/run from none to 455cb2
  8714.  
  8715. --- /opt/gitlab/sv/gitlab-exporter/run 2023-06-12 08:53:06.995471725 +0000
  8716.  
  8717. +++ /opt/gitlab/sv/gitlab-exporter/.chef-run20230612-2522091-c8olqx 2023-06-12 08:53:06.995471725 +0000
  8718.  
  8719. @@ -1,9 +1,18 @@
  8720.  
  8721. +#!/bin/sh
  8722.  
  8723. +exec 2>&1
  8724.  
  8725. +
  8726.  
  8727. +umask 077
  8728.  
  8729. +exec chpst -P -e /opt/gitlab/etc/gitlab-exporter/env \
  8730.  
  8731. + -U git:git \
  8732.  
  8733. + -u git:git \
  8734.  
  8735. + /opt/gitlab/embedded/bin/gitlab-exporter web \
  8736.  
  8737. + -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
  8738.  
  8739. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] group changed to 0
  8740.  
  8741. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] mode changed to 755
  8742.  
  8743.  
  8744. - change mode from '' to '0755'
  8745.  
  8746. - change owner from '' to 'root'
  8747.  
  8748. - change group from '' to 'root'
  8749.  
  8750. * 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
  8751.  
  8752.  
  8753. - 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
  8754.  
  8755. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log] group changed to 0
  8756.  
  8757. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log] mode changed to 755
  8758.  
  8759.  
  8760. - change mode from '' to '0755'
  8761.  
  8762. - change owner from '' to 'root'
  8763.  
  8764. - change group from '' to 'root'
  8765.  
  8766. * 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
  8767.  
  8768.  
  8769. - 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
  8770.  
  8771. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log/main] group changed to 0
  8772.  
  8773. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/log/main] mode changed to 755
  8774.  
  8775.  
  8776. - change mode from '' to '0755'
  8777.  
  8778. - change owner from '' to 'root'
  8779.  
  8780. - change group from '' to 'root'
  8781.  
  8782. * 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
  8783.  
  8784.  
  8785. - 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
  8786.  
  8787.  
  8788. - update content in file /opt/gitlab/sv/gitlab-exporter/log/config from none to 623c00
  8789.  
  8790. --- /opt/gitlab/sv/gitlab-exporter/log/config 2023-06-12 08:53:07.015471669 +0000
  8791.  
  8792. +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-config20230612-2522091-bjelua 2023-06-12 08:53:07.015471669 +0000
  8793.  
  8794. @@ -1,6 +1,12 @@
  8795.  
  8796. +s209715200
  8797.  
  8798. +n30
  8799.  
  8800. +t86400
  8801.  
  8802. +!gzip
  8803.  
  8804. +
  8805.  
  8806. +[2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] owner changed to 0
  8807.  
  8808. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] group changed to 0
  8809.  
  8810. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/config] mode changed to 644
  8811.  
  8812.  
  8813. - change mode from '' to '0644'
  8814.  
  8815. - change owner from '' to 'root'
  8816.  
  8817. - change group from '' to 'root'
  8818.  
  8819. [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)
  8820.  
  8821. * 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
  8822.  
  8823.  
  8824. - execute the ruby block verify_chown_persisted_on_gitlab-exporter
  8825.  
  8826. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
  8827.  
  8828. * 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
  8829.  
  8830.  
  8831. - create symlink at /var/log/gitlab/gitlab-exporter/config to /opt/gitlab/sv/gitlab-exporter/log/config
  8832.  
  8833. * 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
  8834.  
  8835.  
  8836. - 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
  8837.  
  8838.  
  8839. - update content in file /opt/gitlab/sv/gitlab-exporter/log/run from none to 0b0a31
  8840.  
  8841. --- /opt/gitlab/sv/gitlab-exporter/log/run 2023-06-12 08:53:07.035471613 +0000
  8842.  
  8843. +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-run20230612-2522091-4b3h7j 2023-06-12 08:53:07.035471613 +0000
  8844.  
  8845. @@ -1,5 +1,10 @@
  8846.  
  8847. +#!/bin/sh
  8848.  
  8849. +exec chpst -P \
  8850.  
  8851. + -U root:root \
  8852.  
  8853. + -u root:root \
  8854.  
  8855. + 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
  8856.  
  8857. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] group changed to 0
  8858.  
  8859. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/log/run] mode changed to 755
  8860.  
  8861.  
  8862. - change mode from '' to '0755'
  8863.  
  8864. - change owner from '' to 'root'
  8865.  
  8866. - change group from '' to 'root'
  8867.  
  8868. * 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
  8869.  
  8870.  
  8871. - 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
  8872.  
  8873. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/env] group changed to 0
  8874.  
  8875. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/env] mode changed to 755
  8876.  
  8877.  
  8878. - change mode from '' to '0755'
  8879.  
  8880. - change owner from '' to 'root'
  8881.  
  8882. - change group from '' to 'root'
  8883.  
  8884. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
  8885.  
  8886. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
  8887.  
  8888. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
  8889.  
  8890. * 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
  8891.  
  8892.  
  8893. - 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
  8894.  
  8895. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/control] group changed to 0
  8896.  
  8897. [2023-06-12T08:53:07+00:00] INFO: directory[/opt/gitlab/sv/gitlab-exporter/control] mode changed to 755
  8898.  
  8899.  
  8900. - change mode from '' to '0755'
  8901.  
  8902. - change owner from '' to 'root'
  8903.  
  8904. - change group from '' to 'root'
  8905.  
  8906. * link[/opt/gitlab/init/gitlab-exporter] action create[2023-06-12T08:53:07+00:00] INFO: link[/opt/gitlab/init/gitlab-exporter] created
  8907.  
  8908.  
  8909. - create symlink at /opt/gitlab/init/gitlab-exporter to /opt/gitlab/embedded/bin/sv
  8910.  
  8911. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
  8912.  
  8913. [2023-06-12T08:53:07+00:00] INFO: template[/opt/gitlab/sv/gitlab-exporter/run] sending run action to ruby_block[restart_service] (delayed)
  8914.  
  8915. * ruby_block[restart_service] action run (skipped due to only_if)
  8916.  
  8917. [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)
  8918.  
  8919. * ruby_block[reload_log_service] action create
  8920.  
  8921. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8922.  
  8923. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8924.  
  8925. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8926.  
  8927. * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date)
  8928.  
  8929. * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date)
  8930.  
  8931. * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date)
  8932.  
  8933. * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date)
  8934.  
  8935. * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date)
  8936.  
  8937. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
  8938.  
  8939. * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date)
  8940.  
  8941. * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date)
  8942.  
  8943. * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date)
  8944.  
  8945. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
  8946.  
  8947. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
  8948.  
  8949. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
  8950.  
  8951. * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date)
  8952.  
  8953. * link[/opt/gitlab/init/gitlab-exporter] action create (up to date)
  8954.  
  8955. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
  8956.  
  8957. * directory[/opt/gitlab/service] action create (up to date)
  8958.  
  8959. * link[/opt/gitlab/service/gitlab-exporter] action create[2023-06-12T08:53:07+00:00] INFO: link[/opt/gitlab/service/gitlab-exporter] created
  8960.  
  8961.  
  8962. - create symlink at /opt/gitlab/service/gitlab-exporter to /opt/gitlab/sv/gitlab-exporter
  8963.  
  8964. * 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
  8965.  
  8966.  
  8967. - execute the ruby block wait for gitlab-exporter service socket
  8968.  
  8969. * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
  8970.  
  8971. [2023-06-12T08:53:12+00:00] INFO: ruby_block[reload_log_service] called
  8972.  
  8973. - execute the ruby block reload_log_service
  8974.  
  8975. [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)
  8976.  
  8977. * ruby_block[restart_log_service] action run
  8978.  
  8979. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  8980.  
  8981. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  8982.  
  8983. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  8984.  
  8985. * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date)
  8986.  
  8987. * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date)
  8988.  
  8989. * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date)
  8990.  
  8991. * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date)
  8992.  
  8993. * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date)
  8994.  
  8995. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing)
  8996.  
  8997. * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date)
  8998.  
  8999. * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date)
  9000.  
  9001. * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date)
  9002.  
  9003. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if)
  9004.  
  9005. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if)
  9006.  
  9007. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if)
  9008.  
  9009. * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date)
  9010.  
  9011. * link[/opt/gitlab/init/gitlab-exporter] action create (up to date)
  9012.  
  9013. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing)
  9014.  
  9015. * directory[/opt/gitlab/service] action create (up to date)
  9016.  
  9017. * link[/opt/gitlab/service/gitlab-exporter] action create (up to date)
  9018.  
  9019. * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if)
  9020.  
  9021. * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
  9022.  
  9023. [2023-06-12T08:53:12+00:00] INFO: ruby_block[restart_log_service] called
  9024.  
  9025. - execute the ruby block restart_log_service
  9026.  
  9027. * directory[/opt/gitlab/service] action create (up to date)
  9028.  
  9029. * link[/opt/gitlab/service/gitlab-exporter] action create (up to date)
  9030.  
  9031. * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if)
  9032.  
  9033. * file[/var/log/gitlab/gitlab-exporter/current] action touch (skipped due to only_if)
  9034.  
  9035.  
  9036. * execute[/opt/gitlab/bin/gitlab-ctl start gitlab-exporter] action run
  9037.  
  9038. [execute] ok: run: gitlab-exporter: (pid 2523688) 3s
  9039.  
  9040. [2023-06-12T08:53:13+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start gitlab-exporter] ran successfully
  9041.  
  9042. - execute /opt/gitlab/bin/gitlab-ctl start gitlab-exporter
  9043.  
  9044. * consul_service[gitlab-exporter] action delete
  9045.  
  9046. * file[/var/opt/gitlab/consul/config.d/gitlab-exporter-service.json] action delete (up to date)
  9047.  
  9048. (up to date)
  9049.  
  9050. Recipe: monitoring::redis-exporter
  9051.  
  9052. * 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
  9053.  
  9054.  
  9055. - 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
  9056.  
  9057. [2023-06-12T08:53:13+00:00] INFO: directory[/var/log/gitlab/redis-exporter] mode changed to 700
  9058.  
  9059.  
  9060. - change mode from '' to '0700'
  9061.  
  9062. - change owner from '' to 'gitlab-redis'
  9063.  
  9064. * 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
  9065.  
  9066.  
  9067. - 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
  9068.  
  9069. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/etc/redis-exporter/env] mode changed to 700
  9070.  
  9071.  
  9072. - change mode from '' to '0700'
  9073.  
  9074. - change owner from '' to 'gitlab-redis'
  9075.  
  9076. * env_dir[/opt/gitlab/etc/redis-exporter/env] action create
  9077.  
  9078. * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date)
  9079.  
  9080. * 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
  9081.  
  9082.  
  9083. - 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
  9084.  
  9085.  
  9086. - update content in file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR from none to 4f45cf
  9087.  
  9088. - suppressed sensitive resource
  9089.  
  9090.  
  9091. * service[redis-exporter] action nothing (skipped due to action :nothing)
  9092.  
  9093. * runit_service[redis-exporter] action enable
  9094.  
  9095. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  9096.  
  9097. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  9098.  
  9099. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  9100.  
  9101. * 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
  9102.  
  9103.  
  9104. - 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
  9105.  
  9106. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter] group changed to 0
  9107.  
  9108. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter] mode changed to 755
  9109.  
  9110.  
  9111. - change mode from '' to '0755'
  9112.  
  9113. - change owner from '' to 'root'
  9114.  
  9115. - change group from '' to 'root'
  9116.  
  9117. * 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
  9118.  
  9119.  
  9120. - 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
  9121.  
  9122.  
  9123. - update content in file /opt/gitlab/sv/redis-exporter/run from none to a21d3f
  9124.  
  9125. --- /opt/gitlab/sv/redis-exporter/run 2023-06-12 08:53:13.415453743 +0000
  9126.  
  9127. +++ /opt/gitlab/sv/redis-exporter/.chef-run20230612-2522091-gjk8bi 2023-06-12 08:53:13.411453754 +0000
  9128.  
  9129. @@ -1,8 +1,16 @@
  9130.  
  9131. +#!/bin/sh
  9132.  
  9133. +exec 2>&1
  9134.  
  9135. +
  9136.  
  9137. +umask 077
  9138.  
  9139. +exec chpst -P -e /opt/gitlab/etc/redis-exporter/env \
  9140.  
  9141. + -U gitlab-redis:git \
  9142.  
  9143. + -u gitlab-redis:git \
  9144.  
  9145. + /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
  9146.  
  9147. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] group changed to 0
  9148.  
  9149. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] mode changed to 755
  9150.  
  9151.  
  9152. - change mode from '' to '0755'
  9153.  
  9154. - change owner from '' to 'root'
  9155.  
  9156. - change group from '' to 'root'
  9157.  
  9158. * 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
  9159.  
  9160.  
  9161. - 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
  9162.  
  9163. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log] group changed to 0
  9164.  
  9165. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log] mode changed to 755
  9166.  
  9167.  
  9168. - change mode from '' to '0755'
  9169.  
  9170. - change owner from '' to 'root'
  9171.  
  9172. - change group from '' to 'root'
  9173.  
  9174. * 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
  9175.  
  9176.  
  9177. - 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
  9178.  
  9179. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log/main] group changed to 0
  9180.  
  9181. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/log/main] mode changed to 755
  9182.  
  9183.  
  9184. - change mode from '' to '0755'
  9185.  
  9186. - change owner from '' to 'root'
  9187.  
  9188. - change group from '' to 'root'
  9189.  
  9190. * 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
  9191.  
  9192.  
  9193. - 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
  9194.  
  9195.  
  9196. - update content in file /opt/gitlab/sv/redis-exporter/log/config from none to 623c00
  9197.  
  9198. --- /opt/gitlab/sv/redis-exporter/log/config 2023-06-12 08:53:13.431453698 +0000
  9199.  
  9200. +++ /opt/gitlab/sv/redis-exporter/log/.chef-config20230612-2522091-8ng2or 2023-06-12 08:53:13.431453698 +0000
  9201.  
  9202. @@ -1,6 +1,12 @@
  9203.  
  9204. +s209715200
  9205.  
  9206. +n30
  9207.  
  9208. +t86400
  9209.  
  9210. +!gzip
  9211.  
  9212. +
  9213.  
  9214. +[2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] owner changed to 0
  9215.  
  9216. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] group changed to 0
  9217.  
  9218. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/config] mode changed to 644
  9219.  
  9220.  
  9221. - change mode from '' to '0644'
  9222.  
  9223. - change owner from '' to 'root'
  9224.  
  9225. - change group from '' to 'root'
  9226.  
  9227. [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)
  9228.  
  9229. * 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
  9230.  
  9231.  
  9232. - execute the ruby block verify_chown_persisted_on_redis-exporter
  9233.  
  9234. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
  9235.  
  9236. * 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
  9237.  
  9238.  
  9239. - create symlink at /var/log/gitlab/redis-exporter/config to /opt/gitlab/sv/redis-exporter/log/config
  9240.  
  9241. * 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
  9242.  
  9243.  
  9244. - 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
  9245.  
  9246.  
  9247. - update content in file /opt/gitlab/sv/redis-exporter/log/run from none to 2dc23f
  9248.  
  9249. --- /opt/gitlab/sv/redis-exporter/log/run 2023-06-12 08:53:13.447453653 +0000
  9250.  
  9251. +++ /opt/gitlab/sv/redis-exporter/log/.chef-run20230612-2522091-9vd2z0 2023-06-12 08:53:13.447453653 +0000
  9252.  
  9253. @@ -1,5 +1,10 @@
  9254.  
  9255. +#!/bin/sh
  9256.  
  9257. +exec chpst -P \
  9258.  
  9259. + -U root:root \
  9260.  
  9261. + -u root:root \
  9262.  
  9263. + 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
  9264.  
  9265. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] group changed to 0
  9266.  
  9267. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/log/run] mode changed to 755
  9268.  
  9269.  
  9270. - change mode from '' to '0755'
  9271.  
  9272. - change owner from '' to 'root'
  9273.  
  9274. - change group from '' to 'root'
  9275.  
  9276. * 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
  9277.  
  9278.  
  9279. - 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
  9280.  
  9281. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/env] group changed to 0
  9282.  
  9283. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/env] mode changed to 755
  9284.  
  9285.  
  9286. - change mode from '' to '0755'
  9287.  
  9288. - change owner from '' to 'root'
  9289.  
  9290. - change group from '' to 'root'
  9291.  
  9292. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
  9293.  
  9294. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
  9295.  
  9296. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
  9297.  
  9298. * 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
  9299.  
  9300.  
  9301. - 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
  9302.  
  9303. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/control] group changed to 0
  9304.  
  9305. [2023-06-12T08:53:13+00:00] INFO: directory[/opt/gitlab/sv/redis-exporter/control] mode changed to 755
  9306.  
  9307.  
  9308. - change mode from '' to '0755'
  9309.  
  9310. - change owner from '' to 'root'
  9311.  
  9312. - change group from '' to 'root'
  9313.  
  9314. * link[/opt/gitlab/init/redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: link[/opt/gitlab/init/redis-exporter] created
  9315.  
  9316.  
  9317. - create symlink at /opt/gitlab/init/redis-exporter to /opt/gitlab/embedded/bin/sv
  9318.  
  9319. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
  9320.  
  9321. [2023-06-12T08:53:13+00:00] INFO: template[/opt/gitlab/sv/redis-exporter/run] sending run action to ruby_block[restart_service] (delayed)
  9322.  
  9323. * ruby_block[restart_service] action run (skipped due to only_if)
  9324.  
  9325. [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)
  9326.  
  9327. * ruby_block[reload_log_service] action create
  9328.  
  9329. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  9330.  
  9331. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  9332.  
  9333. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  9334.  
  9335. * directory[/opt/gitlab/sv/redis-exporter] action create (up to date)
  9336.  
  9337. * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date)
  9338.  
  9339. * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date)
  9340.  
  9341. * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date)
  9342.  
  9343. * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date)
  9344.  
  9345. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
  9346.  
  9347. * link[/var/log/gitlab/redis-exporter/config] action create (up to date)
  9348.  
  9349. * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date)
  9350.  
  9351. * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date)
  9352.  
  9353. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
  9354.  
  9355. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
  9356.  
  9357. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
  9358.  
  9359. * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date)
  9360.  
  9361. * link[/opt/gitlab/init/redis-exporter] action create (up to date)
  9362.  
  9363. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
  9364.  
  9365. * directory[/opt/gitlab/service] action create (up to date)
  9366.  
  9367. * link[/opt/gitlab/service/redis-exporter] action create[2023-06-12T08:53:13+00:00] INFO: link[/opt/gitlab/service/redis-exporter] created
  9368.  
  9369.  
  9370. - create symlink at /opt/gitlab/service/redis-exporter to /opt/gitlab/sv/redis-exporter
  9371.  
  9372. * 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
  9373.  
  9374.  
  9375. - execute the ruby block wait for redis-exporter service socket
  9376.  
  9377. * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
  9378.  
  9379. [2023-06-12T08:53:18+00:00] INFO: ruby_block[reload_log_service] called
  9380.  
  9381. - execute the ruby block reload_log_service
  9382.  
  9383. [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)
  9384.  
  9385. * ruby_block[restart_log_service] action run
  9386.  
  9387. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  9388.  
  9389. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  9390.  
  9391. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  9392.  
  9393. * directory[/opt/gitlab/sv/redis-exporter] action create (up to date)
  9394.  
  9395. * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date)
  9396.  
  9397. * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date)
  9398.  
  9399. * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date)
  9400.  
  9401. * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date)
  9402.  
  9403. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing)
  9404.  
  9405. * link[/var/log/gitlab/redis-exporter/config] action create (up to date)
  9406.  
  9407. * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date)
  9408.  
  9409. * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date)
  9410.  
  9411. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if)
  9412.  
  9413. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if)
  9414.  
  9415. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if)
  9416.  
  9417. * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date)
  9418.  
  9419. * link[/opt/gitlab/init/redis-exporter] action create (up to date)
  9420.  
  9421. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing)
  9422.  
  9423. * directory[/opt/gitlab/service] action create (up to date)
  9424.  
  9425. * link[/opt/gitlab/service/redis-exporter] action create (up to date)
  9426.  
  9427. * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if)
  9428.  
  9429. * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
  9430.  
  9431. [2023-06-12T08:53:19+00:00] INFO: ruby_block[restart_log_service] called
  9432.  
  9433. - execute the ruby block restart_log_service
  9434.  
  9435. * directory[/opt/gitlab/service] action create (up to date)
  9436.  
  9437. * link[/opt/gitlab/service/redis-exporter] action create (up to date)
  9438.  
  9439. * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if)
  9440.  
  9441. * file[/var/log/gitlab/redis-exporter/current] action touch (skipped due to only_if)
  9442.  
  9443.  
  9444. * execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] action run
  9445.  
  9446. [execute] ok: run: redis-exporter: (pid 2523749) 4s
  9447.  
  9448. [2023-06-12T08:53:20+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] ran successfully
  9449.  
  9450. - execute /opt/gitlab/bin/gitlab-ctl start redis-exporter
  9451.  
  9452. * consul_service[redis-exporter] action delete
  9453.  
  9454. * file[/var/opt/gitlab/consul/config.d/redis-exporter-service.json] action delete (up to date)
  9455.  
  9456. (up to date)
  9457.  
  9458. Recipe: monitoring::prometheus
  9459.  
  9460. * 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
  9461.  
  9462.  
  9463. - create new directory /var/opt/gitlab/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus] owner changed to 994
  9464.  
  9465. [2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus] mode changed to 750
  9466.  
  9467.  
  9468. - change mode from '' to '0750'
  9469.  
  9470. - change owner from '' to 'gitlab-prometheus'
  9471.  
  9472. * 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
  9473.  
  9474.  
  9475. - 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
  9476.  
  9477. [2023-06-12T08:53:20+00:00] INFO: directory[/var/opt/gitlab/prometheus/rules] mode changed to 750
  9478.  
  9479.  
  9480. - change mode from '' to '0750'
  9481.  
  9482. - change owner from '' to 'gitlab-prometheus'
  9483.  
  9484. * 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
  9485.  
  9486.  
  9487. - create new directory /var/log/gitlab/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/var/log/gitlab/prometheus] owner changed to 994
  9488.  
  9489. [2023-06-12T08:53:20+00:00] INFO: directory[/var/log/gitlab/prometheus] mode changed to 700
  9490.  
  9491.  
  9492. - change mode from '' to '0700'
  9493.  
  9494. - change owner from '' to 'gitlab-prometheus'
  9495.  
  9496. * 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
  9497.  
  9498.  
  9499. - 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
  9500.  
  9501. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/etc/prometheus/env] mode changed to 700
  9502.  
  9503.  
  9504. - change mode from '' to '0700'
  9505.  
  9506. - change owner from '' to 'gitlab-prometheus'
  9507.  
  9508. * env_dir[/opt/gitlab/etc/prometheus/env] action create
  9509.  
  9510. * directory[/opt/gitlab/etc/prometheus/env] action create (up to date)
  9511.  
  9512. * 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
  9513.  
  9514.  
  9515. - 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
  9516.  
  9517.  
  9518. - update content in file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR from none to 4f45cf
  9519.  
  9520. - suppressed sensitive resource
  9521.  
  9522.  
  9523. * execute[reload prometheus] action nothing (skipped due to action :nothing)
  9524.  
  9525. * file[Prometheus config] action create[2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] created file /var/opt/gitlab/prometheus/prometheus.yml
  9526.  
  9527.  
  9528. - 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
  9529.  
  9530.  
  9531. - update content in file /var/opt/gitlab/prometheus/prometheus.yml from none to 0fbf9e
  9532.  
  9533. --- /var/opt/gitlab/prometheus/prometheus.yml 2023-06-12 08:53:20.199434685 +0000
  9534.  
  9535. +++ /var/opt/gitlab/prometheus/.chef-prometheus20230612-2522091-a82mwm.yml 2023-06-12 08:53:20.199434685 +0000
  9536.  
  9537. @@ -1,171 +1,342 @@
  9538.  
  9539. +---
  9540.  
  9541. +global:
  9542.  
  9543. + scrape_interval: 15s
  9544.  
  9545. + scrape_timeout: 15s
  9546.  
  9547. + external_labels: {}
  9548.  
  9549. +remote_read: []
  9550.  
  9551. +remote_write: []
  9552.  
  9553. +rule_files:
  9554.  
  9555. +- "/var/opt/gitlab/prometheus/rules/*.rules"
  9556.  
  9557. +scrape_configs:
  9558.  
  9559. +- job_name: prometheus
  9560.  
  9561. + static_configs:
  9562.  
  9563. + - targets:
  9564.  
  9565. + - localhost:9090
  9566.  
  9567. +- job_name: nginx
  9568.  
  9569. + static_configs:
  9570.  
  9571. + - targets:
  9572.  
  9573. + - localhost:8060
  9574.  
  9575. +- job_name: redis
  9576.  
  9577. + static_configs:
  9578.  
  9579. + - targets:
  9580.  
  9581. + - localhost:9121
  9582.  
  9583. +- job_name: postgres
  9584.  
  9585. + static_configs:
  9586.  
  9587. + - targets:
  9588.  
  9589. + - localhost:9187
  9590.  
  9591. +- job_name: node
  9592.  
  9593. + static_configs:
  9594.  
  9595. + - targets:
  9596.  
  9597. + - localhost:9100
  9598.  
  9599. +- job_name: gitlab-workhorse
  9600.  
  9601. + static_configs:
  9602.  
  9603. + - targets:
  9604.  
  9605. + - localhost:9229
  9606.  
  9607. +- job_name: gitlab-rails
  9608.  
  9609. + metrics_path: "/-/metrics"
  9610.  
  9611. + static_configs:
  9612.  
  9613. + - targets:
  9614.  
  9615. + - 127.0.0.1:8080
  9616.  
  9617. + relabel_configs:
  9618.  
  9619. + - source_labels:
  9620.  
  9621. + - __address__
  9622.  
  9623. + regex: 127.0.0.1:(.*)
  9624.  
  9625. + replacement: localhost:$1
  9626.  
  9627. + target_label: instance
  9628.  
  9629. +- job_name: gitlab-sidekiq
  9630.  
  9631. + static_configs:
  9632.  
  9633. + - targets:
  9634.  
  9635. + - 127.0.0.1:8082
  9636.  
  9637. + relabel_configs:
  9638.  
  9639. + - source_labels:
  9640.  
  9641. + - __address__
  9642.  
  9643. + regex: 127.0.0.1:(.*)
  9644.  
  9645. + replacement: localhost:$1
  9646.  
  9647. + target_label: instance
  9648.  
  9649. +- job_name: gitlab_exporter_database
  9650.  
  9651. + metrics_path: "/database"
  9652.  
  9653. + static_configs:
  9654.  
  9655. + - targets:
  9656.  
  9657. + - localhost:9168
  9658.  
  9659. +- job_name: gitlab_exporter_sidekiq
  9660.  
  9661. + metrics_path: "/sidekiq"
  9662.  
  9663. + static_configs:
  9664.  
  9665. + - targets:
  9666.  
  9667. + - localhost:9168
  9668.  
  9669. +- job_name: gitlab_exporter_ruby
  9670.  
  9671. + metrics_path: "/ruby"
  9672.  
  9673. + static_configs:
  9674.  
  9675. + - targets:
  9676.  
  9677. + - localhost:9168
  9678.  
  9679. +- job_name: gitaly
  9680.  
  9681. + static_configs:
  9682.  
  9683. + - targets:
  9684.  
  9685. + - localhost:9236
  9686.  
  9687. +- job_name: kubernetes-cadvisor
  9688.  
  9689. + scheme: https
  9690.  
  9691. + tls_config:
  9692.  
  9693. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9694.  
  9695. + insecure_skip_verify: true
  9696.  
  9697. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9698.  
  9699. + kubernetes_sd_configs:
  9700.  
  9701. + - role: node
  9702.  
  9703. + api_server: https://kubernetes.default.svc:443
  9704.  
  9705. + tls_config:
  9706.  
  9707. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9708.  
  9709. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9710.  
  9711. + relabel_configs:
  9712.  
  9713. + - action: labelmap
  9714.  
  9715. + regex: __meta_kubernetes_node_label_(.+)
  9716.  
  9717. + - target_label: __address__
  9718.  
  9719. + replacement: kubernetes.default.svc:443
  9720.  
  9721. + - source_labels:
  9722.  
  9723. + - __meta_kubernetes_node_name
  9724.  
  9725. + regex: "(.+)"
  9726.  
  9727. + target_label: __metrics_path__
  9728.  
  9729. + replacement: "/api/v1/nodes/${1}/proxy/metrics/cadvisor"
  9730.  
  9731. + metric_relabel_configs:
  9732.  
  9733. + - source_labels:
  9734.  
  9735. + - pod_name
  9736.  
  9737. + target_label: environment
  9738.  
  9739. + regex: "(.+)-.+-.+"
  9740.  
  9741. +- job_name: kubernetes-nodes
  9742.  
  9743. + scheme: https
  9744.  
  9745. + tls_config:
  9746.  
  9747. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9748.  
  9749. + insecure_skip_verify: true
  9750.  
  9751. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9752.  
  9753. + kubernetes_sd_configs:
  9754.  
  9755. + - role: node
  9756.  
  9757. + api_server: https://kubernetes.default.svc:443
  9758.  
  9759. + tls_config:
  9760.  
  9761. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9762.  
  9763. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9764.  
  9765. + relabel_configs:
  9766.  
  9767. + - action: labelmap
  9768.  
  9769. + regex: __meta_kubernetes_node_label_(.+)
  9770.  
  9771. + - target_label: __address__
  9772.  
  9773. + replacement: kubernetes.default.svc:443
  9774.  
  9775. + - source_labels:
  9776.  
  9777. + - __meta_kubernetes_node_name
  9778.  
  9779. + regex: "(.+)"
  9780.  
  9781. + target_label: __metrics_path__
  9782.  
  9783. + replacement: "/api/v1/nodes/${1}/proxy/metrics"
  9784.  
  9785. + metric_relabel_configs:
  9786.  
  9787. + - source_labels:
  9788.  
  9789. + - pod_name
  9790.  
  9791. + target_label: environment
  9792.  
  9793. + regex: "(.+)-.+-.+"
  9794.  
  9795. +- job_name: kubernetes-pods
  9796.  
  9797. + tls_config:
  9798.  
  9799. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9800.  
  9801. + insecure_skip_verify: true
  9802.  
  9803. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9804.  
  9805. + kubernetes_sd_configs:
  9806.  
  9807. + - role: pod
  9808.  
  9809. + api_server: https://kubernetes.default.svc:443
  9810.  
  9811. + tls_config:
  9812.  
  9813. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
  9814.  
  9815. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token"
  9816.  
  9817. + relabel_configs:
  9818.  
  9819. + - source_labels:
  9820.  
  9821. + - __meta_kubernetes_pod_annotation_prometheus_io_scrape
  9822.  
  9823. + action: keep
  9824.  
  9825. + regex: 'true'
  9826.  
  9827. + - source_labels:
  9828.  
  9829. + - __meta_kubernetes_pod_annotation_prometheus_io_path
  9830.  
  9831. + action: replace
  9832.  
  9833. + target_label: __metrics_path__
  9834.  
  9835. + regex: "(.+)"
  9836.  
  9837. + - source_labels:
  9838.  
  9839. + - __address__
  9840.  
  9841. + - __meta_kubernetes_pod_annotation_prometheus_io_port
  9842.  
  9843. + action: replace
  9844.  
  9845. + regex: "([^:]+)(?::[0-9]+)?;([0-9]+)"
  9846.  
  9847. + replacement: "$1:$2"
  9848.  
  9849. + target_label: __address__
  9850.  
  9851. + - action: labelmap
  9852.  
  9853. + regex: __meta_kubernetes_pod_label_(.+)
  9854.  
  9855. + - source_labels:
  9856.  
  9857. + - __meta_kubernetes_namespace
  9858.  
  9859. + action: replace
  9860.  
  9861. + target_label: kubernetes_namespace
  9862.  
  9863. + - source_labels:
  9864.  
  9865. + - __meta_kubernetes_pod_name
  9866.  
  9867. + action: replace
  9868.  
  9869. + target_label: kubernetes_pod_name
  9870.  
  9871. +alerting:
  9872.  
  9873. + alertmanagers:
  9874.  
  9875. + - static_configs:
  9876.  
  9877. + - targets:
  9878.  
  9879. + - localhost:9093[2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] owner changed to 994
  9880.  
  9881. [2023-06-12T08:53:20+00:00] INFO: file[Prometheus config] mode changed to 644
  9882.  
  9883.  
  9884. - change mode from '' to '0644'
  9885.  
  9886. - change owner from '' to 'gitlab-prometheus'
  9887.  
  9888. * service[prometheus] action nothing (skipped due to action :nothing)
  9889.  
  9890. * runit_service[prometheus] action enable
  9891.  
  9892. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  9893.  
  9894. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  9895.  
  9896. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  9897.  
  9898. * 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
  9899.  
  9900.  
  9901. - create new directory /opt/gitlab/sv/prometheus[2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] owner changed to 0
  9902.  
  9903. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] group changed to 0
  9904.  
  9905. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus] mode changed to 755
  9906.  
  9907.  
  9908. - change mode from '' to '0755'
  9909.  
  9910. - change owner from '' to 'root'
  9911.  
  9912. - change group from '' to 'root'
  9913.  
  9914. * 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
  9915.  
  9916.  
  9917. - 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
  9918.  
  9919.  
  9920. - update content in file /opt/gitlab/sv/prometheus/run from none to 60f91b
  9921.  
  9922. --- /opt/gitlab/sv/prometheus/run 2023-06-12 08:53:20.235434583 +0000
  9923.  
  9924. +++ /opt/gitlab/sv/prometheus/.chef-run20230612-2522091-4xsf6q 2023-06-12 08:53:20.235434583 +0000
  9925.  
  9926. @@ -1,8 +1,16 @@
  9927.  
  9928. +#!/bin/sh
  9929.  
  9930. +exec 2>&1
  9931.  
  9932. +
  9933.  
  9934. +umask 077
  9935.  
  9936. +exec chpst -P -e /opt/gitlab/etc/prometheus/env \
  9937.  
  9938. + -U gitlab-prometheus:gitlab-prometheus \
  9939.  
  9940. + -u gitlab-prometheus:gitlab-prometheus \
  9941.  
  9942. + /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
  9943.  
  9944. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] group changed to 0
  9945.  
  9946. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] mode changed to 755
  9947.  
  9948.  
  9949. - change mode from '' to '0755'
  9950.  
  9951. - change owner from '' to 'root'
  9952.  
  9953. - change group from '' to 'root'
  9954.  
  9955. * 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
  9956.  
  9957.  
  9958. - 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
  9959.  
  9960. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log] group changed to 0
  9961.  
  9962. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log] mode changed to 755
  9963.  
  9964.  
  9965. - change mode from '' to '0755'
  9966.  
  9967. - change owner from '' to 'root'
  9968.  
  9969. - change group from '' to 'root'
  9970.  
  9971. * 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
  9972.  
  9973.  
  9974. - 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
  9975.  
  9976. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log/main] group changed to 0
  9977.  
  9978. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/log/main] mode changed to 755
  9979.  
  9980.  
  9981. - change mode from '' to '0755'
  9982.  
  9983. - change owner from '' to 'root'
  9984.  
  9985. - change group from '' to 'root'
  9986.  
  9987. * 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
  9988.  
  9989.  
  9990. - 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
  9991.  
  9992.  
  9993. - update content in file /opt/gitlab/sv/prometheus/log/config from none to 623c00
  9994.  
  9995. --- /opt/gitlab/sv/prometheus/log/config 2023-06-12 08:53:20.255434527 +0000
  9996.  
  9997. +++ /opt/gitlab/sv/prometheus/log/.chef-config20230612-2522091-wrx527 2023-06-12 08:53:20.255434527 +0000
  9998.  
  9999. @@ -1,6 +1,12 @@
  10000.  
  10001. +s209715200
  10002.  
  10003. +n30
  10004.  
  10005. +t86400
  10006.  
  10007. +!gzip
  10008.  
  10009. +
  10010.  
  10011. +[2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] owner changed to 0
  10012.  
  10013. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] group changed to 0
  10014.  
  10015. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/config] mode changed to 644
  10016.  
  10017.  
  10018. - change mode from '' to '0644'
  10019.  
  10020. - change owner from '' to 'root'
  10021.  
  10022. - change group from '' to 'root'
  10023.  
  10024. [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)
  10025.  
  10026. * 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
  10027.  
  10028.  
  10029. - execute the ruby block verify_chown_persisted_on_prometheus
  10030.  
  10031. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
  10032.  
  10033. * link[/var/log/gitlab/prometheus/config] action create[2023-06-12T08:53:20+00:00] INFO: link[/var/log/gitlab/prometheus/config] created
  10034.  
  10035.  
  10036. - create symlink at /var/log/gitlab/prometheus/config to /opt/gitlab/sv/prometheus/log/config
  10037.  
  10038. * 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
  10039.  
  10040.  
  10041. - 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
  10042.  
  10043.  
  10044. - update content in file /opt/gitlab/sv/prometheus/log/run from none to 8afdb7
  10045.  
  10046. --- /opt/gitlab/sv/prometheus/log/run 2023-06-12 08:53:20.279434459 +0000
  10047.  
  10048. +++ /opt/gitlab/sv/prometheus/log/.chef-run20230612-2522091-hai0om 2023-06-12 08:53:20.279434459 +0000
  10049.  
  10050. @@ -1,5 +1,10 @@
  10051.  
  10052. +#!/bin/sh
  10053.  
  10054. +exec chpst -P \
  10055.  
  10056. + -U root:root \
  10057.  
  10058. + -u root:root \
  10059.  
  10060. + 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
  10061.  
  10062. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] group changed to 0
  10063.  
  10064. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/log/run] mode changed to 755
  10065.  
  10066.  
  10067. - change mode from '' to '0755'
  10068.  
  10069. - change owner from '' to 'root'
  10070.  
  10071. - change group from '' to 'root'
  10072.  
  10073. * 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
  10074.  
  10075.  
  10076. - 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
  10077.  
  10078. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/env] group changed to 0
  10079.  
  10080. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/env] mode changed to 755
  10081.  
  10082.  
  10083. - change mode from '' to '0755'
  10084.  
  10085. - change owner from '' to 'root'
  10086.  
  10087. - change group from '' to 'root'
  10088.  
  10089. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
  10090.  
  10091. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
  10092.  
  10093. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
  10094.  
  10095. * 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
  10096.  
  10097.  
  10098. - 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
  10099.  
  10100. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/control] group changed to 0
  10101.  
  10102. [2023-06-12T08:53:20+00:00] INFO: directory[/opt/gitlab/sv/prometheus/control] mode changed to 755
  10103.  
  10104.  
  10105. - change mode from '' to '0755'
  10106.  
  10107. - change owner from '' to 'root'
  10108.  
  10109. - change group from '' to 'root'
  10110.  
  10111. * link[/opt/gitlab/init/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: link[/opt/gitlab/init/prometheus] created
  10112.  
  10113.  
  10114. - create symlink at /opt/gitlab/init/prometheus to /opt/gitlab/embedded/bin/sv
  10115.  
  10116. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
  10117.  
  10118. [2023-06-12T08:53:20+00:00] INFO: template[/opt/gitlab/sv/prometheus/run] sending run action to ruby_block[restart_service] (delayed)
  10119.  
  10120. * ruby_block[restart_service] action run (skipped due to only_if)
  10121.  
  10122. [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)
  10123.  
  10124. * ruby_block[reload_log_service] action create
  10125.  
  10126. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  10127.  
  10128. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  10129.  
  10130. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  10131.  
  10132. * directory[/opt/gitlab/sv/prometheus] action create (up to date)
  10133.  
  10134. * template[/opt/gitlab/sv/prometheus/run] action create (up to date)
  10135.  
  10136. * directory[/opt/gitlab/sv/prometheus/log] action create (up to date)
  10137.  
  10138. * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date)
  10139.  
  10140. * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date)
  10141.  
  10142. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
  10143.  
  10144. * link[/var/log/gitlab/prometheus/config] action create (up to date)
  10145.  
  10146. * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date)
  10147.  
  10148. * directory[/opt/gitlab/sv/prometheus/env] action create (up to date)
  10149.  
  10150. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
  10151.  
  10152. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
  10153.  
  10154. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
  10155.  
  10156. * directory[/opt/gitlab/sv/prometheus/control] action create (up to date)
  10157.  
  10158. * link[/opt/gitlab/init/prometheus] action create (up to date)
  10159.  
  10160. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
  10161.  
  10162. * directory[/opt/gitlab/service] action create (up to date)
  10163.  
  10164. * link[/opt/gitlab/service/prometheus] action create[2023-06-12T08:53:20+00:00] INFO: link[/opt/gitlab/service/prometheus] created
  10165.  
  10166.  
  10167. - create symlink at /opt/gitlab/service/prometheus to /opt/gitlab/sv/prometheus
  10168.  
  10169. * 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
  10170.  
  10171.  
  10172. - execute the ruby block wait for prometheus service socket
  10173.  
  10174. * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
  10175.  
  10176. [2023-06-12T08:53:24+00:00] INFO: ruby_block[reload_log_service] called
  10177.  
  10178. - execute the ruby block reload_log_service
  10179.  
  10180. [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)
  10181.  
  10182. * ruby_block[restart_log_service] action run
  10183.  
  10184. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  10185.  
  10186. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  10187.  
  10188. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  10189.  
  10190. * directory[/opt/gitlab/sv/prometheus] action create (up to date)
  10191.  
  10192. * template[/opt/gitlab/sv/prometheus/run] action create (up to date)
  10193.  
  10194. * directory[/opt/gitlab/sv/prometheus/log] action create (up to date)
  10195.  
  10196. * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date)
  10197.  
  10198. * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date)
  10199.  
  10200. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing)
  10201.  
  10202. * link[/var/log/gitlab/prometheus/config] action create (up to date)
  10203.  
  10204. * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date)
  10205.  
  10206. * directory[/opt/gitlab/sv/prometheus/env] action create (up to date)
  10207.  
  10208. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if)
  10209.  
  10210. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if)
  10211.  
  10212. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if)
  10213.  
  10214. * directory[/opt/gitlab/sv/prometheus/control] action create (up to date)
  10215.  
  10216. * link[/opt/gitlab/init/prometheus] action create (up to date)
  10217.  
  10218. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing)
  10219.  
  10220. * directory[/opt/gitlab/service] action create (up to date)
  10221.  
  10222. * link[/opt/gitlab/service/prometheus] action create (up to date)
  10223.  
  10224. * ruby_block[wait for prometheus service socket] action run (skipped due to not_if)
  10225.  
  10226. * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
  10227.  
  10228. [2023-06-12T08:53:26+00:00] INFO: ruby_block[restart_log_service] called
  10229.  
  10230. - execute the ruby block restart_log_service
  10231.  
  10232. * directory[/opt/gitlab/service] action create (up to date)
  10233.  
  10234. * link[/opt/gitlab/service/prometheus] action create (up to date)
  10235.  
  10236. * ruby_block[wait for prometheus service socket] action run (skipped due to not_if)
  10237.  
  10238. * file[/var/log/gitlab/prometheus/current] action touch (skipped due to only_if)
  10239.  
  10240.  
  10241. * consul_service[prometheus] action delete
  10242.  
  10243. * file[/var/opt/gitlab/consul/config.d/prometheus-service.json] action delete (up to date)
  10244.  
  10245. (up to date)
  10246.  
  10247. * execute[/opt/gitlab/bin/gitlab-ctl start prometheus] action run
  10248.  
  10249. [execute] ok: run: prometheus: (pid 2523816) 4s
  10250.  
  10251. [2023-06-12T08:53:26+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start prometheus] ran successfully
  10252.  
  10253. - execute /opt/gitlab/bin/gitlab-ctl start prometheus
  10254.  
  10255. * 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
  10256.  
  10257.  
  10258. - 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
  10259.  
  10260.  
  10261. - update content in file /var/opt/gitlab/prometheus/rules/gitlab.rules from none to a55956
  10262.  
  10263. --- /var/opt/gitlab/prometheus/rules/gitlab.rules 2023-06-12 08:53:26.755416211 +0000
  10264.  
  10265. +++ /var/opt/gitlab/prometheus/rules/.chef-gitlab20230612-2522091-6099nd.rules 2023-06-12 08:53:26.755416211 +0000
  10266.  
  10267. @@ -1,492 +1,984 @@
  10268.  
  10269. +---
  10270.  
  10271. +groups:
  10272.  
  10273. +- name: GitLab
  10274.  
  10275. + rules:
  10276.  
  10277. + - record: instance:puma_utilization:ratio
  10278.  
  10279. + expr: >
  10280.  
  10281. + sum by (instance) (
  10282.  
  10283. + puma_active_connections
  10284.  
  10285. + ) /
  10286.  
  10287. + sum by (instance) (
  10288.  
  10289. + puma_max_threads
  10290.  
  10291. + )
  10292.  
  10293. + - record: job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
  10294.  
  10295. + expr: >
  10296.  
  10297. + sum by (job, route, method, code) (
  10298.  
  10299. + rate(gitlab_workhorse_http_request_duration_seconds_count[5m])
  10300.  
  10301. + )
  10302.  
  10303. +
  10304.  
  10305. + - alert: ServiceDown
  10306.  
  10307. + expr: avg_over_time(up[5m]) * 100 < 50
  10308.  
  10309. + annotations:
  10310.  
  10311. + description: The service {{ $labels.job }} instance {{ $labels.instance }} is
  10312.  
  10313. + not responding for more than 50% of the time for 5 minutes.
  10314.  
  10315. + summary: The service {{ $labels.job }} is not responding
  10316.  
  10317. + - alert: RedisDown
  10318.  
  10319. + expr: avg_over_time(redis_up[5m]) * 100 < 50
  10320.  
  10321. + annotations:
  10322.  
  10323. + description: The Redis service {{ $labels.job }} instance {{ $labels.instance
  10324.  
  10325. + }} is not responding for more than 50% of the time for 5 minutes.
  10326.  
  10327. + summary: The Redis service {{ $labels.job }} is not responding
  10328.  
  10329. + - alert: PostgresDown
  10330.  
  10331. + expr: avg_over_time(pg_up[5m]) * 100 < 50
  10332.  
  10333. + annotations:
  10334.  
  10335. + description: The Postgres service {{ $labels.job }} instance {{ $labels.instance
  10336.  
  10337. + }} is not responding for more than 50% of the time for 5 minutes.
  10338.  
  10339. + summary: The Postgres service {{ $labels.job }} is not responding
  10340.  
  10341. + - alert: PumaQueueing
  10342.  
  10343. + expr: avg_over_time(puma_queued_connections[30m]) > 1
  10344.  
  10345. + annotations:
  10346.  
  10347. + description: Puma instance {{ $labels.instance }} is queueing requests with
  10348.  
  10349. + an average of {{ $value | printf "%.1f" }} over the last 30 minutes.
  10350.  
  10351. + summary: Puma is queueing requests
  10352.  
  10353. + - alert: HighPumaUtilization
  10354.  
  10355. + expr: instance:puma_utilization:ratio * 100 > 90
  10356.  
  10357. + for: 60m
  10358.  
  10359. + annotations:
  10360.  
  10361. + description: Puma instance {{ $labels.instance }} has more than 90% thread utilization ({{ $value | printf "%.1f" }}%) over the last 60 minutes.
  10362.  
  10363. + summary: Puma is has high utilization
  10364.  
  10365. + - alert: SidekiqJobsQueuing
  10366.  
  10367. + expr: sum by (name) (sidekiq_queue_size) > 0
  10368.  
  10369. + for: 60m
  10370.  
  10371. + annotations:
  10372.  
  10373. + summary: Sidekiq has jobs queued
  10374.  
  10375. + description: Sidekiq queue {{ $labels.name }} has {{ $value }} jobs queued for 60 minutes.
  10376.  
  10377. + - alert: HighgRPCResourceExhaustedRate
  10378.  
  10379. + expr: >
  10380.  
  10381. + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (
  10382.  
  10383. + rate(grpc_server_handled_total{grpc_code="ResourceExhausted"}[5m])
  10384.  
  10385. + ) /
  10386.  
  10387. + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (
  10388.  
  10389. + rate(grpc_server_handled_total[5m])
  10390.  
  10391. + ) * 100 > 1
  10392.  
  10393. + for: 60m
  10394.  
  10395. + annotations:
  10396.  
  10397. + summary: High gRPC ResourceExhausted error rate
  10398.  
  10399. + description: Job {{ $labels.job }} instance {{ $labels.instance }} gRPC is returning more than 1% ({{ $value | printf "%.1f" }}%) ResourceExhausted errors over the last 60 minutes.
  10400.  
  10401. + - alert: PostgresDatabaseDeadlocks
  10402.  
  10403. + expr: increase(pg_stat_database_deadlocks[5m]) > 0
  10404.  
  10405. + annotations:
  10406.  
  10407. + summary: Postgres database has deadlocks
  10408.  
  10409. + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} deadlocks in the last 5 minutes.
  10410.  
  10411. + - alert: PostgresDatabaseDeadlockCancels
  10412.  
  10413. + expr: increase(pg_stat_database_deadlocks[5m]) > 0
  10414.  
  10415. + annotations:
  10416.  
  10417. + summary: Postgres database has queries canceled due to deadlocks
  10418.  
  10419. + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} queries canceled due to deadlocks in the last 5 minutes.
  10420.  
  10421. + # Low-traffic - < 10 QPS (600 RPM)
  10422.  
  10423. + - alert: WorkhorseHighErrorRate
  10424.  
  10425. + expr: >
  10426.  
  10427. + (
  10428.  
  10429. + sum without (job, code) (
  10430.  
  10431. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."}
  10432.  
  10433. + ) /
  10434.  
  10435. + sum without (job,code) (
  10436.  
  10437. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
  10438.  
  10439. + ) < 10
  10440.  
  10441. + ) * 100 > 50
  10442.  
  10443. + annotations:
  10444.  
  10445. + summary: Workhorse has high error rates
  10446.  
  10447. + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 50% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.
  10448.  
  10449. + # High-traffic - >= 10 QPS (600 RPM)
  10450.  
  10451. + - alert: WorkhorseHighErrorRate
  10452.  
  10453. + expr: >
  10454.  
  10455. + (
  10456.  
  10457. + sum without (job, code) (
  10458.  
  10459. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."}
  10460.  
  10461. + ) /
  10462.  
  10463. + sum without (job,code) (
  10464.  
  10465. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m
  10466.  
  10467. + ) > 10
  10468.  
  10469. + ) * 100 > 10
  10470.  
  10471. + annotations:
  10472.  
  10473. + summary: Workhorse has high error rates
  10474.  
  10475. + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 10% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.
  10476.  
  10477. +
  10478.  
  10479. +###
  10480.  
  10481. +# These metrics are top-level GitLab Service Level Indicators (SLIs). They can
  10482.  
  10483. +# be used to monitor the overall health of a GitLab instance.
  10484.  
  10485. +- name: Service Level Indicators
  10486.  
  10487. + interval: 30s
  10488.  
  10489. + rules:
  10490.  
  10491. + # Service availability.
  10492.  
  10493. + - record: gitlab_sli:job:availability:ratio
  10494.  
  10495. + expr: >
  10496.  
  10497. + avg by (job) (
  10498.  
  10499. + avg_over_time(up[30s])
  10500.  
  10501. + )
  10502.  
  10503. + # Rails worker/thread capacity.
  10504.  
  10505. + - record: gitlab_sli:rails_active_connections:avg30s
  10506.  
  10507. + expr: >
  10508.  
  10509. + sum(avg_over_time(puma_active_connections[30s]))
  10510.  
  10511. + - record: gitlab_sli:rails_queued_connections:avg30s
  10512.  
  10513. + expr: >
  10514.  
  10515. + sum(avg_over_time(puma_queued_connections[30s]))
  10516.  
  10517. + - record: gitlab_sli:rails_active_connections:max30s
  10518.  
  10519. + expr: >
  10520.  
  10521. + sum(max_over_time(puma_active_connections[30s]))
  10522.  
  10523. + - record: gitlab_sli:rails_queued_connections:max30s
  10524.  
  10525. + expr: >
  10526.  
  10527. + sum(max_over_time(puma_queued_connections[30s]))
  10528.  
  10529. + - record: gitlab_sli:rails_workers:avg30s
  10530.  
  10531. + expr: >
  10532.  
  10533. + count(avg_over_time(ruby_memory_bytes[30s])) or
  10534.  
  10535. + sum(avg_over_time(puma_max_threads[30s]))
  10536.  
  10537. + # Redis CPU use.
  10538.  
  10539. + - record: gitlab_sli:redis_cpu_seconds:rate1m
  10540.  
  10541. + expr: >
  10542.  
  10543. + (sum(rate(redis_used_cpu_sys[1m])) + sum(rate(redis_used_cpu_user[1m]))) or
  10544.  
  10545. + (sum(rate(redis_cpu_sys_seconds_total[1m])) + sum(rate(redis_cpu_user_seconds_total[1m])))
  10546.  
  10547. + # Workhorse traffic.
  10548.  
  10549. + - record: gitlab_sli:code_method_route:workhorse_http_request_count:rate1m
  10550.  
  10551. + expr: >
  10552.  
  10553. + sum by (code,method,route) (
  10554.  
  10555. + rate(gitlab_workhorse_http_request_duration_seconds_count[1m])
  10556.  
  10557. + )
  10558.  
  10559. + - record: gitlab_sli:code_method_route:workhorse_http_request_duration_seconds:rate1m
  10560.  
  10561. + expr: >
  10562.  
  10563. + sum by (code,method,route) (
  10564.  
  10565. + rate(gitlab_workhorse_http_request_duration_seconds_sum[1m])
  10566.  
  10567. + )
  10568.  
  10569. +# SLI - Apdex
  10570.  
  10571. +- name: Service Level Indicators - Apdex
  10572.  
  10573. + interval: 1m
  10574.  
  10575. + rules:
  10576.  
  10577. + # Gitaly goserver
  10578.  
  10579. + # Satisfied -> 0.5 seconds
  10580.  
  10581. + # Acceptable -> 1 seconds
  10582.  
  10583. + - record: gitlab_sli:gitlab_component_apdex:ratio
  10584.  
  10585. + labels:
  10586.  
  10587. + job: gitaly
  10588.  
  10589. + expr: >
  10590.  
  10591. + (
  10592.  
  10593. + 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]))
  10594.  
  10595. + +
  10596.  
  10597. + 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]))
  10598.  
  10599. + )
  10600.  
  10601. + /
  10602.  
  10603. + 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]))
  10604.  
  10605. + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752
  10606.  
  10607. + # - record: gitlab_sli:gitlab_component_apdex:ratio
  10608.  
  10609. + # labels:
  10610.  
  10611. + # job: gitlab-sidekiq
  10612.  
  10613. + # expr: >
  10614.  
  10615. + # (
  10616.  
  10617. + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="25"}[1m]))
  10618.  
  10619. + # +
  10620.  
  10621. + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="50"}[1m]))
  10622.  
  10623. + # )
  10624.  
  10625. + # / 2
  10626.  
  10627. + # /
  10628.  
  10629. + # sum(rate(sidekiq_jobs_completion_time_seconds_count[1m]))
  10630.  
  10631. +
  10632.  
  10633. + # Workhorse
  10634.  
  10635. + # Satisfied -> 1 seconds
  10636.  
  10637. + # Acceptable -> 10 seconds
  10638.  
  10639. + - record: gitlab_sli:gitlab_component_apdex:ratio
  10640.  
  10641. + labels:
  10642.  
  10643. + job: gitlab-workhorse
  10644.  
  10645. + expr: >
  10646.  
  10647. + (
  10648.  
  10649. + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="1",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
  10650.  
  10651. + +
  10652.  
  10653. + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="10",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
  10654.  
  10655. + )
  10656.  
  10657. + /
  10658.  
  10659. + 2 / sum(rate(gitlab_workhorse_http_request_duration_seconds_count{route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m]))
  10660.  
  10661. +
  10662.  
  10663. +# SLI - Errors
  10664.  
  10665. +- name: Service Level Indicators - Errors
  10666.  
  10667. + interval: 1m
  10668.  
  10669. + rules:
  10670.  
  10671. + # PostgreSQL
  10672.  
  10673. + - record: gitlab_sli:gitlab_component_ops:rate
  10674.  
  10675. + labels:
  10676.  
  10677. + job: postgres
  10678.  
  10679. + expr: >
  10680.  
  10681. + sum(rate(pg_stat_database_xact_commit[1m])) +
  10682.  
  10683. + sum(rate(pg_stat_database_xact_rollback[1m]))
  10684.  
  10685. + - record: gitlab_sli:gitlab_component_errors:rate
  10686.  
  10687. + labels:
  10688.  
  10689. + job: postgres
  10690.  
  10691. + expr: sum(rate(pg_stat_database_xact_rollback[1m]))
  10692.  
  10693. + # Rails (Puma)
  10694.  
  10695. + - record: gitlab_sli:gitlab_component_ops:rate
  10696.  
  10697. + labels:
  10698.  
  10699. + job: gitlab-rails
  10700.  
  10701. + expr: >
  10702.  
  10703. + sum(
  10704.  
  10705. + rate(http_request_duration_seconds_count{job="gitlab-rails"}[1m])
  10706.  
  10707. + )
  10708.  
  10709. + - record: gitlab_sli:gitlab_component_errors:rate
  10710.  
  10711. + labels:
  10712.  
  10713. + job: gitlab-rails
  10714.  
  10715. + expr: >
  10716.  
  10717. + sum(
  10718.  
  10719. + rate(http_request_duration_seconds_count{job="gitlab-rails",status=~"5.."}[1m])
  10720.  
  10721. + )
  10722.  
  10723. + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752
  10724.  
  10725. + # - record: gitlab_sli:gitlab_component_ops:rate
  10726.  
  10727. + # labels:
  10728.  
  10729. + # job: gitlab-sidekiq
  10730.  
  10731. + # expr: >
  10732.  
  10733. + # sum (
  10734.  
  10735. + # rate(sidekiq_jobs_started_total{job="gitlab-sidekiq"}[1m])
  10736.  
  10737. + # )
  10738.  
  10739. + # - record: gitlab_sli:gitlab_component_errors:rate
  10740.  
  10741. + # labels:
  10742.  
  10743. + # job: gitlab-sidekiq
  10744.  
  10745. + # expr: >
  10746.  
  10747. + # sum (
  10748.  
  10749. + # rate(sidekiq_jobs_failed_total{job="gitlab-sidekiq"}[1m])
  10750.  
  10751. + # )
  10752.  
  10753. + # Workhorse
  10754.  
  10755. + - record: gitlab_sli:gitlab_component_ops:rate
  10756.  
  10757. + labels:
  10758.  
  10759. + job: gitlab-workhorse
  10760.  
  10761. + expr: >
  10762.  
  10763. + sum(
  10764.  
  10765. + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse"}[1m])
  10766.  
  10767. + )
  10768.  
  10769. + - record: gitlab_sli:gitlab_component_errors:rate
  10770.  
  10771. + labels:
  10772.  
  10773. + job: gitlab-workhorse
  10774.  
  10775. + expr: >
  10776.  
  10777. + sum(
  10778.  
  10779. + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse",code=~"5.."}[1m])
  10780.  
  10781. + )
  10782.  
  10783. + ###
  10784.  
  10785. + # Calculate service error ratios
  10786.  
  10787. + - record: gitlab_sli:gitlab_component_errors:ratio
  10788.  
  10789. + expr: >
  10790.  
  10791. + gitlab_sli:gitlab_component_errors:rate /
  10792.  
  10793. + gitlab_sli:gitlab_component_ops:rate
  10794.  
  10795. +
  10796.  
  10797. +- name: GitLab Saturation Ratios
  10798.  
  10799. + interval: 1m
  10800.  
  10801. + rules:
  10802.  
  10803. + # type: *, component: cpu
  10804.  
  10805. + # this measures average CPU across all the cores for the entire fleet for the given service
  10806.  
  10807. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10808.  
  10809. + labels:
  10810.  
  10811. + component: 'cpu'
  10812.  
  10813. + expr: >
  10814.  
  10815. + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))
  10816.  
  10817. +
  10818.  
  10819. + # type: *, component: single_node_cpu
  10820.  
  10821. + # this measures the maximum cpu availability across all the codes on a single server
  10822.  
  10823. + # this can be helpful if CPU is not even distributed across the fleet.
  10824.  
  10825. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10826.  
  10827. + labels:
  10828.  
  10829. + component: 'single_node_cpu'
  10830.  
  10831. + expr: >
  10832.  
  10833. + max(
  10834.  
  10835. + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))
  10836.  
  10837. + )
  10838.  
  10839. +
  10840.  
  10841. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10842.  
  10843. + labels:
  10844.  
  10845. + component: 'disk_space'
  10846.  
  10847. + expr: >
  10848.  
  10849. + max(
  10850.  
  10851. + (
  10852.  
  10853. + (
  10854.  
  10855. + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"}
  10856.  
  10857. + -
  10858.  
  10859. + node_filesystem_free_bytes{fstype=~"ext.|xfs|nfs.?"}
  10860.  
  10861. + )
  10862.  
  10863. + /
  10864.  
  10865. + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"}
  10866.  
  10867. + )
  10868.  
  10869. + )
  10870.  
  10871. +
  10872.  
  10873. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10874.  
  10875. + labels:
  10876.  
  10877. + component: 'memory'
  10878.  
  10879. + expr: max (instance:node_memory_utilization:ratio)
  10880.  
  10881. +
  10882.  
  10883. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10884.  
  10885. + labels:
  10886.  
  10887. + component: 'single_threaded_cpu'
  10888.  
  10889. + expr: >
  10890.  
  10891. + clamp_max(
  10892.  
  10893. + max (
  10894.  
  10895. + (rate(redis_cpu_user_seconds_total[1m]) + rate(redis_cpu_sys_seconds_total[1m])) or
  10896.  
  10897. + (rate(redis_used_cpu_user[1m]) + rate(redis_used_cpu_sys[1m]))
  10898.  
  10899. + ),
  10900.  
  10901. + 1
  10902.  
  10903. + )
  10904.  
  10905. +
  10906.  
  10907. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10908.  
  10909. + labels:
  10910.  
  10911. + component: 'connection_pool'
  10912.  
  10913. + expr: >
  10914.  
  10915. + clamp_max(
  10916.  
  10917. + max(
  10918.  
  10919. + max_over_time(pgbouncer_pools_server_active_connections{user="gitlab"}[1m]) /
  10920.  
  10921. + (
  10922.  
  10923. + (
  10924.  
  10925. + pgbouncer_pools_server_idle_connections{user="gitlab"} +
  10926.  
  10927. + pgbouncer_pools_server_active_connections{user="gitlab"} +
  10928.  
  10929. + pgbouncer_pools_server_testing_connections{user="gitlab"} +
  10930.  
  10931. + pgbouncer_pools_server_used_connections{user="gitlab"} +
  10932.  
  10933. + pgbouncer_pools_server_login_connections{user="gitlab"}
  10934.  
  10935. + )
  10936.  
  10937. + > 0
  10938.  
  10939. + )
  10940.  
  10941. + ), 1)
  10942.  
  10943. +
  10944.  
  10945. + # type: postgres-delayed, postgres-archive, patroni
  10946.  
  10947. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10948.  
  10949. + labels:
  10950.  
  10951. + component: 'active_db_connections'
  10952.  
  10953. + expr: >
  10954.  
  10955. + clamp_max(
  10956.  
  10957. + max(
  10958.  
  10959. + sum without(state) (pg_stat_activity_count{datname="gitlabhq_production", state!="idle"})
  10960.  
  10961. + /
  10962.  
  10963. + (sum without(state) (pg_stat_activity_count{datname="gitlabhq_production"}) > 0)
  10964.  
  10965. + ), 1)
  10966.  
  10967. +
  10968.  
  10969. + # type: redis, redis-cache, component: redis_clients
  10970.  
  10971. + # Records the saturation of redis client connections against a redis fleet
  10972.  
  10973. + - record: gitlab_sli:gitlab_component_saturation:ratio
  10974.  
  10975. + labels:
  10976.  
  10977. + component: 'redis_clients'
  10978.  
  10979. + expr: >
  10980.  
  10981. + max(
  10982.  
  10983. + max_over_time(redis_connected_clients[1m])
  10984.  
  10985. + /
  10986.  
  10987. + redis_config_maxclients
  10988.  
  10989. + )
  10990.  
  10991. +
  10992.  
  10993. + # Aggregate over all components within a service using max
  10994.  
  10995. + - record: gitlab_sli:gitlab_service_saturation:ratio
  10996.  
  10997. + expr: >
  10998.  
  10999. + max by (component) (gitlab_sli:gitlab_component_saturation:ratio)
  11000.  
  11001. +
  11002.  
  11003. + # Calculate the "sapdex" - the saturation apdex for the metric. 1 < less then soft limit, 0.5 < hard limit, else 0
  11004.  
  11005. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex
  11006.  
  11007. + expr: >
  11008.  
  11009. + clamp_min(gitlab_sli:gitlab_component_saturation:ratio <= on(component) group_left slo:max:soft:gitlab_sli:gitlab_component_saturation:ratio, 1)
  11010.  
  11011. + or
  11012.  
  11013. + 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)
  11014.  
  11015. + or
  11016.  
  11017. + clamp_max(gitlab_sli:gitlab_component_saturation:ratio > on(component) group_left slo:max:hard:gitlab_sli:gitlab_component_saturation:ratio, 0)
  11018.  
  11019. +
  11020.  
  11021. + # Open file descriptors
  11022.  
  11023. + - record: gitlab_sli:gitlab_component_saturation:ratio
  11024.  
  11025. + labels:
  11026.  
  11027. + component: 'open_fds'
  11028.  
  11029. + expr: >
  11030.  
  11031. + max(
  11032.  
  11033. + max_over_time(process_open_fds[1m])
  11034.  
  11035. + /
  11036.  
  11037. + max_over_time(process_max_fds[1m])
  11038.  
  11039. + )
  11040.  
  11041. + - record: gitlab_sli:gitlab_component_saturation:ratio
  11042.  
  11043. + labels:
  11044.  
  11045. + component: 'open_ruby_fds'
  11046.  
  11047. + expr: >
  11048.  
  11049. + max(
  11050.  
  11051. + max_over_time(ruby_file_descriptors[1m])
  11052.  
  11053. + /
  11054.  
  11055. + max_over_time(ruby_process_max_fds[1m])
  11056.  
  11057. + )
  11058.  
  11059. +
  11060.  
  11061. +# Unlike other service metrics, we record the stats for each component independently
  11062.  
  11063. +- name: GitLab Saturation Ratios Stats
  11064.  
  11065. + interval: 5m
  11066.  
  11067. + rules:
  11068.  
  11069. + # Average values for each service, over a week
  11070.  
  11071. + - record: gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w
  11072.  
  11073. + expr: >
  11074.  
  11075. + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio[1w])
  11076.  
  11077. +
  11078.  
  11079. + # Using linear week-on-week growth, what prediction to we have for 2w from now?
  11080.  
  11081. + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_2w
  11082.  
  11083. + expr: >
  11084.  
  11085. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 14)
  11086.  
  11087. +
  11088.  
  11089. + # Using linear week-on-week growth, what prediction to we have for 30d from now?
  11090.  
  11091. + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_30d
  11092.  
  11093. + expr: >
  11094.  
  11095. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 30)
  11096.  
  11097. +
  11098.  
  11099. + # Sapdex, average for week
  11100.  
  11101. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w
  11102.  
  11103. + expr: >
  11104.  
  11105. + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio:sapdex[1w])
  11106.  
  11107. +
  11108.  
  11109. + # Sapdex long term trend forecasting
  11110.  
  11111. + # Using linear week-on-week growth, what prediction to we have for 30d from now?
  11112.  
  11113. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w:predict_linear_30d
  11114.  
  11115. + expr: >
  11116.  
  11117. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w[1w], 86400 * 30)
  11118.  
  11119. +
  11120.  
  11121. +###
  11122.  
  11123. +# Metrics used by Usage Ping reports. These are primarily for self-managed installations.
  11124.  
  11125. +# See https://docs.gitlab.com/ee/development/telemetry/usage_ping.html#prometheus-queries
  11126.  
  11127. +#
  11128.  
  11129. +- name: GitLab Usage Ping
  11130.  
  11131. + interval: 5m
  11132.  
  11133. + rules:
  11134.  
  11135. + ###
  11136.  
  11137. + # Application wide metrics
  11138.  
  11139. + #
  11140.  
  11141. + - record: gitlab_usage_ping:ops:rate5m
  11142.  
  11143. + labels:
  11144.  
  11145. + service: workhorse
  11146.  
  11147. + component: http_requests
  11148.  
  11149. + expr: sum (rate (gitlab_workhorse_http_requests_total[5m]))
  11150.  
  11151. +
  11152.  
  11153. + # Database Primary Performance Indicator: Query apdex
  11154.  
  11155. + # Target -> 100ms
  11156.  
  11157. + # Tolerable -> 250ms
  11158.  
  11159. + - record: gitlab_usage_ping:sql_duration_apdex:ratio_rate5m
  11160.  
  11161. + expr: >
  11162.  
  11163. + (
  11164.  
  11165. + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.1"}[5m]))
  11166.  
  11167. + +
  11168.  
  11169. + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.25"}[5m]))
  11170.  
  11171. + )
  11172.  
  11173. + /
  11174.  
  11175. + 2
  11176.  
  11177. + /
  11178.  
  11179. + (
  11180.  
  11181. + sum(rate(gitlab_sql_duration_seconds_count[5m])) > 0
  11182.  
  11183. + )
  11184.  
  11185. +
  11186.  
  11187. + - record: gitlab_usage_ping:gitaly_apdex:ratio_avg_over_time_5m
  11188.  
  11189. + expr: avg_over_time(gitlab_sli:gitlab_component_apdex:ratio{job="gitaly"}[5m])
  11190.  
  11191. +
  11192.  
  11193. + ###
  11194.  
  11195. + # Node level metrics
  11196.  
  11197. + #
  11198.  
  11199. + - record: gitlab_usage_ping:node_cpus:count
  11200.  
  11201. + expr: max (instance:node_cpus:count) by (instance)
  11202.  
  11203. + - record: gitlab_usage_ping:node_memory_total_bytes:max
  11204.  
  11205. + expr: max (node_memory_MemTotal_bytes) by (instance)
  11206.  
  11207. + - record: gitlab_usage_ping:node_cpu_utilization:avg
  11208.  
  11209. + expr: avg (instance:node_cpu_utilization:ratio) by (instance)
  11210.  
  11211. + - record: gitlab_usage_ping:node_memory_utilization:avg
  11212.  
  11213. + expr: avg (instance:node_memory_utilization:ratio) by (instance)
  11214.  
  11215. +
  11216.  
  11217. + ###
  11218.  
  11219. + # Service level metrics
  11220.  
  11221. + #
  11222.  
  11223. + - record: gitlab_usage_ping:node_service_process_resident_memory_bytes:avg
  11224.  
  11225. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_resident_memory_bytes", job != "gitlab_exporter_process"})
  11226.  
  11227. + - record: gitlab_usage_ping:node_service_process_unique_memory_bytes:avg
  11228.  
  11229. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_unique_memory_bytes", job != "gitlab_exporter_process"})
  11230.  
  11231. + - record: gitlab_usage_ping:node_service_process_proportional_memory_bytes:avg
  11232.  
  11233. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_proportional_memory_bytes", job != "gitlab_exporter_process"})
  11234.  
  11235. + - record: gitlab_usage_ping:node_service_process:count
  11236.  
  11237. + expr: >
  11238.  
  11239. + count by (instance, job) (
  11240.  
  11241. + {__name__ =~ "(ruby_){0,1}process_start_time_seconds", job != "gitlab_exporter_process"}
  11242.  
  11243. + )
  11244.  
  11245. + - record: gitlab_usage_ping:node_service_app_server_workers:sum
  11246.  
  11247. + labels:
  11248.  
  11249. + server: puma
  11250.  
  11251. + 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
  11252.  
  11253. [2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/gitlab.rules] mode changed to 644
  11254.  
  11255.  
  11256. - change mode from '' to '0644'
  11257.  
  11258. - change owner from '' to 'gitlab-prometheus'
  11259.  
  11260. [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
  11261.  
  11262. * 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
  11263.  
  11264.  
  11265. - 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
  11266.  
  11267.  
  11268. - update content in file /var/opt/gitlab/prometheus/rules/node.rules from none to bea78d
  11269.  
  11270. --- /var/opt/gitlab/prometheus/rules/node.rules 2023-06-12 08:53:26.779416143 +0000
  11271.  
  11272. +++ /var/opt/gitlab/prometheus/rules/.chef-node20230612-2522091-psouut.rules 2023-06-12 08:53:26.779416143 +0000
  11273.  
  11274. @@ -1,42 +1,84 @@
  11275.  
  11276. +groups:
  11277.  
  11278. +- name: Node
  11279.  
  11280. + rules:
  11281.  
  11282. + - record: instance:node_cpus:count
  11283.  
  11284. + expr: count without(cpu, mode) (node_cpu{mode="idle"})
  11285.  
  11286. + - record: instance:node_cpus:count
  11287.  
  11288. + expr: count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})
  11289.  
  11290. + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m
  11291.  
  11292. + expr: sum without(mode) (rate(node_cpu{mode!="idle"}[5m]))
  11293.  
  11294. + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m
  11295.  
  11296. + expr: sum without(mode) (rate(node_cpu_seconds_total{mode!="idle"}[5m]))
  11297.  
  11298. + - record: instance_mode:node_cpu_seconds:rate5m
  11299.  
  11300. + expr: sum without(cpu) (rate(node_cpu[5m]))
  11301.  
  11302. + - record: instance_mode:node_cpu_seconds:rate5m
  11303.  
  11304. + expr: sum without(cpu) (rate(node_cpu_seconds_total[5m]))
  11305.  
  11306. + - record: instance:node_cpu_utilization:ratio
  11307.  
  11308. + expr: sum without(mode) (instance_mode:node_cpu_seconds:rate5m{mode!="idle"})
  11309.  
  11310. + / instance:node_cpus:count
  11311.  
  11312. + - record: instance:node_memory_utilization:ratio
  11313.  
  11314. + expr: >
  11315.  
  11316. + 1 - (
  11317.  
  11318. + node_memory_MemAvailable_bytes or
  11319.  
  11320. + (node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes)
  11321.  
  11322. + ) / node_memory_MemTotal_bytes
  11323.  
  11324. + - record: instance:node_filesystem_avail:ratio
  11325.  
  11326. + expr: node_filesystem_avail_bytes / (node_filesystem_size_bytes > 0)
  11327.  
  11328. + - alert: FilesystemAlmostFull
  11329.  
  11330. + expr: instance:node_filesystem_avail:ratio * 100 < 5 and node_filesystem_avail_bytes < 10 * 1024 * 1024 * 1024
  11331.  
  11332. + for: 10m
  11333.  
  11334. + annotations:
  11335.  
  11336. + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on
  11337.  
  11338. + {{ $labels.instance }} has {{ $value | printf "%.2f" }}% space available.
  11339.  
  11340. + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} is almost
  11341.  
  11342. + full
  11343.  
  11344. + - alert: FilesystemFullIn1Day
  11345.  
  11346. + expr: predict_linear(node_filesystem_avail_bytes[6h], 24 * 3600) < 0
  11347.  
  11348. + for: 30m
  11349.  
  11350. + annotations:
  11351.  
  11352. + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on
  11353.  
  11354. + {{ $labels.instance }} will be full in the next 24 hours.
  11355.  
  11356. + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} will be
  11357.  
  11358. + full within 24 hours[2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] owner changed to 994
  11359.  
  11360. [2023-06-12T08:53:26+00:00] INFO: template[/var/opt/gitlab/prometheus/rules/node.rules] mode changed to 644
  11361.  
  11362.  
  11363. - change mode from '' to '0644'
  11364.  
  11365. - change owner from '' to 'gitlab-prometheus'
  11366.  
  11367. [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
  11368.  
  11369. Recipe: monitoring::alertmanager
  11370.  
  11371. * 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
  11372.  
  11373.  
  11374. - create new directory /var/opt/gitlab/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/var/opt/gitlab/alertmanager] owner changed to 994
  11375.  
  11376. [2023-06-12T08:53:26+00:00] INFO: directory[/var/opt/gitlab/alertmanager] mode changed to 750
  11377.  
  11378.  
  11379. - change mode from '' to '0750'
  11380.  
  11381. - change owner from '' to 'gitlab-prometheus'
  11382.  
  11383. * 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
  11384.  
  11385.  
  11386. - create new directory /var/log/gitlab/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/var/log/gitlab/alertmanager] owner changed to 994
  11387.  
  11388. [2023-06-12T08:53:26+00:00] INFO: directory[/var/log/gitlab/alertmanager] mode changed to 700
  11389.  
  11390.  
  11391. - change mode from '' to '0700'
  11392.  
  11393. - change owner from '' to 'gitlab-prometheus'
  11394.  
  11395. * 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
  11396.  
  11397.  
  11398. - 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
  11399.  
  11400. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/etc/alertmanager/env] mode changed to 700
  11401.  
  11402.  
  11403. - change mode from '' to '0700'
  11404.  
  11405. - change owner from '' to 'gitlab-prometheus'
  11406.  
  11407. * env_dir[/opt/gitlab/etc/alertmanager/env] action create
  11408.  
  11409. * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date)
  11410.  
  11411. * 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
  11412.  
  11413.  
  11414. - 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
  11415.  
  11416.  
  11417. - update content in file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR from none to 4f45cf
  11418.  
  11419. - suppressed sensitive resource
  11420.  
  11421.  
  11422. * file[Alertmanager config] action create[2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] created file /var/opt/gitlab/alertmanager/alertmanager.yml
  11423.  
  11424.  
  11425. - 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
  11426.  
  11427.  
  11428. - update content in file /var/opt/gitlab/alertmanager/alertmanager.yml from none to 21b7be
  11429.  
  11430. --- /var/opt/gitlab/alertmanager/alertmanager.yml 2023-06-12 08:53:26.819416030 +0000
  11431.  
  11432. +++ /var/opt/gitlab/alertmanager/.chef-alertmanager20230612-2522091-a35mr3.yml 2023-06-12 08:53:26.819416030 +0000
  11433.  
  11434. @@ -1,9 +1,18 @@
  11435.  
  11436. +---
  11437.  
  11438. +global: {}
  11439.  
  11440. +templates: []
  11441.  
  11442. +route:
  11443.  
  11444. + receiver: default-receiver
  11445.  
  11446. + routes: []
  11447.  
  11448. +receivers:
  11449.  
  11450. +- name: default-receiver
  11451.  
  11452. +inhibit_rules: [][2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] owner changed to 994
  11453.  
  11454. [2023-06-12T08:53:26+00:00] INFO: file[Alertmanager config] mode changed to 644
  11455.  
  11456.  
  11457. - change mode from '' to '0644'
  11458.  
  11459. - change owner from '' to 'gitlab-prometheus'
  11460.  
  11461. [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
  11462.  
  11463. * service[alertmanager] action nothing (skipped due to action :nothing)
  11464.  
  11465. * runit_service[alertmanager] action enable
  11466.  
  11467. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  11468.  
  11469. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  11470.  
  11471. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  11472.  
  11473. * 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
  11474.  
  11475.  
  11476. - create new directory /opt/gitlab/sv/alertmanager[2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] owner changed to 0
  11477.  
  11478. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] group changed to 0
  11479.  
  11480. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager] mode changed to 755
  11481.  
  11482.  
  11483. - change mode from '' to '0755'
  11484.  
  11485. - change owner from '' to 'root'
  11486.  
  11487. - change group from '' to 'root'
  11488.  
  11489. * 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
  11490.  
  11491.  
  11492. - 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
  11493.  
  11494.  
  11495. - update content in file /opt/gitlab/sv/alertmanager/run from none to 36da8b
  11496.  
  11497. --- /opt/gitlab/sv/alertmanager/run 2023-06-12 08:53:26.839415975 +0000
  11498.  
  11499. +++ /opt/gitlab/sv/alertmanager/.chef-run20230612-2522091-7vcrs5 2023-06-12 08:53:26.839415975 +0000
  11500.  
  11501. @@ -1,8 +1,16 @@
  11502.  
  11503. +#!/bin/sh
  11504.  
  11505. +exec 2>&1
  11506.  
  11507. +
  11508.  
  11509. +umask 077
  11510.  
  11511. +exec chpst -P -e /opt/gitlab/etc/alertmanager/env \
  11512.  
  11513. + -U gitlab-prometheus:gitlab-prometheus \
  11514.  
  11515. + -u gitlab-prometheus:gitlab-prometheus \
  11516.  
  11517. + /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
  11518.  
  11519. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] group changed to 0
  11520.  
  11521. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] mode changed to 755
  11522.  
  11523.  
  11524. - change mode from '' to '0755'
  11525.  
  11526. - change owner from '' to 'root'
  11527.  
  11528. - change group from '' to 'root'
  11529.  
  11530. * 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
  11531.  
  11532.  
  11533. - 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
  11534.  
  11535. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log] group changed to 0
  11536.  
  11537. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log] mode changed to 755
  11538.  
  11539.  
  11540. - change mode from '' to '0755'
  11541.  
  11542. - change owner from '' to 'root'
  11543.  
  11544. - change group from '' to 'root'
  11545.  
  11546. * 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
  11547.  
  11548.  
  11549. - 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
  11550.  
  11551. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log/main] group changed to 0
  11552.  
  11553. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/log/main] mode changed to 755
  11554.  
  11555.  
  11556. - change mode from '' to '0755'
  11557.  
  11558. - change owner from '' to 'root'
  11559.  
  11560. - change group from '' to 'root'
  11561.  
  11562. * 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
  11563.  
  11564.  
  11565. - 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
  11566.  
  11567.  
  11568. - update content in file /opt/gitlab/sv/alertmanager/log/config from none to 623c00
  11569.  
  11570. --- /opt/gitlab/sv/alertmanager/log/config 2023-06-12 08:53:26.859415918 +0000
  11571.  
  11572. +++ /opt/gitlab/sv/alertmanager/log/.chef-config20230612-2522091-f378o2 2023-06-12 08:53:26.859415918 +0000
  11573.  
  11574. @@ -1,6 +1,12 @@
  11575.  
  11576. +s209715200
  11577.  
  11578. +n30
  11579.  
  11580. +t86400
  11581.  
  11582. +!gzip
  11583.  
  11584. +
  11585.  
  11586. +[2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] owner changed to 0
  11587.  
  11588. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] group changed to 0
  11589.  
  11590. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/config] mode changed to 644
  11591.  
  11592.  
  11593. - change mode from '' to '0644'
  11594.  
  11595. - change owner from '' to 'root'
  11596.  
  11597. - change group from '' to 'root'
  11598.  
  11599. [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)
  11600.  
  11601. * 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
  11602.  
  11603.  
  11604. - execute the ruby block verify_chown_persisted_on_alertmanager
  11605.  
  11606. * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
  11607.  
  11608. * link[/var/log/gitlab/alertmanager/config] action create[2023-06-12T08:53:26+00:00] INFO: link[/var/log/gitlab/alertmanager/config] created
  11609.  
  11610.  
  11611. - create symlink at /var/log/gitlab/alertmanager/config to /opt/gitlab/sv/alertmanager/log/config
  11612.  
  11613. * 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
  11614.  
  11615.  
  11616. - 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
  11617.  
  11618.  
  11619. - update content in file /opt/gitlab/sv/alertmanager/log/run from none to 9a4626
  11620.  
  11621. --- /opt/gitlab/sv/alertmanager/log/run 2023-06-12 08:53:26.871415884 +0000
  11622.  
  11623. +++ /opt/gitlab/sv/alertmanager/log/.chef-run20230612-2522091-k1zlvz 2023-06-12 08:53:26.871415884 +0000
  11624.  
  11625. @@ -1,5 +1,10 @@
  11626.  
  11627. +#!/bin/sh
  11628.  
  11629. +exec chpst -P \
  11630.  
  11631. + -U root:root \
  11632.  
  11633. + -u root:root \
  11634.  
  11635. + 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
  11636.  
  11637. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] group changed to 0
  11638.  
  11639. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/log/run] mode changed to 755
  11640.  
  11641.  
  11642. - change mode from '' to '0755'
  11643.  
  11644. - change owner from '' to 'root'
  11645.  
  11646. - change group from '' to 'root'
  11647.  
  11648. * 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
  11649.  
  11650.  
  11651. - 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
  11652.  
  11653. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/env] group changed to 0
  11654.  
  11655. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/env] mode changed to 755
  11656.  
  11657.  
  11658. - change mode from '' to '0755'
  11659.  
  11660. - change owner from '' to 'root'
  11661.  
  11662. - change group from '' to 'root'
  11663.  
  11664. * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
  11665.  
  11666. * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
  11667.  
  11668. * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
  11669.  
  11670. * 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
  11671.  
  11672.  
  11673. - 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
  11674.  
  11675. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/control] group changed to 0
  11676.  
  11677. [2023-06-12T08:53:26+00:00] INFO: directory[/opt/gitlab/sv/alertmanager/control] mode changed to 755
  11678.  
  11679.  
  11680. - change mode from '' to '0755'
  11681.  
  11682. - change owner from '' to 'root'
  11683.  
  11684. - change group from '' to 'root'
  11685.  
  11686. * link[/opt/gitlab/init/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: link[/opt/gitlab/init/alertmanager] created
  11687.  
  11688.  
  11689. - create symlink at /opt/gitlab/init/alertmanager to /opt/gitlab/embedded/bin/sv
  11690.  
  11691. * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
  11692.  
  11693. [2023-06-12T08:53:26+00:00] INFO: template[/opt/gitlab/sv/alertmanager/run] sending run action to ruby_block[restart_service] (delayed)
  11694.  
  11695. * ruby_block[restart_service] action run (skipped due to only_if)
  11696.  
  11697. [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)
  11698.  
  11699. * ruby_block[reload_log_service] action create
  11700.  
  11701. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  11702.  
  11703. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  11704.  
  11705. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  11706.  
  11707. * directory[/opt/gitlab/sv/alertmanager] action create (up to date)
  11708.  
  11709. * template[/opt/gitlab/sv/alertmanager/run] action create (up to date)
  11710.  
  11711. * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date)
  11712.  
  11713. * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date)
  11714.  
  11715. * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date)
  11716.  
  11717. * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
  11718.  
  11719. * link[/var/log/gitlab/alertmanager/config] action create (up to date)
  11720.  
  11721. * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date)
  11722.  
  11723. * directory[/opt/gitlab/sv/alertmanager/env] action create (up to date)
  11724.  
  11725. * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
  11726.  
  11727. * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
  11728.  
  11729. * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
  11730.  
  11731. * directory[/opt/gitlab/sv/alertmanager/control] action create (up to date)
  11732.  
  11733. * link[/opt/gitlab/init/alertmanager] action create (up to date)
  11734.  
  11735. * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
  11736.  
  11737. * directory[/opt/gitlab/service] action create (up to date)
  11738.  
  11739. * link[/opt/gitlab/service/alertmanager] action create[2023-06-12T08:53:26+00:00] INFO: link[/opt/gitlab/service/alertmanager] created
  11740.  
  11741.  
  11742. - create symlink at /opt/gitlab/service/alertmanager to /opt/gitlab/sv/alertmanager
  11743.  
  11744. * 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
  11745.  
  11746.  
  11747. - execute the ruby block wait for alertmanager service socket
  11748.  
  11749. * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
  11750.  
  11751. [2023-06-12T08:53:28+00:00] INFO: ruby_block[reload_log_service] called
  11752.  
  11753. - execute the ruby block reload_log_service
  11754.  
  11755. [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)
  11756.  
  11757. * ruby_block[restart_log_service] action run
  11758.  
  11759. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  11760.  
  11761. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  11762.  
  11763. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  11764.  
  11765. * directory[/opt/gitlab/sv/alertmanager] action create (up to date)
  11766.  
  11767. * template[/opt/gitlab/sv/alertmanager/run] action create (up to date)
  11768.  
  11769. * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date)
  11770.  
  11771. * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date)
  11772.  
  11773. * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date)
  11774.  
  11775. * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing)
  11776.  
  11777. * link[/var/log/gitlab/alertmanager/config] action create (up to date)
  11778.  
  11779. * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date)
  11780.  
  11781. * directory[/opt/gitlab/sv/alertmanager/env] action create (up to date)
  11782.  
  11783. * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if)
  11784.  
  11785. * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if)
  11786.  
  11787. * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if)
  11788.  
  11789. * directory[/opt/gitlab/sv/alertmanager/control] action create (up to date)
  11790.  
  11791. * link[/opt/gitlab/init/alertmanager] action create (up to date)
  11792.  
  11793. * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing)
  11794.  
  11795. * directory[/opt/gitlab/service] action create (up to date)
  11796.  
  11797. * link[/opt/gitlab/service/alertmanager] action create (up to date)
  11798.  
  11799. * ruby_block[wait for alertmanager service socket] action run (skipped due to not_if)
  11800.  
  11801. * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
  11802.  
  11803. [2023-06-12T08:53:30+00:00] INFO: ruby_block[restart_log_service] called
  11804.  
  11805. - execute the ruby block restart_log_service
  11806.  
  11807. * directory[/opt/gitlab/service] action create (up to date)
  11808.  
  11809. * link[/opt/gitlab/service/alertmanager] action create (up to date)
  11810.  
  11811. * ruby_block[wait for alertmanager service socket] action run (skipped due to not_if)
  11812.  
  11813. * file[/var/log/gitlab/alertmanager/current] action touch (skipped due to only_if)
  11814.  
  11815.  
  11816. * execute[/opt/gitlab/bin/gitlab-ctl start alertmanager] action run
  11817.  
  11818. [execute] ok: run: alertmanager: (pid 2523928) 3s
  11819.  
  11820. [2023-06-12T08:53:31+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start alertmanager] ran successfully
  11821.  
  11822. - execute /opt/gitlab/bin/gitlab-ctl start alertmanager
  11823.  
  11824. Recipe: monitoring::postgres-exporter
  11825.  
  11826. * 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
  11827.  
  11828.  
  11829. - 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
  11830.  
  11831. [2023-06-12T08:53:31+00:00] INFO: directory[/var/log/gitlab/postgres-exporter] mode changed to 700
  11832.  
  11833.  
  11834. - change mode from '' to '0700'
  11835.  
  11836. - change owner from '' to 'gitlab-psql'
  11837.  
  11838. * 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
  11839.  
  11840.  
  11841. - 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
  11842.  
  11843. [2023-06-12T08:53:31+00:00] INFO: directory[/var/opt/gitlab/postgres-exporter] mode changed to 700
  11844.  
  11845.  
  11846. - change mode from '' to '0700'
  11847.  
  11848. - change owner from '' to 'gitlab-psql'
  11849.  
  11850. * env_dir[/opt/gitlab/etc/postgres-exporter/env] action create
  11851.  
  11852. * 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
  11853.  
  11854.  
  11855. - create new directory /opt/gitlab/etc/postgres-exporter/env
  11856.  
  11857. * 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
  11858.  
  11859.  
  11860. - 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
  11861.  
  11862.  
  11863. - update content in file /opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR from none to 4f45cf
  11864.  
  11865. - suppressed sensitive resource
  11866.  
  11867. * 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
  11868.  
  11869.  
  11870. - 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
  11871.  
  11872.  
  11873. - update content in file /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME from none to af4c92
  11874.  
  11875. - suppressed sensitive resource
  11876.  
  11877.  
  11878. * service[postgres-exporter] action nothing (skipped due to action :nothing)
  11879.  
  11880. * runit_service[postgres-exporter] action enable
  11881.  
  11882. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  11883.  
  11884. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  11885.  
  11886. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  11887.  
  11888. * 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
  11889.  
  11890.  
  11891. - 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
  11892.  
  11893. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter] group changed to 0
  11894.  
  11895. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter] mode changed to 755
  11896.  
  11897.  
  11898. - change mode from '' to '0755'
  11899.  
  11900. - change owner from '' to 'root'
  11901.  
  11902. - change group from '' to 'root'
  11903.  
  11904. * 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
  11905.  
  11906.  
  11907. - 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
  11908.  
  11909.  
  11910. - update content in file /opt/gitlab/sv/postgres-exporter/run from none to b40d34
  11911.  
  11912. --- /opt/gitlab/sv/postgres-exporter/run 2023-06-12 08:53:31.119403884 +0000
  11913.  
  11914. +++ /opt/gitlab/sv/postgres-exporter/.chef-run20230612-2522091-p5wfmt 2023-06-12 08:53:31.119403884 +0000
  11915.  
  11916. @@ -1,6 +1,12 @@
  11917.  
  11918. +#!/bin/sh
  11919.  
  11920. +exec 2>&1
  11921.  
  11922. +
  11923.  
  11924. +umask 077
  11925.  
  11926. +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
  11927.  
  11928. +[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] owner changed to 0
  11929.  
  11930. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] group changed to 0
  11931.  
  11932. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] mode changed to 755
  11933.  
  11934.  
  11935. - change mode from '' to '0755'
  11936.  
  11937. - change owner from '' to 'root'
  11938.  
  11939. - change group from '' to 'root'
  11940.  
  11941. * 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
  11942.  
  11943.  
  11944. - 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
  11945.  
  11946. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log] group changed to 0
  11947.  
  11948. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log] mode changed to 755
  11949.  
  11950.  
  11951. - change mode from '' to '0755'
  11952.  
  11953. - change owner from '' to 'root'
  11954.  
  11955. - change group from '' to 'root'
  11956.  
  11957. * 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
  11958.  
  11959.  
  11960. - 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
  11961.  
  11962. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log/main] group changed to 0
  11963.  
  11964. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/log/main] mode changed to 755
  11965.  
  11966.  
  11967. - change mode from '' to '0755'
  11968.  
  11969. - change owner from '' to 'root'
  11970.  
  11971. - change group from '' to 'root'
  11972.  
  11973. * 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
  11974.  
  11975.  
  11976. - 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
  11977.  
  11978.  
  11979. - update content in file /opt/gitlab/sv/postgres-exporter/log/config from none to 623c00
  11980.  
  11981. --- /opt/gitlab/sv/postgres-exporter/log/config 2023-06-12 08:53:31.143403816 +0000
  11982.  
  11983. +++ /opt/gitlab/sv/postgres-exporter/log/.chef-config20230612-2522091-vcni3a 2023-06-12 08:53:31.143403816 +0000
  11984.  
  11985. @@ -1,6 +1,12 @@
  11986.  
  11987. +s209715200
  11988.  
  11989. +n30
  11990.  
  11991. +t86400
  11992.  
  11993. +!gzip
  11994.  
  11995. +
  11996.  
  11997. +[2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] owner changed to 0
  11998.  
  11999. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] group changed to 0
  12000.  
  12001. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/config] mode changed to 644
  12002.  
  12003.  
  12004. - change mode from '' to '0644'
  12005.  
  12006. - change owner from '' to 'root'
  12007.  
  12008. - change group from '' to 'root'
  12009.  
  12010. [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)
  12011.  
  12012. * 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
  12013.  
  12014.  
  12015. - execute the ruby block verify_chown_persisted_on_postgres-exporter
  12016.  
  12017. * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
  12018.  
  12019. * 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
  12020.  
  12021.  
  12022. - create symlink at /var/log/gitlab/postgres-exporter/config to /opt/gitlab/sv/postgres-exporter/log/config
  12023.  
  12024. * 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
  12025.  
  12026.  
  12027. - 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
  12028.  
  12029.  
  12030. - update content in file /opt/gitlab/sv/postgres-exporter/log/run from none to fd2977
  12031.  
  12032. --- /opt/gitlab/sv/postgres-exporter/log/run 2023-06-12 08:53:31.159403771 +0000
  12033.  
  12034. +++ /opt/gitlab/sv/postgres-exporter/log/.chef-run20230612-2522091-kypatg 2023-06-12 08:53:31.159403771 +0000
  12035.  
  12036. @@ -1,5 +1,10 @@
  12037.  
  12038. +#!/bin/sh
  12039.  
  12040. +exec chpst -P \
  12041.  
  12042. + -U root:root \
  12043.  
  12044. + -u root:root \
  12045.  
  12046. + 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
  12047.  
  12048. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] group changed to 0
  12049.  
  12050. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/log/run] mode changed to 755
  12051.  
  12052.  
  12053. - change mode from '' to '0755'
  12054.  
  12055. - change owner from '' to 'root'
  12056.  
  12057. - change group from '' to 'root'
  12058.  
  12059. * 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
  12060.  
  12061.  
  12062. - 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
  12063.  
  12064. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/env] group changed to 0
  12065.  
  12066. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/env] mode changed to 755
  12067.  
  12068.  
  12069. - change mode from '' to '0755'
  12070.  
  12071. - change owner from '' to 'root'
  12072.  
  12073. - change group from '' to 'root'
  12074.  
  12075. * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
  12076.  
  12077. * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
  12078.  
  12079. * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
  12080.  
  12081. * 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
  12082.  
  12083.  
  12084. - 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
  12085.  
  12086. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/control] group changed to 0
  12087.  
  12088. [2023-06-12T08:53:31+00:00] INFO: directory[/opt/gitlab/sv/postgres-exporter/control] mode changed to 755
  12089.  
  12090.  
  12091. - change mode from '' to '0755'
  12092.  
  12093. - change owner from '' to 'root'
  12094.  
  12095. - change group from '' to 'root'
  12096.  
  12097. * link[/opt/gitlab/init/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: link[/opt/gitlab/init/postgres-exporter] created
  12098.  
  12099.  
  12100. - create symlink at /opt/gitlab/init/postgres-exporter to /opt/gitlab/embedded/bin/sv
  12101.  
  12102. * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
  12103.  
  12104. [2023-06-12T08:53:31+00:00] INFO: template[/opt/gitlab/sv/postgres-exporter/run] sending run action to ruby_block[restart_service] (delayed)
  12105.  
  12106. * ruby_block[restart_service] action run (skipped due to only_if)
  12107.  
  12108. [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)
  12109.  
  12110. * ruby_block[reload_log_service] action create
  12111.  
  12112. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  12113.  
  12114. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  12115.  
  12116. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  12117.  
  12118. * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date)
  12119.  
  12120. * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date)
  12121.  
  12122. * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date)
  12123.  
  12124. * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date)
  12125.  
  12126. * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date)
  12127.  
  12128. * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
  12129.  
  12130. * link[/var/log/gitlab/postgres-exporter/config] action create (up to date)
  12131.  
  12132. * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date)
  12133.  
  12134. * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date)
  12135.  
  12136. * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
  12137.  
  12138. * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
  12139.  
  12140. * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
  12141.  
  12142. * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date)
  12143.  
  12144. * link[/opt/gitlab/init/postgres-exporter] action create (up to date)
  12145.  
  12146. * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
  12147.  
  12148. * directory[/opt/gitlab/service] action create (up to date)
  12149.  
  12150. * link[/opt/gitlab/service/postgres-exporter] action create[2023-06-12T08:53:31+00:00] INFO: link[/opt/gitlab/service/postgres-exporter] created
  12151.  
  12152.  
  12153. - create symlink at /opt/gitlab/service/postgres-exporter to /opt/gitlab/sv/postgres-exporter
  12154.  
  12155. * 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
  12156.  
  12157.  
  12158. - execute the ruby block wait for postgres-exporter service socket
  12159.  
  12160. * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
  12161.  
  12162. [2023-06-12T08:53:36+00:00] INFO: ruby_block[reload_log_service] called
  12163.  
  12164. - execute the ruby block reload_log_service
  12165.  
  12166. [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)
  12167.  
  12168. * ruby_block[restart_log_service] action run
  12169.  
  12170. * ruby_block[restart_service] action nothing (skipped due to action :nothing)
  12171.  
  12172. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
  12173.  
  12174. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
  12175.  
  12176. * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date)
  12177.  
  12178. * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date)
  12179.  
  12180. * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date)
  12181.  
  12182. * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date)
  12183.  
  12184. * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date)
  12185.  
  12186. * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
  12187.  
  12188. * link[/var/log/gitlab/postgres-exporter/config] action create (up to date)
  12189.  
  12190. * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date)
  12191.  
  12192. * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date)
  12193.  
  12194. * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
  12195.  
  12196. * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
  12197.  
  12198. * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
  12199.  
  12200. * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date)
  12201.  
  12202. * link[/opt/gitlab/init/postgres-exporter] action create (up to date)
  12203.  
  12204. * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
  12205.  
  12206. * directory[/opt/gitlab/service] action create (up to date)
  12207.  
  12208. * link[/opt/gitlab/service/postgres-exporter] action create (up to date)
  12209.  
  12210. * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if)
  12211.  
  12212. * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
  12213.  
  12214. [2023-06-12T08:53:36+00:00] INFO: ruby_block[restart_log_service] called
  12215.  
  12216. - execute the ruby block restart_log_service
  12217.  
  12218. * directory[/opt/gitlab/service] action create (up to date)
  12219.  
  12220. * link[/opt/gitlab/service/postgres-exporter] action create (up to date)
  12221.  
  12222. * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if)
  12223.  
  12224. * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
  12225.  
  12226.  
  12227. * 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
  12228.  
  12229.  
  12230. - 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
  12231.  
  12232.  
  12233. - update content in file /var/opt/gitlab/postgres-exporter/queries.yaml from none to 7d7e14
  12234.  
  12235. --- /var/opt/gitlab/postgres-exporter/queries.yaml 2023-06-12 08:53:36.659388203 +0000
  12236.  
  12237. +++ /var/opt/gitlab/postgres-exporter/.chef-queries20230612-2522091-vck3z3.yaml 2023-06-12 08:53:36.659388203 +0000
  12238.  
  12239. @@ -1,404 +1,808 @@
  12240.  
  12241. +pg_replication:
  12242.  
  12243. + 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"
  12244.  
  12245. + metrics:
  12246.  
  12247. + - lag:
  12248.  
  12249. + usage: "GAUGE"
  12250.  
  12251. + description: "Replication lag behind master in seconds"
  12252.  
  12253. + - is_replica:
  12254.  
  12255. + usage: "GAUGE"
  12256.  
  12257. + description: "Indicates if this host is a slave"
  12258.  
  12259. +
  12260.  
  12261. +pg_postmaster:
  12262.  
  12263. + query: "SELECT pg_postmaster_start_time as start_time_seconds from pg_postmaster_start_time()"
  12264.  
  12265. + metrics:
  12266.  
  12267. + - start_time_seconds:
  12268.  
  12269. + usage: "GAUGE"
  12270.  
  12271. + description: "Time at which postmaster started"
  12272.  
  12273. +
  12274.  
  12275. +pg_total_relation_size:
  12276.  
  12277. + query: |
  12278.  
  12279. + SELECT relnamespace::regnamespace as schemaname,
  12280.  
  12281. + relname as relname,
  12282.  
  12283. + pg_total_relation_size(oid) bytes
  12284.  
  12285. + FROM pg_class
  12286.  
  12287. + WHERE relkind = 'r';
  12288.  
  12289. + metrics:
  12290.  
  12291. + - schemaname:
  12292.  
  12293. + usage: "LABEL"
  12294.  
  12295. + description: "Name of the schema that this table is in"
  12296.  
  12297. + - relname:
  12298.  
  12299. + usage: "LABEL"
  12300.  
  12301. + description: "Name of this table"
  12302.  
  12303. + - bytes:
  12304.  
  12305. + usage: "GAUGE"
  12306.  
  12307. + description: "total disk space usage for the specified table and associated indexes"
  12308.  
  12309. +
  12310.  
  12311. +pg_blocked:
  12312.  
  12313. + query: |
  12314.  
  12315. + SELECT
  12316.  
  12317. + count(blocked.transactionid) AS queries,
  12318.  
  12319. + '__transaction__' AS table
  12320.  
  12321. + FROM pg_catalog.pg_locks blocked
  12322.  
  12323. + WHERE NOT blocked.granted AND locktype = 'transactionid'
  12324.  
  12325. + GROUP BY locktype
  12326.  
  12327. + UNION
  12328.  
  12329. + SELECT
  12330.  
  12331. + count(blocked.relation) AS queries,
  12332.  
  12333. + blocked.relation::regclass::text AS table
  12334.  
  12335. + FROM pg_catalog.pg_locks blocked
  12336.  
  12337. + WHERE NOT blocked.granted AND locktype != 'transactionid'
  12338.  
  12339. + GROUP BY relation
  12340.  
  12341. + metrics:
  12342.  
  12343. + - queries:
  12344.  
  12345. + usage: "GAUGE"
  12346.  
  12347. + description: "The current number of blocked queries"
  12348.  
  12349. + - table:
  12350.  
  12351. + usage: "LABEL"
  12352.  
  12353. + description: "The table on which a query is blocked"
  12354.  
  12355. +
  12356.  
  12357. +pg_oldest_blocked:
  12358.  
  12359. + query: |
  12360.  
  12361. + SELECT coalesce(extract('epoch' from max(clock_timestamp() - state_change)), 0) age_seconds
  12362.  
  12363. + FROM pg_stat_activity
  12364.  
  12365. + WHERE wait_event_type = 'Lock'
  12366.  
  12367. + AND state='active'
  12368.  
  12369. + metrics:
  12370.  
  12371. + - age_seconds:
  12372.  
  12373. + usage: "GAUGE"
  12374.  
  12375. + description: "Largest number of seconds any transaction is currently waiting on a lock"
  12376.  
  12377. +
  12378.  
  12379. +pg_slow:
  12380.  
  12381. + query: |
  12382.  
  12383. + SELECT COUNT(*) AS queries
  12384.  
  12385. + FROM pg_stat_activity
  12386.  
  12387. + WHERE state = 'active' AND (now() - query_start) > '1 seconds'::interval
  12388.  
  12389. + metrics:
  12390.  
  12391. + - queries:
  12392.  
  12393. + usage: "GAUGE"
  12394.  
  12395. + description: "Current number of slow queries"
  12396.  
  12397. +
  12398.  
  12399. +pg_long_running_transactions:
  12400.  
  12401. + query: |
  12402.  
  12403. + SELECT COUNT(*) as transactions,
  12404.  
  12405. + coalesce(MAX(EXTRACT(EPOCH FROM (clock_timestamp() - xact_start))), 0) AS age_in_seconds
  12406.  
  12407. + FROM pg_stat_activity
  12408.  
  12409. + WHERE state is distinct from 'idle' AND (now() - xact_start) > '1 minutes'::interval AND query not like 'autovacuum:%'
  12410.  
  12411. + metrics:
  12412.  
  12413. + - transactions:
  12414.  
  12415. + usage: "GAUGE"
  12416.  
  12417. + description: "Current number of long running transactions"
  12418.  
  12419. + - age_in_seconds:
  12420.  
  12421. + usage: "GAUGE"
  12422.  
  12423. + description: "The current maximum transaction age in seconds"
  12424.  
  12425. +
  12426.  
  12427. +pg_stuck_idle_in_transaction:
  12428.  
  12429. + query: |
  12430.  
  12431. + SELECT COUNT(*) AS queries
  12432.  
  12433. + FROM pg_stat_activity
  12434.  
  12435. + WHERE state = 'idle in transaction' AND (now() - query_start) > '10 minutes'::interval
  12436.  
  12437. + metrics:
  12438.  
  12439. + - queries:
  12440.  
  12441. + usage: "GAUGE"
  12442.  
  12443. + description: "Current number of queries that are stuck being idle in transactions"
  12444.  
  12445. +
  12446.  
  12447. +# All xid and lsn metrics here are reported mod 2^52 to ensure they
  12448.  
  12449. +# fit within a float for Prometheus :( Really annoying that counters
  12450.  
  12451. +# aren't stored in a 64-bit integer. Note that for queries that report
  12452.  
  12453. +# floats this only works because postgres_exporter does know to set
  12454.  
  12455. +# extra_float_digits (which it sets to 2). So they don't print in
  12456.  
  12457. +# exponential notation and precision is maintained up to 2^53-1.
  12458.  
  12459. +
  12460.  
  12461. +pg_vacuum:
  12462.  
  12463. + query: |
  12464.  
  12465. + SELECT
  12466.  
  12467. + COUNT(*) AS queries,
  12468.  
  12469. + MAX(EXTRACT(EPOCH FROM (clock_timestamp() - query_start))) AS age_in_seconds
  12470.  
  12471. + FROM pg_catalog.pg_stat_activity
  12472.  
  12473. + WHERE state = 'active' AND trim(query) ~* '\AVACUUM (?!ANALYZE)'
  12474.  
  12475. + metrics:
  12476.  
  12477. + - queries:
  12478.  
  12479. + usage: "GAUGE"
  12480.  
  12481. + description: "The current number of VACUUM queries"
  12482.  
  12483. + - age_in_seconds:
  12484.  
  12485. + usage: "GAUGE"
  12486.  
  12487. + description: "The current maximum VACUUM query age in seconds"
  12488.  
  12489. +
  12490.  
  12491. +pg_vacuum_analyze:
  12492.  
  12493. + query: |
  12494.  
  12495. + SELECT
  12496.  
  12497. + COUNT(*) AS queries,
  12498.  
  12499. + MAX(EXTRACT(EPOCH FROM (clock_timestamp() - query_start))) AS age_in_seconds
  12500.  
  12501. + FROM pg_catalog.pg_stat_activity
  12502.  
  12503. + WHERE state = 'active' AND trim(query) ~* '\AVACUUM ANALYZE'
  12504.  
  12505. + metrics:
  12506.  
  12507. + - queries:
  12508.  
  12509. + usage: "GAUGE"
  12510.  
  12511. + description: "The current number of VACUUM ANALYZE queries"
  12512.  
  12513. + - age_in_seconds:
  12514.  
  12515. + usage: "GAUGE"
  12516.  
  12517. + description: "The current maximum VACUUM ANALYZE query age in seconds"
  12518.  
  12519. +
  12520.  
  12521. +pg_stuck_idle_in_transaction:
  12522.  
  12523. + query: |
  12524.  
  12525. + SELECT COUNT(*) AS queries
  12526.  
  12527. + FROM pg_stat_activity
  12528.  
  12529. + WHERE state = 'idle in transaction' AND (now() - query_start) > '10 minutes'::interval
  12530.  
  12531. + metrics:
  12532.  
  12533. + - queries:
  12534.  
  12535. + usage: "GAUGE"
  12536.  
  12537. + description: "Current number of queries that are stuck being idle in transactions"
  12538.  
  12539. +
  12540.  
  12541. +pg_vacuum_queue:
  12542.  
  12543. + #master: true
  12544.  
  12545. + # Until postgres_exporter is upgraded. See
  12546.  
  12547. + # https://gitlab.com/gitlab-org/omnibus-gitlab/issues/4887
  12548.  
  12549. + query: |
  12550.  
  12551. + with table_opts_vs_statistic as (
  12552.  
  12553. + select
  12554.  
  12555. + pg_class.oid,
  12556.  
  12557. + pg_class.relname,
  12558.  
  12559. + coalesce(nspname, 'public') as schemaname,
  12560.  
  12561. + pg_class.relpages,
  12562.  
  12563. + pg_class.reltuples,
  12564.  
  12565. + case
  12566.  
  12567. + when array_to_string(reloptions, '') like '%autovacuum_vacuum_threshold%' then regexp_replace(array_to_string(reloptions, ''), '.*autovacuum_vacuum_threshold=([0-9.]+).*', E'\\1')::int8
  12568.  
  12569. + else current_setting('autovacuum_vacuum_threshold')::int8
  12570.  
  12571. + end as autovacuum_vacuum_threshold,
  12572.  
  12573. + case
  12574.  
  12575. + 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
  12576.  
  12577. + else current_setting('autovacuum_vacuum_scale_factor')::numeric
  12578.  
  12579. + end as autovacuum_vacuum_scale_factor,
  12580.  
  12581. + case when array_to_string(reloptions, '') ~ 'autovacuum_enabled=(false|off)' then false else true end as autovacuum_enabled,
  12582.  
  12583. + n_dead_tup,
  12584.  
  12585. + last_autovacuum,
  12586.  
  12587. + last_vacuum
  12588.  
  12589. + from pg_class
  12590.  
  12591. + join pg_namespace ns on relnamespace = ns.oid
  12592.  
  12593. + join pg_stat_all_tables psat on psat.relid = pg_class.oid
  12594.  
  12595. + where relkind in ('r','m')
  12596.  
  12597. + ), p as (
  12598.  
  12599. + select pgspv.*,a.query,a.wait_event_type,a.wait_event,a.query_start
  12600.  
  12601. + from pg_stat_progress_vacuum pgspv
  12602.  
  12603. + left join pg_stat_activity a using (pid)
  12604.  
  12605. + )
  12606.  
  12607. + select
  12608.  
  12609. + table_opts_vs_statistic.schemaname as schemaname,
  12610.  
  12611. + table_opts_vs_statistic.relname as relname,
  12612.  
  12613. + round((100 * table_opts_vs_statistic.n_dead_tup::numeric / nullif(table_opts_vs_statistic.reltuples, 0))::numeric, 2) as dead_tup_pct,
  12614.  
  12615. + table_opts_vs_statistic.reltuples::numeric as reltuples,
  12616.  
  12617. + table_opts_vs_statistic.n_dead_tup,
  12618.  
  12619. + (relpages::bigint*8*1024) AS table_size_bytes,
  12620.  
  12621. + 'V. Threshold:' || table_opts_vs_statistic.autovacuum_vacuum_threshold
  12622.  
  12623. + || ', V. Scale Factor: ' || (table_opts_vs_statistic.autovacuum_vacuum_scale_factor)::numeric *100 ||' %'
  12624.  
  12625. + || case when not autovacuum_enabled then ', DISABLED' else ', enabled' end as "effective_settings",
  12626.  
  12627. + case
  12628.  
  12629. + when last_autovacuum > coalesce(last_vacuum, '0001-01-01') then last_autovacuum::timestamp(0)
  12630.  
  12631. + when last_vacuum is not null then last_vacuum::timestamp(0)
  12632.  
  12633. + else null
  12634.  
  12635. + end as "last_vacuumed",
  12636.  
  12637. + case
  12638.  
  12639. + when last_autovacuum > coalesce(last_vacuum, '0001-01-01') then 'auto'
  12640.  
  12641. + when last_vacuum is not null then 'manual'
  12642.  
  12643. + else null
  12644.  
  12645. + end as "type",
  12646.  
  12647. + coalesce(p.phase, 'in queue') as status,
  12648.  
  12649. + p.pid as pid,
  12650.  
  12651. + coalesce (p.query,'')as action,
  12652.  
  12653. + case when p.pid is null then null else coalesce(wait_event_type ||'.'|| wait_event, 'f') end as waiting,
  12654.  
  12655. + round(100.0 * p.heap_blks_scanned / nullif(p.heap_blks_total, 0), 1) AS scanned_pct,
  12656.  
  12657. + round(100.0 * p.heap_blks_vacuumed / nullif(p.heap_blks_total, 0), 1) AS vacuumed_pct,
  12658.  
  12659. + extract ('epoch' from now()-query_start) elapsed_time
  12660.  
  12661. + from
  12662.  
  12663. + table_opts_vs_statistic
  12664.  
  12665. + full outer join p on p.relid = table_opts_vs_statistic.oid and p.datname = current_database()
  12666.  
  12667. + where
  12668.  
  12669. + table_opts_vs_statistic.relpages >= 8
  12670.  
  12671. + and autovacuum_vacuum_threshold + (autovacuum_vacuum_scale_factor::numeric * table_opts_vs_statistic.reltuples) < table_opts_vs_statistic.n_dead_tup
  12672.  
  12673. + metrics:
  12674.  
  12675. + - schemaname:
  12676.  
  12677. + usage: "LABEL"
  12678.  
  12679. + description: "Table Schema"
  12680.  
  12681. + - relname:
  12682.  
  12683. + usage: "LABEL"
  12684.  
  12685. + description: "Table name"
  12686.  
  12687. + - dead_tup_pct:
  12688.  
  12689. + usage: "GAUGE"
  12690.  
  12691. + description: "Estimated dead tuples percent"
  12692.  
  12693. + - reltuples:
  12694.  
  12695. + usage: "GAUGE"
  12696.  
  12697. + description: "Number of tuples in table"
  12698.  
  12699. + - n_dead_tup:
  12700.  
  12701. + usage: "GAUGE"
  12702.  
  12703. + description: "Estimated number of dead tuples"
  12704.  
  12705. + - table_size_bytes:
  12706.  
  12707. + usage: "GAUGE"
  12708.  
  12709. + description: "Estimated table size"
  12710.  
  12711. + - effective_settings:
  12712.  
  12713. + usage: "LABEL"
  12714.  
  12715. + description: "Autovacuums settings"
  12716.  
  12717. + - last_vacuumed:
  12718.  
  12719. + usage: "GAUGE"
  12720.  
  12721. + description: "Last time at which this table was vacuumed"
  12722.  
  12723. + - type:
  12724.  
  12725. + usage: "LABEL"
  12726.  
  12727. + description: "Last vacuum type"
  12728.  
  12729. + - status:
  12730.  
  12731. + usage: "LABEL"
  12732.  
  12733. + description: "Vacuum actual status"
  12734.  
  12735. + - pid:
  12736.  
  12737. + usage: "GAUGE"
  12738.  
  12739. + description: "Vacuum process id"
  12740.  
  12741. + - action:
  12742.  
  12743. + usage: "LABEL"
  12744.  
  12745. + description: "Type of vacuum executed"
  12746.  
  12747. + - waiting:
  12748.  
  12749. + usage: "LABEL"
  12750.  
  12751. + description: "Vacuum queue status"
  12752.  
  12753. + - scanned_pct:
  12754.  
  12755. + usage: "GAUGE"
  12756.  
  12757. + description: "Estimated rows scanned percent"
  12758.  
  12759. + - vacuumed_pct:
  12760.  
  12761. + usage: "GAUGE"
  12762.  
  12763. + description: "Estimated vacuumed rows percent"
  12764.  
  12765. + - elapsed_time:
  12766.  
  12767. + usage: "GAUGE"
  12768.  
  12769. + description: "Elapsed time vacuuming (in seconds)"
  12770.  
  12771. +
  12772.  
  12773. +#
  12774.  
  12775. +# This query extracts marginalia comments from pg_stat_activity and provides a sampled summary of the type of
  12776.  
  12777. +# endpoints that are actively making calls
  12778.  
  12779. +#
  12780.  
  12781. +pg_stat_activity_marginalia_sampler:
  12782.  
  12783. + query: >
  12784.  
  12785. + SELECT
  12786.  
  12787. + usename AS usename,
  12788.  
  12789. + a.matches[1] AS application,
  12790.  
  12791. + a.matches[2] AS endpoint,
  12792.  
  12793. + a.matches[3] AS command,
  12794.  
  12795. + a.wait_event AS wait_event,
  12796.  
  12797. + a.state AS state,
  12798.  
  12799. + a.wait_event_type AS wait_event_type,
  12800.  
  12801. + COUNT(*) active_count,
  12802.  
  12803. + MAX(coalesce(age_in_seconds, 0)) AS max_tx_age_in_seconds
  12804.  
  12805. + FROM (
  12806.  
  12807. + SELECT
  12808.  
  12809. + usename,
  12810.  
  12811. + regexp_matches(query, '^\s*(?:\/\*(?:application:(\w+),?)?(?:correlation_id:\w+,?)?(?:jid:\w+,?)?(?:endpoint_id:([\w/\-\.:\#\s]+),?)?.*?\*\/)?\s*(\w+)') AS matches,
  12812.  
  12813. + state,
  12814.  
  12815. + wait_event,
  12816.  
  12817. + wait_event_type,
  12818.  
  12819. + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
  12820.  
  12821. + FROM
  12822.  
  12823. + pg_stat_activity
  12824.  
  12825. + ) a
  12826.  
  12827. + GROUP BY usename, application, endpoint, command, state, wait_event, wait_event_type
  12828.  
  12829. + ORDER BY active_count DESC
  12830.  
  12831. + metrics:
  12832.  
  12833. + - usename:
  12834.  
  12835. + usage: LABEL
  12836.  
  12837. + description: The user running the command
  12838.  
  12839. + - application:
  12840.  
  12841. + usage: LABEL
  12842.  
  12843. + description: Name of the application as presented in marginalia comment
  12844.  
  12845. + - endpoint:
  12846.  
  12847. + usage: LABEL
  12848.  
  12849. + description: Name of the web endpoint or sidekiq job as presented in marginalia comment
  12850.  
  12851. + - command:
  12852.  
  12853. + usage: LABEL
  12854.  
  12855. + description: The first word for the running command
  12856.  
  12857. + - wait_event:
  12858.  
  12859. + usage: LABEL
  12860.  
  12861. + description: Wait event of the activity as presented by pg_stat_activity.wait_event
  12862.  
  12863. + - state:
  12864.  
  12865. + usage: LABEL
  12866.  
  12867. + description: State of the activity as presented by pg_stat_activity.state
  12868.  
  12869. + - wait_event_type:
  12870.  
  12871. + usage: LABEL
  12872.  
  12873. + description: Wait event type of the activity as presented by pg_stat_activity.wait_event_type
  12874.  
  12875. + - active_count:
  12876.  
  12877. + usage: GAUGE
  12878.  
  12879. + description: Number of active queries at time of sample
  12880.  
  12881. + - max_tx_age_in_seconds:
  12882.  
  12883. + usage: GAUGE
  12884.  
  12885. + description: Number of active queries at time of sample
  12886.  
  12887. +
  12888.  
  12889. +# This records long running autovacuum processes. The reason we limit to
  12890.  
  12891. +# long-running processes is to avoid cardinality problems in prometheus. Since
  12892.  
  12893. +# we're only concerned about long running processes we limit the output only to
  12894.  
  12895. +# those that take longer than 5 minutes.
  12896.  
  12897. +pg_stat_activity_autovacuum:
  12898.  
  12899. + query: >
  12900.  
  12901. + SELECT
  12902.  
  12903. + SPLIT_PART(query, '.', 2) AS relname,
  12904.  
  12905. + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
  12906.  
  12907. + FROM
  12908.  
  12909. + pg_stat_activity
  12910.  
  12911. + WHERE
  12912.  
  12913. + query like 'autovacuum:%'
  12914.  
  12915. + AND
  12916.  
  12917. + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) > 300
  12918.  
  12919. + metrics:
  12920.  
  12921. + - relname:
  12922.  
  12923. + usage: LABEL
  12924.  
  12925. + description: The table being vacuumed
  12926.  
  12927. + - age_in_seconds:
  12928.  
  12929. + usage: GAUGE
  12930.  
  12931. + description: The age of the vacuum process in seconds
  12932.  
  12933. +
  12934.  
  12935. +# Keep track of the number of the total number of autovacuum workers
  12936.  
  12937. +# currently active
  12938.  
  12939. +pg_stat_activity_autovacuum_active:
  12940.  
  12941. + query: >
  12942.  
  12943. + SELECT v.phase,
  12944.  
  12945. + CASE
  12946.  
  12947. + when a.query ~ '^autovacuum.*to prevent wraparound' then 'wraparound'
  12948.  
  12949. + when a.query ~* '^vacuum' then 'user'
  12950.  
  12951. + when a.pid is null then null
  12952.  
  12953. + ELSE 'regular'
  12954.  
  12955. + END as mode,
  12956.  
  12957. + count(1) as workers_count
  12958.  
  12959. + FROM pg_stat_progress_vacuum v
  12960.  
  12961. + LEFT JOIN pg_stat_activity a using (pid)
  12962.  
  12963. + GROUP BY 1,2
  12964.  
  12965. + metrics:
  12966.  
  12967. + - phase:
  12968.  
  12969. + usage: LABEL
  12970.  
  12971. + description: Vacuum phase
  12972.  
  12973. + - mode:
  12974.  
  12975. + usage: LABEL
  12976.  
  12977. + description: Vacuum mode
  12978.  
  12979. + - workers_count:
  12980.  
  12981. + usage: GAUGE
  12982.  
  12983. + description: The number of active autovacuum workers in this state
  12984.  
  12985. +
  12986.  
  12987. +#
  12988.  
  12989. +# This query extracts marginalia metadata from pg_stat_activity and provides a sampled summary about the long running transactions.
  12990.  
  12991. +#
  12992.  
  12993. +pg_long_running_transactions_marginalia:
  12994.  
  12995. + query: >
  12996.  
  12997. + SELECT
  12998.  
  12999. + activity.matches[1] AS application,
  13000.  
  13001. + activity.matches[2] AS endpoint,
  13002.  
  13003. + MAX(age_in_seconds) AS max_age_in_seconds
  13004.  
  13005. + FROM (
  13006.  
  13007. + SELECT
  13008.  
  13009. + regexp_matches(query, '^\s*(?:\/\*(?:application:(\w+),?)?(?:correlation_id:\w+,?)?(?:jid:\w+,?)?(?:endpoint_id:([\w/\-\.:\#\s]+),?)?.*?\*\/)?\s*(\w+)') AS matches,
  13010.  
  13011. + EXTRACT(EPOCH FROM (clock_timestamp() - xact_start)) AS age_in_seconds
  13012.  
  13013. + FROM
  13014.  
  13015. + pg_stat_activity
  13016.  
  13017. + WHERE state <> 'idle'
  13018.  
  13019. + AND (clock_timestamp() - xact_start) > '30 seconds'::interval
  13020.  
  13021. + AND query NOT LIKE 'autovacuum:%'
  13022.  
  13023. + ) activity
  13024.  
  13025. + GROUP BY application, endpoint
  13026.  
  13027. + ORDER BY max_age_in_seconds DESC
  13028.  
  13029. + metrics:
  13030.  
  13031. + - application:
  13032.  
  13033. + usage: LABEL
  13034.  
  13035. + description: Name of the application as presented in marginalia comment
  13036.  
  13037. + - endpoint:
  13038.  
  13039. + usage: LABEL
  13040.  
  13041. + description: Name of the web endpoint or sidekiq job as presented in marginalia comment
  13042.  
  13043. + - max_age_in_seconds:
  13044.  
  13045. + usage: GAUGE
  13046.  
  13047. + 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
  13048.  
  13049. [2023-06-12T08:53:36+00:00] INFO: template[/var/opt/gitlab/postgres-exporter/queries.yaml] mode changed to 644
  13050.  
  13051.  
  13052. - change mode from '' to '0644'
  13053.  
  13054. - change owner from '' to 'gitlab-psql'
  13055.  
  13056. [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
  13057.  
  13058. * execute[/opt/gitlab/bin/gitlab-ctl start postgres-exporter] action run
  13059.  
  13060. [execute] ok: run: postgres-exporter: (pid 2524007) 3s
  13061.  
  13062. [2023-06-12T08:53:37+00:00] INFO: execute[/opt/gitlab/bin/gitlab-ctl start postgres-exporter] ran successfully
  13063.  
  13064. - execute /opt/gitlab/bin/gitlab-ctl start postgres-exporter
  13065.  
  13066. * consul_service[postgres-exporter] action delete
  13067.  
  13068. * file[/var/opt/gitlab/consul/config.d/postgres-exporter-service.json] action delete (up to date)
  13069.  
  13070. (up to date)
  13071.  
  13072. Recipe: monitoring::grafana_disable
  13073.  
  13074. * service[grafana] action nothing (skipped due to action :nothing)
  13075.  
  13076. * runit_service[grafana] action disable
  13077.  
  13078. * ruby_block[disable grafana] action run (skipped due to only_if)
  13079.  
  13080. (up to date)
  13081.  
  13082. Recipe: gitlab::database_reindexing_disable
  13083.  
  13084. * crond_job[database-reindexing] action delete
  13085.  
  13086. * file[/var/opt/gitlab/crond/database-reindexing] action delete (up to date)
  13087.  
  13088. (up to date)
  13089.  
  13090. Recipe: gitlab-ee::sentinel_disable
  13091.  
  13092. * sentinel_service[redis] action disable
  13093.  
  13094. * service[sentinel] action nothing (skipped due to action :nothing)
  13095.  
  13096. * runit_service[sentinel] action disable
  13097.  
  13098. * ruby_block[disable sentinel] action run (skipped due to only_if)
  13099.  
  13100. (up to date)
  13101.  
  13102. * file[/var/opt/gitlab/sentinel/sentinel.conf] action delete (up to date)
  13103.  
  13104. * directory[/var/opt/gitlab/sentinel] action delete (up to date)
  13105.  
  13106. (up to date)
  13107.  
  13108. Recipe: gitlab-ee::geo-postgresql_disable
  13109.  
  13110. * service[geo-postgresql] action nothing (skipped due to action :nothing)
  13111.  
  13112. * runit_service[geo-postgresql] action disable
  13113.  
  13114. * ruby_block[disable geo-postgresql] action run (skipped due to only_if)
  13115.  
  13116. (up to date)
  13117.  
  13118. Recipe: gitlab-ee::geo-logcursor_disable
  13119.  
  13120. * service[geo-logcursor] action nothing (skipped due to action :nothing)
  13121.  
  13122. * runit_service[geo-logcursor] action disable
  13123.  
  13124. * ruby_block[disable geo-logcursor] action run (skipped due to only_if)
  13125.  
  13126. (up to date)
  13127.  
  13128. Recipe: consul::disable_daemon
  13129.  
  13130. * service[consul] action nothing (skipped due to action :nothing)
  13131.  
  13132. * runit_service[consul] action disable
  13133.  
  13134. * ruby_block[disable consul] action run (skipped due to only_if)
  13135.  
  13136. (up to date)
  13137.  
  13138. Recipe: pgbouncer::disable
  13139.  
  13140. * service[pgbouncer] action nothing (skipped due to action :nothing)
  13141.  
  13142. * runit_service[pgbouncer] action disable
  13143.  
  13144. * ruby_block[disable pgbouncer] action run (skipped due to only_if)
  13145.  
  13146. (up to date)
  13147.  
  13148. Recipe: patroni::disable
  13149.  
  13150. * service[patroni] action nothing (skipped due to action :nothing)
  13151.  
  13152. * runit_service[patroni] action disable
  13153.  
  13154. * ruby_block[disable patroni] action run (skipped due to only_if)
  13155.  
  13156. (up to date)
  13157.  
  13158. Recipe: spamcheck::disable
  13159.  
  13160. * service[spamcheck] action nothing (skipped due to action :nothing)
  13161.  
  13162. * runit_service[spamcheck] action disable
  13163.  
  13164. * ruby_block[disable spamcheck] action run (skipped due to only_if)
  13165.  
  13166. (up to date)
  13167.  
  13168. * service[spam-classifier] action nothing (skipped due to action :nothing)
  13169.  
  13170. * runit_service[spam-classifier] action disable
  13171.  
  13172. * ruby_block[disable spam-classifier] action run (skipped due to only_if)
  13173.  
  13174. (up to date)
  13175.  
  13176. Recipe: gitlab-ee::geo-secondary_disable
  13177.  
  13178. * templatesymlink[Removes the geo database settings from database.yml and create a symlink to Rails root] action create
  13179.  
  13180. * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
  13181.  
  13182. * 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)
  13183.  
  13184. (up to date)
  13185.  
  13186. Recipe: gitlab-ee::suggested_reviewers
  13187.  
  13188. * 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?
  13189.  
  13190.  
  13191. * 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
  13192.  
  13193.  
  13194. - 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
  13195.  
  13196.  
  13197. - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret from none to 6163f6
  13198.  
  13199. - 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
  13200.  
  13201. [2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] group changed to 0
  13202.  
  13203. [2023-06-12T08:53:37+00:00] INFO: template[/var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret] mode changed to 644
  13204.  
  13205.  
  13206. - change mode from '' to '0644'
  13207.  
  13208. - change owner from '' to 'root'
  13209.  
  13210. - change group from '' to 'root'
  13211.  
  13212. * 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
  13213.  
  13214.  
  13215. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_suggested_reviewers_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_suggested_reviewers_secret
  13216.  
  13217.  
  13218. [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)
  13219.  
  13220. Recipe: gitlab::gitlab-rails
  13221.  
  13222. * execute[clear the gitlab-rails cache] action run[2023-06-12T08:53:57+00:00] INFO: execute[clear the gitlab-rails cache] ran successfully
  13223.  
  13224.  
  13225. - execute /opt/gitlab/bin/gitlab-rake cache:clear
  13226.  
  13227. [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)
  13228.  
  13229. Recipe: gitlab-kas::enable
  13230.  
  13231. * runit_service[gitlab-kas] action restart (up to date)
  13232.  
  13233. [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)
  13234.  
  13235. Recipe: package::sysctl
  13236.  
  13237. * execute[reload all sysctl conf] action run
  13238.  
  13239. [execute] * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  13240.  
  13241. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
  13242.  
  13243. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
  13244.  
  13245. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
  13246.  
  13247. * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
  13248.  
  13249. * Applying /etc/sysctl.d/99-sysctl.conf ...
  13250.  
  13251. * Applying /usr/lib/sysctl.d/protect-links.conf ...
  13252.  
  13253. * Applying /etc/sysctl.conf ...
  13254.  
  13255. sysctl: permission denied on key "kernel.pid_max"
  13256.  
  13257. sysctl: permission denied on key "kernel.sem"
  13258.  
  13259. sysctl: permission denied on key "kernel.shmall"
  13260.  
  13261. sysctl: permission denied on key "kernel.shmmax"
  13262.  
  13263. sysctl: permission denied on key "fs.protected_fifos"
  13264.  
  13265. sysctl: permission denied on key "fs.protected_hardlinks"
  13266.  
  13267. sysctl: permission denied on key "fs.protected_regular"
  13268.  
  13269. sysctl: permission denied on key "fs.protected_symlinks"
  13270.  
  13271.  
  13272. ================================================================================
  13273.  
  13274. Error executing action `run` on resource 'execute[reload all sysctl conf]'
  13275.  
  13276. ================================================================================
  13277.  
  13278.  
  13279. Mixlib::ShellOut::ShellCommandFailed
  13280.  
  13281. ------------------------------------
  13282.  
  13283. Expected process to exit with [0], but received '255'
  13284.  
  13285. ---- Begin output of sysctl -e --system ----
  13286.  
  13287. STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  13288.  
  13289. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
  13290.  
  13291. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
  13292.  
  13293. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
  13294.  
  13295. * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
  13296.  
  13297. * Applying /etc/sysctl.d/99-sysctl.conf ...
  13298.  
  13299. * Applying /usr/lib/sysctl.d/protect-links.conf ...
  13300.  
  13301. * Applying /etc/sysctl.conf ...
  13302.  
  13303. STDERR: sysctl: permission denied on key "kernel.pid_max"
  13304.  
  13305. sysctl: permission denied on key "kernel.sem"
  13306.  
  13307. sysctl: permission denied on key "kernel.shmall"
  13308.  
  13309. sysctl: permission denied on key "kernel.shmmax"
  13310.  
  13311. sysctl: permission denied on key "fs.protected_fifos"
  13312.  
  13313. sysctl: permission denied on key "fs.protected_hardlinks"
  13314.  
  13315. sysctl: permission denied on key "fs.protected_regular"
  13316.  
  13317. sysctl: permission denied on key "fs.protected_symlinks"
  13318.  
  13319. ---- End output of sysctl -e --system ----
  13320.  
  13321. Ran sysctl -e --system returned 255
  13322.  
  13323.  
  13324. Resource Declaration:
  13325.  
  13326. ---------------------
  13327.  
  13328. # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/recipes/sysctl.rb
  13329.  
  13330.  
  13331. 18: execute "reload all sysctl conf" do
  13332.  
  13333. 19: command "sysctl -e --system"
  13334.  
  13335. 20: action :nothing
  13336.  
  13337. 21:
  13338.  
  13339. 22: only_if { node['package']['modify_kernel_parameters'] }
  13340.  
  13341. 23: end
  13342.  
  13343.  
  13344. Compiled Resource:
  13345.  
  13346. ------------------
  13347.  
  13348. # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/recipes/sysctl.rb:18:in `from_file'
  13349.  
  13350.  
  13351. execute("reload all sysctl conf") do
  13352.  
  13353. action [:nothing]
  13354.  
  13355. default_guard_interpreter :execute
  13356.  
  13357. command "sysctl -e --system"
  13358.  
  13359. declared_type :execute
  13360.  
  13361. cookbook_name "package"
  13362.  
  13363. recipe_name "sysctl"
  13364.  
  13365. domain nil
  13366.  
  13367. user nil
  13368.  
  13369. only_if { #code block }
  13370.  
  13371. end
  13372.  
  13373.  
  13374. System Info:
  13375.  
  13376. ------------
  13377.  
  13378. chef_version=17.10.0
  13379.  
  13380. platform=debian
  13381.  
  13382. platform_version=11
  13383.  
  13384. ruby=ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux]
  13385.  
  13386. program_name=/opt/gitlab/embedded/bin/cinc-client
  13387.  
  13388. executable=/opt/gitlab/embedded/bin/cinc-client
  13389.  
  13390.  
  13391. [2023-06-12T08:54:07+00:00] INFO: directory[/var/opt/gitlab/gitlab-workhorse/sockets] sending restart action to runit_service[gitlab-workhorse] (delayed)
  13392.  
  13393. Recipe: gitlab::gitlab-workhorse
  13394.  
  13395. * runit_service[gitlab-workhorse] action restart (up to date)
  13396.  
  13397. [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)
  13398.  
  13399. Recipe: monitoring::node-exporter
  13400.  
  13401. * runit_service[node-exporter] action restart (up to date)
  13402.  
  13403. [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)
  13404.  
  13405. Recipe: monitoring::gitlab-exporter
  13406.  
  13407. * runit_service[gitlab-exporter] action restart (up to date)
  13408.  
  13409. [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)
  13410.  
  13411. Recipe: monitoring::redis-exporter
  13412.  
  13413. * runit_service[redis-exporter] action restart (up to date)
  13414.  
  13415. [2023-06-12T08:54:09+00:00] INFO: env_dir[/opt/gitlab/etc/prometheus/env] sending restart action to runit_service[prometheus] (delayed)
  13416.  
  13417. Recipe: monitoring::prometheus
  13418.  
  13419. * runit_service[prometheus] action restart (up to date)
  13420.  
  13421. [2023-06-12T08:54:09+00:00] INFO: file[Prometheus config] sending run action to execute[reload prometheus] (delayed)
  13422.  
  13423. * execute[reload prometheus] action run[2023-06-12T08:54:10+00:00] INFO: execute[reload prometheus] ran successfully
  13424.  
  13425.  
  13426. - execute /opt/gitlab/bin/gitlab-ctl hup prometheus
  13427.  
  13428. [2023-06-12T08:54:10+00:00] INFO: env_dir[/opt/gitlab/etc/alertmanager/env] sending restart action to runit_service[alertmanager] (delayed)
  13429.  
  13430. Recipe: monitoring::alertmanager
  13431.  
  13432. * runit_service[alertmanager] action restart (up to date)
  13433.  
  13434. [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)
  13435.  
  13436. Recipe: monitoring::postgres-exporter
  13437.  
  13438. * runit_service[postgres-exporter] action restart (up to date)
  13439.  
  13440.  
  13441. Running handlers:
  13442.  
  13443. [2023-06-12T08:54:11+00:00] ERROR: Running exception handlers
  13444.  
  13445. There was an error running gitlab-ctl reconfigure:
  13446.  
  13447.  
  13448. execute[reload all sysctl conf] (package::sysctl line 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
  13449.  
  13450. ---- Begin output of sysctl -e --system ----
  13451.  
  13452. STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  13453.  
  13454. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
  13455.  
  13456. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
  13457.  
  13458. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
  13459.  
  13460. * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
  13461.  
  13462. * Applying /etc/sysctl.d/99-sysctl.conf ...
  13463.  
  13464. * Applying /usr/lib/sysctl.d/protect-links.conf ...
  13465.  
  13466. * Applying /etc/sysctl.conf ...
  13467.  
  13468. STDERR: sysctl: permission denied on key "kernel.pid_max"
  13469.  
  13470. sysctl: permission denied on key "kernel.sem"
  13471.  
  13472. sysctl: permission denied on key "kernel.shmall"
  13473.  
  13474. sysctl: permission denied on key "kernel.shmmax"
  13475.  
  13476. sysctl: permission denied on key "fs.protected_fifos"
  13477.  
  13478. sysctl: permission denied on key "fs.protected_hardlinks"
  13479.  
  13480. sysctl: permission denied on key "fs.protected_regular"
  13481.  
  13482. sysctl: permission denied on key "fs.protected_symlinks"
  13483.  
  13484. ---- End output of sysctl -e --system ----
  13485.  
  13486. Ran sysctl -e --system returned 255
  13487.  
  13488.  
  13489.  
  13490. Warnings:
  13491.  
  13492. Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
  13493.  
  13494.  
  13495.  
  13496. Notes:
  13497.  
  13498. Default admin account has been configured with following details:
  13499.  
  13500. Username: root
  13501.  
  13502. Password: You didn't opt-in to print initial root password to STDOUT.
  13503.  
  13504. Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
  13505.  
  13506.  
  13507. 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.
  13508.  
  13509.  
  13510. Running handlers complete
  13511.  
  13512. [2023-06-12T08:54:11+00:00] ERROR: Exception handlers complete
  13513.  
  13514. Infra Phase failed. 350 resources updated in 03 minutes 01 seconds
  13515.  
  13516.  
  13517. Warnings:
  13518.  
  13519. Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
  13520.  
  13521.  
  13522.  
  13523. Notes:
  13524.  
  13525. Default admin account has been configured with following details:
  13526.  
  13527. Username: root
  13528.  
  13529. Password: You didn't opt-in to print initial root password to STDOUT.
  13530.  
  13531. Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
  13532.  
  13533.  
  13534. 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.
  13535.  
  13536.  
  13537. [2023-06-12T08:54:11+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
  13538.  
  13539. [2023-06-12T08:54:11+00:00] FATAL: ---------------------------------------------------------------------------------------
  13540.  
  13541. [2023-06-12T08:54:11+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
  13542.  
  13543. [2023-06-12T08:54:11+00:00] FATAL: ---------------------------------------------------------------------------------------
  13544.  
  13545. [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'
  13546.  
  13547. ---- Begin output of sysctl -e --system ----
  13548.  
  13549. STDOUT: * Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  13550.  
  13551. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
  13552.  
  13553. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
  13554.  
  13555. * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
  13556.  
  13557. * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
  13558.  
  13559. * Applying /etc/sysctl.d/99-sysctl.conf ...
  13560.  
  13561. * Applying /usr/lib/sysctl.d/protect-links.conf ...
  13562.  
  13563. * Applying /etc/sysctl.conf ...
  13564.  
  13565. STDERR: sysctl: permission denied on key "kernel.pid_max"
  13566.  
  13567. sysctl: permission denied on key "kernel.sem"
  13568.  
  13569. sysctl: permission denied on key "kernel.shmall"
  13570.  
  13571. sysctl: permission denied on key "kernel.shmmax"
  13572.  
  13573. sysctl: permission denied on key "fs.protected_fifos"
  13574.  
  13575. sysctl: permission denied on key "fs.protected_hardlinks"
  13576.  
  13577. sysctl: permission denied on key "fs.protected_regular"
  13578.  
  13579. sysctl: permission denied on key "fs.protected_symlinks"
  13580.  
  13581. ---- End output of sysctl -e --system ----
  13582.  
  13583. Ran sysctl -e --system returned 255
Add Comment
Please, Sign In to add comment