岁月抹平了我的小脾气 2024-09-02 20:51 采纳率: 0%
浏览 9

gitlab-jh,页面操作保存配置save change报错500,如何解决?

ActiveRecord::StatementInvalid (PG::ConnectionBad: PQconsumeInput() 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.
):

activerecord (7.0.8.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in exec' activerecord (7.0.8.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in block (2 levels) in execute'
activesupport (7.0.8.1) lib/active_support/concurrency/share_lock.rb:187:in yield_shares' activesupport (7.0.8.1) lib/active_support/dependencies/interlock.rb:41:in permit_concurrent_loads'
activerecord (7.0.8.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in block in execute' 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:in block 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:in synchronize' activerecord (7.0.8.1) lib/active_record/connection_adapters/abstract_adapter.rb:752:in block in log'
activesupport (7.0.8.1) lib/active_support/notifications/instrumenter.rb:24:in instrument' activerecord (7.0.8.1) lib/active_record/connection_adapters/abstract_adapter.rb:743:in log'
activerecord (7.0.8.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in execute' marginalia (1.11.1) lib/marginalia.rb:71:in execute_with_marginalia'
activerecord (7.0.8.1) lib/active_record/connection_adapters/postgresql/database_statements.rb:121:in exec_rollback_db_transaction' activerecord (7.0.8.1) lib/active_record/connection_adapters/abstract/database_statements.rb:374:in rollback_db_transaction'
activerecord (7.0.8.1)

  • 写回答

1条回答 默认 最新

  • 连界优站 连界网络官方账号 2024-09-04 01:13
    关注

    这个错误信息表明你的GitLab实例遇到了数据库连接问题,具体来说是“idle-in-transaction timeout”,即由于事务长时间处于空闲状态而被数据库服务器终止。这种情况下,数据库为了防止资源被长期占用而不释放,会自动断开那些超过一定时间没有活动的连接。

    评论

报告相同问题?

问题事件

  • 创建了问题 9月2日