На локальной машине все ок. Все отправляется на почту.
На удаленном серваке так
TimeoutError: [Errno 110] Connection timed out
Гугление пока результата не дало....
Кто может сталкивался с этим?
Как решали?
Last login: Tue May 24 09:59:29 2022 from 95.188.77.167
> root@templ-ubuntu-2004:~# cd /root/bots/ulya_bot2
> root@templ-ubuntu-2004:~/bots/ulya_bot2# python3.8 main.py
> FSM запущена
> подключил вторую часть
> РАБОТАЮ!
> executor.py [LINE:362] #INFO [2022-05-24 10:01:13,292] Bot: Juli_Key_bot [ @333t]
> executor.py [LINE:358] #WARNING [2022-05-24 10:01:14,379] Updates were skippe d successfully.
> Бот вышел онлайн
> Подключился к БД1
> dispatcher.py [LINE:358] #INFO [2022-05-24 10:01:14,381] Start polling.
> Valid email
> DataFrame:
> user_id name username e_mail phone
> 0 1284986166 Olga olga_viktorovna3335 jenya82333@inbox.ru 793333368
> base_events.py [LINE:1707] #ERROR [2022-05-24 10:03:51,235] Task exception was never retrieved
> future: <Task finished name='Task-47' coro=<Dispatcher._process_polling_update s() done, defined at /usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/d ispatcher.py:407> exception=TimeoutError(110, 'Connection timed out')>
> Traceback (most recent call last):
> File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.p y", line 415, in _process_polling_updates
> for responses in itertools.chain.from_iterable(await self.process_updates( updates, fast)):
> File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.p y", line 235, in process_updates
> return await asyncio.gather(*tasks)
> File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/handler.py", line 116, in notify
> response = await handler_obj.handler(*args, **partial_data)
> File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.p y", line 256, in process_update
> return await self.message_handlers.notify(update.message)
> File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/handler.py", line 116, in notify
> response = await handler_obj.handler(*args, **partial_data)
> File "/root/bots/ulya_bot2/handlers/Partnerbase1.py", line 69, in get_phone
> await sqlite_db1.sql_add_command(state)
> File "/root/bots/ulya_bot2/data_base/sqlite_db1.py", line 43, in sql_add_com mand
> send_email(user, pwd, recipients, "Test Subject")
> File "/root/bots/ulya_bot2/data_base/sqlite_db1.py", line 38, in send_email
> server = smtplib.SMTP('smtp.jino.ru: 587')
> File "/usr/lib/python3.8/smtplib.py", line 255, in __init__
> (code, msg) = self.connect(host, port)
> File "/usr/lib/python3.8/smtplib.py", line 339, in connect
> self.sock = self._get_socket(host, port, self.timeout)
> File "/usr/lib/python3.8/smtplib.py", line 310, in _get_socket
> return socket.create_connection((host, port), timeout,
> File "/usr/lib/python3.8/socket.py", line 808, in create_connection
> raise err
> File "/usr/lib/python3.8/socket.py", line 796, in create_connection
> sock.connect(sa)
<b>> TimeoutError: [Errno 110] Connection timed out</b>