Closed kevincox closed 10 months ago
I turned on debug logging and it appears that the startup gets stuck somewhere between
https://github.com/mautrix/python/blob/v0.10.6/mautrix/appservice/appservice.py#L130
and
https://github.com/mautrix/python/blob/v0.10.6/mautrix/bridge/matrix.py#L97
called from
https://github.com/mautrix/python/blob/v0.10.6/mautrix/bridge/bridge.py#L160-L161
It makes sense that this would cause the problem as it prevents the code from reaching
https://github.com/mautrix/python/blob/v0.10.6/mautrix/bridge/bridge.py#L167
Which is were the account ID is sent:
Hmm, a manhole check for bridge.az.ready
returns True
though, implying that we are reaching https://github.com/mautrix/python/blob/v0.10.6/mautrix/bridge/bridge.py#L170.
Hmm, it just appears that logging for bridge.matrix.e2ee
just isn't working because even manually making a critical log from a manhole isn't appearing.
I managed to work around this by clearing the crypto_account
table and restarting mautrix-facebook. This lead to it generating and registering a new session. It didn't clear the old sessions but at least it works now.
delete from crypto_account;
I haven't seen this in a long time.
I'm having trouble communicating with the bridge. It was working previously but after a restart I get this error when trying to send a message in the management room.
Sure enough all of my clients get this same message and restarts or cache clears do not help. I am using Element clients.
The problem appears to be that the bridges account crypto devices are not correct. If I look in the Element Web UI I see these devices:
However if I check the database:
If I check messages sent by the bridge I see that their sender device ID matches the device ID in the database, which leads me to think that the devices listed in the account are wrong for some reason.
mautrix-facebook config:
(hs and as tokens are passed in as environment variables)
Synapse appservice registration: