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

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日

悬赏问题

  • ¥15 如何在vue.config.js中读取到public文件夹下window.APP_CONFIG.API_BASE_URL的值
  • ¥50 浦育平台scratch图形化编程
  • ¥20 求这个的原理图 只要原理图
  • ¥15 vue2项目中,如何配置环境,可以在打完包之后修改请求的服务器地址
  • ¥20 微信的店铺小程序如何修改背景图
  • ¥15 UE5.1局部变量对蓝图不可见
  • ¥15 一共有五道问题关于整数幂的运算还有房间号码 还有网络密码的解答?(语言-python)
  • ¥20 sentry如何捕获上传Android ndk 崩溃
  • ¥15 在做logistic回归模型限制性立方条图时候,不能出完整图的困难
  • ¥15 G0系列单片机HAL库中景园gc9307液晶驱动芯片无法使用硬件SPI+DMA驱动,如何解决?