极狐GitLab 正式推出面向 GitLab 老旧版本(12.x、13.x、14.x、15.x 等)免费用户的专业升级服务,点击查看详情

返回列表 发布新帖

卸载Github后重新安装,报以下异常

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×

There was an error running gitlab-ctl reconfigure:

Multiple failures occurred:
* Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: execute[clear the gitlab-rails cache] (gitlab::gitlab-rails line 570) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/bin/gitlab-rake cache:clear ----
STDOUT:
STDERR: rake aborted!
ActiveRecord:atabaseConnectionError: There is an issue connecting to your database with your username/password, username: gitlab.

Please check your database configuration to ensure the username/password are valid.
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/primary_host.rb:44:in `connection'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:64:in `read'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `schema_cache'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/reflection.rb:81:in `cached_column_exists?'
/opt/gitlab/embedded/service/gitlab-rails/app/models/application_setting.rb:1020:in `max_login_attempts_column_exists?'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:31:in `method_missing'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/8_devise.rb:166:in `block (2 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/load_balancing.rb:44:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `<top (required)>'
<internal:/opt/gitlab/embedded/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/opt/gitlab/embedded/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/opt/gitlab/embedded/bin/bundle:25:in `load'
/opt/gitlab/embedded/bin/bundle:25:in `<main>'

Caused by:
PG::ConnectionBad: connection to server on socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432" failed: could not fork new process for connection: Cannot allocate memory
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/primary_host.rb:44:in `connection'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/load_balancer.rb:64:in `read'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/connection_proxy.rb:67:in `schema_cache'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/reflection.rb:81:in `cached_column_exists?'
/opt/gitlab/embedded/service/gitlab-rails/app/models/application_setting.rb:1020:in `max_login_attempts_column_exists?'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:31:in `method_missing'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/8_devise.rb:166:in `block (2 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/load_balancing.rb:44:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `<top (required)>'
<internal:/opt/gitlab/embedded/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/opt/gitlab/embedded/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/opt/gitlab/embedded/bin/bundle:25:in `load'
/opt/gitlab/embedded/bin/bundle:25:in `<main>'
Tasks: TOP => cache:clear => cache:clear:redis => environment
(See full trace by running task with --trace)
---- End output of /opt/gitlab/bin/gitlab-rake cache:clear ----
Ran /opt/gitlab/bin/gitlab-rake cache:clear returned 1
* Errno::ENOMEM occurred in delayed notification: runit_service[redis-exporter] (monitoring::redis-exporter line 49) had an error: Errno::ENOMEM: Cannot allocate memory - fork(2)
* Errno::ENOMEM occurred in delayed notification: runit_service[prometheus] (monitoring::prometheus line 92) had an error: Errno::ENOMEM: Cannot allocate memory - fork(2)

回复

使用道具 举报

评论2

血色郁金香楼主Lv.1 发表于 5 天前 | 显示全部楼层
本帖最后由 血色郁金香 于 2025-1-10 15:27 编辑

有没有大佬指教一下,运行gitlab-ctl tail |grep ERROR报以下

2025-01-10_07:09:58.87325 {"time":"2025-01-10T07:09:58.873177547Z","level":"ERROR","msg":"Failed to get receptive agents","mod_name":"kas2agentk_tunnel","error":"Get \"http://192.168.15.219:9091/api/v4/internal/kubernetes/receptive_agents\": net/http: timeout awaiting response headers"}
2025-01-10_07:11:58.27864 {"time":"2025-01-10T07:11:58.278588263Z","level":"ERROR","msg":"Failed to get receptive agents","mod_name":"kas2agentk_tunnel","error":"Get \"http://192.168.15.219:9091/api/v4/internal/kubernetes/receptive_agents\": net/http: timeout awaiting response headers"}
2025-01-10_07:14:13.76731 {"time":"2025-01-10T07:14:13.767215673Z","level":"ERROR","msg":"Failed to get receptive agents","mod_name":"kas2agentk_tunnel","error":"Get \"http://192.168.15.219:9091/api/v4/internal/kubernetes/receptive_agents\": net/http: timeout awaiting response headers"}
2025-01-10_07:16:57.44529 {"time":"2025-01-10T07:16:57.445238617Z","level":"ERROR","msg":"Failed to get receptive agents","mod_name":"kas2agentk_tunnel","error":"Get \"http://192.168.15.219:9091/api/v4/internal/kubernetes/receptive_agents\": net/http: timeout awaiting response headers"}
2025-01-10_07:20:37.35750 {"time":"2025-01-10T07:20:37.357435316Z","level":"ERROR","msg":"Failed to get receptive agents","mod_name":"kas2agentk_tunnel","error":"Get \"http://192.168.15.219:9091/api/v4/internal/kubernetes/receptive_agents\": net/http: timeout awaiting response headers"}
2025-01-10_07:26:09.67818 {"time":"2025-01-10T07:26:09.67810136Z","level":"ERROR","msg":"Failed to get receptive agents","mod_name":"kas2agentk_tunnel","error":"Get \"http://192.168.15.219:9091/api/v4/internal/kubernetes/receptive_agents\": net/http: timeout awaiting response headers"}
{"severity":"ERROR","time":"2025-01-10T07:13:47.192Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:15:09.232Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:16:31.378Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:17:52.422Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:19:14.607Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:20:38.472Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:22:00.321Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:23:21.880Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:24:43.820Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}
{"severity":"ERROR","time":"2025-01-10T07:26:04.950Z","exception.class":"Feature::InvalidFeatureFlagError","exception.message":"The feature flag YAML definition for 'self_managed_code_suggestions' does not exist","user.username":null,"tags.program":"web","tags.locale":"en","tags.feature_category":null,"tags.correlation_id":null}


回复

使用道具 举报

wangkaixuanLv.7 发表于 前天 10:02 | 显示全部楼层
血色郁金香 发表于 2025-1-10 15:24
有没有大佬指教一下,运行gitlab-ctl tail |grep ERROR报以下

2025-01-10_07:09:58.87325 {"time":"2025-01 ...

这个应该是和 kagent 服务有关

而且上面的报错看起来和数据库、内存也有关系。

卸载的操作:
gitlab-ctl cleanse
find / -name gitlab (删除 gitlab 相关的目录),如下
rm -rf /var/log/gitlab /var/opt/gitlab /opt/gitlab /etc/gitlab

最后 reboot 机器,重新安装
回复

使用道具 举报

意见建议

Email:forum@gitlab.cn
  • 关注公众号
  • 添加专业顾问
Copyright © 2001-2025 极狐GitLab论坛 版权所有 All Rights Reserved. 鄂ICP备2021008419号-1|鄂公网安备42018502006137号
关灯 快速发帖
扫一扫添加专业顾问
返回顶部
快速回复 返回顶部 返回列表