prototype-cjdns-pi icon indicating copy to clipboard operation
prototype-cjdns-pi copied to clipboard

Logs taking up all SD card space

Open darkdrgn2k opened this issue 7 years ago • 8 comments

After running for a long time the ramfs log directory gets full

log2ram          50M   50M     0 100% /var/log

darkdrgn2k avatar Dec 15 '17 14:12 darkdrgn2k

Remove logs periodically?

benhylau avatar Dec 17 '17 12:12 benhylau

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.

darkdrgn2k avatar Dec 17 '17 15:12 darkdrgn2k

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.

benhylau avatar Apr 16 '18 21:04 benhylau

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.

darkdrgn2k avatar Apr 16 '18 22:04 darkdrgn2k

Long running orange pi nodes dont seem to have this problem anymore.

darkdrgn2k avatar Feb 12 '19 19:02 darkdrgn2k

Long running orange pi 100% space

Fix: rm -rf /var/log/*.?.*

darkdrgn2k avatar Feb 13 '19 05:02 darkdrgn2k

I have had the same issue with my Raspberry Pi, and @dasanchez too I believe. Maybe we should include this in out stack somehow?

makew0rld avatar Feb 13 '19 14:02 makew0rld

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 ?

makew0rld avatar Jun 13 '19 17:06 makew0rld