Migrating from 3.3.10 to 3.4.4 and got similar error: #7656

Closed
opened 2025-12-29 20:26:31 +01:00 by adam · 1 comment
Owner

Originally created by @sincomil on GitHub (Feb 17, 2023).

          Migrating from 3.3.10 to 3.4.4 and got similar error:
Running migrations:
  Applying tenancy.0008_unique_constraints...Traceback (most recent call last):
  File "/opt/netbox-git/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 87, in _execute
    return self.cursor.execute(sql)
psycopg2.errors.UniqueViolation: could not create unique index "tenancy_contactassignment_unique_object_contact_role"
DETAIL: Key (content_type_id, object_id, contact_id, role_id)=(87, 1499, 4, 2) is duplicated.

Originally posted by @sincomil in https://github.com/netbox-community/netbox/issues/10956#issuecomment-1434577676

Originally created by @sincomil on GitHub (Feb 17, 2023). Migrating from 3.3.10 to 3.4.4 and got similar error: ``` Running migrations: Applying tenancy.0008_unique_constraints...Traceback (most recent call last): File "/opt/netbox-git/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 87, in _execute return self.cursor.execute(sql) psycopg2.errors.UniqueViolation: could not create unique index "tenancy_contactassignment_unique_object_contact_role" DETAIL: Key (content_type_id, object_id, contact_id, role_id)=(87, 1499, 4, 2) is duplicated. ``` _Originally posted by @sincomil in https://github.com/netbox-community/netbox/issues/10956#issuecomment-1434577676_
adam closed this issue 2025-12-29 20:26:31 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Feb 17, 2023):

This is more suited for a discussion. Issues require that the template is followed. I'll convert it to a discussion for you.

@kkthxbye-code commented on GitHub (Feb 17, 2023): This is more suited for a discussion. Issues require that the template is followed. I'll convert it to a discussion for you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7656