Open Geosearchef opened 2 years ago
I've got the same issue. On my server it seems to be caused by mautrix-telegram holding some outdated portal information (I messed up the state of mautrix recently). Manually deleting mautrix's sqlite database and restart mautrix works for me, but I am not sure if this is a recommended/safe operation.
I had the same problem. My workaround was to delete the DB from the bridge and start from scratch. Any other solutions yet?
I'm trying to set up the relaybot using the
bridge
command. I obtained the channel ID from the telegram bot using/id
.When I use the
!tg bridge [id]
command in a matrix channel, I get an Unhandled error.The following can be found in the log:
As can be seen, the bridge attempts to join xPxxbaQFhdzYvpwknA when trying to figure out if I have permissions in this channel, even though the command was sent in kyHdAwaKTsDLXSgBqw.
The error is thrown in this line: https://github.com/mautrix/telegram/blob/master/mautrix_telegram/commands/portal/bridge.py#L57 My guess would be on the wrong room being obtained in https://github.com/mautrix/telegram/blob/master/mautrix_telegram/commands/portal/bridge.py#L50 .
It then propagates throgh https://github.com/mautrix/telegram/blob/8f61be76f97c554498792d79cf7131fc7e125a96/mautrix_telegram/commands/portal/util.py#L68, https://github.com/mautrix/python/blob/master/mautrix/appservice/api/intent.py#L261, https://github.com/mautrix/python/blob/00e6c242befea07bc888a450d520f3638c11bf75/mautrix/appservice/api/intent.py#L511 and throws an MUnknown likely due to the room not existing.
Any idea what could cause this? How can I modify the code for testing / workaround purposes? I'm running the bridge using the ansible playbook in a docker container, as soon as I modify the code, I'll need to restart the python process which causes the container to terminate and reset.