Error "Error executing action `run` on resource 'bash_hide_env[migrate gitlab-rails database]'" while 'gitlab-ctl reconfigure'
Summary
While executing 'gitlab-ctr reconfigure' I get an error "Error executing action run on resource 'bash_hide_env[migrate gitlab-rails database]'". Unfortunately, I can't say after what this started. The last update was a success (at least no errors were noticed). Today I wanted to migrate GitLab to a separate NGINX server (not as part of Omnibus package) and noticed this error.
Relevant logs
Relevant logs
[2023-04-16T20:19:52+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-04-16T20:19:52+02:00] INFO: *** Cinc Client 17.10.0 ***
[2023-04-16T20:19:52+02:00] INFO: Platform: x86_64-linux
[2023-04-16T20:19:52+02:00] INFO: Cinc-client pid: 1824089
[2023-04-16T20:19:53+02:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options
[2023-04-16T20:19:53+02:00] INFO: Run List is [recipe[gitlab]]
[2023-04-16T20:19:53+02:00] INFO: Run List expands to [gitlab]
[2023-04-16T20:19:53+02:00] INFO: Starting Cinc Client Run for gitserver
[2023-04-16T20:19:53+02:00] INFO: Running start handlers
[2023-04-16T20:19:53+02:00] INFO: Start handlers complete.
Resolving cookbooks for run list: ["gitlab"]
[2023-04-16T20:19:53+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:
- logrotate (0.1.0)
- postgresql (0.1.0)
- package (0.1.0)
- gitlab (0.0.1)
- 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)
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-04-16T20:19:55+02:00] WARN: * gitaly['gitconfig'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
[2023-04-16T20:19:55+02:00] WARN: * gitaly['storage'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
[2023-04-16T20:19:55+02:00] WARN: * gitaly['custom_hooks_dir'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
[2023-04-16T20:19:55+02:00] WARN: * gitaly['pack_objects_cache_dir'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
Recipe: gitlab::default
* directory[/etc/gitlab] action create (up to date)
[2023-04-16T20:19:55+02:00] WARN: Selected systemd because /run/systemd/system/ exists
/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 281 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[/home/git/gitlab] action create
* ruby_block[directory resource: /home/git/gitlab] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/repositories] action create
* ruby_block[directory resource: /home/git/gitlab/repositories] action run (skipped due to not_if)
(up to date)
Recipe: gitlab::rails_pages_shared_path
* storage_directory[/home/git/gitlab/gitlab-rails/shared] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/gitlab-rails/shared/pages] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if)
(up to date)
Recipe: gitlab::gitlab-rails
* storage_directory[/home/git/gitlab/gitlab-rails/shared/artifacts] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/gitlab-rails/shared/external-diffs] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/lfs-objects] action create
* ruby_block[directory resource: /home/git/gitlab/lfs-objects] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/gitlab-rails/shared/packages] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/gitlab-rails/shared/dependency_proxy] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/gitlab-rails/shared/terraform_state] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared/terraform_state] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/gitlab-rails/shared/ci_secure_files] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared/ci_secure_files] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/gitlab-rails/shared/encrypted_settings] action create
* ruby_block[directory resource: /home/git/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[/home/git/gitlab/gitlab-rails/shared/cache] action create
* ruby_block[directory resource: /home/git/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if)
(up to date)
* storage_directory[/home/git/gitlab/gitlab-rails/shared/tmp] action create
* ruby_block[directory resource: /home/git/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[create /var/log/gitlab/gitlab-rails] action create (up to date)
* storage_directory[/home/git/gitlab/backups] action create
* ruby_block[directory resource: /home/git/gitlab/backups] action run (skipped due to not_if)
(up to date)
* directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
* directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
* file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
* template[/opt/gitlab/etc/gitlab-rails-rc] action create (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 delete
* file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
* link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date)
(up to date)
* templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (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-04-16T20:19:57+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-04-16T20:19:57+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/RAILS_RELATIVE_URL_ROOT] 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/log/gitlab/gitlab-shell/] action create (up to date)
-
directory[/var/opt/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) (up to date) Recipe: redis::enable
-
redis_service[redis] action create
- 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) (up to date)
- ruby_block[warn pending redis restart] action run (skipped due to only_if) (up to date)
- account[user and group for redis] action create
-
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) (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)
-
version_file[Create Ruby version file for Gitaly] action create
- file[/var/opt/gitlab/gitaly/RUBY_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/log/gitlab/postgresql] action create (up to date)
-
directory[/var/opt/gitlab/postgresql/data] 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[2023-04-16T20:19:59+02:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] owner changed to 995 [2023-04-16T20:19:59+02:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] group changed to 995
-
change owner from 'root' to 'gitlab-psql'
-
change group from 'root' to 'gitlab-psql'[2023-04-16T20:19:59+02:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] updated atime and mtime to 2023-04-16 20:19:59 +0200
-
update utime on file /opt/gitlab/service/postgresql/supervise/status
-
-
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)
-
-
database_objects[postgresql] action create
- postgresql_user[gitlab] action create
- execute[create gitlab postgresql user] action run (skipped due to only_if) (up to date)
- postgresql_user[gitlab_replicator] action create
- execute[create gitlab_replicator postgresql user] action run (skipped due to only_if)
- execute[set options for gitlab_replicator postgresql user] action run (skipped due to only_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)
- postgresql_user[gitlab] action create
-
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::disable
-
service[gitlab-kas] action nothing (skipped due to action :nothing)
-
runit_service[gitlab-kas] action disable
- ruby_block[disable gitlab-kas] action run (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
-
bash_hide_env[migrate gitlab-rails database] action run [execute] rake aborted! Settingslogic::MissingSetting: Missing setting 'provider' in 'connection' section in 'terraform_state' section in /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:16:in
verify!' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:45:inblock (2 levels) in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:ineach' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:inblock in <top (required)>' internal:kernel:90:intap' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:37:in<top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in<top (required)>' /opt/gitlab/embedded/bin/bundle:23:inload' /opt/gitlab/embedded/bin/bundle:23:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace)================================================================================ Error executing action
runon 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! Settingslogic::MissingSetting: Missing setting 'provider' in 'connection' section in 'terraform_state' section in /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:16:in
verify!' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:45:inblock (2 levels) in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:ineach' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:inblock in <top (required)>' internal:kernel:90:intap' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:37:in<top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in<top (required)>' /opt/gitlab/embedded/bin/bundle:23:inload' /opt/gitlab/embedded/bin/bundle:23:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) STDERR: ---- End output of "bash" ---- Ran "bash" returned 1Cookbook Trace: (most recent call first)
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb:18:in `block in class_from_file'
Resource Declaration:
In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb
18: bash_hide_env "migrate #{new_resource.name} database" do 19: code <<-EOH 20: set -e 21: log_file="#{node['gitlab']['gitlab-rails']['log_directory']}/#{new_resource.logfile_prefix}-$(date +%Y-%m-%d-%H-%M-%S).log" 22: umask 077 23: /opt/gitlab/bin/gitlab-rake #{new_resource.rake_task} 2>& 1 | tee ${log_file} 24: STATUS=${PIPESTATUS[0]} 25: chown #{account_helper.gitlab_user}:#{account_helper.gitlab_group} ${log_file} 26: echo $STATUS > #{new_resource.helper.db_migrate_status_file} 27: exit $STATUS 28: EOH 29: 30: environment new_resource.environment if new_resource.property_is_set?(:environment) 31: new_resource.dependent_services.each do |svc| 32: notifies :restart, svc, :immediately 33: end 34: 35: not_if { new_resource.helper.migrated? } 36: sensitive false 37: end 38: end
Compiled Resource:
Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb:18: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-ae06966da16\n exit $STATUS\n" environment "sensitive value suppressed" sensitive false domain nil user nil not_if { #code block } endSystem Info:
chef_version=17.10.0 platform=debian platform_version=11 ruby=ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [x86_64-linux] program_name=/opt/gitlab/embedded/bin/cinc-client executable=/opt/gitlab/embedded/bin/cinc-client
================================================================================ Error executing action
runon resource 'rails_migration[gitlab-rails]'Mixlib::ShellOut::ShellCommandFailed
bash_hide_env[migrate gitlab-rails database] (gitlab::database_migrations line 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of "bash" ---- STDOUT: rake aborted! Settingslogic::MissingSetting: Missing setting 'provider' in 'connection' section in 'terraform_state' section in /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:16:in
verify!' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:45:inblock (2 levels) in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:ineach' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:inblock in <top (required)>' internal:kernel:90:intap' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:37:in<top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in<top (required)>' /opt/gitlab/embedded/bin/bundle:23:inload' /opt/gitlab/embedded/bin/bundle:23:in `' Tasks: TOP => gitlab:db:configure => environment (See full trace by running task with --trace) STDERR: ---- End output of "bash" ---- Ran "bash" returned 1Cookbook Trace: (most recent call first)
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb:18: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.5p211 (2022-11-24 revision ba5cf0f7c5) [x86_64-linux] program_name=/opt/gitlab/embedded/bin/cinc-client executable=/opt/gitlab/embedded/bin/cinc-client
-
[2023-04-16T20:20:09+02:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers: [2023-04-16T20:20:09+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 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash" ----
STDOUT: rake aborted!
Settingslogic::MissingSetting: Missing setting 'provider' in 'connection' section in 'terraform_state' section in /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:16:in verify!' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:45:in block (2 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:in each' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:in block in <top (required)>'
internal:kernel:90:in tap' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:37:in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in <top (required)>' /opt/gitlab/embedded/bin/bundle:23:in load'
/opt/gitlab/embedded/bin/bundle:23:in `'
Tasks: TOP => gitlab:db:configure => environment
(See full trace by running task with --trace)
STDERR:
---- End output of "bash" ----
Ran "bash" returned 1
Deprecations:
- gitaly['gitconfig'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
- gitaly['storage'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
- gitaly['custom_hooks_dir'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
- gitaly['pack_objects_cache_dir'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
Running handlers complete [2023-04-16T20:20:09+02:00] ERROR: Exception handlers complete Infra Phase failed. 2 resources updated in 17 seconds
Deprecations:
- gitaly['gitconfig'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
- gitaly['storage'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
- gitaly['custom_hooks_dir'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
- gitaly['pack_objects_cache_dir'] has been deprecated since 15.10 and will be removed in 16.0. In GitLab 15.10, Gitaly's configuration in Omnibus GitLab was changed to structurally match Gitaly's own configuration. Please see the migration instructions at https://docs.gitlab.com/ee/update/#1510
[2023-04-16T20:20:09+02:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2023-04-16T20:20:09+02:00] FATAL: ---------------------------------------------------------------------------------------
[2023-04-16T20:20:09+02:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2023-04-16T20:20:09+02:00] FATAL: ---------------------------------------------------------------------------------------
[2023-04-16T20:20:09+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 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash" ----
STDOUT: rake aborted!
Settingslogic::MissingSetting: Missing setting 'provider' in 'connection' section in 'terraform_state' section in /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:16:in verify!' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:45:in block (2 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:in each' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:44:in block in <top (required)>'
internal:kernel:90:in tap' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/direct_upload_support.rb:37:in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in <top (required)>' /opt/gitlab/embedded/bin/bundle:23:in load'
/opt/gitlab/embedded/bin/bundle:23:in `'
Tasks: TOP => gitlab:db:configure => environment
(See full trace by running task with --trace)
STDERR:
---- End output of "bash" ----
Ran "bash" returned 1
Details of package version
Provide the package version installation details
Actially i have GitLab 15.10.2-ce on Debian 11 ( Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux)
Environment details
- Operating System: Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux
- Bare Metal Machine
- Installation Type, remove incorrect values:
- Other: Runnig version
- This a single node installation
- Resources
- CPU: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz, 6 Kerne
- Memory total: 15.45 GiB
Configuration details
`/etc/gitlab/gitlab.rb`
external_url 'https://192.168.1.170/gitlab'
omnibus_gitconfig['system'] = {
# Set the http.postBuffer size, in bytes
"http" => ["postBuffer => 4194304000"] # 4 GB
}
git_data_dirs({
'default' => { 'path' => '/home/git/gitlab' }
})
gitlab_rails['smtp_enable'] = false
gitlab_rails['gitlab_email_enabled'] = false
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_default_projects_features_builds'] = false
gitlab_rails['gitlab_default_projects_features_container_registry'] = false
gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
gitlab_rails['lfs_enabled'] = true
gitlab_rails['lfs_storage_path'] = "/home/git/gitlab/lfs-objects"
gitlab_rails['lfs_object_store_enabled'] = true
gitlab_rails['lfs_object_store_proxy_download'] = false
gitlab_rails['lfs_object_store_remote_directory'] = "lfs-objects"
gitlab_rails['terraform_state_enabled'] = false
gitlab_rails['manage_backup_path'] = true
gitlab_rails['backup_path'] = "/home/git/gitlab/backups"
gitlab_rails['backup_gitaly_backup_path'] = "/opt/gitlab/embedded/bin/gitaly-backup"
gitlab_rails['backup_archive_permissions'] = 0644
gitlab_rails['backup_pg_schema'] = 'public'
gitlab_rails['backup_keep_time'] = 604800
gitlab_rails['shared_path'] = '/home/git/gitlab/gitlab-rails/shared'
gitlab_rails['registry_enabled'] = false
postgresql['enable'] = true
postgresql['port'] = 5432
nginx['enable'] = true
nginx['client_max_body_size'] = '4000m'
nginx['redirect_http_to_https'] = true
nginx['redirect_http_to_https_port'] = 80
nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
nginx['ssl_ciphers'] = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:AES256-GCM-SHA384"
nginx['ssl_prefer_server_ciphers'] = "off"
nginx['ssl_protocols'] = "TLSv1.2 TLSv1.3"
nginx['ssl_session_cache'] = "shared:SSL:10m"
nginx['ssl_session_tickets'] = "off"
nginx['ssl_session_timeout'] = "1d"
nginx['hsts_max_age'] = 63072000
nginx['referrer_policy'] = 'strict-origin-when-cross-origin'
nginx['gzip_enabled'] = true
nginx['custom_nginx_config'] = "include /etc/gitlab/nginx/conf.d/*.conf;"
nginx['proxy_read_timeout'] = 3600
nginx['proxy_connect_timeout'] = 300
nginx['proxy_set_headers'] = {
"Host" => "$http_host_with_default",
"X-Real-IP" => "$remote_addr",
"X-Forwarded-For" => "$proxy_add_x_forwarded_for",
"X-Forwarded-Proto" => "https",
"X-Forwarded-Ssl" => "on",
"Upgrade" => "$http_upgrade",
"Connection" => "$connection_upgrade"
}
nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2'
nginx['proxy_cache'] = 'gitlab'
nginx['http2_enabled'] = true
gitlab_pages['enable'] = false
gitlab_kas['enable'] = false
registry_nginx['enable'] = true
gitaly['pack_objects_cache_dir'] = '/home/git/gitlab/repositories/+gitaly/PackObjectsCache'
gitaly['custom_hooks_dir'] = "/home/git/gitlab/custom_hooks"
letsencrypt['enable'] = false
gitlab_rails['packages_enabled'] = true
gitlab_rails['packages_storage_path'] = "/home/git/gitlab/gitlab-rails/shared/packages"