You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set the flag to send to last chat by default. after 5 month use, the size of tgdata.db reach to 19M.
now, telegram can receive message from wechat, no problem. but if I sent message, which only arrive to the server running ehforwarderbot, and it will not send to wechat.
if I run this bot by ehforwarderbot -v, there will be no error log. only you can see, after telegram master get the message, it only handle by efb_telegram_master.locale_handler. normally, the next step is efb_telegram_master.master_message, but it doesn't happen.
After i clear the table msglog, and test for two days, seems ok.
The text was updated successfully, but these errors were encountered:
QQ-War
changed the title
tgdata.db 数据量过大以后,telegram发送信息无法到达wechat,且无日志报错记录
after tgdata.db become lager, telegram can't send message to wechat, and there are no error log.
Oct 22, 2021
Thanks for experimenting and the detailed report. I’ll try to investigate on the cause of the issue and a solution for it. If you have any better idea on fixing the code, feel free to comment below or send in a PR.
My temporary solution is to create a task to backup the msglog and clean this table every night.
maybe the backup is not necessary ,since all message is already inside telegram.
My code skill is not that good, I would like to help to check the code in depth, but maybe can help less. My thinking on this issues is maybe because of the read and write of big file takes a lot of time, then the database is locked by wechat slave, so the telegram master can only set the locale and don't have resouce to handle message.
One suggestion is to give an option to use Mysql.
I set the flag to send to last chat by default. after 5 month use, the size of tgdata.db reach to 19M.
now, telegram can receive message from wechat, no problem. but if I sent message, which only arrive to the server running ehforwarderbot, and it will not send to wechat.
if I run this bot by ehforwarderbot -v, there will be no error log. only you can see, after telegram master get the message, it only handle by efb_telegram_master.locale_handler. normally, the next step is efb_telegram_master.master_message, but it doesn't happen.
After i clear the table msglog, and test for two days, seems ok.
The text was updated successfully, but these errors were encountered: