Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

"No state group for unknown or outlier event" error in federation #13026

Closed
@mytbk

Description

@mytbk

Description

In synapse to 1.60.0, I found the "No state group for unknown or outlier event" run time error in the journal (in log output section).

There are a lot of such events, giving a runtime error about once per minute.

Steps to reproduce

Start the synapse service and view the log with journalctl, then see the runtime errors.

Homeserver

matrixim.cc

Synapse Version

{"server_version":"1.60.0","python_version":"3.10.5"}

Installation Method

Other (please mention below)

Platform

Arch Linux matrix-synapse package 1.60.0-1.

Relevant log output

Jun 11 02:19:58 matrixim synapse[3229]: 2022-06-11 02:19:58,370 - synapse.federation.sender.per_destination_queue - 374 - ERROR - federation_trans
action_transmission_loop-1388 - TX [matrix.lokiberra.tk] Failed to send transaction
Jun 11 02:19:58 matrixim synapse[3229]: Traceback (most recent call last):
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
Jun 11 02:19:58 matrixim synapse[3229]:     result = current_context.run(gen.send, result)
Jun 11 02:19:58 matrixim synapse[3229]: StopIteration: []
Jun 11 02:19:58 matrixim synapse[3229]: During handling of the above exception, another exception occurred:
Jun 11 02:19:58 matrixim synapse[3229]: Traceback (most recent call last):
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/synapse/federation/sender/per_destination_queue.py", line 279, in _transaction_transmission_loop
Jun 11 02:19:58 matrixim synapse[3229]:     await self._catch_up_transmission_loop()
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/synapse/federation/sender/per_destination_queue.py", line 494, in _catch_up_transmission_loop
Jun 11 02:19:58 matrixim synapse[3229]:     hosts = await self._state.get_hosts_in_room_at_events(
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/synapse/state/__init__.py", line 258, in get_hosts_in_room_at_events
Jun 11 02:19:58 matrixim synapse[3229]:     entry = await self.resolve_state_groups_for_events(room_id, event_ids)
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/synapse/util/metrics.py", line 113, in measured_func
Jun 11 02:19:58 matrixim synapse[3229]:     r = await func(self, *args, **kwargs)
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/synapse/state/__init__.py", line 421, in resolve_state_groups_for_events
Jun 11 02:19:58 matrixim synapse[3229]:     state_groups = await self.state_store.get_state_group_for_events(event_ids)
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/synapse/storage/state.py", line 868, in get_state_group_for_events
Jun 11 02:19:58 matrixim synapse[3229]:     return await self.stores.main._get_state_group_for_events(event_ids)
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
Jun 11 02:19:58 matrixim synapse[3229]:     result = current_context.run(gen.send, result)
Jun 11 02:19:58 matrixim synapse[3229]:   File "/usr/lib/python3.10/site-packages/synapse/storage/databases/main/state.py", line 331, in _get_state_group_for_events
Jun 11 02:19:58 matrixim synapse[3229]:     raise RuntimeError("No state group for unknown or outlier event %s" % e)
Jun 11 02:19:58 matrixim synapse[3229]: RuntimeError: No state group for unknown or outlier event $j6Qxtlh-qcXquAz1rwD_9apbSIFn3x8D-9I5zTsJruA

Anything else that would be useful to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CorruptionThings that have led to unexpected state in Synapse or the databaseS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.X-Needs-InfoThis issue is blocked awaiting information from the reporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions