SIGTERM +铁轨 + mysql?
我突然开始在应用程序中收到大量 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您运行在什么平台上以及运行什么版本的 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.