-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
if remote media cache is deleted on the fs, the server should notice and redownload (SYN-709) #1555
Comments
Such feature would be great, I lost part of my Is there any workaround for such case, like a postgre script/query to properly remove missing (or even all) remote media and make synapse consequently re-download them? |
Is this still an issue? Because we recently moved servers, while cloning the data, and now some avatars not registered with our homeserver are missing. Seems related to #3479 as well. |
Yes it is still an issue (that's why it is open). If you didn't move all the data the then you essentially deleted it manually which Synapse doesn't like. You can use the purge remote media API to get avatars back. https://github.com/matrix-org/synapse/blob/master/docs/admin_api/purge_remote_media.rst Use a time in the future.
|
Note that this doc file has moved to https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/media_admin_api.md#purge-remote-media-api. |
Noticed this bug myself recently when using the purge API. We purged everything on perthchat.org until 30 days ago, then deleted all the empty folders in the media repo. We then noticed most of the remote avatars for users/rooms were not rendering. Upon attempting to load them postgresql produces this error:
Can confirm that purging to a future date does in fact fix this. :) |
Purge command appears to succeed. Returns deleted:0. Element.io client still does not return corrected images. { |
@gbolcer deleted 0 means you didn't delete any. The most common reason for this is providing a timestamp in seconds rather than milliseconds. |
https://myservername.com/_synapse/admin/v1/purge_media_cache?before_ts=1634329818 |
@gbolcer yes but in the wrong format. The API wants milliseconds. In milliseconds 1634329818 is Jan 19, 1970 which is probably not the day you were trying to use. |
Thank you @aaronraimist Nice catch. { Confirmed, all icons repopulated! |
Submitted by @matthew:matrix.org
(Imported from https://matrix.org/jira/browse/SYN-709)
The text was updated successfully, but these errors were encountered: