#tootctl
WARNING: database "mastodon_production" has a collation version mismatch
DETAIL: The database was created using collation version (old), but the operating system provides version (latest).
PostgreSQL 업그레이드 되고 나서 생기는 레거시 버전 경고인 듯?
1. ALTER DATABASE (database-name) REFRESH COLLATION VERSION;
2. REINDEX DATABASE (database-name);
#MastoAdmin
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:
#mastoadmin #mastodon #idrive #idrivee2 #s3 #tootctl
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
#mastoadmin #mastodicas #tootctl #mastodon
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
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! 😭 😆
#selfhosted #mastodon #sidekiq #tootctl #bittersweet #lettinggo
At the Moment we refreshing the User Media Data on the Server. After the processing the Avatars are back 🦾🫡 this caused from our change of the media storage. #mastoadmin #ubuntu #adminstuff #cli #tootctl
#mastoadmin #ubuntu #adminstuff #cli #tootctl
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. ( https://OldFriends.Live )
#mastoadmin #selfhost #tootctl
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
#mastodon #administratoren #tootctl
@elektrikfisch There was a website (which I can't find now) that was how to tune your #mastodon #instance in a way that kept it lean.
I can't seem to find it right now but I remember the person created a bunch of #cron jobs that used the #tootctl to purge media and stuff at like the 1 day mark since as a single user instance, he didn't need all that data.
Also something to clean out the headers but I don't remember.
If I re-find it, I'll post it. :)
#mastodon #instance #cron #tootctl
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
#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.
#storage #cdn #pr #github #tootctl #ssd #idrive #idrivee2 #s3 #cloudflare #mastoadmin
To you (new) #mastoadmin out there,
To manage the amount of (unwanted) data stored in your #mastodon #instance, I've set this up in my crontab.
AD: don't forget to set up your #logrotate! (or for a "log of one", change the write of "stats before" into 1>/var.. (in stead of 1>>/var..)
PS: I use #docker you might need to alter your #tootctl command
to save you some typing: https://www.filemail.com/d/pgnmhpdyqirskcc
#mastoadmin #mastodon #instance #logrotate #docker #tootctl
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
https://github.com/mastodon/mastodon/issues/9567
This is a ~2 week old almost single-user instance.
#mastodon #mastoadmin #tootctl #storage
#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 - and some show up. 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 the same? It's not limited to avatars, it also includes sporadic missing headers.
#mastoadmin #tootctl #mastohelp #admin #mastodon #troubleshoot