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

Remote media cache cleanup not working #9192

Closed
ThomasLeister opened this issue Nov 1, 2018 · 7 comments
Closed

Remote media cache cleanup not working #9192

ThomasLeister opened this issue Nov 1, 2018 · 7 comments
Labels
troubleshooting Asking for deployment help

Comments

@ThomasLeister
Copy link
Contributor

ThomasLeister commented Nov 1, 2018

Expected behaviour

Mastodon should delete outdated media cache files

Actual behaviour

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)

Steps to reproduce the problem

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/

Specifications

Mastodon 2.6.1 on Ruby 2.5.3

@ClearlyClaire
Copy link
Contributor

Indeed, the rake task is gone, it has been replaced by tootctl media remote

@Gargron
Copy link
Member

Gargron commented Nov 1, 2018

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.

@Gargron Gargron closed this as completed Nov 1, 2018
@Gargron Gargron added the troubleshooting Asking for deployment help label Nov 1, 2018
@nightpool
Copy link
Member

nightpool commented Dec 4, 2018 via email

@gnppn
Copy link

gnppn commented Dec 4, 2018

@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.

@nightpool
Copy link
Member

no worries

@nightpool
Copy link
Member

(i normally respond/read github issues via email, so I didn't see the deletion)

@quimgil
Copy link

quimgil commented Jan 26, 2019

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?

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

No branches or pull requests

6 participants