mautrix / telegram

A Matrix-Telegram hybrid puppeting/relaybot bridge
https://matrix.to/#/#telegram:maunium.net
GNU Affero General Public License v3.0
1.34k stars 176 forks source link

[Help] Telegram sync issue #616

Closed zoenglinghou closed 3 years ago

zoenglinghou commented 3 years ago

So I set up mautrix-telegram w/ docker (inside the same docker bridge network as my homeserver) and have been using it for a few months without problem. A few weeks ago, I restarted the homeserver, and now the bridge cannot sync with telegram.

After I use the sync command, it is giving me the following error repeatedly and my CPU usage ramps up to 100%:

mautrix-telegram  | [2021-04-30 08:59:11,582] [INFO@telethon.1136105751.network.mtprotosender] Connecting to 149.154.167.40:80/TcpFull...
mautrix-telegram  | [2021-04-30 08:59:11,583] [INFO@telethon.1136105751.network.mtprotosender] Connection to 149.154.167.40:80/TcpFull complete!
mautrix-telegram  | [2021-04-30 08:59:11,587] [INFO@telethon.1136105751.network.connection.connection] The server closed the connection
mautrix-telegram  | [2021-04-30 08:59:11,588] [INFO@telethon.1136105751.network.mtprotosender] Connection closed while sending data
mautrix-telegram  | [2021-04-30 08:59:11,589] [INFO@telethon.1136105751.network.mtprotosender] Closing current connection to begin reconnect...
mautrix-telegram  | [2021-04-30 08:59:11,589] [INFO@telethon.1136105751.network.connection.connection] <class 'BrokenPipeError'> during disconnect: [Errno 32] Broken pipe
mautrix-telegram  | [2021-04-30 08:59:11,589] [INFO@telethon.1136105751.network.mtprotosender] Connection closed while receiving data
mautrix-telegram  | [2021-04-30 08:59:11,589] [INFO@telethon.1136105751.network.connection.connection] <class 'BrokenPipeError'> during disconnect: [Errno 32] Broken pipe

The bridge does not reply to help or sync command in the matrix chat room.

The error is persistent even if I:

I am clueless in how to solve the issue. My other bridges (instagram & facebook) work fine on the same machine in docker. I would appreciate for your help! ❤️

zoenglinghou commented 3 years ago

I fixed the issue by purging the data base and re-setup. Might have been a breaking change along the way. Closing for now.