Open Kimiblock opened 6 days ago
That is really odd, the error is:
AttributeError: 'MultipartParser' object has no attribute 'write'
Which is a class from python_multipart
package. It's possible that another package is colliding with it, which doesn't have write
? You should try re-installing python-multipart
perhaps?
Using a system-wide installation can be slightly brittle, as multiple python packages can clash, i.e. two different packages can install modules under multipart
.
I have both multipart and python-multipart installed, that is the cause.
I've had the same with v1.119.0 on gentoo with distro packages. It seems, synapse uses both multipart and python-multipart (doesn't start with multipart removed) Workarounded problem by changing https://github.com/element-hq/synapse/blob/850ff14613040d733ab28373a54c95e20182cd1c/synapse/http/client.py#L39 to
import python_multipart as multipart
@alexanderustinov that sounds weird, because gentoo package patches the line as you suggest, see https://github.com/gentoo/gentoo/blob/67abb5404860cf0bdb60b2454e1b98a3b5fb881c/net-im/synapse/synapse-1.119.0.ebuild#L181-L183 and all tests pass for ~amd64
. We do this change since v1.116.0-r2.
@alexanderustinov that sounds weird, because gentoo package patches the line as you suggest, see https://github.com/gentoo/gentoo/blob/67abb5404860cf0bdb60b2454e1b98a3b5fb881c/net-im/synapse/synapse-1.119.0.ebuild#L181-L183 and all tests pass for
~amd64
. We do this change since v1.116.0-r2.
@arkamar i've had custom ebuild in an overlay for years. Haven't noticed synapse in ::gentoo, thanks.
Description
Synapse fails to download any remote media
Steps to reproduce
Homeserver
moechat.kimiblock.top
Synapse Version
1.117
Installation Method
Other (please mention below)
Database
PostgreSQL single server
Workers
Single process
Platform
Arch Linux rolling, all packages has been updated
Configuration
experimental_features: msc3575_enabled: true msc3852_enabled: true msc3026_enabled: true msc3266_enabled: true msc2815_enabled: true msc2815_enabled: true msc3773_enabled: true msc3664_enabled: true msc3881_enabled: true
Push
msc3890_enabled: true msc3881_enabled: true msc3391_enabled: true msc4028_push_encrypted_events: true
enable_media_repo: true
Keep this off!
enable_authenticated_media: false
media_store_path: "media_repo" max_pending_media_uploads: 4 max_upload_size: 3M max_image_pixels: 32M dynamic_thumbnails: true media_retention: local_media_lifetime: 14d remote_media_lifetime: 4d
web_client_location: https://plane.kimiblock.top
presence: enabled: true
Relevant log output
Anything else that would be useful to know?
No response