Skip to content

duplicate key value violates unique constraint #156

@yakimant

Description

@yakimant

Flaky issue, restart fixed it

message: "duplicate key value violates unique constraint \"state_group_edges_unique_idx\""
detail: Some("Key (state_group, prev_state_group)=(41289, 41157) already exists.")

Full log:

[2025-05-19T00:15:16Z ERROR panic] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E23505), message: "duplicate key value violates unique constraint \"state_group_edges_unique_idx\"", detail: Some("Key (state_group, prev_state_group)=(41289, 41157) already exists."), hint: None, position: None, where_: None, schema: Some("public"), table: Some("state_group_edges"), column: None, datatype: None, constraint: Some("state_group_edges_unique_idx"), file: Some("nbtinsert.c"), line: Some(664), routine: Some("_bt_check_unique") }) }': src/database.rs:560

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions