Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

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

Description

@dtrckd

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions