Cron Not working

RAILS_ENV=production NUM_DAYS=3 @daily cd /home/mastodon/live && /home/mastodon/.rbenv/shims/bundle exec rake mastodon:media:remove_remote

I put this in cron to remove the remote media files every 3 days but its not working mine instance uses 8GB of Storage

Can Somebody help me

So This cron doesnt work.
After taking Help from sander an awesome guy on fediverse.
he told me about the manual way to clean up cache
Here is Step by Step

ssh root@domain
sudo su - mastodon
cd live
RAILS_ENV=production bin/tootctl media remove

Glad to see your issue was solved! Iā€™m not sure where you got this cron info from, but we removed the rake mastodon:media task a couple of versions ago.

1 Like