Skip to content

IntegrityError: could not create unique index "training_modelversion_model_id_hash_d328b9fa_uniq"

Sentry Issue: ARKINDEX-BACKEND-14F

UniqueViolation: could not create unique index "training_modelversion_model_id_hash_d328b9fa_uniq"
DETAIL:  Key (model_id, hash)=(e9e36761-54e9-40df-84a3-f8978898226b, 578c1370ac10dd3f76e4a518a4e1ffde) is duplicated.

  File "django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)

IntegrityError: could not create unique index "training_modelversion_model_id_hash_d328b9fa_uniq"
DETAIL:  Key (model_id, hash)=(e9e36761-54e9-40df-84a3-f8978898226b, 578c1370ac10dd3f76e4a518a4e1ffde) is duplicated.

(14 additional frame(s) were not displayed)
...
  File "django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "django/db/backends/utils.py", line 76, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)