matrix-org / matrix-appservice-discord

A bridge between Matrix and Discord.
Apache License 2.0
791 stars 148 forks source link

Regenerating the registration file breaks M → D silently #852

Open Vyquos opened 1 year ago

Vyquos commented 1 year ago

To Reproduce

  1. Setup the bridge
  2. Send any number of messages on matrix (in a room that's bridged to discord)
  3. Regenerate discord-registration.yaml according to the instructions in the README^1
  4. Replace the old discord-registration.yaml with the newly generated one
  5. Try sending a message on matrix

Behavior After completing all steps above, the new message isn't bridged to discord.

What goes wrong

Vyquos commented 1 year ago

The reason for the TransactionId-reset may be newly generated appservice / homeserver tokens in discord-registration.yaml.

Vyquos commented 1 year ago

This can be manually fixed by clearing the as_txns table in discord.db.

Vyquos commented 1 year ago

Seeing as this seems to be an issue with crashes too i suspect that any restart of the connection between the homeserver and the appservice causes this breakage.