Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while deployment #108

Closed
sid8840 opened this issue Jun 5, 2024 · 5 comments
Closed

Error while deployment #108

sid8840 opened this issue Jun 5, 2024 · 5 comments

Comments

@sid8840
Copy link

sid8840 commented Jun 5, 2024

Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 500, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/app/dependencies/telethon/client/telegrambaseclient.py", line 544, in connect
if not await self._sender.connect(self._connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dependencies/telethon/network/mtprotosender.py", line 132, in connect
await self._connect()
File "/app/dependencies/telethon/network/mtprotosender.py", line 232, in _connect
connected = await self._try_connect(attempt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dependencies/telethon/network/mtprotosender.py", line 282, in _try_connect
await self._connection.connect(timeout=self._connect_timeout)
File "/app/dependencies/telethon/network/connection/connection.py", line 244, in connect
await self._connect(timeout=timeout, ssl=ssl)
File "/app/dependencies/telethon/network/connection/connection.py", line 216, in _connect
self._reader, self._writer = await asyncio.wait_for(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 476, in wait_for
await waiter
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/telemirror/mirroring.py", line 504, in __connect_client
await asyncio.wait_for(client.connect(), timeout=client._timeout)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 502, in wait_for
raise exceptions.TimeoutError() from exc

TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/main.py", line 105, in
main()
File "/app/main.py", line 91, in main
asyncio.run(
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/app/main.py", line 66, in run_telemirror
await telemirror.run()
File "/app/telemirror/mirroring.py", line 581, in run
await self._mirroring.run()
File "/app/telemirror/mirroring.py", line 480, in run
await self.__connect_client(self._sender)
File "/app/telemirror/mirroring.py", line 506, in __connect_client
raise RuntimeError(
RuntimeError: Timeout error while connecting to Telegram server, try restart or get a new session key (run login.py)

@khoben
Copy link
Owner

khoben commented Jun 6, 2024

The error message says it all. This is a network timeout error occurs while connecting to telegram servers. Check for availability of connection to telegram servers and try to restart

@sid8840
Copy link
Author

sid8840 commented Jun 6, 2024

I have restarted. it was deployed on Synology Nas. also generated login sessions to rectify but same message.

@khoben
Copy link
Owner

khoben commented Jun 6, 2024

It's definitely a connection issue, Telegram doesn't want to respond to the connection request for some reason

@sid8840
Copy link
Author

sid8840 commented Jun 6, 2024

I am able to solve it by modifying firewall settings in Synology, thanks.
any plans for web based Gui for this excellent program so that options like message filters can filled online.

@sid8840 sid8840 closed this as completed Jun 6, 2024
@khoben
Copy link
Owner

khoben commented Jun 7, 2024

I am able to solve it by modifying firewall settings in Synology, thanks.
any plans for web based Gui for this excellent program so that options like message filters can filled online.

There are no plans for web UI in the near future. Maybe someone interested in this will create a pull request with implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants