prototype-cjdns-pi
prototype-cjdns-pi copied to clipboard
Logs taking up all SD card space
After running for a long time the ramfs log directory gets full
log2ram 50M 50M 0 100% /var/log
Remove logs periodically?
Yeh, most of them the files there where gz and didnt take up allof of space bug there where the .1 that ate up most of it.
most of them the files there where gz and didnt take up allof of space bug there where the .1 that ate up most of it.
I don't understand what you wrote.
Most of the logs when I noticed where XXXX.1.gz XXXX.2.gz etc
The biggest files however eating up the most space where not gziped XXXX and XXXX.1
perhaps we just need a cleanup script that delete *.1 and *.gz from lgo.
Long running orange pi nodes dont seem to have this problem anymore.
Long running orange pi 100% space
Fix:
rm -rf /var/log/*.?.*
I have had the same issue with my Raspberry Pi, and @dasanchez too I believe. Maybe we should include this in out stack somehow?
I previously had this issue with the systemd daemon log, it was full of the mesh point service saying the same line, that it couldn't connect or something.
Today with my Pi it was a different file, still in /var/log:
-rw------- 1 root root 1.4M Nov 3 2016 php7.0-fpm.log
-rw------- 1 root root 13G May 5 06:25 php7.0-fpm.log.1
pi@tomesh-d15b:~ $ sudo tail -n 20 /var/log/php7.0-fpm.log.1
[05-May-2019 06:25:01] NOTICE: [pool www] child 3307 exited with code 0 after 0.020061 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3313 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3310 exited with code 0 after 0.016315 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3314 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3311 exited with code 0 after 0.020369 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3315 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3313 exited with code 0 after 0.022714 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3316 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3314 exited with code 0 after 0.016826 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3317 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3315 exited with code 0 after 0.020074 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3319 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3316 exited with code 0 after 0.016193 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3321 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3317 exited with code 0 after 0.022935 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3323 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3319 exited with code 0 after 0.018907 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3324 started
[05-May-2019 06:25:01] NOTICE: [pool www] child 3321 exited with code 0 after 0.017878 seconds from start
[05-May-2019 06:25:01] NOTICE: [pool www] child 3326 started
I don't know what the above means. @darkdrgn2k ?