安装过程出错

新安装的一台全新环境的centos7,关闭了selinux
安装包为gitlab-jh-14.4.0-jh.0.el7.x86_64.rpm
安装完成后,设置好了external_url后运行gitlab-ctl reconfigure则出错,以下是出错提示:

Running 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[migrate gitlab-rails database] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb line 16) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20211029-1735-iy0w04" ----
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
rake aborted!
ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR:  null value in column "group" violates not-null constraint
DETAIL:  Failing row contains (1, null, Memory Usage (Total), avg(sum(container_memory_usage_bytes{container!="POD",pod=~"^{{c..., Total Memory Used (GB), GB, Total (GB), null, 2021-10-29 04:57:53.172033+00, 2021-10-29 04:57:53.172033+00, t, system_metrics_kubernetes_container_memory_total, null).
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:107:in `block in read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:167:in `retry_with_backoff'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:105:in `read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:60:in `block (2 levels) in <class:ConnectionProxy>'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:107:in `block in read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:167:in `retry_with_backoff'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:105:in `read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:107:in `block in read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:167:in `retry_with_backoff'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:105:in `read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:20:in `block in execute'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:58:in `process_metric_details'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:48:in `block in process_panel'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:47:in `map'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:47:in `process_panel'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:38:in `block in process_group'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:37:in `map'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:37:in `process_group'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:28:in `block in process_content'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:27:in `map'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:27:in `process_content'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:18:in `execute'
(eval):3:in `block (2 levels) in run_file'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:107:in `block in read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:167:in `retry_with_backoff'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:105:in `read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:271:in `block in transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:270:in `transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:66:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'

Caused by:
PG::NotNullViolation: ERROR:  null value in column "group" violates not-null constraint
DETAIL:  Failing row contains (1, null, Memory Usage (Total), avg(sum(container_memory_usage_bytes{container!="POD",pod=~"^{{c..., Total Memory Used (GB), GB, Total (GB), null, 2021-10-29 04:57:53.172033+00, 2021-10-29 04:57:53.172033+00, t, system_metrics_kubernetes_container_memory_total, null).
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:107:in `block in read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:167:in `retry_with_backoff'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:105:in `read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:60:in `block (2 levels) in <class:ConnectionProxy>'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:107:in `block in read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:167:in `retry_with_backoff'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:105:in `read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:107:in `block in read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:167:in `retry_with_backoff'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:105:in `read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:20:in `block in execute'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:58:in `process_metric_details'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:48:in `block in process_panel'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:47:in `map'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:47:in `process_panel'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:38:in `block in process_group'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:37:in `map'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:37:in `process_group'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:28:in `block in process_content'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:27:in `map'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:27:in `process_content'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database_importers/common_metrics/importer.rb:18:in `execute'
(eval):3:in `block (2 levels) in run_file'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:107:in `block in read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:167:in `retry_with_backoff'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:105:in `read_write'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:271:in `block in transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:270:in `transaction'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:66:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => db:seed_fu
(See full trace by running task with --trace)

== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/001_application_settings.rb
Creating the default ApplicationSetting record.

== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/002_admin.rb
Administrator account created:

login:    root
password: *** - You opted not to display initial root password to STDOUT.


== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/003_create_base_work_item_types.rb

OK

== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb
Saved CI JWT signing key

== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/998_gitlab_instance_administration_project.rb
Successfully created self monitoring project.

== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/999_common_metrics.rb
STDERR: 
---- End output of "bash"  "/tmp/chef-script20211029-1735-iy0w04" ----
Ran "bash"  "/tmp/chef-script20211029-1735-iy0w04" returned 1

而当我报错后再次运行gitlab-ctl reconfigure则正常了,但是却无法通过自动生成的密码来登录

我尝试过通过百度搜索到的重置root密码的方式,均报错,关于这点暂时先不说,如果可以的话希望先解决安装问题

现在是还没有安装上吗?您这边尝试过多次安装都是这个报错吗?看报错是初始化数据为null违反了PostgreSQL数据表的not null非空约束,是第一次初始化就出现了这个问题吗?如果现在还是这个状态,是否可以执行个命令,上传下结果,gitlab-rake db:migrate:status,想看下是哪个migrate导致的这个问题?

我复现了这个问题,确实出现了和你一样的问题,在重新gitlab-ctl reconfigure后极狐GitLab实例会恢复正常,看起来像Application获取数据的问题,已经反馈了。如果没有特定版本需求,可以先使用极狐GitLab 14.3.4