hello. I have an orangepi zero. /var/log keeps maxing out. I am wanting to make a cron job that flushes pihole after df -h says it above 50%.
Have you considered addressing the underlying issue of limited storage space?
Are you running any type of log to ram software?
Pi-hole has a highly cron job to rotate its logs in /var/log, and these typically aren't very large files.
What is the output of the following from the Pi terminal:
ls -lha /var/log/pihole*
-rw-r--r-- 1 pihole pihole 22K Jun 23 21:54 /var/log/pihole-FTL.log
-rw-r--r-- 1 pihole pihole 8.0K Jun 23 00:00 /var/log/pihole-FTL.log.1
-rw-r--r-- 1 pihole pihole 2.4K Jun 22 22:33 /var/log/pihole-FTL.log.2.gz
-rw-r--r-- 1 pihole pihole 969 Jun 22 22:32 /var/log/pihole-FTL.log.3.gz
-rw-r--r-- 1 pihole pihole 28M Jun 23 23:37 /var/log/pihole.log
-rw-r--r-- 1 pihole pihole 1.3M Jun 23 00:00 /var/log/pihole.log.1
-rw-r--r-- 1 pihole pihole 172 Jun 22 22:33 /var/log/pihole.log.2.gz
-rw-r--r-- 1 pihole pihole 2.0K Jun 22 22:33 /var/log/pihole.log.3.gz
-rw-r--r-- 1 pihole pihole 1.6M Jun 22 22:32 /var/log/pihole.log.4.gz
it's orange pi os based off of armbain. it has orangepi-zram-config, but it's not enabled. api2.branch.io is spaming my cell phone.
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
or do it through the Web interface:
Tools > Generate Debug Log
There is no log at that URL. It appears that the log did not upload normally. Please repeat.
I am going to flash another SD. I had router problems, and pivpn quit working. I will probably use Armbain. thank you for your help
I have reflashes and reinstalled pihole. still having the same problem. I banned api2.branch.io and secure-dcr.imrworldwide.com on router firewall. here's my debug. https://tricorder.pi-hole.net/ORd8LPNu/
Your debug log suggests otherwise:
zram seems to be enabled for
*** [ DIAGNOSING ]: Disk usage Filesystem Size Used Avail Use% Mounted on udev 422M 0 422M 0% /dev tmpfs 99M 892K 98M 1% /run /dev/mmcblk1p1 29G 1.6G 27G 6% / tmpfs 493M 716K 492M 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 493M 4.0K 493M 1% /tmp /dev/zram1 49M 17M 29M 37% /var/log tmpfs 99M 0 99M 0% /run/user/997 tmpfs 99M 0 99M 0% /run/user/0
I actually noticed I had it enabled. turned it off and /var/log is good. thanks