Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

psycopg2 event_push_summary_unique_index key duplicated #14907

Closed
@Gredin67

Description

@Gredin67

Description

My mautrix_whatsapp bridge is working irregularly, dropping most of the messages.
In synapse logs, the key of my mautrix_whatsapp relaybot user looks duplicated.

Steps to reproduce

  • restore an old (9 months) backup of the mautrix-whatsapp bridge postgreSQL DB
  • upgrade the bridge from v0.2.3 to v0.4.0 and then to v0.8.0
  • the bridge is registered on an untouched synapse instance

Homeserver

sans-nuage.fr

Synapse Version

1.74.0

Installation Method

Other (please mention below)

Database

single PostgreSQL server

Workers

Single process

Platform

YunoHost 11.0.11

Configuration

No response

Relevant log output

psycopg2.errors.UniqueViolation: ERREUR:  la valeur d'une clé dupliquée rompt la contrainte unique « event_push_summary_unique_index »
janv. 23 23:50:47 domain.tld python[22652]: DETAIL:  La clé « (user_id, room_id)=(@relaybot:domain.tld, !ididididiididi:domain.tld) » existe déjà.


### Anything else that would be useful to know?

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    X-Needs-InfoThis issue is blocked awaiting information from the reporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions