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

Recurrent server errors triggered off duplicate synclist object

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • cloud-2022-03-09
    • None
    • Backend
    • None
    • False
    • False

      Alerts show recurrent 500 errors on c.rh.c.

      ...
        File "/app/galaxy_ng/app/auth/auth.py", line 71, in authenticate
          self._ensure_synclists(group)
        File "/app/galaxy_ng/app/auth/auth.py", line 102, in _ensure_synclists
          default_synclist = SyncList.objects.create(
      ...
      django.db.utils.IntegrityError: duplicate key value violates unique constraint "galaxy_synclist_name_key"
      DETAIL:  Key (name)=(7924508-synclist) already exists. 

      Since the user's group is not associated to a synclist obj, the system does a get_or_create on the synclist repo+distro, then a synclist obj create (not get_or_create) - since the obj exists, we get the duplicate key value violation.

              awcrosby5 Andrew Crosby (Inactive)
              awcrosby5 Andrew Crosby (Inactive)
              Clara Spealman Clara Spealman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: