this post was submitted on 14 Jul 2022
18 points (100.0% liked)
Lemmy
12524 readers
16 users here now
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I just saw in the Lemmy matrix chat that you cleared up a lot of space by truncating logs. Where are those?
you could
truncate -s 0 /var/lib/docker/containers/*/*-json.log
(which might break logs currently being written), configure logging viadocker-compose.yml
, or even better/etc/docker/daemon.json
https://github.com/LemmyNet/lemmy-ansible/pull/49
Thanks. I'll have to look up how to configure daemon.json. I just truncated the logs for now. I wish I had known about that earlier! It cleared up about 15 GB of space.
Wow, logs take up a ridiculous amount of space!
you could also free up space on pictrs
docker exec -it YOUR_PICTRS_CONTAINER /bin/sh -c "rm /tmp/magick-*"
Hmm, tried that. It said no
magick-*
files exist.hm, maybe this problem has been fixed
I created this instance with docker directly instead of using Ansible. Not sure if that could be why.