Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941879 - net-im/synapse-1.116.0-r2 fails to start with >=dev-python/twisted-24.10.0_rc1: AttributeError: 'Headers' object has no attribute '_encodeName'
Summary: net-im/synapse-1.116.0-r2 fails to start with >=dev-python/twisted-24.10.0_rc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Petr Vaněk
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2024-10-20 07:38 UTC by matoro
Modified: 2024-12-03 20:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_941879.txt,6.51 KB, text/plain)
2024-10-20 07:38 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-10-20 07:38:26 UTC
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
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-10-20 10:24:19 UTC
Ah, the great idea of using private API.  I'll add a '<' dep in a minute.
Comment 2 Larry the Git Cow gentoo-dev 2024-10-20 16:02:42 UTC
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(-)
Comment 3 Petr Vaněk gentoo-dev 2024-12-03 20:24:22 UTC
No longer an issue
Comment 4 Petr Vaněk gentoo-dev 2024-12-03 20:26:07 UTC
... because twisted version is restricted in the package for now.