Database Migration Error upgrading from 16.1.1-ce.0 to 16.2.0-ce.0 -- NoMethodError: undefined method `devise' for User:Class
Summary
An attempted Upgrade from 16.1.1-ce.0 to 16.2.0-ce.0 with Aptitude on Debian 11 was aborted with the Errors:
NoMethodError: undefined method `devise' for User:Class,
Error executing action `run` on resource 'bash_hide_env[migrate gitlab-rails database]',
and Mixlib::ShellOut::ShellCommandFailed.
This appears to happen during the database migration, and we are out of ideas (not that we had that many to begin with, besides restarting redis...). We attempted to run "gitlab-ctl reconfigure", with the same result. For now we backed everything up, and might plan for a rollback. Do you have an Idea, what is going on?
Steps to reproduce
Try to update the package with a Debian Package Manager
What is the current bug behavior?
Update aborted due to errors during the phase of database migration
What is the expected correct behavior?
A successful update
Relevant logs
Relevant logs
cinc-stacktrace.out:
Generated at 2023-07-22 15:48:14 +0200 Mixlib::ShellOut::ShellCommandFailed: rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: bash_hide_env[migrate gitlab-rails database] (gitlab::database_migrations line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of "bash" ---- STDOUT: rake aborted! NoMethodError: undefined method `devise' for User:Class /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted.rb:308:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted/adapters/active_record.rb:136:in `method_missing_with_attr_encrypted' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:89:in `' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:5:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:36:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:5:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:3:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:62:in `current_context' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:38:in `tags_payload' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:13:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:7:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:161:in `process_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:94:in `track_and_raise_for_dev_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab_settings/options.rb:154:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:81:in `block in ' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:39:in `' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/bin/bundle:25:in `load' /opt/gitlab/embedded/bin/bundle:25:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) STDERR: ---- End output of "bash" ---- Ran "bash" returned 1 /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/mixlib-shellout-3.2.7/lib/mixlib/shellout.rb:300:in `invalid!' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/mixlib-shellout-3.2.7/lib/mixlib/shellout.rb:287:in `error!' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/mixlib-shellout-3.2.7/lib/mixlib/shellout/helper.rb:130:in `shell_out_compacted!' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/mixlib-shellout-3.2.7/lib/mixlib/shellout/helper.rb:54:in `shell_out!' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider/execute.rb:52:in `block (2 levels) in ' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/mixin/why_run.rb:51:in `add_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:293:in `converge_by' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider/execute.rb:50:in `block in ' (eval):2:in `block in action_run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:304:in `instance_eval' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:304:in `compile_and_converge_action' (eval):2:in `action_run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:245:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:601:in `block in run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:628:in `with_umask' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:600:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:74:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `block in run_all_actions' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `each' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `run_all_actions' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection.rb:64:in `insert' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/dsl/declare_resource.rb:267:in `declare_resource' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/dsl/resources.rb:36:in `bash_hide_env' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb:20:in `block in class_from_file' (eval):2:in `block in action_run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:304:in `instance_eval' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:304:in `compile_and_converge_action' (eval):2:in `action_run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:245:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:601:in `block in run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:628:in `with_umask' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:600:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:74:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `block in run_all_actions' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `each' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `run_all_actions' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:132:in `block in converge' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/resource_list.rb:96:in `block in execute_each_resource' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/stepable_iterator.rb:54:in `each_with_index' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/resource_list.rb:94:in `execute_each_resource' /opt/gitlab/embedded/lib/ruby/3.0.0/forwardable.rb:238:in `execute_each_resource' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:130:in `converge' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:692:in `block in converge' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:687:in `catch' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:687:in `converge' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:711:in `converge_and_save' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:285:in `run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:305:in `run_with_graceful_exit_option' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:281:in `block in run_chef_client' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/local_mode.rb:42:in `with_server_connectivity' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:264:in `run_chef_client' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application/base.rb:352:in `run_application' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:67:in `run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-bin-17.10.0/bin/cinc-client:25:in `' /opt/gitlab/embedded/bin/cinc-client:25:in `load' /opt/gitlab/embedded/bin/cinc-client:25:in `' >>>> Caused by Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of "bash" ---- STDOUT: rake aborted! NoMethodError: undefined method `devise' for User:Class /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted.rb:308:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted/adapters/active_record.rb:136:in `method_missing_with_attr_encrypted' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:89:in `' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:5:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:36:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:5:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:3:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:62:in `current_context' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:38:in `tags_payload' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:13:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:7:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:161:in `process_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:94:in `track_and_raise_for_dev_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab_settings/options.rb:154:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:81:in `block in ' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:39:in `' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/bin/bundle:25:in `load' /opt/gitlab/embedded/bin/bundle:25:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) STDERR: ---- End output of "bash" ---- Ran "bash" returned 1 /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/mixlib-shellout-3.2.7/lib/mixlib/shellout.rb:300:in `invalid!' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/mixlib-shellout-3.2.7/lib/mixlib/shellout.rb:287:in `error!' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/mixlib-shellout-3.2.7/lib/mixlib/shellout/helper.rb:130:in `shell_out_compacted!' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/mixlib-shellout-3.2.7/lib/mixlib/shellout/helper.rb:54:in `shell_out!' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider/execute.rb:52:in `block (2 levels) in ' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/mixin/why_run.rb:51:in `add_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:293:in `converge_by' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider/execute.rb:50:in `block in ' (eval):2:in `block in action_run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:304:in `instance_eval' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:304:in `compile_and_converge_action' (eval):2:in `action_run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:245:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:601:in `block in run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:628:in `with_umask' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:600:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:74:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `block in run_all_actions' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `each' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `run_all_actions' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection.rb:64:in `insert' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/dsl/declare_resource.rb:267:in `declare_resource' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/dsl/resources.rb:36:in `bash_hide_env' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb:20:in `block in class_from_file' (eval):2:in `block in action_run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:304:in `instance_eval' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:304:in `compile_and_converge_action' (eval):2:in `action_run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/provider.rb:245:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:601:in `block in run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:628:in `with_umask' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource.rb:600:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:74:in `run_action' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `block in run_all_actions' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `each' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:108:in `run_all_actions' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:132:in `block in converge' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/resource_list.rb:96:in `block in execute_each_resource' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/stepable_iterator.rb:54:in `each_with_index' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/resource_collection/resource_list.rb:94:in `execute_each_resource' /opt/gitlab/embedded/lib/ruby/3.0.0/forwardable.rb:238:in `execute_each_resource' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/runner.rb:130:in `converge' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:692:in `block in converge' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:687:in `catch' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:687:in `converge' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:711:in `converge_and_save' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:285:in `run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:305:in `run_with_graceful_exit_option' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:281:in `block in run_chef_client' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/local_mode.rb:42:in `with_server_connectivity' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:264:in `run_chef_client' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application/base.rb:352:in `run_application' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:67:in `run' /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-bin-17.10.0/bin/cinc-client:25:in `' /opt/gitlab/embedded/bin/cinc-client:25:in `load' /opt/gitlab/embedded/bin/cinc-client:25:in `'
Console Buffer from during the Upgrade process (partially)
nstalled gitlab-ce package post-installation script subprocess returned error exit status 1 Setting up icinga2-bin (2.14.0-1+debian11) ... Setting up icinga2 (2.14.0-1+debian11) ... Processing triggers for man-db (2.9.4-2) ... Errors were encountered while processing: gitlab-ce [master 3dafdff] committing changes in /etc made by "aptitude safe-upgrade" Author: teel 5 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 gitlab/config_backup/gitlab_config_1690033120_2023_07_22.tar create mode 100644 icinga2/features-available/journald.conf E: Sub-process /usr/bin/dpkg returned an error code (1) Setting up gitlab-ce (16.2.0-ce.0) ... Checking PostgreSQL executables:[2023-07-22T15:47:17+02:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook) Cinc Client, version 17.10.0 Patents: https://www.chef.io/patents Infra Phase starting [2023-07-22T15:47:17+02:00] INFO: *** Cinc Client 17.10.0 *** [2023-07-22T15:47:17+02:00] INFO: Platform: x86_64-linux [2023-07-22T15:47:17+02:00] INFO: Cinc-client pid: 2474307 [2023-07-22T15:47:18+02:00] INFO: Setting the run_list to ["recipe[gitlab::config]", "recipe[postgresql::bin]"] from CLI options [2023-07-22T15:47:18+02:00] INFO: Run List is [recipe[gitlab::config], recipe[postgresql::bin]] [2023-07-22T15:47:18+02:00] INFO: Run List expands to [gitlab::config, postgresql::bin] [2023-07-22T15:47:18+02:00] INFO: Starting Cinc Client Run for gitlab.REDACTED.de [2023-07-22T15:47:18+02:00] INFO: Running start handlers [2023-07-22T15:47:18+02:00] INFO: Start handlers complete. Resolving cookbooks for run list: ["gitlab::config", "postgresql::bin"] [2023-07-22T15:47:19+02:00] INFO: Loading cookbooks [gitlab@0.0.1, postgresql@0.1.0, package@0.1.0, logrotate@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, consul@0.1.0, gitaly@0.1.0, praefect@0.1.0, gitlab-kas@0.1.0, gitlab-pages@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, runit@5.1.7, acme@4.1.6, crond@0.1.0] Synchronizing cookbooks: - logrotate (0.1.0) - registry (0.1.0) - package (0.1.0) - redis (0.1.0) - gitlab (0.0.1) - praefect (0.1.0) - gitlab-kas (0.1.0) - monitoring (0.1.0) - letsencrypt (0.1.0) - runit (5.1.7) - acme (4.1.6) - mattermost (0.1.0) - postgresql (0.1.0) - nginx (0.1.0) - consul (0.1.0) - gitlab-pages (0.1.0) - crond (0.1.0) - gitaly (0.1.0) Installing cookbook gem dependencies: Compiling cookbooks... Loading Cinc Auditor profile files: Loading Cinc Auditor input files: Loading Cinc Auditor waiver files: [2023-07-22T15:47:21+02:00] INFO: Generating default secrets [2023-07-22T15:47:23+02:00] INFO: Generating gitlab-secrets.json file Converging 4 resources Recipe: postgresql::bin * ruby_block[check_postgresql_version] action run (skipped due to not_if) * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if) * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if) * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date) [2023-07-22T15:47:23+02:00] INFO: Cinc Client Run complete in 5.305913941 seconds Running handlers: [2023-07-22T15:47:23+02:00] INFO: Running report handlers Running handlers complete [2023-07-22T15:47:23+02:00] INFO: Report handlers complete Infra Phase complete, 0/4 resources updated in 06 seconds Checking PostgreSQL executables: OK Shutting down all GitLab services except those needed for migrations ok: down: alertmanager: 98s, normally up ok: down: gitlab-exporter: 97s, normally up ok: down: gitlab-kas: 0s, normally up ok: down: gitlab-pages: 97s, normally up ok: down: gitlab-workhorse: 97s, normally up ok: down: logrotate: 96s, normally up ok: down: nginx: 96s, normally up ok: down: node-exporter: 95s, normally up ok: down: postgres-exporter: 95s, normally up ok: down: prometheus: 94s, normally up ok: down: puma: 90s, normally up ok: down: redis-exporter: 90s, normally up ok: down: registry: 89s, normally up ok: down: sidekiq: 86s, normally up Ensuring the required services are running ok: run: postgresql: (pid 541) 302504s ok: run: redis: (pid 522) 302504s ok: run: gitaly: (pid 2465504) 36s run: postgresql: (pid 541) 302504s; run: log: (pid 538) 302504s run: redis: (pid 522) 302504s; run: log: (pid 517) 302504s run: gitaly: (pid 2465504) 36s; run: log: (pid 532) 302504s Reconfigure GitLab to apply migrations [2023-07-22T15:47:37+02:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook) Cinc Client, version 17.10.0 Patents: https://www.chef.io/patents Infra Phase starting [2023-07-22T15:47:37+02:00] INFO: *** Cinc Client 17.10.0 *** [2023-07-22T15:47:37+02:00] INFO: Platform: x86_64-linux [2023-07-22T15:47:37+02:00] INFO: Cinc-client pid: 2474410 [2023-07-22T15:47:38+02:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options [2023-07-22T15:47:38+02:00] INFO: Run List is [recipe[gitlab]] [2023-07-22T15:47:38+02:00] INFO: Run List expands to [gitlab] [2023-07-22T15:47:38+02:00] INFO: Starting Cinc Client Run for gitlab.REDACTED.de [2023-07-22T15:47:38+02:00] INFO: Running start handlers [2023-07-22T15:47:38+02:00] INFO: Start handlers complete. Resolving cookbooks for run list: ["gitlab"] [2023-07-22T15:47:39+02:00] INFO: Loading cookbooks [gitlab@0.0.1, package@0.1.0, logrotate@0.1.0, postgresql@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, consul@0.1.0, gitaly@0.1.0, praefect@0.1.0, gitlab-kas@0.1.0, gitlab-pages@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, runit@5.1.7, acme@4.1.6, crond@0.1.0] Synchronizing cookbooks: - redis (0.1.0) - logrotate (0.1.0) - registry (0.1.0) - package (0.1.0) - consul (0.1.0) - gitlab-kas (0.1.0) - postgresql (0.1.0) - letsencrypt (0.1.0) - gitlab (0.0.1) - runit (5.1.7) - mattermost (0.1.0) - crond (0.1.0) - monitoring (0.1.0) - gitaly (0.1.0) - praefect (0.1.0) - acme (4.1.6) - gitlab-pages (0.1.0) - nginx (0.1.0) Installing cookbook gem dependencies: Compiling cookbooks... Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead! Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead! Loading Cinc Auditor profile files: Loading Cinc Auditor input files: Loading Cinc Auditor waiver files: [2023-07-22T15:47:40+02:00] INFO: Generating default secrets [2023-07-22T15:47:43+02:00] INFO: Generating gitlab-secrets.json file [2023-07-22T15:47:43+02:00] WARN: Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings. Recipe: gitlab::default * directory[/etc/gitlab] action create (up to date) [2023-07-22T15:47:43+02:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: Selected systemd because /run/systemd/system/ exists [2023-07-22T15:47:43+02:00] WARN: gitlab-shell does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: gitlab-sshd does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: logrotate does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: logrotate does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: puma does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: gitlab-shell does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: gitlab-workhorse does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: gitlab-pages does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: gitlab-kas does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: gitaly does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: mailroom does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:43+02:00] WARN: gitaly does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: postgresql does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: postgresql does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: gitlab-kas does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: puma does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: sidekiq does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: gitlab-workhorse does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: gitlab-pages does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: registry does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: node-exporter does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: gitlab-exporter does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: redis-exporter does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: prometheus does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: alertmanager does not have a log_group or default logdir mode defined. Setting to 0700. [2023-07-22T15:47:44+02:00] WARN: postgres-exporter does not have a log_group or default logdir mode defined. Setting to 0700. /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:25: warning: already initialized constant MACROS_MARKER /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:25: warning: previous definition of MACROS_MARKER was here /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:27: warning: already initialized constant DO_NOT_SPLIT /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:27: warning: previous definition of DO_NOT_SPLIT was here Converging 294 resources * directory[/etc/gitlab] action create (up to date) * directory[Create /var/opt/gitlab] action create (up to date) * directory[Create /var/log/gitlab] action create (up to date) * directory[/opt/gitlab/embedded/etc] action create (up to date) * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date) Recipe: gitlab::web-server * account[Webserver user and group] action create * group[Webserver user and group] action create (up to date) * linux_user[Webserver user and group] action create (up to date) (up to date) Recipe: gitlab::users * directory[/var/opt/gitlab] action create (up to date) * account[GitLab user and group] action create * group[GitLab user and group] action create (up to date) * linux_user[GitLab user and group] action create (up to date) (up to date) * template[/var/opt/gitlab/.gitconfig] action create (up to date) * directory[/var/opt/gitlab/.bundle] action create (up to date) Recipe: gitlab::gitlab-rails * storage_directory[/opt/git/] action create * ruby_block[directory resource: /opt/git/] action run (skipped due to not_if) (up to date) * storage_directory[/opt/git/repositories] action create * ruby_block[directory resource: /opt/git/repositories] action run (skipped due to not_if) (up to date) Recipe: gitlab::rails_pages_shared_path * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if) (up to date) Recipe: gitlab::gitlab-rails * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/terraform_state] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/terraform_state] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/ci_secure_files] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if) (up to date) * storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if) * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date) * directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date) * directory[create tmp/repositories] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date) * directory[/var/log/gitlab/gitlab-rails] action create (up to date) * storage_directory[/var/opt/gitlab/backups] action create * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if) (up to date) * directory[/var/opt/gitlab/gitlab-rails] action create (up to date) * directory[/var/opt/gitlab/gitlab-ci] action create (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create[2023-07-22T15:47:46+02:00] WARN: only_if block for file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] returned a string, did you mean to run a command? (up to date) * template[/opt/gitlab/etc/gitlab-rails-rc] action create (up to date) * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date) * templatesymlink[Create a database.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date) (up to date) * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date) (up to date) * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date) (up to date) * templatesymlink[Create an override redis.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/redis.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/redis.yml to /var/opt/gitlab/gitlab-rails/etc/redis.yml] action create (up to date) (up to date) * templatesymlink[Create a cable.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/cable.yml to /var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date) (up to date) * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date) (up to date) * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date) (up to date) * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date) (up to date) * templatesymlink[Create a redis.trace_chunks.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/redis.trace_chunks.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.trace_chunks.yml] action delete (up to date) (up to date) * templatesymlink[Create a redis.rate_limiting.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/redis.rate_limiting.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.rate_limiting.yml] action delete (up to date) (up to date) * templatesymlink[Create a redis.sessions.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/redis.sessions.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.sessions.yml] action delete (up to date) (up to date) * templatesymlink[Create a redis.repository_cache.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/redis.repository_cache.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.repository_cache.yml] action delete (up to date) (up to date) * templatesymlink[Create a redis.cluster_rate_limiting.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/redis.cluster_rate_limiting.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cluster_rate_limiting.yml] action delete (up to date) (up to date) * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb to /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action create (up to date) (up to date) * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date) * 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) (up to date) * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date) (up to date) * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date) (up to date) * templatesymlink[Create a gitlab_incoming_email_secret and create a symlink to Rails root] action create (skipped due to only_if) * templatesymlink[Create a gitlab_service_desk_email_secret and create a symlink to Rails root] action create (skipped due to only_if) * templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] action create[2023-07-22T15:47:46+02:00] WARN: only_if block for templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] returned a string, did you mean to run a command? * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date) (up to date) * templatesymlink[Create a gitlab_kas_secret and create a symlink to Rails root] action create[2023-07-22T15:47:46+02:00] WARN: only_if block for templatesymlink[Create a gitlab_kas_secret and create a symlink to Rails root] returned a string, did you mean to run a command? * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date) * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create * directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/PUMA_WORKER_MAX_MEMORY] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_DIR] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/SSL_CERT_FILE] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date) * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action delete (skipped due to only_if) * file[/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql] action create (up to date) * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date) * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date) * version_file[Create version file for Rails] action create * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date) (up to date) * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date) Recipe: gitlab::selinux * bash[Set proper security context on ssh files for selinux] action nothing (skipped due to action :nothing) Recipe: gitlab::add_trusted_certs * directory[/etc/gitlab/trusted-certs] action create (up to date) * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date) * file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date) * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if) Recipe: gitlab::default * service[create a temporary puma service] action nothing (skipped due to action :nothing) * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing) * service[create a temporary mailroom service] action nothing (skipped due to action :nothing) Recipe: package::runit_systemd * directory[/usr/lib/systemd/system] action create (up to date) * template[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date) * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date) * file[/etc/systemd/system/basic.target.wants/gitlab-runsvdir.service] action delete (up to date) * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing) * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing) * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-shell * storage_directory[/var/opt/gitlab/.ssh] action create * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if) (up to date) * directory[/var/opt/gitlab/gitlab-shell] action create (up to date) * directory[/var/log/gitlab/gitlab-shell] action create (up to date) * bash[generate gitlab-sshd host keys] action run (skipped due to only_if) * templatesymlink[Create a config.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date) * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date) * env_dir[/opt/gitlab/etc/gitlab-sshd/env] action nothing (skipped due to action :nothing) * service[gitlab-sshd] action nothing (skipped due to action :nothing) * runit_service[gitlab-sshd] action disable * ruby_block[disable gitlab-sshd] action run (skipped due to only_if) (up to date) Recipe: package::sysctl * execute[reload all sysctl conf] action nothing (skipped due to action :nothing) Recipe: logrotate::folders_and_configs * directory[/var/opt/gitlab/logrotate] action create (up to date) * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date) * directory[/var/log/gitlab/logrotate] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/puma] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-kas] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitaly] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/mailroom] action create (up to date) Recipe: logrotate::enable * service[logrotate] action nothing (skipped due to action :nothing) * runit_service[logrotate] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/logrotate] action create (up to date) * template[/opt/gitlab/sv/logrotate/run] action create (up to date) * directory[/opt/gitlab/sv/logrotate/log] action create (up to date) * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date) * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date) * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing) * link[/var/log/gitlab/logrotate/config] action create (up to date) * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date) * directory[/opt/gitlab/sv/logrotate/env] action create (up to date) * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if) * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/logrotate/control] action create (up to date) * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date) * link[/opt/gitlab/init/logrotate] action create (up to date) * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/logrotate] action create (up to date) * ruby_block[wait for logrotate service socket] action run (skipped due to not_if) * file[/var/log/gitlab/logrotate/current] action touch (skipped due to only_if) (up to date) Recipe: redis::enable * redis_service[redis] action create[2023-07-22T15:47:47+02:00] WARN: redis does not have a log_group or default logdir mode defined. Setting to 0700. * account[user and group for redis] action create * group[user and group for redis] action create (up to date) * linux_user[user and group for redis] action create (up to date) (up to date) * group[Socket group] action create (up to date) * directory[/var/opt/gitlab/redis] action create (up to date) * directory[/var/log/gitlab/redis] action create (up to date) * template[/var/opt/gitlab/redis/redis.conf] action create (up to date) * service[redis] action nothing (skipped due to action :nothing) * runit_service[redis] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/redis] action create (up to date) * template[/opt/gitlab/sv/redis/run] action create (up to date) * directory[/opt/gitlab/sv/redis/log] action create (up to date) * directory[/opt/gitlab/sv/redis/log/main] action create (up to date) * template[/opt/gitlab/sv/redis/log/config] action create (up to date) * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing) * link[/var/log/gitlab/redis/config] action create (up to date) * template[/opt/gitlab/sv/redis/log/run] action create (up to date) * directory[/opt/gitlab/sv/redis/env] action create (up to date) * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if) * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/redis/control] action create (up to date) * link[/opt/gitlab/init/redis] action create (up to date) * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/redis] action create (up to date) * ruby_block[wait for redis service socket] action run (skipped due to not_if) * file[/var/log/gitlab/redis/current] action touch (skipped due to only_if) (up to date) * ruby_block[warn pending redis restart] action run[2023-07-22T15:47:47+02:00] WARN: The version of the running redis service is different than what is installed. Please restart redis to start the new version. sudo gitlab-ctl restart redis [2023-07-22T15:47:47+02:00] INFO: ruby_block[warn pending redis restart] called - execute the ruby block warn pending redis restart * template[/opt/gitlab/etc/gitlab-redis-cli-rc] action create (up to date) Recipe: gitaly::enable * directory[/var/opt/gitlab/gitaly] action create (up to date) * directory[/var/opt/gitlab/gitaly/run] action create (up to date) * directory[/var/log/gitlab/gitaly] action create (up to date) * directory[/var/opt/gitlab/gitaly/internal_sockets] action delete (up to date) * env_dir[/opt/gitlab/etc/gitaly/env] action create * directory[/opt/gitlab/etc/gitaly/env] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/HOME] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/PATH] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/TZ] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create (up to date) (up to date) * template[Create Gitaly config.toml] action create (up to date) * service[gitaly] action nothing (skipped due to action :nothing) * runit_service[gitaly] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/gitaly] action create (up to date) * template[/opt/gitlab/sv/gitaly/run] action create (up to date) * directory[/opt/gitlab/sv/gitaly/log] action create (up to date) * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date) * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date) * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing) * link[/var/log/gitlab/gitaly/config] action create (up to date) * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date) * directory[/opt/gitlab/sv/gitaly/env] action create (up to date) * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if) * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/gitaly/control] action create (up to date) * link[/opt/gitlab/init/gitaly] action create (up to date) * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/gitaly] action create (up to date) * ruby_block[wait for gitaly service socket] action run (skipped due to not_if) * file[/var/log/gitlab/gitaly/current] action touch (skipped due to only_if) (up to date) * version_file[Create version file for Gitaly] action create * file[/var/opt/gitlab/gitaly/VERSION] action create (up to date) (up to date) * consul_service[gitaly] action delete * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date) (up to date) Recipe: postgresql::bin * ruby_block[check_postgresql_version] action run (skipped due to not_if) * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if) * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if) * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date) Recipe: postgresql::user * account[Postgresql user and group] action create * group[Postgresql user and group] action create (up to date) * linux_user[Postgresql user and group] action create (up to date) (up to date) * directory[/var/opt/gitlab/postgresql] action create (up to date) * file[/var/opt/gitlab/postgresql/.profile] action create (up to date) Recipe: postgresql::sysctl * gitlab_sysctl[kernel.shmmax] action create * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date) * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing) (up to date) * gitlab_sysctl[kernel.shmall] action create * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date) * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing) (up to date) * gitlab_sysctl[kernel.sem] action create * directory[create /etc/sysctl.d for kernel.sem] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date) * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing) (up to date) Recipe: postgresql::enable * directory[/var/opt/gitlab/postgresql] action create (up to date) * directory[/var/opt/gitlab/postgresql/data] action create (up to date) * directory[/var/opt/gitlab/postgresql/data] action create (up to date) * directory[/var/log/gitlab/postgresql] action create (up to date) * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if) * file[/var/opt/gitlab/postgresql/data/server.crt] action create (up to date) * file[/var/opt/gitlab/postgresql/data/server.key] action create (up to date) * postgresql_config[gitlab] action create * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date) (up to date) Recipe: postgresql::standalone * service[postgresql] action nothing (skipped due to action :nothing) * runit_service[postgresql] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/postgresql] action create (up to date) * template[/opt/gitlab/sv/postgresql/run] action create (up to date) * directory[/opt/gitlab/sv/postgresql/log] action create (up to date) * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date) * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date) * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing) * link[/var/log/gitlab/postgresql/config] action create (up to date) * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date) * directory[/opt/gitlab/sv/postgresql/env] action create (up to date) * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if) * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/postgresql/control] action create (up to date) * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date) * link[/opt/gitlab/init/postgresql] action create (up to date) * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/postgresql] action create (up to date) * ruby_block[wait for postgresql service socket] action run (skipped due to not_if) * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date) * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date) * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if) * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch (skipped due to only_if) * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if) * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if) (up to date) * database_objects[postgresql] action create * postgresql_user[gitlab] action create * execute[create gitlab postgresql user] action run (skipped due to not_if) (up to date) * postgresql_user[gitlab_replicator] action create * execute[create gitlab_replicator postgresql user] action run (skipped due to not_if) * execute[set options for gitlab_replicator postgresql user] action run (skipped due to not_if) (up to date) * postgresql_database[gitlabhq_production] action create * execute[create database gitlabhq_production] action run (skipped due to not_if) (up to date) * postgresql_extension[pg_trgm] action enable * postgresql_query[enable pg_trgm extension] action run (skipped due to only_if) (up to date) * postgresql_extension[btree_gist] action enable * postgresql_query[enable btree_gist extension] action run (skipped due to only_if) (up to date) (up to date) * version_file[Create version file for PostgreSQL] action create * file[/var/opt/gitlab/postgresql/VERSION] action create (up to date) (up to date) * ruby_block[warn pending postgresql restart] action run (skipped due to only_if) * execute[reload postgresql] action nothing (skipped due to action :nothing) * execute[start postgresql] action nothing (skipped due to action :nothing) Recipe: praefect::disable * service[praefect] action nothing (skipped due to action :nothing) * runit_service[praefect] action disable * ruby_block[disable praefect] action run (skipped due to only_if) (up to date) * consul_service[praefect] action delete * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date) (up to date) Recipe: gitlab-kas::enable * directory[/var/opt/gitlab/gitlab-kas] action create (up to date) * directory[/opt/gitlab/etc/gitlab-kas] action create (up to date) * directory[/var/log/gitlab/gitlab-kas] action create (up to date) * ruby_block[websocket TLS termination] action run (skipped due to only_if) * version_file[Create version file for Gitlab KAS] action create * file[/var/opt/gitlab/gitlab-kas/VERSION] action create (up to date) (up to date) * file[/var/opt/gitlab/gitlab-kas/authentication_secret_file] action create (up to date) * file[/var/opt/gitlab/gitlab-kas/private_api_authentication_secret_file] action create (up to date) * file[/var/opt/gitlab/gitlab-kas/redis_password_file] action create (skipped due to only_if) * file[/var/opt/gitlab/gitlab-kas/redis_sentinels_password_file] action create (skipped due to only_if) * template[/var/opt/gitlab/gitlab-kas/gitlab-kas-config.yml] action create (up to date) * env_dir[/opt/gitlab/etc/gitlab-kas/env] action create * directory[/opt/gitlab/etc/gitlab-kas/env] action create (up to date) * file[/opt/gitlab/etc/gitlab-kas/env/SSL_CERT_DIR] action create (up to date) * file[/opt/gitlab/etc/gitlab-kas/env/OWN_PRIVATE_API_URL] action create (up to date) (up to date) * service[gitlab-kas] action nothing (skipped due to action :nothing) * runit_service[gitlab-kas] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/gitlab-kas] action create (up to date) * template[/opt/gitlab/sv/gitlab-kas/run] action create (up to date) * directory[/opt/gitlab/sv/gitlab-kas/log] action create (up to date) * directory[/opt/gitlab/sv/gitlab-kas/log/main] action create (up to date) * template[/opt/gitlab/sv/gitlab-kas/log/config] action create (up to date) * ruby_block[verify_chown_persisted_on_gitlab-kas] action nothing (skipped due to action :nothing) * link[/var/log/gitlab/gitlab-kas/config] action create (up to date) * template[/opt/gitlab/sv/gitlab-kas/log/run] action create (up to date) * directory[/opt/gitlab/sv/gitlab-kas/env] action create (up to date) * ruby_block[Delete unmanaged env files for gitlab-kas service] action run (skipped due to only_if) * template[/opt/gitlab/sv/gitlab-kas/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/gitlab-kas/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/gitlab-kas/control] action create (up to date) * link[/opt/gitlab/init/gitlab-kas] action create (up to date) * file[/opt/gitlab/sv/gitlab-kas/down] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/gitlab-kas] action create (up to date) * ruby_block[wait for gitlab-kas service socket] action run (skipped due to not_if) * file[/var/log/gitlab/gitlab-kas/current] action touch (skipped due to only_if) (up to date) Recipe: gitlab::database_migrations * ruby_block[check remote PG version] action nothing (skipped due to action :nothing) * rails_migration[gitlab-rails] action run[2023-07-22T15:47:52+02:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700. * bash_hide_env[migrate gitlab-rails database] action run [execute] rake aborted! NoMethodError: undefined method `devise' for User:Class /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted.rb:308:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted/adapters/active_record.rb:136:in `method_missing_with_attr_encrypted' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:89:in `' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:5:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:36:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:5:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:3:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:62:in `current_context' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:38:in `tags_payload' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:13:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:7:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:161:in `process_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:94:in `track_and_raise_for_dev_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab_settings/options.rb:154:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:81:in `block in ' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:39:in `' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/bin/bundle:25:in `load' /opt/gitlab/embedded/bin/bundle:25:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) ================================================================================ Error executing action `run` on resource 'bash_hide_env[migrate gitlab-rails database]' ================================================================================ Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '1' ---- Begin output of "bash" ---- STDOUT: rake aborted! NoMethodError: undefined method `devise' for User:Class /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted.rb:308:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted/adapters/active_record.rb:136:in `method_missing_with_attr_encrypted' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:89:in `' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:5:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:36:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:5:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:3:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:62:in `current_context' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:38:in `tags_payload' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:13:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:7:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:161:in `process_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:94:in `track_and_raise_for_dev_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab_settings/options.rb:154:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:81:in `block in ' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:39:in `' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/bin/bundle:25:in `load' /opt/gitlab/embedded/bin/bundle:25:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) STDERR: ---- End output of "bash" ---- Ran "bash" returned 1 Cookbook Trace: (most recent call first) ---------------------------------------- /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb:20:in `block in class_from_file' Resource Declaration: --------------------- # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb 20: bash_hide_env "migrate #{new_resource.name} database" do 21: code <<-EOH 22: set -e 23: log_file="#{logging_settings[:log_directory]}/#{new_resource.logfile_prefix}-$(date +%Y-%m-%d-%H-%M-%S).log" 24: umask 077 25: /opt/gitlab/bin/gitlab-rake #{new_resource.rake_task} 2>& 1 | tee ${log_file} 26: STATUS=${PIPESTATUS[0]} 27: chown #{account_helper.gitlab_user}:#{account_helper.gitlab_group} ${log_file} 28: echo $STATUS > #{new_resource.helper.db_migrate_status_file} 29: exit $STATUS 30: EOH 31: 32: environment new_resource.environment if new_resource.property_is_set?(:environment) 33: new_resource.dependent_services.each do |svc| 34: notifies :restart, svc, :immediately 35: end 36: 37: not_if { new_resource.helper.migrated? } 38: sensitive false 39: end 40: end Compiled Resource: ------------------ # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb:20:in `block in class_from_file' bash_hide_env("migrate gitlab-rails database") do action [:run] default_guard_interpreter :default interpreter "bash" declared_type :bash_hide_env cookbook_name "gitlab" recipe_name "database_migrations" code " set -e\n log_file=\"/var/log/gitlab/gitlab-rails/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log\"\n umask 077\n /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}\n STATUS=${PIPESTATUS[0]}\n chown git:git ${log_file}\n echo $STATUS > /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-be59e761f20\n exit $STATUS\n" environment "*sensitive value suppressed*" sensitive false domain nil user nil not_if { #code block } end System Info: ------------ chef_version=17.10.0 platform=debian platform_version=11 ruby=ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux] program_name=/opt/gitlab/embedded/bin/cinc-client executable=/opt/gitlab/embedded/bin/cinc-client ================================================================================ Error executing action `run` on resource 'rails_migration[gitlab-rails]' ================================================================================ Mixlib::ShellOut::ShellCommandFailed ------------------------------------ bash_hide_env[migrate gitlab-rails database] (gitlab::database_migrations line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of "bash" ---- STDOUT: rake aborted! NoMethodError: undefined method `devise' for User:Class /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted.rb:308:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted/adapters/active_record.rb:136:in `method_missing_with_attr_encrypted' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:89:in `' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:5:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:36:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:5:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:3:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:62:in `current_context' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:38:in `tags_payload' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:13:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:7:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:161:in `process_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:94:in `track_and_raise_for_dev_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab_settings/options.rb:154:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:81:in `block in ' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:39:in `' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/bin/bundle:25:in `load' /opt/gitlab/embedded/bin/bundle:25:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) STDERR: ---- End output of "bash" ---- Ran "bash" returned 1 Cookbook Trace: (most recent call first) ---------------------------------------- /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb:20:in `block in class_from_file' Resource Declaration: --------------------- # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb 51: rails_migration "gitlab-rails" do 52: rake_task 'gitlab:db:configure' 53: logfile_prefix 'gitlab-rails-db-migrate' 54: helper migration_helper 55: 56: environment env_variables 57: dependent_services dependent_services 58: notifies :run, "execute[clear the gitlab-rails cache]", :immediately 59: notifies :run, "ruby_block[check remote PG version]", :immediately 60: 61: only_if { migration_helper.attributes_node['auto_migrate'] } 62: end Compiled Resource: ------------------ # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb:51:in `from_file' rails_migration("gitlab-rails") do action [:run] default_guard_interpreter :default declared_type :rails_migration cookbook_name "gitlab" recipe_name "database_migrations" rake_task "gitlab:db:configure" logfile_prefix "gitlab-rails-db-migrate" helper "*sensitive value suppressed*" environment "*sensitive value suppressed*" dependent_services [] only_if { #code block } end System Info: ------------ chef_version=17.10.0 platform=debian platform_version=11 ruby=ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux] program_name=/opt/gitlab/embedded/bin/cinc-client executable=/opt/gitlab/embedded/bin/cinc-client [2023-07-22T15:48:14+02:00] INFO: Running queued delayed notifications before re-raising exception Running handlers: [2023-07-22T15:48:14+02:00] ERROR: Running exception handlers There was an error running gitlab-ctl reconfigure: rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: bash_hide_env[migrate gitlab-rails database] (gitlab::database_migrations line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of "bash" ---- STDOUT: rake aborted! NoMethodError: undefined method `devise' for User:Class /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted.rb:308:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted/adapters/active_record.rb:136:in `method_missing_with_attr_encrypted' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:89:in `' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:5:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:36:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:5:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:3:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:62:in `current_context' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:38:in `tags_payload' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:13:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:7:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:161:in `process_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:94:in `track_and_raise_for_dev_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab_settings/options.rb:154:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:81:in `block in ' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:39:in `' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/bin/bundle:25:in `load' /opt/gitlab/embedded/bin/bundle:25:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) STDERR: ---- End output of "bash" ---- Ran "bash" returned 1 Warnings: Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings. The version of the running redis service is different than what is installed. Please restart redis to start the new version. sudo gitlab-ctl restart redis Running handlers complete [2023-07-22T15:48:14+02:00] ERROR: Exception handlers complete Infra Phase failed. 2 resources updated in 37 seconds Warnings: Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings. The version of the running redis service is different than what is installed. Please restart redis to start the new version. sudo gitlab-ctl restart redis [2023-07-22T15:48:14+02:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out [2023-07-22T15:48:14+02:00] FATAL: --------------------------------------------------------------------------------------- [2023-07-22T15:48:14+02:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT [2023-07-22T15:48:14+02:00] FATAL: --------------------------------------------------------------------------------------- [2023-07-22T15:48:14+02:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: bash_hide_env[migrate gitlab-rails database] (gitlab::database_migrations line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of "bash" ---- STDOUT: rake aborted! NoMethodError: undefined method `devise' for User:Class /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted.rb:308:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/vendor/gems/attr_encrypted/lib/attr_encrypted/adapters/active_record.rb:136:in `method_missing_with_attr_encrypted' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:89:in `' /opt/gitlab/embedded/service/gitlab-rails/app/models/user.rb:5:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:36:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:5:in `' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/application_context.rb:3:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:62:in `current_context' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:38:in `tags_payload' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:13:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking/context_payload_generator.rb:7:in `generate' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:161:in `process_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/error_tracking.rb:94:in `track_and_raise_for_dev_exception' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab_settings/options.rb:154:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:81:in `block in ' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:39:in `' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `' :37:in `require' :37:in `require' /opt/gitlab/embedded/bin/bundle:25:in `load' /opt/gitlab/embedded/bin/bundle:25:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) STDERR: ---- End output of "bash" ---- Ran "bash" returned 1 === There was an error running gitlab-ctl reconfigure. Please check the output above for more details. === dpkg: error processing package gitlab-ce (--configure): installed gitlab-ce package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: gitlab-ce Current status: 0 (-4) upgradable.
Details of Package Version
Provide the package version installation details
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-=========================================================== iF gitlab-ce 16.2.0-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis) un gitlab-ee (no description available) un gitlab-fips (no description available)
Environment Details
- Operating System:
Debian 11
- Installation Target:
- VM:
KVM, qemu, libvirtd
- VM:
- Installation Type:
- Upgrade from version
16.1.1-ce.0
- Upgrade from version
- Is there any other software running on the machine:
icinga2 2.14.0-1+debian11
- Is this a single or multiple node installation?
- Single Node Omnibus Installation with Runners on different VM
- Resources
- CPU:
2 cores a 2.49Ghz
- Memory total:
6G
- CPU:
Configuration Details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
external_url 'https://gitlab.REDACTED.de' nginx['redirect_http_to_https'] = true nginx['hsts_max_age'] = 31536000 nginx['hsts_include_subdomains'] = false nginx['ssl_protocols'] = "TLSv1.2"
gitlab_rails['gitlab_email_enabled'] = true gitlab_rails['gitlab_email_from'] = 'gitlab@gitlab.REDACTED.de' gitlab_rails['gitlab_email_display_name'] = 'REDACTED REDACTED SUPERREDACTED' gitlab_rails['gitlab_email_reply_to'] = 'noreply@gitlab.REDACTED.de' gitlab_rails['gitlab_email_subject_suffix'] = ''
gitlab_rails['gitlab_default_projects_features_issues'] = true gitlab_rails['gitlab_default_projects_features_merge_requests'] = true gitlab_rails['gitlab_default_projects_features_wiki'] = true gitlab_rails['gitlab_default_projects_features_snippets'] = true
gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
gitlab_rails['expire_build_artifacts_worker_cron'] = "50 * * * *"
REDACTED
git_data_dirs({ "default" => { "path" => "/opt/git/" } })
gitlab_rails['gitlab_shell_ssh_port'] = 22 gitlab_rails['gitlab_shell_git_timeout'] = 800
gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "mail.REDACTED.de" gitlab_rails['smtp_port'] = 25 gitlab_rails['smtp_domain'] = "gitlab.REDACTED.de" gitlab_rails['smtp_openssl_verify_mode'] = 'none' gitlab_rails['smtp_enable_starttls_auto'] = true
registry_external_url 'https://gitlab.REDACTED.de:5005'
gitlab_rails['registry_enabled'] = true gitlab_rails['registry_host'] = "gitlab.REDACTED.de" gitlab_rails['registry_port'] = "5005" gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
pages_external_url "http://gitlab.REDACTED.de/" gitlab_pages['enable'] = true
registry_nginx['enable'] = true registry_nginx['ssl_certificate'] = "/etc/ssl/private/#{node['fqdn']}_fullchain.pem" registry_nginx['ssl_certificate_key'] = "/etc/ssl/private/#{node['fqdn']}_privkey.pem"
Workarounds
This issue happens in two different scenarios:
- If LDAP TLS options such as
tls_options
are specified in theldap_servers
config:
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = {
'main' => {
'label' => 'LDAP',
'host' => 'ldap.mydomain.com',
'port' => 636,
'uid' => 'sAMAccountName',
'encryption' => 'simple_tls',
'base' => 'dc=example,dc=com',
'ca_file' => '/path/to/cert.crt'
}
}
The fix is to put the ca_file
and other TLS options in a tls_options
hash:
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = {
'main' => {
'label' => 'LDAP',
'host' => 'ldap.mydomain.com',
'port' => 636,
'uid' => 'sAMAccountName',
'encryption' => 'simple_tls',
'base' => 'dc=example,dc=com',
'tls_options' => {
'ca_file' => '/path/to/cert.crt'
}
}
}
- If
gitlab_rails['ldap_host']
is used:
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_host'] = 'redacted.redacted.com'
Solution: Migrate to the ldap_servers
format (as shown above): https://docs.gitlab.com/ee/administration/auth/ldap/
This crash will be fixed in !127290 (merged).