matrix-org / synapse-s3-storage-provider

Synapse storage provider to fetch and store media in Amazon S3
Apache License 2.0
127 stars 34 forks source link

purge_media_cache seems not to affect bucket #54

Open verymilan opened 3 years ago

verymilan commented 3 years ago

Hi there, i am using OVH and the latest synapse. I have just realized that despite synapse reporting the deletion of >70k objects, my bucket did not reduce in size... .

Update: while the curl response is positive and only returns the number of deleted objects, the synapse log gets flooded with synapse.rest.media.v1.media_repository ... Failed to remove file: filepath - i assume this is because i delete local media from time to time, but this time i would like to cleanup the bucket.

verymilan commented 3 years ago

closing this for now as i cannot prove that it is actually remote content filling up my bucket: i can see the directory in s3fs but no filesizes.txt for it, also the console does not show any matching files. unhandily any recursive command freezes when using s3fs.

verymilan commented 3 years ago

oh, i didn't realize that the filesystem_id differs from media_id. media is in both locations.