Skip to content

Enabling sticky events causes issues with mautrix bridge encryption #19779

@bblacher

Description

@bblacher

Description

As mentioned in #19409 (comment), enabling sticky events causes issues with mautrix bridge encryption.

Steps to reproduce

  • Enable sticky events on synapse
  • Install a mautrix bridge that supports encryption & enable it (e.g. mautrix-signal, mautrix-whatsapp)
  • Message a contact from multiple devices (to me it seems to be random which devices exhibit this error with which contact)
  • Receive "⚠️ Your message was not bridged: the bridge hasn't received the decryption keys" from the bridge

Reverting to v1.149.0 fixes this issue.

Homeserver

Synapse v1.150.0-v1.152.1

Synapse Version

v1.152.1

Installation Method

Docker (matrixdotorg/synapse)

Database

PostgeSQL 18.3, single server

Workers

Single process

Platform

Debian 13, installed with mdad.

Configuration

Enabled:

  • Presence
"unstable_features": {
        "org.matrix.label_based_filtering": true,
        "org.matrix.e2e_cross_signing": true,
        "org.matrix.msc2432": true,
        "uk.half-shot.msc2666.query_mutual_rooms.stable": true,
        "io.element.e2ee_forced.public": false,
        "io.element.e2ee_forced.private": false,
        "io.element.e2ee_forced.trusted_private": false,
        "org.matrix.msc3026.busy_presence": false,
        "org.matrix.msc2285.stable": true,
        "org.matrix.msc3827.stable": true,
        "org.matrix.msc3440.stable": true,
        "org.matrix.msc3771": true,
        "org.matrix.msc3773": false,
        "fi.mau.msc2815": false,
        "fi.mau.msc2659.stable": true,
        "org.matrix.msc3882": false,
        "org.matrix.msc3881": false,
        "org.matrix.msc3874": false,
        "org.matrix.msc3912": false,
        "org.matrix.msc3981": true,
        "org.matrix.msc3391": false,
        "org.matrix.msc4069": false,
        "org.matrix.msc4028": false,
        "org.matrix.msc4108": true,
        "org.matrix.msc4140": true,
        "org.matrix.simplified_msc3575": true,
        "uk.tcpip.msc4133": false,
        "uk.tcpip.msc4133.stable": true,
        "org.matrix.msc4155": false,
        "org.matrix.msc4306": false,
        "com.beeper.msc4169": false,
        "org.matrix.msc4354": false,
        "org.matrix.msc4380.stable": true,
        "org.matrix.msc4445.initial_sync_timeline_topological_ordering": true
    }

Maybe some other things that mdad enables by default.

Relevant log output

