SIGTERM +铁轨 + mysql?

发布于 2024-11-18 14:18:28 字数 1426 浏览 3 评论 0原文

我突然开始在应用程序中收到大量 SignalException:SIGTERM 异常,显然来自 mysql。堆栈跟踪就像

vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:217
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:217:in `log'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:323:in `execute'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:608:in `select'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'

或者

vendor/rails/activesupport/lib/active_support/buffered_logger.rb:63
vendor/rails/activesupport/lib/active_support/buffered_logger.rb:63:in `add'
vendor/rails/activesupport/lib/active_support/buffered_logger.rb:71:in `debug'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:196:in `log_info'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:218:in `log'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:323:in `execute'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:608:in `select'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'

我有点难住了。有什么想法从哪里开始挖掘吗?

I've suddenly started getting a lot of SignalException:SIGTERM exceptions in an application, apparently coming from mysql. Stacktraces like

vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:217
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:217:in `log'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:323:in `execute'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:608:in `select'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'

or

vendor/rails/activesupport/lib/active_support/buffered_logger.rb:63
vendor/rails/activesupport/lib/active_support/buffered_logger.rb:63:in `add'
vendor/rails/activesupport/lib/active_support/buffered_logger.rb:71:in `debug'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:196:in `log_info'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:218:in `log'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:323:in `execute'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:608:in `select'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'

I'm a bit stumped. Any ideas where to start digging?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盛夏已如深秋| 2024-11-25 14:18:28

您运行在什么平台上以及运行什么版本的 MySql?听起来 mysql 客户端库或 mysql 服务器可能坏了。另外,这是一个新的应用程序还是已经运行了一段时间没有问题的应用程序?

重新安装 MySql 可能是您最好的机会,但在此之前请尝试使用替代的 mysql 适配器:mysql2 和 ruby​​-mysql。您可能会有一点运气,这会节省大量时间和麻烦。

What platform are you running on and what version of MySql are you running? It sounds like the mysql client libraries or the mysql server might be broke. Also, is this a fresh app or one that's been running problem free for a while?

Reinstalling MySql is probably your best chance, but before you do that try using the alternative mysql adaptors: mysql2 and ruby-mysql. You might have a bit of luck there that would save a lot of time and hassle.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文