Skip to content

Errors in logs when upgrading to 6.0.0: psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "pg_class_relname_nsp_index" #36910

@sfirke

Description

@sfirke

Bug description

Upon upgrading to 6.0.0, I see a few instances of this at first startup:

superset_worker_beat  | 2026-01-06 04:10:45,663:ERROR:superset.app:Failed to create app
superset_worker_beat  | Traceback (most recent call last):
superset_worker_beat  |   File "/app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1910, in _execute_context
superset_worker_beat  |     self.dialect.do_execute(
superset_worker_beat  |   File "/app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
superset_worker_beat  |     cursor.execute(statement, parameters)
superset_worker_beat  | psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "pg_class_relname_nsp_index"
superset_worker_beat  | DETAIL:  Key (relname, relnamespace)=(ab_group_id_seq, 2200) already exists.

Superset then seems to work normally, though I haven't tried out the group functionality so it's possible this indicates a problem there.

Doesn't seem to be causing me a problem but I wanted to open this issue in case others have this experience too. If it goes stale, we can convert to discussion.

Screenshots/recordings

No response

Superset version

6.0.0

Python version

I don't know

Node version

I don't know

Browser

Not applicable

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:databasesRelated to database configurations and connections

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions