Guest User

Untitled

a guest
Aug 11th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.16 KB | None | 0 0
  1. Rails 2.3.5 (production)
  2. ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.01
  3.  
  4. database.yml:
  5. production:
  6. adapter: mysql
  7. database: db
  8. username: user
  9. password: pass
  10. host: localhost
  11. encoding: utf8
  12.  
  13.  
  14. ----------------------------------------------
  15. Error Message:
  16. Mysql2::Error: closed MySQL connection
  17.  
  18. Where:
  19. [GEM_ROOT]/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb, line 214
  20.  
  21. Backtrace Summary:
  22. [GEM_ROOT]/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:214:in `escape'
  23. [GEM_ROOT]/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:214:in `quote_string'
  24. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/quoting.rb:19:in `quote'
  25. [GEM_ROOT]/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:201:in `quote'
  26. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:2992:in `attributes_with_quotes'
  27. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:2983:in `each'
  28. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:2983:in `attributes_with_quotes'
  29. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:2881:in `update_without_lock'
  30. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/locking/optimistic.rb:70:in `update_without_dirty'
  31. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/dirty.rb:146:in `update_without_timestamps'
  32. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/timestamp.rb:64:in `update_without_callbacks'
  33. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:282:in `update'
  34. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:2874:in `create_or_update_without_callbacks'
  35. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:250:in `create_or_update'
  36. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:2538:in `save_without_validation'
  37. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:1078:in `save_without_dirty'
  38. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/dirty.rb:79:in `save_without_transactions'
  39. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/transactions.rb:229:in `send'
  40. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'
  41. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
  42. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/transactions.rb:182:in `transaction_without_trace_ActiveRecord_self_name_transaction'
  43. [GEM_ROOT]/gems/newrelic_rpm-2.12.1/lib/new_relic/agent/method_tracer.rb:319:in `transaction'
  44. [GEM_ROOT]/gems/newrelic_rpm-2.12.1/lib/new_relic/agent/method_tracer.rb:141:in `trace_execution_scoped'
  45. [GEM_ROOT]/gems/newrelic_rpm-2.12.1/lib/new_relic/agent/method_tracer.rb:314:in `transaction'
  46. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
  47. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/transactions.rb:196:in `save'
  48. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
  49. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/transactions.rb:196:in `save'
  50. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/session_store.rb:300:in `set_session'
  51. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:1448:in `silence'
  52. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/session_store.rb:297:in `set_session'
  53. [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/session/abstract_store.rb:132:in `call'
  54. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in `call'
  55. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
  56. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in `cache'
  57. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in `call'
  58. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
  59. [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in `call'
  60. [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:106:in `call'
  61. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  62. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  63. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
  64. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
  65. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/utils.rb:252:in `safe_fork'
  66. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
  67. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  68. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  69. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  70. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:163:in `start'
  71. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
  72. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/railz/framework_spawner.rb:291:in `handle_spawn_application'
  73. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  74. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/railz/framework_spawner.rb:286:in `handle_spawn_application'
  75. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  76. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  77. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/railz/framework_spawner.rb:284:in `handle_spawn_application'
  78. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  79. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  80. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  81. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:163:in `start'
  82. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/railz/framework_spawner.rb:101:in `start'
  83. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  84. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  85. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  86. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  87. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  88. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  89. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  90. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  91. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  92. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  93. [GEM_ROOT]/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  94.  
  95.  
  96.  
  97.  
  98. This one is related:
  99.  
  100. Error Message:
  101. NoMethodError: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each
  102.  
  103. Where:
  104. some_controller#index
  105. [GEM_ROOT]/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb, line 628
  106.  
  107. Backtrace Summary:
  108. [GEM_ROOT]/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:628:in `select'
  109. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'
  110. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
  111. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:81:in `cache_sql'
  112. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
  113. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:661:in `find_by_sql_without_trace_ActiveRecord_self_name_find_by_sql'
  114. [GEM_ROOT]/gems/newrelic_rpm-2.12.1/lib/new_relic/agent/method_tracer.rb:319:in `find_by_sql'
  115. [GEM_ROOT]/gems/newrelic_rpm-2.12.1/lib/new_relic/agent/method_tracer.rb:141:in `trace_execution_scoped'
  116. [GEM_ROOT]/gems/newrelic_rpm-2.12.1/lib/new_relic/agent/method_tracer.rb:314:in `find_by_sql'
  117. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:1548:in `find_every'
  118. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:615:in `find'
  119. [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/base.rb:635:in `all'
  120. --------
  121. removed private details
  122. --------
Add Comment
Please, Sign In to add comment