-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
ValueError: seek of closed file
when client aborts media upload at exactly the right time
#11154
Comments
Okay so while trying to repro the error message element gives, the problem seems to have disappeared? Maybe server was just overloaded? |
sounds like a dup of #6192 |
Except, if I correlate these correctly, it happened uploading a 56.4KiB jpg to a server with |
It's good to hear that things are working for you again! |
Finally reproduced it. The client needs to disconnect in the narrow time window in between Synapse receiving the end of the uploaded data and writing the file to disk. I had nginx in front of Synapse, but telling it to avoid buffering uploads didn't make a difference. It looks like Twisted does some buffering too(?). Steps to reproduce the error
I can't see how this would result in what you saw though, since in this scenario it's the client intentionally aborting the upload. It's also a synapse bug, unrelated to the upgrade and the storage provider. |
ValueError: seek of closed file
when client aborts media upload at exactly the right time
I think we should treat this as a dup of #6192. An overlarge file (causing the reverse-proxy to drop the connection) is one potential cause, but clearly not the only cause, as evidenced by the comments on that issue. |
Closed as duplicate of #6192 |
Or Synapse is taking too long to process the upload and clients are timing out the request |
Describe the bug
I upgraded synapse-s3-storage-provider together with synapse 1.45.1 using
pip install --force-reinstall
, but had to downgrade back to 1.43 (#11049 (comment)). Now can't upload media, error log:Is matrix-org/synapse-s3-storage-provider#62 not backwards compatible after all?
The following also happen:
synapse.rest.media.v1._base - 256 - WARNING - GET-40201- Failed to write to consumer: <class 'Exception'> Consumer asked us to stop producing
- in bursts of 20 or sosynapse.rest.media.v1.media_repository - 425 - WARNING - GET-57021- Not retrying destination 'domain.tld'
- occurs twice every other minute, always the same domain. Others also occur less regularly.Server:
Desktop (please complete the following information):
Additional context
pip freeze
(maybe synapse-s3-storage-provider could use some versioning beyond 1.0?)
homeserver.yaml
The text was updated successfully, but these errors were encountered: