Project

General

Profile

Actions

Bug #12758

closed

duplicate key in jenkins

Added by John Mitsch over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "katello_system_repositories_pkey"
: INSERT INTO "katello_system_repositories" ("repository_id", "system_id") VALUES ($1, $2) RETURNING "id" (ActiveRecord::RecordNotUnique)
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:1176:in `get_last_result'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:1176:in `exec_cache'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:661:in `block in exec_query'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:659:in `exec_query'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:63:in `exec_insert'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:90:in `insert'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/relation.rb:66:in `insert'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/persistence.rb:367:in `create'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/timestamp.rb:58:in `create'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:268:in `block in create'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:403:in `_run__1093644711483327578__create__1918832261140653908__callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:268:in `create'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/persistence.rb:348:in `create_or_update'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:425:in `_run__1093644711483327578__save__1918832261140653908__callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/persistence.rb:104:in `save!'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/validations.rb:56:in `save!'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:264:in `block in save!'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/test_after_commit-0.4.2/lib/test_after_commit.rb:27:in `block in transaction_with_transactional_fixtures'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/test_after_commit-0.4.2/lib/test_after_commit.rb:21:in `transaction_with_transactional_fixtures'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:264:in `save!'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/has_many_through_association.rb:85:in `save_through_record'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/has_many_through_association.rb:52:in `insert_record'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:496:in `block (2 levels) in concat_records'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:344:in `add_to_target'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:495:in `block in concat_records'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:493:in `each'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:493:in `concat_records'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:134:in `block in concat'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:149:in `block in transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/test_after_commit-0.4.2/lib/test_after_commit.rb:27:in `block in transaction_with_transactional_fixtures'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/test_after_commit-0.4.2/lib/test_after_commit.rb:21:in `transaction_with_transactional_fixtures'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:148:in `transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:134:in `concat'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/has_many_through_association.rb:38:in `concat'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:481:in `replace_records'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:316:in `block in replace'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:149:in `block in transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/test_after_commit-0.4.2/lib/test_after_commit.rb:27:in `block in transaction_with_transactional_fixtures'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/test_after_commit-0.4.2/lib/test_after_commit.rb:21:in `transaction_with_transactional_fixtures'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:148:in `transaction'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:316:in `replace'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/collection_association.rb:41:in `writer'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activerecord-3.2.22/lib/active_record/associations/builder/association.rb:51:in `block in define_writers'
/var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.1/slave/fast/plugin/test/models/erratum_test.rb:114:in `setup'
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/minitest/unit.rb:1263:in `run'
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/test/unit/testcase.rb:17:in `run'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:447:in `_run__629470869417617437__setup__1918832261140653908__callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/activesupport-3.2.22/lib/active_support/testing/setup_and_teardown.rb:35:in `run'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:177:in `run_test'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:102:in `_run_test'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:93:in `block in _run_suite'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:92:in `each'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:92:in `_run_suite'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:83:in `block in _run_suites'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:83:in `map'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:83:in `_run_suites'
/var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.1/slave/fast/foreman/test/test_runner.rb:30:in `_run_suites'
/usr/local/rvm/gems/ruby-2.1.5@test_katello_core-0/gems/ci_reporter-1.9.3/lib/ci/reporter/minitest.rb:75:in `_run_anything'
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/minitest/unit.rb:1092:in `run_tests'
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/minitest/unit.rb:1079:in `block in _run'
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/minitest/unit.rb:1078:in `each'
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/minitest/unit.rb:1078:in `_run'
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/minitest/unit.rb:1066:in `run'
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/minitest/unit.rb:802:in `block in autorun'

Actions #1

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to John Mitsch
  • Pull request https://github.com/Katello/katello/pull/5660 added
Actions #2

Updated by The Foreman Bot over 8 years ago

  • Pull request https://github.com/Katello/katello/pull/5661 added
Actions #3

Updated by The Foreman Bot over 8 years ago

  • Pull request https://github.com/Katello/katello/pull/5662 added
Actions #4

Updated by Eric Helms over 8 years ago

  • Assignee changed from John Mitsch to Eric Helms
  • translation missing: en.field_release set to 86
  • Triaged changed from No to Yes
  • Pull request deleted (https://github.com/Katello/katello/pull/5661, https://github.com/Katello/katello/pull/5660)
Actions #5

Updated by Eric Helms over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF