home.social

#tootctl — Public Fediverse posts

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

fetched live
  1. Gibt es eine Möglichkeit, die Werte von :mastodon: #Mastodon #tootctl media usage als Verlaufskurven irgendwie übersichtlich auf einer Webseite darzustellen? @selfhostingrelay

  2. Gibt es eine Möglichkeit, die Werte von :mastodon: #Mastodon #tootctl media usage als Verlaufskurven irgendwie übersichtlich auf einer Webseite darzustellen? @selfhostingrelay

  3. Ich musste doch glatt mein drei Tage altes :mastodon: #Mastodon #Backup wieder einspielen, weil ich leichtsinnigerweise direkt in der #BASH #Shell mit rm im #Cache Verzeichnis herumgelöscht habe, anstatt wie alle sagen, #tootctl zu verwenden. eigene Doofheit ☹️
    Aber jetzt funktioniert wieder alles super, mir fehlen halt nur drei Tage Beiträge. Aber ich lese sowieso meist nur die vom aktuellen Tag und diejenigen, die von mir abonnierte #Hashtags enthalten. Vieles fällt da hinten runter, weil die Menschys beim Verfassen ihrer Beiträge einfach keine Hashtags verwenden (wollen) oder einfach nur irgendwelchen Content aus anderen Systemen bei Mastodon "über die Mauer werfen"

  4. Ich musste doch glatt mein drei Tage altes :mastodon: #Mastodon #Backup wieder einspielen, weil ich leichtsinnigerweise direkt in der #BASH #Shell mit rm im #Cache Verzeichnis herumgelöscht habe, anstatt wie alle sagen, #tootctl zu verwenden. eigene Doofheit ☹️
    Aber jetzt funktioniert wieder alles super, mir fehlen halt nur drei Tage Beiträge. Aber ich lese sowieso meist nur die vom aktuellen Tag und diejenigen, die von mir abonnierte #Hashtags enthalten. Vieles fällt da hinten runter, weil die Menschys beim Verfassen ihrer Beiträge einfach keine Hashtags verwenden (wollen) oder einfach nur irgendwelchen Content aus anderen Systemen bei Mastodon "über die Mauer werfen"

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

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

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

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

    #mastodon #admin #cache #tootctl

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

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

    #mastodon #admin #cache #tootctl

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

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

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

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

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

    #mastodon #tootctl #MastoDev

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

    #mastodon #tootctl #MastoDev

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

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

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

  18. 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?

  19. 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?

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

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

  22. Cleaned a little bit more:

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

    #mastoadmin #tootctl

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

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

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

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

  27. #️⃣ #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

  28. Dear other Mastodon Server Admins:
    I have constantly broken images shown from instances - I run tootctl accounts refresh --domain example.com

    is there a better solution

    #mastodon #mastoadmin #tootctl #brokenimages

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

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

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

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

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

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

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

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

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

  38. #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?

  39. #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?

  40. #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

  41. #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

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

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

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