Skip to content

Instantly share code, notes, and snippets.

@christianparpart
Created October 29, 2010 08:01
Show Gist options
  • Save christianparpart/653118 to your computer and use it in GitHub Desktop.
Save christianparpart/653118 to your computer and use it in GitHub Desktop.
mySQL idle timeout to rip off my redmine runner script.
Mysql::Error: MySQL server has gone away: SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'stg') LIMIT 1
/waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_qu /waflhome/redmine/redmine/script/runner:3/1.8/rubygems/custom_require.rb:31:in `require'inal_require'ind_by_identifier'ache.rb:62:in `select_all'
disconnected from server
/waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log': Mysql::Error: MySQL server has gone away: SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'stg') LIMIT 1 (ActiveRecord::StatementInvalid)
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:323:in `execute'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:608:in `select'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:62:in `select_all'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:661:in `find_by_sql'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1548:in `find_every'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1505:in `find_initial'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:613:in `find'
from /waflhome/redmine/redmine/app/models/project.rb:210:in `find'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1900:in `find_by_identifier'
from ./rbot.rb:158:in `log_message'
from ./rbot.rb:134:in `log_msg'
from ./rbot.rb:382:in `on_privmsg'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/net-irc-0.0.9/lib/net/irc/client.rb:38:in `send'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/net-irc-0.0.9/lib/net/irc/client.rb:38:in `start'
from ./rbot.rb:88:in `start'
from ./rbot.rb:411
from /waflhome/redmine/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `eval'
from /waflhome/redmine/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/runner.rb:46
from /waflhome/redmine/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /waflhome/redmine/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /waflhome/redmine/redmine/script/runner:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment