Raspiblitz: Improvements on Tor

Created on 24 Aug 2020  路  10Comments  路  Source: rootzoll/raspiblitz

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.

Most helpful comment

How about logrotate..?! ;-D

All 10 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

2000jago picture 2000jago  路  5Comments

openoms picture openoms  路  3Comments

Kixunil picture Kixunil  路  3Comments

rootzoll picture rootzoll  路  3Comments

syracusebitcoin picture syracusebitcoin  路  3Comments