Had two occasions with BTRFS disks when the 30GB sda1 (/mnt/hdd) has clogged up with a 29GB info.log file in /mnt/hdd/tor/.
Need to test if it growing similar in the standard EXT partitions.
To check:
sudo ls -la /mnt/hdd/tor
remove with:
sudo rm -rf /mnt/hdd/tor/info.log
and restart the node to delete the file.
Need to find a way to prune the log file or delete it occasionally.
Quickfix for 1.6.1 -> delete on bootup
Find better solution for 1.7 when Tor gets default.
How about logrotate..?! ;-D
@frennkie is there a logrotate option in tor or is this an external setting?
Logrotate is shipped with Raspbian.. there even is a Tor config.. it just doesn't include our modified directory:
$ cat /etc/logrotate.d/tor
/var/log/tor/*log {
daily
rotate 5
compress
delaycompress
missingok
notifempty
create 0640 debian-tor adm
sharedscripts
postrotate
if invoke-rc.d tor status > /dev/null; then
invoke-rc.d tor reload > /dev/null
fi
endscript
}
I guess all that is needed it to add a line /mnt/hdd/tor/*log to the top.
My info.log was at 37 GB today.. /o\ opened PR to fix
Merged PR ... final testing for v1.6.1 service release.
also test if the #1506 merge works fine
also test if the #1571 merge works fine
Problem needs to be resolved: https://github.com/rootzoll/raspiblitz/pull/1571#issuecomment-700282106
OK running this now for some days and looks good so far. Will be part of v1.6.1 - closing issue.
Most helpful comment
How about logrotate..?! ;-D