Created attachment 906396 [details] emerge --info Upgraded net-im/synapse today and it crashed with the below traceback. Downgraded synapse and received the same crash. Looked at the imports and saw they are from twisted, rolled back twisted to 24.7.0 and re-upgraded synapse, crash went away. * Starting Matrix synapse daemon ... Traceback (most recent call last): File "/usr/lib/python-exec/python3.12/synapse_homeserver", line 5, in <module> from synapse.app.homeserver import main File "/usr/lib/python3.12/site-packages/synapse/app/homeserver.py", line 43, in <module> from synapse.app import _base File "/usr/lib/python3.12/site-packages/synapse/app/_base.py", line 71, in <module> from synapse.events.auto_accept_invites import InviteAutoAccepter File "/usr/lib/python3.12/site-packages/synapse/events/auto_accept_invites.py", line 28, in <module> from synapse.module_api import EventBase, ModuleApi, run_as_background_process File "/usr/lib/python3.12/site-packages/synapse/module_api/__init__.py", line 58, in <module> from synapse.handlers.account_data import ON_ACCOUNT_DATA_UPDATED_CALLBACK File "/usr/lib/python3.12/site-packages/synapse/handlers/account_data.py", line 27, in <module> from synapse.replication.http.account_data import ( File "/usr/lib/python3.12/site-packages/synapse/replication/http/__init__.py", line 24, in <module> from synapse.replication.http import ( File "/usr/lib/python3.12/site-packages/synapse/replication/http/account_data.py", line 28, in <module> from synapse.replication.http._base import ReplicationEndpoint File "/usr/lib/python3.12/site-packages/synapse/replication/http/_base.py", line 38, in <module> from synapse.http.site import SynapseRequest File "/usr/lib/python3.12/site-packages/synapse/http/site.py", line 39, in <module> from synapse.http.proxy import ProxySite File "/usr/lib/python3.12/site-packages/synapse/http/proxy.py", line 72, in <module> _canonicalHeaderName = Headers()._encodeName ^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Headers' object has no attribute '_encodeName' * start-stop-daemon: failed to start `/usr/bin/synapse_homeserver' * Failed to start Matrix synapse daemon [ !! ] * ERROR: synapse failed to start
Ah, the great idea of using private API. I'll add a '<' dep in a minute.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4e26e9cd27d60cc0a79cb6961dcc13de3791b76 commit e4e26e9cd27d60cc0a79cb6961dcc13de3791b76 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-10-20 10:28:09 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-10-20 16:02:38 +0000 net-im/synapse: Restrict dev-python/twisted due to regressions Bug: https://bugs.gentoo.org/941879 Bug: https://github.com/element-hq/synapse/issues/17075 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-im/synapse/synapse-1.113.0-r1.ebuild | 6 ++---- net-im/synapse/synapse-1.114.0-r1.ebuild | 6 ++---- net-im/synapse/synapse-1.115.0-r2.ebuild | 6 ++---- net-im/synapse/synapse-1.116.0-r1.ebuild | 6 ++---- net-im/synapse/synapse-1.116.0-r2.ebuild | 6 ++---- 5 files changed, 10 insertions(+), 20 deletions(-)
No longer an issue
... because twisted version is restricted in the package for now.