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

Random cryptographic error, that require the bot to auto-restart #74

Open
dtrckd opened this issue Jul 23, 2024 · 0 comments
Open

Random cryptographic error, that require the bot to auto-restart #74

dtrckd opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dtrckd
Copy link
Collaborator

dtrckd commented Jul 23, 2024

We have this kind of error, that happen rarely but sometimes at startup, due to complex not yet identified dependencies on matrix libraries :

Error decrypting megolm event, no session found with session id 2W1SgKoT/0nTv9F6Hof8PDDzgsBDeBukR2IF+q8nRo8 for room !NoSBdQzaTGXGcsQysJ:i.tchap.gouv.fr
2024-07-24 00:25:10 [error    ] Bot startup failed with error: 'AuthLogin' object has no attribute 'session_stored_file_path'
2024-07-24 00:25:13 [error    ] Bot startup failed with error: Event loop is closed
2024-07-24 00:25:16 [error    ] Bot startup failed with error: Event loop is closed
2024-07-24 00:25:19 [error    ] Bot startup failed with error: Event loop is closed
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/adulac/albert-tchapbot/app/__main__.py", line 9, in <module>
    main()
  File "/home/adulac/albert-tchapbot/app/bot.py", line 52, in main
    if err:
UnboundLocalError: local variable 'err' referenced before assignment
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f9534465990>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f953445ca00>, 3546557.31036683), (<aiohttp.client_proto.ResponseHandler object at 0x7f9534229480>, 3546557.321158683), (<aiohttp.client_proto.ResponseHandler object at 0x7f95342292a0>, 3546560.990707109)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f95344659f0>

This is why, while it is not fixed, the bot should auto-restart au failed at deployment time @benjaminpilia @leoguillaume

@dtrckd dtrckd added the bug Something isn't working label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant