Free space on SDCARD slowly being eaten up


#1

Thank you for taking the time to submit your bug/issue! Please use the points below as a guide when submitting.

  • Device & model you are using (Ex: Pi 2 Model B or Arduino Uno with W5100 ethernet shield)
    RPI2
  • What dashboard are you using? (Web, iOS, Android)
    Web and android
  • Please describe the bug / issue as detailed as possible. Attaching the code and any relevant screenshots would be very helpful!

when I first installed cayenne 5-6GB of space on my 16gb card was used.
After a month or so being online 10GB of space is being used.

I assume this is from LOG files?
If so where are they located so I can clear them out and what can I safely clear out?


#2

The area to look would be /var/log/

If you edit /etc/myDevices/crontab.sh

to add:
rm /var/log/myDevices*
rm /var/log/daemon*
rm /var/log/SystemInformation*
rm /var/log/syslog*
rm /var/log/auth.log*

This will make sure they purge every minute, and you can always remove these if you need to gather logs for something funky going one.

We’re aware of an issue with growing RAM and log size on the Pi client that we hope to resolve shortly. Thank you for letting us know.


#3

Awesome.
Thanks!