Skip to content

Updating an image state crashes the backend

Sentry Issue: ARKINDEX-BACKEND-1DF

UniqueViolation: duplicate key value violates unique constraint "images_image_server_id_path_06958961_uniq"
DETAIL:  Key (server_id, path)=(3, %3Cfunction%20uuid4%20at%200x7f8e62d13280%3E) already exists.

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

IntegrityError: duplicate key value violates unique constraint "images_image_server_id_path_06958961_uniq"
DETAIL:  Key (server_id, path)=(3, %3Cfunction%20uuid4%20at%200x7f8e62d13280%3E) already exists.

(24 additional frame(s) were not displayed)
...
  File "django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(
  File "django/db/backends/utils.py", line 80, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
  File "django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)