Advertisement
Guest User

Untitled

a guest
Sep 29th, 2014
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.39 KB | None | 0 0
  1. [root@nuex-if4man01 yum.repos.d]# foreman-rake db:migrate --trace
  2. ** Invoke db:migrate (first_time)
  3. ** Invoke environment (first_time)
  4. ** Execute environment
  5. ** Invoke db:load_config (first_time)
  6. ** Execute db:load_config
  7. ** Execute db:migrate
  8. == FixCounters: migrating ====================================================
  9. ** Invoke fix_cached_counters (first_time)
  10. ** Invoke environment
  11. ** Execute fix_cached_counters
  12. Correcting cached counters: (this may take a few minutes)
  13. Architecture corrected
  14. Environment corrected
  15. Operatingsystem corrected
  16. Domain corrected
  17. Realm corrected
  18. rake aborted!
  19. An error has occurred, this and all later migrations canceled:
  20.  
  21. undefined method `counter_cache_column' for nil:NilClass
  22. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/counter_cache.rb:32:in `block in reset_counters'
  23. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/counter_cache.rb:19:in `each'
  24. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/counter_cache.rb:19:in `reset_counters'
  25. /usr/share/foreman/lib/tasks/fix_cached_counters.rake:8:in `block (2 levels) in <top (required)>'
  26. /usr/share/foreman/lib/tasks/fix_cached_counters.rake:8:in `each'
  27. /usr/share/foreman/lib/tasks/fix_cached_counters.rake:8:in `block in <top (required)>'
  28. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call'
  29. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
  30. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each'
  31. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
  32. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
  33. /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
  34. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain'
  35. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke'
  36. /usr/share/foreman/db/migrate/20140828111505_fix_counters.rb:4:in `up'
  37. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
  38. /opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:280:in `measure'
  39. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `block in migrate'
  40. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:123:in `with_connection'
  41. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:389:in `migrate'
  42. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:528:in `migrate'
  43. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
  44. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `call'
  45. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `block in ddl_transaction'
  46. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  47. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
  48. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `ddl_transaction'
  49. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:719:in `block in migrate'
  50. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:700:in `each'
  51. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:700:in `migrate'
  52. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:570:in `up'
  53. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:551:in `migrate'
  54. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/databases.rake:153:in `block (2 levels) in <top (required)>'
  55. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call'
  56. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
  57. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each'
  58. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
  59. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
  60. /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
  61. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain'
  62. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke'
  63. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in `invoke_task'
  64. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2 levels) in top_level'
  65. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each'
  66. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in top_level'
  67. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
  68. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in `top_level'
  69. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in run'
  70. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
  71. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run'
  72. /opt/rh/ruby193/root/usr/bin/rake:32:in `<main>'
  73. Tasks: TOP => db:migrate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement