Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-1604

RepositoryVersion dupkey on community galaxy

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • Community 3.4.8
    • Backend
    • False
    • Hide

      None

      Show
      None
    • False

      Description 

      Publish fails on galaxy.ansible.com

      16 May 2022 user report

      • user report
        • publishing always fails with:
        • ERROR - Import Task "19445" failed: duplicate key value violates unique constraint "pulp_app_repositoryversion_repository_id_number_07cb5788_uniq"
        • DETAIL:  Key (repository_id, number)=(1, 15696) already exists.
        • Another collectionversion also failed
        • ERROR! Galaxy import process failed: duplicate key value violates unique constraint "pulp_app_repositoryversion_repository_id_number_07cb5788_uniq"
        • DETAIL:  Key (repository_id, number)=(1, 15690) already exists.
      • user tried again a couple hours later and it worked
        • User was asked if they kicked off the 2 imports at the same time: "I retried 4.8.1 after it failed and 1.3.14 did run twice in parallel (due to a zuul bug), and the 2.5.9 publish ran parallel to the 1.3.14 publish. but the 4.8.1 publish ran after all other c.g publishes were done (or failed)"

      15 Nov 2021

      • user report
        • Waiting until Galaxy import task https://galaxy.ansible.com/api/v2/collection-imports/15160/ has completed
        • ERROR! Galaxy import process failed: duplicate key value violates unique constraint "pulp_app_repositoryversion_repository_id_number_07cb5788_uniq"
        • DETAIL:  Key (repository_id, number)=(1, 12263) already exists.
      • user retried later and it worked

      Steps to Reproduce

      Intermittently seen by users. It might be worth testing that if you upload 2 collectionversions at the same time to see if this would reproduce this bug.

              Unassigned Unassigned
              awcrosby5 Andrew Crosby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: