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

Can't retrieve original files after the "Media cache retention period" when using Object Storage Proxy #30145

Open
manuviens opened this issue May 1, 2024 · 0 comments
Labels
area/web interface Related to the Mastodon web interface bug Something isn't working status/to triage This issue needs to be triaged

Comments

@manuviens
Copy link

manuviens commented May 1, 2024

Steps to reproduce the problem

  1. Use the Object Storage Proxy config
  2. At https://mastodon.tld/admin/settings/content_retention, set Media cache retention period to something like 180 and leave Content cache retention period empty
  3. Look at old posts, their media files had been purged from the S3 bucket, so they could no longer be retrieved with the actual Object Storage Proxy config for nginx

Expected behaviour

Retrieve the original files from the origin instances and copy them back into bucket S3

Actual behaviour

Old posts have missing media files (Error 429)

Detailed description

I'm using nginx in front of my S3 bucket to serve media files using this example :
https://docs.joinmastodon.org/admin/optional/object-storage-proxy/

This is my retention settings :
image

Mastodon instance

pouet.fedi.quebec

Mastodon version

v4.2.8

Browser name and version

Firefox 125.0.2

Operating system

LinuxMint 21.3 & Cinnamon

Technical details

Related to S3 in my .env.production :

S3_ENABLED=true
S3_PROTOCOL=https
S3_REGION=bhs
S3_ENDPOINT=https://s3.bhs.perf.cloud.ovh.net
S3_HOSTNAME=s3.bhs.perf.cloud.ovh.net
S3_ALIAS_HOST=medias.pouet.fedi.quebec
S3_BUCKET=my_bucket_name
AWS_ACCESS_KEY_ID=my_acces_key
AWS_SECRET_ACCESS_KEY=my_secret_key
S3_FORCE_SINGLE_REQUEST=true
@manuviens manuviens added area/web interface Related to the Mastodon web interface bug Something isn't working status/to triage This issue needs to be triaged labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web interface Related to the Mastodon web interface bug Something isn't working status/to triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant