Cached media not being deleted automatically #533

Closed
opened 2023-12-28 14:49:17 +00:00 by raucao · 2 comments
Owner

Mastodon is supposed to delete cached media automatically, according to the value in the admin settings. However, nothing is being deleted apparently.

My first guess would be a queue tag/name missing for the Sidekiq workers (in the systemd unit).

Mastodon is supposed to delete cached media automatically, according to the value in the admin settings. However, nothing is being deleted apparently. My first guess would be a queue tag/name missing for the Sidekiq workers (in the systemd unit).
raucao added the
service
mastodon
bug
labels 2023-12-28 14:49:17 +00:00
Author
Owner

My first guess would be a queue tag/name missing for the Sidekiq workers (in the systemd unit).

All queues are being run AFAICS.

> My first guess would be a queue tag/name missing for the Sidekiq workers (in the systemd unit). All queues are being run AFAICS.
raucao added this to the 2025/Q2 project 2025-04-22 14:58:20 +00:00
Author
Owner

Just run this in mastodon's CRON or a systemd timer every day:

RAILS_ENV=production /opt/ruby_build/builds/3.3.5/bin/bundle exec bin/tootctl media remove --days 30
Just run this in `mastodon`'s CRON or a systemd timer every day: RAILS_ENV=production /opt/ruby_build/builds/3.3.5/bin/bundle exec bin/tootctl media remove --days 30
greg was assigned by raucao 2025-04-22 15:09:49 +00:00
greg started working 2025-05-16 14:59:41 +00:00
greg worked for 33 minutes 2025-05-16 15:33:21 +00:00
greg moved this to Done in 2025/Q2 on 2025-05-21 08:40:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Total Time Spent: 33 minutes
greg
33 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#533
No description provided.