Advertisement
salderma

Untitled

Jan 22nd, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. [root@foreman settings.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. == AddUniqueIndexToParameter: migrating ======================================
  9. -- add_index(:parameters, [:reference_id, :name], {:unique=>true})
  10. rake aborted!
  11. An error has occurred, this and all later migrations canceled:
  12.  
  13. PGError: ERROR: could not create unique index "index_parameters_on_reference_id_and_name"
  14. DETAIL: Table contains duplicated values.
  15. : CREATE UNIQUE INDEX "index_parameters_on_reference_id_and_name" ON "parameters" ("reference_id", "name")
  16. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in `async_exec'
  17. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in `block in execute'
  18. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
  19. /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  20. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
  21. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:653:in `execute'
  22. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/schema_statements.rb:352:in `add_index'
  23. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:466:in `block in method_missing'
  24. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:438:in `block in say_with_time'
  25. /opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:280:in `measure'
  26. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:438:in `say_with_time'
  27. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:458:in `method_missing'
  28. /usr/share/foreman/db/migrate/20140805114754_add_unique_index_to_parameter.rb:3:in `up'
  29. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
  30. /opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:280:in `measure'
  31. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `block in migrate'
  32. /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'
  33. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:389:in `migrate'
  34. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:528:in `migrate'
  35. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
  36. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `call'
  37. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `block in ddl_transaction'
  38. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  39. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
  40. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `ddl_transaction'
  41. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:719:in `block in migrate'
  42. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:700:in `each'
  43. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:700:in `migrate'
  44. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:570:in `up'
  45. /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:551:in `migrate'
  46. /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)>'
  47. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call'
  48. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
  49. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each'
  50. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
  51. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
  52. /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
  53. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain'
  54. /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke'
  55. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in `invoke_task'
  56. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2 levels) in top_level'
  57. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each'
  58. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in top_level'
  59. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
  60. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in `top_level'
  61. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in run'
  62. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
  63. /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run'
  64. /opt/rh/ruby193/root/usr/bin/rake:32:in `<main>'
  65. Tasks: TOP => db:migrate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement