The logs that I collected are as follow:
There was an error running gitlab-ctl reconfigure:
rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: bash[migrate gitlab-rails
database] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb line 16) had an error: Mixlib::ShellOut::ShellComm
andFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20211031-11306-1md61j3” ----
STDOUT: psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:9: NOTICE: extension “btree_gist” already exists, skipping
psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:11: NOTICE: extension “pg_trgm” already exists, skipping
psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:15808: FATAL: terminating connection due to idle-in-transaction timeout
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
psql:/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql:15808: fatal: connection to server was lost
rake aborted!
failed to execute:
psql --set ON_ERROR_STOP=1 --quiet --no-psqlrc --file /opt/gitlab/embedded/service/gitlab-rails/db/structure.sql --single-transaction gitlabhq_pr
oduction
Please check the output above for any errors and make sure that psql
is installed in your PATH and has proper permissions.
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/postgresql_database_tasks/load_schema_versions_mixin.rb:10:in structure_load' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:65:in
block (3 levels) in <top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
’ Tasks: TOP => db:schema:load
(See full trace by running task with --trace)
---- End output of “bash” “/tmp/chef-script20211031-11306-1md61j3” ----
Ran “bash” “/tmp/chef-script20211031-11306-1md61j3” returned 1
Notes:
Default admin account has been configured with following details:
Username: root
Password: You didn’t opt-in to print initial root password to STDOUT.
Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https:
//docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
Running handlers complete
Chef Infra Client failed. 281 resources updated in 41 minutes 47 seconds
Notes:
Default admin account has been configured with following details:
Username: root
Password: You didn’t opt-in to print initial root password to STDOUT.
Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https:
//docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
dpkg: error processing package gitlab-ce (–install):
installed gitlab-ce package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
gitlab-ce