Missing prev_events dans les logs, unable to decrypt
Sur plusieurs salons, des utilisateurs reportent du unable to decrypt (au moins 2 cas perso et 1 par un contact). A chaque fois ce sont des salons 1-1 en fédération (peut-être un hasard vu l'échantillon).
Une inspection rapide des logs montre des erreurs inattendues :
synapse_1 | 2022-12-21T07:02:01.766184060Z File "/usr/local/lib/python3.9/site-packages/synapse/storage/controllers/persist_events.py", line 876, in <setcomp>
synapse_1 | 2022-12-21T07:02:01.766187617Z event_id_to_state_group[evid] for evid in old_latest_event_ids
synapse_1 | 2022-12-21T07:02:01.766190621Z KeyError: '$47bkQ0PIwf5QBguVkj0o1E7QU645BJdfkHA4H7_ICcQ'
synapse_1 | 2022-12-21T07:02:01.766193568Z
synapse_1 | 2022-12-21T07:02:01.766196337Z The above exception was the direct cause of the following exception:
synapse_1 | 2022-12-21T07:02:01.766199347Z
synapse_1 | 2022-12-21T07:02:01.766202066Z Traceback (most recent call last):
synapse_1 | 2022-12-21T07:02:01.766205197Z File "/usr/local/lib/python3.9/site-packages/synapse/federation/federation_server.py", line 1224, in _process_incoming_pdus_in_room_inner
synapse_1 | 2022-12-21T07:02:01.766208428Z await self._federation_event_handler.on_receive_pdu(
synapse_1 | 2022-12-21T07:02:01.766211411Z File "/usr/local/lib/python3.9/site-packages/synapse/handlers/federation_event.py", line 282, in on_receive_pdu
synapse_1 | 2022-12-21T07:02:01.766214798Z raise Exception(
synapse_1 | 2022-12-21T07:02:01.766217810Z Exception: Error fetching missing prev_events for $aIrrdiGZnq6Rrl4zBwlu_NuR56sOFxK2mzcNxKwoBI8: '$47bkQ0PIwf5QBguVkj0o1E7QU645BJdfkHA4H7_ICcQ'
synapse_1 | 2022-12-21T07:29:39.442884723Z 2022-12-21 07:29:39,439 - synapse.federation.federation_server - 1234 - ERROR - _process_incoming_pdus_in_room_inner-960 - Failed to handle PDU $5g8xQKt_YYXAOkbLjzMkz2T2WQeHxk87jPmvGB7N1SM
s
Donc plausiblement, l'erreur fait échouer certaines persistences de pdu fédérés, ce qui pourrait expliquer des difficultés partielles, y compris du UTD.
Issues publiques qui pourraient aiguiller :