Skip to content

Instantly share code, notes, and snippets.

@eatnumber1
Created April 13, 2012 23:33
Show Gist options
  • Save eatnumber1/2380975 to your computer and use it in GitHub Desktop.
Save eatnumber1/2380975 to your computer and use it in GitHub Desktop.
Mysql2::Error - MySQL server has gone away:
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/logging.rb:53:in `query'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/logging.rb:53:in `block in log_connection_execute'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/logging.rb:28:in `log_yield'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/logging.rb:53:in `log_connection_execute'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/query.rb:509:in `rollback_transaction'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/adapters/shared/mysql.rb:318:in `rollback_transaction'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/query.rb:271:in `rescue in _transaction'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/query.rb:281:in `_transaction'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/query.rb:231:in `block in transaction'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/connection_pool/threaded.rb:87:in `hold'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/connecting.rb:225:in `synchronize'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sequel-3.33.0/lib/sequel/database/query.rb:229:in `transaction'
/var/www/pub/photohunt/lib/web.rb:136:in `block in <class:API>'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `block in compile!'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `block in process_route'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in route!'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/logger.rb:15:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:134:in `call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in `block in call'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `each'
/var/www/pub/photohunt/.bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `call'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:180:in `start'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/opt/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/helper-scripts/passenger-spawn-server:99:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment