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

Problem: Not able to delete accumulated avatar and header images #446

Open
jorgesat opened this issue Nov 14, 2022 · 5 comments
Open

Problem: Not able to delete accumulated avatar and header images #446

jorgesat opened this issue Nov 14, 2022 · 5 comments

Comments

@jorgesat
Copy link

The tootctl cron job currently deletes attached media after certain period of time. However, many admins are complaining that there is a large amount of disk space being used in avatar and header images, especially from large instances and from old instances and accounts that no longer exist.

Please see: mastodon/mastodon#9567

Proposed solution: Enabling the possibility to delete such images from disk.

@weex
Copy link
Member

weex commented Nov 15, 2022

Looks like a valid problem to me. There seem to be several solutions offered in that thread and one that was merged 8 days ago on setting a retention policy. Not sure which would be best but we'll merge it when a pull request is created!

@weex
Copy link
Member

weex commented Nov 17, 2022

Seems to be a possible solution. mastodon/mastodon#18397

@weex
Copy link
Member

weex commented Dec 3, 2022

The above PR gave modest results.

2219/2219 |=======================================| Time: 00:23:34
OK, pruned 2196 accounts

Before (from tootctl media usage):

Avatars:	5.65 GB (3.05 MB local)
Headers:	12.2 GB (2.04 MB local)

After

Avatars:	5.5 GB (3.05 MB local)
Headers:	11.9 GB (2.04 MB local)

@evanphilip
Copy link

Is this issue resolved by mastodon/mastodon#22149, which closed issue mastodon/mastodon#9567?

@weex
Copy link
Member

weex commented Feb 20, 2023

@evanphilip

Is this issue resolved by mastodon/mastodon#22149, which closed issue mastodon/mastodon#9567?

Great work! It's not resolved yet, but if you want to submit as a PR (and it passes our very similar CI) we'll merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants