Mastodon caches files from other servers, and those cached files have to be cleared occasionally, or the tilde’s disk will fill up, causing the tilde to die until it has free space.
Clearing the caches
sudo su -l -c "source /home/mastodon/.bashrc&&cd live&&RAILS_ENV=production bin/tootctl media remove --days 0&&RAILS_ENV=production bin/tootctl media remove --days 0 --prune-profiles" mastodon
This is the only safe way to clear the cache. If you delete cached files any other way, Mastodon WILL break. If you get an error, wait for that command to exit, then reply with the error message. It takes about 12-24 hours for Mastodon to fill the server, so manually clearing the cache every 6 hours is a good idea.