Mastodon should delete outdated media cache files
Error message:
mastodon@mastodon:~/live$ export RAILS_ENV=production
mastodon@mastodon:~/live$ cd /home/mastodon/live && /home/mastodon/.rbenv/shims/bundle exec rake mastodon:media:remove_remote
rake aborted!
Don't know how to build task 'mastodon:media:remove_remote' (see --tasks)
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/mastodon/.rbenv/versions/2.5.3/bin/bundle:23:in `load'
/home/mastodon/.rbenv/versions/2.5.3/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
Execute the above command. I've tried this on two different Mastodon instances - both are affected. Is remote media cleanup via cron still a thing? It's not mentioned in the new Mastodon Admin Docs: https://docs.joinmastodon.org/administration/installation/
Mastodon 2.6.1 on Ruby 2.5.3
Indeed, the rake task is gone, it has been replaced by tootctl media remote
tootctl media remove
was added in 2.5.0, now in 2.6.0 the old rake task was removed, this is mentioned in the release notes, under Features -> CLI -> "Remove rake tasks in favour of tootctl commands"
Use tootctl media remove --help
to learn more.
Note: The documentation has moved to a different repository
https://source.joinmastodon.org/mastodon/docs, where it is compiled to
docs.joinmastodon.org. This repository is no longer updated.
On Tue, Dec 4, 2018 at 11:45 AM Guénaël notifications@github.com wrote:
Hi!
Thanks for the issue and the answer, which helped me. Is it possible to
update the Production guide
https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Production-guide.md
to reflect this?Thanks again!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tootsuite/mastodon/issues/9192#issuecomment-444169754,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAORVxkfwwRG4y479O-UUmMbfCoJCmbsks5u1qa4gaJpZM4YHW5k
.
@nightpool Yes, I only saw the documentation repo has been archived after my (now removed) comment. I feel really silly now, sorry for the noise.
no worries
(i normally respond/read github issues via email, so I didn't see the deletion)
tootctl media remove was added in 2.5.0, now in 2.6.0 the old rake task was removed
Does this mean that https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Production-guide.md#remote-media-attachment-cache-cleanup needs to be updated?
Most helpful comment
tootctl media remove
was added in 2.5.0, now in 2.6.0 the old rake task was removed, this is mentioned in the release notes, under Features -> CLI -> "Remove rake tasks in favour of tootctl commands"Use
tootctl media remove --help
to learn more.