Tootctl media remove-orphans error with Version 3.1.3

Hi,
i have upgraded vom 3.1.2 to 3.1.3 and tried to start
cd /home/mastodon/live && bin/tootctl media remove-orphans which works with 3.1.2 but not with the new 3.1.3
it shows the following error:

$ cd /home/mastodon/live && bin/tootctl media remove-orphans
Traceback (most recent call last):=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=-|  ETA: ??:??:??
        15: from bin/tootctl:5:in `<main>'
        14: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
        13: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        12: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        11: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        10: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:238:in `block in subcommand'
         9: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:115:in `invoke'
         8: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
         7: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
         6: from /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
         5: from /home/mastodon/live/lib/mastodon/media_cli.rb:71:in `remove_orphans'
         4: from /home/mastodon/live/lib/mastodon/media_cli.rb:71:in `loop'
         3: from /home/mastodon/live/lib/mastodon/media_cli.rb:85:in `block in remove_orphans'
         2: from /home/mastodon/live/lib/mastodon/media_cli.rb:278:in `preload_records_from_mixed_objects'
         1: from /home/mastodon/live/lib/mastodon/media_cli.rb:278:in `map'
/home/mastodon/live/lib/mastodon/media_cli.rb:281:in `block in preload_records_from_mixed_objects': undefined method `join' for "count":String (NoMethodError)

Anybody else, or anybody a solution?

kind regards,

Martin

Unfortunately the release has a bug

This got fixed like this: Fix regression in `tootctl media remove-orphans` by Gargron · Pull Request #13405 · tootsuite/mastodon · GitHub

This is a one line change that can be manually applied to your code until the new release comes.

1 Like

Thank you very much. This solved it!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.