#tootctl — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #tootctl, aggregated by home.social.
-
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 2Edit to credit source of this magic: https://ricard.dev/improving-mastodons-disk-usage/
-
这可如何是好?
mastodon缓存出了什么问题嘛 :eoc_05:
应该是今天下午自动清理了一次缓存,然后晚上就变成这样了
https://docs.joinmastodon.org/zh-cn/admin/tootctl/#cache-clear
我看sidekiq有很多重试、错误,和这些有关系吗 :eoc_43:
我还试着执行了tootctl media refresh --account 但是偶尔只可以恢复头像,banner完全不能恢复
还运行了一次tootctl cache clear,但是没什么变化感觉而且对象无一例外是关注了很多天的人,新出现的人没问题
-
RE: https://mstdn.feddit.social/@admin/115710097887114149
说实话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容器名 -
mstdn.feddit.social使用的表情包:
### https://github.com/olivvybee/emojis
```
cd ~/docker/social/mastodon/main/public/system
sudo wget https://github.com/olivvybee/emojis/releases/download/2025.04.19.1/{blobbee,fox,misc,neobread,neodlr,neofinder,neofriends,neossb}.tar.gz
```
### https://github.com/DejavuMoe/Smoji
```
wget https://github.com/DejavuMoe/Smoji/releases/download/2023.02.23/{bilibili,xiaodianshi}.tar.gz
```
### 导入
```
sudo docker exec -it MASTODON_WEB_CONTAINER_NAME tootctl emoji import --category PACK_NAME /mastodon/public/system/PACK_NAME.tar.gz
``` -
solution found! https://mstdn.thms.uk/@michael/114993641492545398
#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? -
Hm. Is there really no way to refresh a preview card attached to a status?
-
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. 🤔
-
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...
-
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.
-
Cleaned a little bit more:
> docker exec -it -w /app/www mastodon bin/tootctl media remove --prune-profiles --include-follows
-
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
-
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:
-
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:
-
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:
-
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:
-
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:
-
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: https://is.gd/XILZAn -
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! 😭 😆
-
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 - mastodonMy instance is running ok. ( https://OldFriends.Live )
RESOLVED thanks to @jan https://oldfriends.live/@[email protected]/109729634349707092 : I didn't bash after I logged in as the Mastodon user to run the commands and was using sh.
-
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
-
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
-
@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:
https://github.com/mastodon/mastodon/pull/22149
The story: https://github.com/mastodon/mastodon/issues/9567
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.
-
@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:
https://github.com/mastodon/mastodon/pull/22149
The story: https://github.com/mastodon/mastodon/issues/9567
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.
-
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 Byteshttps://github.com/mastodon/mastodon/issues/9567
This is a ~2 week old almost single-user instance.
-
#tootctl silly question, from where do I get this CLI installed on my mstdn Ubuntu-server?
-
#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? -
#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 -
#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/cachefolder. 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.
-
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: https://docs.joinmastodon.org/admin/tootctl/
-
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.