this post was submitted on 17 Jun 2023
8 points (100.0% liked)
Lemmy Support
4647 readers
2 users here now
Support / questions about Lemmy.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
UPDATE:
If anyone else is running into consistently rising disk I am pretty sure this is my issue (RE logs running with no cap):
https://lemmy.eus/post/172518
Trying out ^ and will update with my findings if it helps.
After some tinkering, **yes ** this indeed was my issue. The logs for
pictrs
andlemmy
in particular were between 3 and 8 gb only after a couple weeks ofinfo
level logging.Steps to fix (the post above has more detail but adding my full workflow in case that helps folks, some of this wasn't super apparent to me) - these steps assume a docker/ansible install:
SSH to your instance.
Change to your instance install dir
most likely:
cd /srv/lemmy/{domain.name}
docker ps --format '{{.Name}}'
Now for each docker container name:
docker inspect --format='{{.LogPath}}' {one of the container names from above}
ls -lh {path to log file from the inspect command}
truncate -s 0 {path to log file from the inspect command}
After you have cleared any logs you want to clear:
docker-compose restart