May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_result
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^
May 13 18:56:23 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value
May 13 18:56:29 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:29,998 - synapse.http.server - 853 - WARNING - POST-492 - Not sending response to request <XForwardedForRequest at 0x7f7c16a33ed0 method='POST' uri='/_matrix/client/unstable/org.matrix.simplified_msc3575/sync?pos=56353%2Fs154754_5355927_8_113408_124144_228_41367_76347_0_81_2_3&timeout=30000' clientproto='HTTP/1.1' site='8008'>, already disconnected.
May 13 18:56:30 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:30,000 - synapse.http.server - 853 - WARNING - POST-490 - Not sending response to request <XForwardedForRequest at 0x7f7c21381f90 method='POST' uri='/_matrix/client/unstable/org.matrix.simplified_msc3575/sync?pos=56353%2Fs154754_5355927_8_113408_124144_228_41367_76347_0_81_2_3&timeout=30000' clientproto='HTTP/1.1' site='8008'>, already disconnected.
May 13 18:56:30 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:30,079 - synapse.http.server - 853 - WARNING - POST-500 - Not sending response to request <XForwardedForRequest at 0x7f7c29f56850 method='POST' uri='/_matrix/client/unstable/org.matrix.simplified_msc3575/sync?pos=56353%2Fs154754_5355927_8_113408_124144_228_41367_76347_0_81_2_3&timeout=30000' clientproto='HTTP/1.1' site='8008'>, already disconnected.
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:33,940 - synapse.http.server - 147 - ERROR - GET-547 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c159e4550 method='GET' uri='/_matrix/client/v3/sync?device_id=HAJLTGUATQ&filter=1&org.matrix.msc3202.device_id=HAJLTGUATQ&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40signalbot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     res = await self.response_cache.wrap(
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     ...<7 lines>...
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 402, in wrap
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     return await make_deferred_yieldable(result)
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1195, in __iter__
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     result.raiseException()
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     ~~~~~~~~~~~~~~~~~~~~~^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/python/failure.py", line 455, in raiseException
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     raise self.value.with_traceback(self.tb)
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1857, in _inlineCallbacks
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     result = context.run(gen.send, result)
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 343, in cb
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     return await callback(*args, **kwargs)
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 471, in _wait_for_sync_for_user                                                                                                     May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     result = await self.current_sync_for_user(
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state=full_state
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                       May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     ^                                                                         May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 539, in current_sync_for_user                                                                                                       May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.generate_sync_result(
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state                                  May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                  May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     ^                                                                         May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_result                                                                                                       May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^
May 13 18:56:33 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:34,006 - synapse.http.server - 147 - ERROR - GET-548 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c159e4cd0 method='GET' uri='/_matrix/client/v3/sync?device_id=W8RSZOCMWW&filter=0&org.matrix.msc3202.device_id=W8RSZOCMWW&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40steambot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^             May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     res = await self.response_cache.wrap(
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ...<7 lines>...                                                           May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 402, in wrap
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     return await make_deferred_yieldable(result)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                              May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1195, in __iter__
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     result.raiseException()
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ~~~~~~~~~~~~~~~~~~~~~^^                                                   May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/python/failure.py", line 455, in raiseException
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     raise self.value.with_traceback(self.tb)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1857, in _inlineCallbacks
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     result = context.run(gen.send, result)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 343, in cb                                                                                                             May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     return await callback(*args, **kwargs)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 471, in _wait_for_sync_for_user
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     result = await self.current_sync_for_user(
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state=full_state
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                       May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 539, in current_sync_for_user                                                                                                       May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.generate_sync_result(
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                  May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ^                                                                         May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_result                                                                                                       May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:34,016 - synapse.http.server - 147 - ERROR - GET-549 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c159e47d0 method='GET' uri='/_matrix/client/v3/sync?device_id=WVITOBVFEL&filter=0&org.matrix.msc3202.device_id=WVITOBVFEL&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40whatsappbot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^             May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     res = await self.response_cache.wrap(
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ...<7 lines>...                                                           May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 402, in wrap
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     return await make_deferred_yieldable(result)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                              May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1195, in __iter__
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     result.raiseException()
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ~~~~~~~~~~~~~~~~~~~~~^^                                                   May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/python/failure.py", line 455, in raiseException
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     raise self.value.with_traceback(self.tb)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1857, in _inlineCallbacks
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     result = context.run(gen.send, result)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 343, in cb                                                                                                             May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     return await callback(*args, **kwargs)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 471, in _wait_for_sync_for_user
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     result = await self.current_sync_for_user(
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state=full_state
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                       May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 539, in current_sync_for_user                                                                                                       May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.generate_sync_result(
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                  May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ^                                                                         May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_resultMay 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:34 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^                                            May 13 18:56:34 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value                                                                                                                 May 13 18:56:38 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:38,370 - synapse.http.server - 853 - WARNING - POST-561 - Not sending response to request <XForwardedForRequest at 0x7f7c159e5310 method='POST' uri='/_matrix/client/unstable/org.matrix.simplified_msc3575/sync?pos=56353%2Fs154757_5355927_12_113410_124144_228_41369_76347_0_81_2_3&timeout=30000' clientproto='HTTP/1.1' site='8008'>, already disconnected.
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:43,958 - synapse.http.server - 147 - ERROR - GET-584 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c21380a50 method='GET' uri='/_matrix/client/v3/sync?device_id=HAJLTGUATQ&filter=1&org.matrix.msc3202.device_id=HAJLTGUATQ&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40signalbot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):                                            May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                       May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(             May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     res = await self.response_cache.wrap(                                     May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     ...<7 lines>...
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     ^                                                                         May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 402, in wrap
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     return await make_deferred_yieldable(result)
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                              May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1195, in __iter__
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     result.raiseException()                                                   May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     ~~~~~~~~~~~~~~~~~~~~~^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/python/failure.py", line 455, in raiseException                                                                                                             May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     raise self.value.with_traceback(self.tb)
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1857, in _inlineCallbacks
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     result = context.run(gen.send, result)                                    May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 343, in cb
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     return await callback(*args, **kwargs)
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 471, in _wait_for_sync_for_user
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     result = await self.current_sync_for_user(
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state=full_state
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 539, in current_sync_for_user
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.generate_sync_result(
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_result
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^
May 13 18:56:43 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:44,035 - synapse.http.server - 147 - ERROR - GET-585 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c21383250 method='GET' uri='/_matrix/client/v3/sync?device_id=W8RSZOCMWW&filter=0&org.matrix.msc3202.device_id=W8RSZOCMWW&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40steambot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     res = await self.response_cache.wrap(
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ...<7 lines>...
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 402, in wrap
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     return await make_deferred_yieldable(result)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1195, in __iter__
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     result.raiseException()
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ~~~~~~~~~~~~~~~~~~~~~^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/python/failure.py", line 455, in raiseException
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     raise self.value.with_traceback(self.tb)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1857, in _inlineCallbacks
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     result = context.run(gen.send, result)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 343, in cb
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     return await callback(*args, **kwargs)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 471, in _wait_for_sync_for_user
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     result = await self.current_sync_for_user(
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state=full_state
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 539, in current_sync_for_user
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.generate_sync_result(
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_result
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:44,046 - synapse.http.server - 147 - ERROR - GET-586 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c21380690 method='GET' uri='/_matrix/client/v3/sync?device_id=WVITOBVFEL&filter=0&org.matrix.msc3202.device_id=WVITOBVFEL&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40whatsappbot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     res = await self.response_cache.wrap(
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ...<7 lines>...
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 402, in wrap
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     return await make_deferred_yieldable(result)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1195, in __iter__
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     result.raiseException()
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ~~~~~~~~~~~~~~~~~~~~~^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/python/failure.py", line 455, in raiseException
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     raise self.value.with_traceback(self.tb)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1857, in _inlineCallbacks
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     result = context.run(gen.send, result)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 343, in cb
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     return await callback(*args, **kwargs)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 471, in _wait_for_sync_for_user
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     result = await self.current_sync_for_user(
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state=full_state
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 539, in current_sync_for_user
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.generate_sync_result(
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_result
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^
May 13 18:56:44 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:53,972 - synapse.http.server - 147 - ERROR - GET-589 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c29f574d0 method='GET' uri='/_matrix/client/v3/sync?device_id=HAJLTGUATQ&filter=1&org.matrix.msc3202.device_id=HAJLTGUATQ&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40signalbot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     res = await self.response_cache.wrap(
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     ...<7 lines>...
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 402, in wrap
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     return await make_deferred_yieldable(result)
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1195, in __iter__
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     result.raiseException()
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     ~~~~~~~~~~~~~~~~~~~~~^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/python/failure.py", line 455, in raiseException
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     raise self.value.with_traceback(self.tb)
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1857, in _inlineCallbacks
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     result = context.run(gen.send, result)
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 343, in cb
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     return await callback(*args, **kwargs)
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 471, in _wait_for_sync_for_user
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     result = await self.current_sync_for_user(
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state=full_state
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 539, in current_sync_for_user
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.generate_sync_result(
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_result
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^
May 13 18:56:53 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:54,064 - synapse.http.server - 147 - ERROR - GET-590 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c29f57610 method='GET' uri='/_matrix/client/v3/sync?device_id=WVITOBVFEL&filter=0&org.matrix.msc3202.device_id=WVITOBVFEL&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40whatsappbot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     res = await self.response_cache.wrap(
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ...<7 lines>...
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 402, in wrap
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     return await make_deferred_yieldable(result)
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1195, in __iter__
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     result.raiseException()
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ~~~~~~~~~~~~~~~~~~~~~^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/python/failure.py", line 455, in raiseException
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     raise self.value.with_traceback(self.tb)
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/twisted/internet/defer.py", line 1857, in _inlineCallbacks
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     result = context.run(gen.send, result)
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/util/caches/response_cache.py", line 343, in cb
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     return await callback(*args, **kwargs)
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 471, in _wait_for_sync_for_user
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     result = await self.current_sync_for_user(
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state=full_state
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 539, in current_sync_for_user
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.generate_sync_result(
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:         sync_config, since_token, full_state
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 1776, in generate_sync_result
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ) = await self._generate_sync_entry_for_rooms(sync_result_builder)
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 2240, in _generate_sync_entry_for_rooms
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     sync_result_builder, now_token, since_token
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:                          ^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]: UnboundLocalError: cannot access local variable 'now_token' where it is not associated with a value
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]: 2026-05-13 18:56:54,074 - synapse.http.server - 147 - ERROR - GET-591 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0x7f7c29f56490 method='GET' uri='/_matrix/client/v3/sync?device_id=W8RSZOCMWW&filter=0&org.matrix.msc3202.device_id=W8RSZOCMWW&since=s154746_5355895_683_113403_124139_228_41363_76344_0_81_2_3&timeout=0&user_id=%40steambot%3Ablacher.xyz' clientproto='HTTP/1.1' site='8008'>
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]: Traceback (most recent call last):
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 335, in _async_render_wrapper
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     callback_return = await self._async_render(request)
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/http/server.py", line 576, in _async_render
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     callback_return = await raw_callback_return
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/rest/client/sync.py", line 271, in on_GET
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     sync_result = await self.sync_handler.wait_for_sync_for_user(
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ...<6 lines>...
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     )
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:     ^
May 13 18:56:54 matrix-blacher matrix-synapse[1826716]:   File "/usr/local/lib/python3.13/site-packages/synapse/handlers/sync.py", line 366, in wait_for_sync_for_user

Anything else that would be useful to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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