mautrix / meta

A Matrix-Facebook Messenger and Instagram DM puppeting bridge.
GNU Affero General Public License v3.0
155 stars 11 forks source link

Your message may not have been bridged: failed to send LS request: not connected #48

Closed Jajcus closed 5 months ago

Jajcus commented 5 months ago

I would often get the Your message may not have been bridged: failed to send LS request: not connected message when trying to send something via the bridge and, indeed, the message does not get bridged. Restarting the service helps… for a while.

Please let me know what kind of debug information I can provide to help tracking this down.

Jajcus commented 5 months ago

Some error messages from the logs:

Apr 10 08:21:51 tropek mautrix-meta[3637709]: 2024-04-10T08:21:51+02:00 ERR Failed to handle connect ack error="failed to sync after reconnect: failed to ensure database is synced through socket: (databaseId=2)" component=messag
ix user_id=@jajcus:jajcus.net
Apr 10 08:21:51 tropek mautrix-meta[3637709]: 2024-04-10T08:21:51+02:00 ERR Error reading message from socket error="read tcp 10.253.0.254:49458->157.240.201.17:443: use of closed network connection" component=messagix user_id=@
jajcus:jajcus.net
Apr 10 08:21:51 tropek mautrix-meta[3637709]: 2024-04-10T08:21:51+02:00 DBG Disconnected from Meta socket error="error in read loop: failed to handle connect ack: failed to sync after reconnect: failed to ensure database is sync
ed through socket: (databaseId=2)" user_id=@jajcus:jajcus.net
Apr 10 08:21:51 tropek mautrix-meta[3637709]: 2024-04-10T08:21:51+02:00 ERR Error in connection, reconnecting error="error in read loop: failed to handle connect ack: failed to sync after reconnect: failed to ensure database is 
synced through socket: (databaseId=2)" component=messagix reconnect_in=300000 user_id=@jajcus:jajcus.net
tulir commented 5 months ago

That looks like an old version of the bridge

Jajcus commented 5 months ago
# /opt/mautrix-meta/mautrix-meta --version
mautrix-meta 0.2.0 (Mar 16 2024, 11:55:08 with go1.22.1)

And 0.2.0 is the latest one here: https://github.com/mautrix/meta/releases

time for a new release?

immanuelfodor commented 5 months ago

I also get this with 0.2.0, what should I use instead?

immanuelfodor commented 5 months ago

The old mautrix FB/insta bridges had a refresh command, why there is no such in the new meta bridges? It could probably solve the problem to do a manual/auto periodic refresh instead of restarting the service.