Renew the airogram.Возобновить бот на airogram
- sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '109.94.200.00'"), and pymysql.err.InternalError: Packet sequence number wrong - got 1 expected 0.- And on the telnet the sadness [email protected]:~/hugme-bot# telnet 109.94.00.00 3306 Trying 109.94.200.000...Connected to 109.94.00.00Escape character is '^]'.kHost '78.140.000000' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'Connection closed by foreign host.Also in logs more than 200k errors.- ERROR - tgbot.services.scheduler - TRY SEND NOTIFICATION ERROR: Forbidden: user is deactivated Every 5 seconds the bot tried to send a message to the person that the bot banned.“Tri send notification error”
Per
Finally, two of these problems must be solved.1 .Fix the source of the problem so that the bot doesn’t swim and it starts.Maybe the IPB is changed.
2ndRemove the source of errors
Имеется сайт. К нему подключен телеграмм бот, именно к базе данных сайта MYSQL (бот с ней и работает, подключен sqlalchemy). Бот после перзагрузки сервера не запускается, погрешность на то, что база данных банит бот. Тогда я прошу хостинг сделать команду: mysqladmin flush-hosts и тогда бот возможно запуститься. Нужно исправить именно источник проблемы.
Ошибки типа
- sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '109.94.200.00'"), и pymysql.err.InternalError: Packet sequence number wrong - got 1 expected 0.
- И на телнете печаль [email protected]:~/hugme-bot# telnet 109.94.00.00 3306 Trying 109.94.200.000... Connected to 109.94.00.00Escape character is '^]'.
kHost '78.140.000000' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'Connection closed by foreign host.
Также в логах более 200к ошибок.
- ERROR - tgbot.services.scheduler - TRY SEND NOTIFICATION ERROR: Forbidden: user is deactivated Каждые 5 секунд бот пытался послать сообщение человеку, который бота забанил. "TRY SEND NOTIFICATION ERROR",
Возможно в код бота нужно добавить проверку на заблокированного пользователя, нужно дописать пару ключей.
Кстати, програмист оставил сам. Но обработку ошибки (например, удаления сообщения из цикла) не оставил.
Я так догадываюсь, что может быть в коде что-то криво делается (например те миллионы логов), ибо сейчас открыто 6 сессий, и кол-во ошибкок (с 15:45) увеличилось с: Aborted clients 248.1 k Aborted connects 265.5 k до Aborted clients 248.9 k Aborted connects 275.3 k
В итоге нужно решить две этих проблемки.
1. Исправить источник проблемы, чтобы бот не банился и он запускался. Возможно айпи БД сменен
2. Убрать источник ошибок
Client's feedback on cooperation with Yaroslav Grebenyuk
Renew the airogram.The executive. I liked the execution. I hope for a guarantee 😉
-
459 1 0 Hello, after reading I got some idea of the reasons for the occurrence of these errors, but you need to see how everything works inside
Здраствуйте, после прочтения получил кое-какое представление о причинах возникновения данных ошибок, но нужно посмотреть как все работает внутри
-
653 6 1 Ready to help remove errors. You need to look at the code and log, it will be clear who gets the connectivity pool.
Готов помочь устранить ошибки. Нужно смотреть код и логи, будет понятно кто забивает пул подключений.