SIGTERM + Rails + mysql?

时间:2011-07-05 01:58:27

标签: mysql ruby-on-rails sigterm

我突然开始收到很多SignalException:应用程序中的SIGTERM异常,显然来自mysql。 Stacktraces喜欢

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'

我有点难过。有什么想法可以从哪里开始挖掘?

1 个答案:

答案 0 :(得分:2)

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

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