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

返回列表 发布新帖

Ubuntu中Omnibus安装gitlab-jh,页面操作保存配置报错500,求助

434 4
发表于 2024-9-2 18:15:33 | 显示全部楼层 阅读模式

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

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

×

页面操作报错配置,后端报错

production:

Rack::Timeout::RequestTimeoutException (Request ran for longer than 60000ms ):

activemodel (7.0.8.1) lib/active_model/validations/numericality.rb:99:in match?' activemodel (7.0.8.1) lib/active_model/validations/numericality.rb:99:inis_integer?' activemodel (7.0.8.1) lib/active_model/validations/numericality.rb:40:in validate_each' activerecord (7.0.8.1) lib/active_record/validations/numericality.rb:9:invalidate_each' activemodel (7.0.8.1) lib/active_model/validator.rb:153:in block in validate' activemodel (7.0.8.1) lib/active_model/validator.rb:149:ineach' activemodel (7.0.8.1) lib/active_model/validator.rb:149:in validate' activesupport (7.0.8.1) lib/active_support/callbacks.rb:423:inblock in make_lambda' activesupport (7.0.8.1) lib/active_support/callbacks.rb:199:in block (2 levels) in halting' activesupport (7.0.8.1) lib/active_support/callbacks.rb:687:inblock (2 levels) in default_terminator' activesupport (7.0.8.1) lib/active_support/callbacks.rb:686:in catch' activesupport (7.0.8.1) lib/active_support/callbacks.rb:686:inblock in default_terminator' activesupport (7.0.8.1) lib/active_support/callbacks.rb:200:in block in halting' activesupport (7.0.8.1) lib/active_support/callbacks.rb:595:inblock in invoke_before' activesupport (7.0.8.1) lib/active_support/callbacks.rb:595:in each' activesupport (7.0.8.1) lib/active_support/callbacks.rb:595:ininvoke_before' activesupport (7.0.8.1) lib/active_support/callbacks.rb:106:in run_callbacks' activesupport (7.0.8.1) lib/active_support/callbacks.rb:929:in_run_validate_callbacks' activemodel (7.0.8.1) lib/active_model/validations.rb:406:in run_validations!' activemodel (7.0.8.1) lib/active_model/validations/callbacks.rb:115:inblock in run_validations!' activesupport (7.0.8.1) lib/active_support/callbacks.rb:107:in run_callbacks' activesupport (7.0.8.1) lib/active_support/callbacks.rb:929:in_run_validation_callbacks' activemodel (7.0.8.1) lib/active_model/validations/callbacks.rb:115:in run_validations!' activemodel (7.0.8.1) lib/active_model/validations.rb:337:invalid?' activerecord (7.0.8.1) lib/active_record/validations.rb:68:in valid?' activerecord (7.0.8.1) lib/active_record/validations.rb:84:inperform_validations' activerecord (7.0.8.1) lib/active_record/validations.rb:47:in save' activerecord (7.0.8.1) lib/active_record/transactions.rb:298:inblock in save' activerecord (7.0.8.1) lib/active_record/transactions.rb:354:in block in with_transaction_returning_status' activerecord (7.0.8.1) lib/active_record/connection_adapters/abstract/transaction.rb:319:inblock in within_new_transaction' activesupport (7.0.8.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt' activesupport (7.0.8.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:inblock in synchronize' activesupport (7.0.8.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt' activesupport (7.0.8.1) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:insynchronize' activerecord (7.0.8.1) lib/active_record/connection_adapters/abstract/transaction.rb:317:in within_new_transaction' activerecord (7.0.8.1) lib/active_record/connection_adapters/abstract/database_statements.rb:316:intransaction' lib/gitlab/database/load_balancing/connection_proxy.rb:127:in public_send' lib/gitlab/database/load_balancing/connection_proxy.rb:127:inblock in write_using_load_balancer' lib/gitlab/database/load_balancing/load_balancer.rb:141:in block in read_write' lib/gitlab/database/load_balancing/load_balancer.rb:228:inretry_with_backoff' lib/gitlab/database/load_balancing/load_balancer.rb:130:in read_write' lib/gitlab/database/load_balancing/connection_proxy.rb:126:inwrite_using_load_balancer' lib/gitlab/database/load_balancing/connection_proxy.rb:78:in transaction' activerecord (7.0.8.1) lib/active_record/transactions.rb:350:inwith_transaction_returning_status' activerecord (7.0.8.1) lib/active_record/transactions.rb:298:in save' activerecord (7.0.8.1) lib/active_record/suppressor.rb:50:insave' app/services/application_settings/update_service.rb:55:in update_settings' app/services/application_settings/update_service.rb:12:inexecute' ee/app/services/ee/application_settings/update_service.rb:25:in execute' app/controllers/admin/application_settings_controller.rb:209:inperform_update' app/controllers/admin/application_settings_controller.rb:50:in block (2 levels) in <class:ApplicationSettingsController>' actionpack (7.0.8.1) lib/action_controller/metal/basic_implicit_render.rb:6:insend_action' actionpack (7.0.8.1) lib/abstract_controller/base.rb:215:in process_action' actionpack (7.0.8.1) lib/action_controller/metal/rendering.rb:165:inprocess_action' actionpack (7.0.8.1) lib/abstract_controller/callbacks.rb:234:in block in process_action' activesupport (7.0.8.1) lib/active_support/callbacks.rb:118:inblock in run_callbacks' ee/lib/gitlab/ip_address_state.rb:10:in `with'

/var/log/gitlab/postgresql:

2024-09-02_09:16:58.25884 LOG: starting PostgreSQL 14.11 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit 2024-09-02_09:16:58.25903 LOG: listening on IPv4 address "0.0.0.0", port 5432 2024-09-02_09:16:58.25904 LOG: listening on IPv6 address "::", port 5432 2024-09-02_09:16:58.92839 LOG: listening on Unix socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432" 2024-09-02_09:16:58.94333 LOG: database system was shut down at 2024-09-02 09:16:58 GMT 2024-09-02_09:16:59.39052 LOG: database system is ready to accept connections 2024-09-02_09:19:28.25236 FATAL: terminating connection due to idle-in-transaction timeout 2024-09-02_09:23:54.63021 FATAL: terminating connection due to idle-in-transaction timeout 2024-09-02_09:23:57.17321 FATAL: terminating connection due to idle-in-transaction timeout 2024-09-02_09:24:08.61906 FATAL: terminating connection due to idle-in-transaction timeout 2024-09-02_09:24:12.10622 FATAL: terminating connection due to idle-in-transaction timeout 2024-09-02_09:24:16.86514 FATAL: terminating connection due to idle-in-transaction timeout 2024-09-02_09:24:18.26118 FATAL: terminating connection due to idle-in-transaction timeout 2024-09-02_09:24:18.68511 FATAL: terminating connection due to idle-in-transaction timeout

回复

使用道具 举报

评论4

Cloud-NativeLv.1 发表于 2024-9-2 21:28:50 | 显示全部楼层
我也是这个问题,但是我讲机器的内存和cpu(8C16G)提升上去后就没问题了,之前是2c4g一堆问题
回复

使用道具 举报

王新晨楼主Lv.1 发表于 2024-9-3 09:40:52 | 显示全部楼层
Cloud-Native 发表于 2024-9-2 21:28
我也是这个问题,但是我讲机器的内存和cpu(8C16G)提升上去后就没问题了,之前是2c4g一堆问题 ...

现在就是8c16g,/var/opt/gitlab/postgresql/data/pg_hba.conf
local all all trust
host all all 127.0.0.1/32 trust

回复

使用道具 举报

王新晨楼主Lv.1 发表于 2024-9-3 09:42:38 | 显示全部楼层
Cloud-Native 发表于 2024-9-2 21:28
我也是这个问题,但是我讲机器的内存和cpu(8C16G)提升上去后就没问题了,之前是2c4g一堆问题 ...

你在默认配置的基础上有修改什么配置吗
回复

使用道具 举报

Cloud-NativeLv.1 发表于 2024-9-4 10:19:35 | 显示全部楼层
王新晨 发表于 2024-9-3 09:42
你在默认配置的基础上有修改什么配置吗

安装好之后,我就配置了external_url、rails的ssl_certifiate、还有ldap、registry等配置;reconfigure之后就可以使用了
回复

使用道具 举报

意见建议

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