home.social

#tootctl — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #tootctl, aggregated by home.social.

  1. Oh, I found a magic #mastodon #tootctl command that freed about 8GB disc space on my VPS! w00t!! (I have yet to see what this might have broken, everything seems to be working OK lol)

    RAILS_ENV=production /home/mastodon/live/bin/tootctl accounts prune;

    My masto install has been growing by about 500MB per day lately, even running dailly media remove --days 2

    Edit to credit source of this magic: ricard.dev/improving-mastodons

  2. 这可如何是好?
    mastodon缓存出了什么问题嘛 :eoc_05:
    应该是今天下午自动清理了一次缓存,然后晚上就变成这样了
    docs.joinmastodon.org/zh-cn/ad
    我看sidekiq有很多重试、错误,和这些有关系吗 :eoc_43:
    我还试着执行了tootctl media refresh --account 但是偶尔只可以恢复头像,banner完全不能恢复
    还运行了一次tootctl cache clear,但是没什么变化感觉

    而且对象无一例外是关注了很多天的人,新出现的人没问题

    #mastodon #admin #cache #tootctl

  3. RE: mstdn.feddit.social/@admin/115

    说实话mastodon不直接支持markdown有些麻烦了;
    500字符限制也有些缩手缩脚。

    • 更加方便的导入emojis,注意先把已经导入的表情.tar.gz移动到地方。

    for f in ~/docker/social/mastodon/main/public/system/*.tar.gz; do
    name=$(basename "$f" .tar.gz)
    sudo docker exec -it MASTODON_WEB_CONTAINER_NAME \
    tootctl emoji import --category "$name" "/mastodon/public/system/$name.tar.gz"
    done

    • 需要修改的有
    1. ~/docker/social/mastodon/main/public/system/*.tar.gz 本地路径
    2. MASTODON_WEB_CONTAINER_NAME 实际mastodon_web容器名

    #emoji #tootctl #mastodon #import

  4. solution found! mstdn.thms.uk/@michael/1149936

    #Mastoadmin is there a good way to find which remote accounts/domains take a ton of space with media attachments? our server's remote media cache is ballooning by 30GB *a day* and that definitely sounds wrong.
    the info exists somewhere because you can see it in the admin console, but neither the admin console nor #tootctl seem to have a way to sort by attachments total size (unless i'm missing something). any advice?

    #Mastodon #MastodonAdmin #selfhosting

  5. Hm. Is there really no way to refresh a preview card attached to a status?

    #mastodon #tootctl #MastoDev

  6. Hey #mastoadmin people, is there something I should be running to clear up space on my mastodon server besides `tootctl media remove` and `tootctl preview-card remove`? I'm the only one on my server and somehow I have over 60GB being taken up. Doesn't seem right to me. 🤔

    #server #admin #mastodon #tootctl #serveradmin

  7. If you're running a #Mastodon server with Relays enabled, you should run `tootctl statuses remove` once in a while, to remove unreferenced statuses.

    I just ran it for the first time after ~6 months of operation and it deleted 3.072.757 statuses and 76.016 media attachments. 😮

    And it's not even done yet...

    #TootCTL #MastoAdmin #SysAdmin

  8. Issuing a '#tootctl media remove' in my #Mastodon server does not seem to actually remove anything, regardless of what it reports. And the storage usage in the server continues growing at an alarming rate.

    Any idea why this behaviour can be?

  9. A plea for help to a more experienced #mastoadmin - why in the devil are some avatars still not showing up properly? I've used the recommended #tootctl commands and still no love. I'd appreciate any troubleshooting suggestions. Thanks in advance.

  10. Cleaned a little bit more:

    > docker exec -it -w /app/www mastodon bin/tootctl media remove --prune-profiles --include-follows

    #mastoadmin #tootctl

  11. The commands I've used were:

    docker exec -it -w /app/www mastodon bin/tootctl media remove

    docker exec -it -w /app/www mastodon bin/tootctl media remove-orphans

    docker exec -it -w /app/www mastodon bin/tootctl media remove --remove-headers

    #docker #mastoadmin #tootctl

  12. I've cleaned up my Mastodon instance's headers and purged old assets, and woah, this is a huge cleanup.

    The issue was, iDrive e2 had randomly started to give timeout errors on my api key, so I could not even browse the bucket with another client. I'm assuming it's due to having too much object in the storage.

    The errors were like this:

    > Net::ReadTimeout with #<TCPSocket:(closed)>

    Here's some before and after:

    #mastoadmin #mastodon #idrive #idrivee2 #s3 #tootctl

  13. I've cleaned up my Mastodon instance's headers and purged old assets, and woah, this is a huge cleanup.

    The issue was, iDrive e2 had randomly started to give timeout errors on my api key, so I could not even browse the bucket with another client. I'm assuming it's due to having too much object in the storage.

    The errors were like this:

    > Net::ReadTimeout with #<TCPSocket:(closed)>

    Here's some before and after:

    #mastoadmin #mastodon #idrive #idrivee2 #s3 #tootctl

  14. I've cleaned up my Mastodon instance's headers and purged old assets, and woah, this is a huge cleanup.

    The issue was, iDrive e2 had randomly started to give timeout errors on my api key, so I could not even browse the bucket with another client. I'm assuming it's due to having too much object in the storage.

    The errors were like this:

    > Net::ReadTimeout with #<TCPSocket:(closed)>

    Here's some before and after:

    #mastoadmin #mastodon #idrive #idrivee2 #s3 #tootctl

  15. I've cleaned up my Mastodon instance's headers and purged old assets, and woah, this is a huge cleanup.

    The issue was, iDrive e2 had randomly started to give timeout errors on my api key, so I could not even browse the bucket with another client. I'm assuming it's due to having too much object in the storage.

    The errors were like this:

    > Net::ReadTimeout with #<TCPSocket:(closed)>

    Here's some before and after:

    #mastoadmin #mastodon #idrive #idrivee2 #s3 #tootctl

  16. I've cleaned up my Mastodon instance's headers and purged old assets, and woah, this is a huge cleanup.

    The issue was, iDrive e2 had randomly started to give timeout errors on my api key, so I could not even browse the bucket with another client. I'm assuming it's due to having too much object in the storage.

    The errors were like this:

    > Net::ReadTimeout with #<TCPSocket:(closed)>

    Here's some before and after:

    #mastoadmin #mastodon #idrive #idrivee2 #s3 #tootctl

  17. #️⃣ #MastoAdmin #MastoDicas

    Se você se deparou com esse erro ao rodar algum comando com o #tootctl para limpeza da sua instância #Mastodon:

    ---
    Error processing 12345678901234567890: Index update strategy is undefined for current context.
    Please wrap your code with `Chewy.strategy(:strategy_name) block.`
    ---

    Aqui tem a solução:
    :github: is.gd/XILZAn

  18. CW: masto admin

    Just deleted the handful of users from my old, #selfhosted #mastodon instance.

    Watching the #sidekiq process sign off from all the other servers after the #tootctl self-destruct command is like watching a vet loading up 'that' syringe! 😭 😆

    #bittersweet #lettinggo

  19. Resolved. I'm having problems running Tootctl from terminal.

    Regardless how I switch user to #Mastodon, Ruby is not found when I run tootctl.

    #MastoAdmin #SelfHost #TootCtl

    When I run WHOAMI it shows I am the Mastodon user.

    I've also tried
    sudo su mastodon
    suso su - mastodon
    su - mastodon

    My instance is running ok. ( OldFriends.Live )

    RESOLVED thanks to @jan oldfriends.live/@[email protected]/1 : I didn't bash after I logged in as the Mastodon user to run the commands and was using sh.

  20. Frage an die #Mastodon #administratoren

    mein Server ist zu ca. 60% "voll" - den größten Teil davon beansprucht der Ordner cache/media_attachments und accounts

    die Admin-tools #tootctl cache clear, media remove usw habe ich durch - kleine Verbesserungen ja - aber der Server schleppt noch immer gut 51,3 GB (!!) Daten mit von denen nur gut 0,05 GB local sind - doch wie bekommt ich diese nachhaltig bereinigt ??

    ach ja - aufbewahren von Inhalte ist auf 2 Tage gesetzt

    Bild = tootctl media usage

  21. Just started

    tootctl accounts refresh --all --verbose

    command.

    Let's see how long it'll take, found 39k accounts already on my instance 🤯 #mastoadmin #mastodon #tootctl

  22. @zaherg You see now why I have been trying to find a decent #storage and #cdn solution now? 😆

    Usage shows 16.25 GB on my bucket solution.

    You can find the details attached. Headers take a lot of space, but this #pr on #github will bring a #tootctl command to remove them on the next release:

    github.com/mastodon/mastodon/p

    The story: github.com/mastodon/mastodon/i

    I didn't want to kill my #ssd on the long run, and settled on #idrive #idrivee2 for #s3 storage, and #cloudflare for cdn solution.

    #mastoadmin

  23. @zaherg You see now why I have been trying to find a decent #storage and #cdn solution now? 😆

    Usage shows 16.25 GB on my bucket solution.

    You can find the details attached. Headers take a lot of space, but this #pr on #github will bring a #tootctl command to remove them on the next release:

    github.com/mastodon/mastodon/p

    The story: github.com/mastodon/mastodon/i

    I didn't want to kill my #ssd on the long run, and settled on #idrive #idrivee2 for #s3 storage, and #cloudflare for cdn solution.

    #mastoadmin

  24. Really looking forward to the #mastodon PR being merged that will purge old avatars and headers:

    $ tootctl media usage
    Attachments: 14.9 GB (8.46 MB local)
    Custom emoji: 225 MB (0 Bytes local)
    Preview cards: 585 MB
    Avatars: 6.94 GB (63.6 KB local)
    Headers: 14.5 GB (324 KB local)
    Backups: 0 Bytes
    Imports: 0 Bytes
    Settings: 0 Bytes

    github.com/mastodon/mastodon/i

    This is a ~2 week old almost single-user instance.

    #mastoadmin #tootctl #storage

  25. #tootctl silly question, from where do I get this CLI installed on my mstdn Ubuntu-server?

  26. #mastoadmin #cron #tootctl
    i have problems running the tootctl in cron. when i run the command as mastodon user locally it worked without problems.
    I created a cron for user mastodon. But get allways the error "/usr/bin/env: ‘ruby’: No such file or directory" Any idea?

  27. #mastoadmin 's - our instance has sporadic profile pictures/avatars missing. It has persisted for several days. I've tried several options - to include the #tootctl mark-media-missing command - with no success. Wondering if its a cache issue and they will reappear in a few days - but wanted to see if anyone else is experiencing same? It's not limited to avatars, it also includes sporadic missing headers.

    Tagging a few #admin who may have experience? @Gargron
    @davetroy @jerry @stux
    @ian

  28. #Mastodon server maintainers: As a still #selfhosted newbie server maintainer, realized Mastodon downloads every asset you see on your #timeline to your #filesystem, to
    mastodon/data/config/mastodon/public/system/cache

    folder. Just don't forget to "tootctl system prune" regularly #tootctl #cache #fediverse #selfhost #docker #cli

    The command just deletes remotely downloaded assets, not owned by you. So it's more like a cache #clearance.

  29. Since memory is scarce on my server I set up a small script to "remove locally cached copies of media attachments from other servers" from my mastodon instance with tootctl.

    It seems that media is re-downloaded when neccessary.

    I hope that this is not too impolite to produce a little more traffic at other instances if necessary.

    Documentation for #tootctl command: docs.joinmastodon.org/admin/to

    #mastodon #mastoadmin #script #cronjob #docker #instance

  30. I just did a thing. I added new command to mastodon's tootctl to remove old avatar images and header graphics. There's an "undo" command as well if you run into problems.

    Just tried it on my instance and it did remove some files indeed.

    #fediadmin #tootctl #mastodon