Skip to content

Server crash, cannot start. TypeError: unsupported operand type(s) for |: 'InterfaceClass' and 'NoneType' #19269

@portaloffreedom

Description

@portaloffreedom

Description

#19111 broke my synapse pretty badly. I get the following error throughout a lot of places. I cannot run it any more.

TypeError: unsupported operand type(s) for |: 'InterfaceClass' and 'NoneType'

running wuth python3.11, installed with pip

Steps to reproduce

  • update to version 1.143.0
  • synctl start

Homeserver

neo.matteodroids.science

Synapse Version

Requirement already satisfied: matrix-synapse[postgres] in ./.local/lib/python3.11/site-packages (1.143.0)

Installation Method

pip (from PyPI)

Database

PostgreSQL

Workers

Single process

Platform

Opensuse Leap 15.6

Configuration

No response

Relevant log output

+ synctl start
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/matrix-synapse/.local/lib/python3.11/site-packages/synapse/app/homeserver.py", line 32, in <module>
    from synapse import events
  File "/opt/matrix-synapse/.local/lib/python3.11/site-packages/synapse/events/__init__.py", line 46, in <module>
    from synapse.util.caches import intern_dict
  File "/opt/matrix-synapse/.local/lib/python3.11/site-packages/synapse/util/caches/__init__.py", line 35, in <module>
    from synapse.util.metrics import DynamicCollectorRegistry
  File "/opt/matrix-synapse/.local/lib/python3.11/site-packages/synapse/util/metrics.py", line 36, in <module>
    from synapse.logging.context import (
  File "/opt/matrix-synapse/.local/lib/python3.11/site-packages/synapse/logging/__init__.py", line 24, in <module>
    from synapse.logging._remote import RemoteHandler
  File "/opt/matrix-synapse/.local/lib/python3.11/site-packages/synapse/logging/_remote.py", line 100, in <module>
    class RemoteHandler(logging.Handler):
  File "/opt/matrix-synapse/.local/lib/python3.11/site-packages/synapse/logging/_remote.py", line 116, in RemoteHandler
    _reactor: IReactorTime | None = None,
              ~~~~~~~~~~~~~^~~~~~
TypeError: unsupported operand type(s) for |: 'InterfaceClass' and 'NoneType'
synapse.app.homeserver(homeserver.yaml) failed to start (exit code: 1). Check the Synapse logfile, or run synctl with --no-daemonize.

Anything else that would be useful to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions