首页 > 解决方案 > Puma 服务器进入引导循环

问题描述

sudo /bin/systemctl start puma

Puma 重启命令创建无限引导循环

引导日志正在 puma_error 日志文件中打印,有与 connection_pool 相关的警告

<线程:0x000056262a3fddc8 /home/uat/app/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:334 sleep>

下面的完整日志

[198558] * Listening on unix:///home/uat/app/shared/tmp/sockets/puma.sock
[198558] ! WARNING: Detected 1 Thread(s) started in app boot:
[198558] ! #<Thread:0x0000559ca6518900 /home/uat/app/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:334 sleep> - /home/uat/app/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:337:in `sleep'
[198558] Use Ctrl-C to stop
[198613] Puma starting in cluster mode...
[198613] * Puma version: 5.2.1 (ruby 2.7.4-p191) ("Fettisdagsbulle")
[198613] *  Min threads: 0
[198613] *  Max threads: 24
[198613] *  Environment: uat
[198613] *   Master PID: 198613
[198613] *      Workers: 2
[198613] *     Restarts: (✔) hot (✖) phased
[198613] * Preloading application
[2021-09-15T15:08:59.331567 #198613]  INFO -- sentry: ** [Raven] Raven 2.13.0 configured not to capture errors: DSN not set
[198613] * Listening on unix:///home/uat/app/shared/tmp/sockets/puma.sock
[198613] ! WARNING: Detected 1 Thread(s) started in app boot:
[198613] ! #<Thread:0x000056262a3fddc8 /home/uat/app/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:334 sleep> - /home/uat/app/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.4.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:337:in `sleep'
[198613] Use Ctrl-C to stop
[198676] Puma starting in cluster mode...
[198676] * Puma version: 5.2.1 (ruby 2.7.4-p191) ("Fettisdagsbulle")
[198676] *  Min threads: 0
[198676] *  Max threads: 24
[198676] *  Environment: uat
[198676] *   Master PID: 198676
[198676] *      Workers: 2
[198676] *     Restarts: (✔) hot (✖) phased
[198676] * Preloading application

彪马版本 5.2.1

标签: ruby-on-railsrubypumapuma-dev

解决方案


推荐阅读