Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload failed although media is stored correctly #6339

Closed
tgy opened this issue Nov 6, 2019 · 1 comment

Comments

@tgy
Copy link

@tgy tgy commented Nov 6, 2019

Using the last versions of Riot and synapse, when I try to upload an image with Riot here's what happens on the side of synapse:

Nov 06 14:07:18 serverhostname synapse[1457877]: 2019-11-06 14:07:18,182 -
synapse.access.http.8008 - 233 - INFO - POST-43198 - 195.83.213.132 - 8008 -
Received request: POST /_matrix/media/r0/upload

Nov 06 14:07:18 serverhostname synapse[1457877]: 2019-11-06 14:07:18,213 -
synapse.rest.media.v1.media_repository - 162 - INFO - POST-43198 - Stored local
media in file
'/etc/synapse/media_store/local_content/Oz/SM/RYqzrRVYaakYrMXEtWVm'

Nov 06 14:07:20 serverhostname synapse[1457877]: 2019-11-06 14:07:20,705 -
synapse.rest.media.v1.upload_resource - 85 - INFO - POST-43198 - Uploaded
content with URI 'mxc://domain.tld/OzSMRYqzrRVYaakYrMXEtWVm'

Nov 06 14:07:20 serverhostname synapse[1457877]: 2019-11-06 14:07:20,713 -
synapse.access.http.8008 - 302 - INFO - POST-43198 - 195.83.213.132 - 8008 -
{@valentin:domain.tld} Processed request: 2.526sec/0.004sec (1.993sec,
        0.049sec) (0.007sec/0.393sec/6) 72B 200 "POST /_matrix/media/r0/upload
HTTP/1.1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36
(KHTML, like Gecko) Riot/1.5.2 Chrome/76.0.3809.146 Electron/6.1.2
Safari/537.36" [0 dbevts]

Nov 06 14:07:20 serverhostname synapse[1457877]: 2019-11-06 14:07:20,846 -
synapse.access.http.8008 - 233 - INFO - OPTIONS-43199 - 195.83.213.132 - 8008 -
Received request: OPTIONS /_matrix/media/r0/upload?filename=image.png

Nov 06 14:07:20 serverhostname synapse[1457877]: 2019-11-06 14:07:20,852 -
synapse.access.http.8008 - 302 - INFO - OPTIONS-43199 - 195.83.213.132 - 8008 -
{None} Processed request: 0.006sec/-0.000sec (0.009sec, 0.000sec)
(0.000sec/0.000sec/0) 2B 200 "OPTIONS
/_matrix/media/r0/upload?filename=image.png HTTP/1.1" "Mozilla/5.0 (Macintosh;
        Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko)
Riot/1.5.2 Chrome/76.0.3809.146 Electron/6.1.2 Safari/537.36" [0 dbevts]

Nov 06 14:07:23 serverhostname synapse[1457877]: 2019-11-06 14:07:23,546 -
synapse.storage.TIME - 391 - INFO -  - Total database time: 5.277%
{store_local_thumbnail(5): 3.308%, _update_client_ips_batch(2): 1.280%,
    store_local_media(1): 0.618%}

But Riot is saying that the upload failed.

I feel like maybe this is a problem with URL Preview which is not enabled on the synapse instance (by default it is disabled and the config doesn't enable it).

I don't know what's happening. Any idea?

@tgy

This comment has been minimized.

Copy link
Author

@tgy tgy commented Nov 6, 2019

Fixed it using #6192

@tgy tgy closed this Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.