Hi, RAK7248C Developer D4H device encountered storage capacity overruns because /var/log/daemon.log and /var/log/syslog occupied very large storage space.
pi@rak-gateway:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 29G 0 100% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 160M 1.8G 9% /run
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 48M 205M 19% /boot
tmpfs 383M 0 383M 0% /run/user/1000
pi@rak-gateway:~ $ sudo du -sh /var/log/*
0 /var/log/alternatives.log
8.0K /var/log/alternatives.log.1
36K /var/log/apt
48K /var/log/auth.log
36K /var/log/auth.log.1
0 /var/log/bootstrap.log
0 /var/log/btmp
4.0K /var/log/btmp.1
4.0K /var/log/chirpstack-application-server
4.0K /var/log/chirpstack-gateway-bridge
4.0K /var/log/chirpstack-network-server
14G /var/log/daemon.log
1.7M /var/log/daemon.log.1
104K /var/log/debug
24K /var/log/debug.1
0 /var/log/dpkg.log
36K /var/log/dpkg.log.1
8.0K /var/log/faillog
556K /var/log/kern.log
332K /var/log/kern.log.1
12K /var/log/lastlog
552K /var/log/messages
332K /var/log/messages.1
8.0K /var/log/monit.log
20K /var/log/mosquitto
20K /var/log/postgresql
4.0K /var/log/private
40K /var/log/redis
14G /var/log/syslog
534M /var/log/syslog.1
216K /var/log/syslog.2.gz
4.0K /var/log/sysstat
0 /var/log/user.log
4.0K /var/log/user.log.1
56K /var/log/wtmp
I used the device for about a week after initializing, so I don’t think it’s a problem due to normal log accumulation.
and, checked the log for the following output:
Jan 7 07:17:29 rak-gateway ttn-gateway[372]: WARNING: [gps] read() returned value -1
Jan 7 07:17:29 rak-gateway ttn-gateway[372]: WARNING: [gps] read() returned value -1
Jan 7 07:17:29 rak-gateway ttn-gateway[372]: WARNING: [gps] read() returned value -1
Jan 7 07:17:29 rak-gateway ttn-gateway[372]: WARNING: [gps] read() returned value -1
Jan 7 07:17:29 rak-gateway ttn-gateway[372]: WARNING: [gps] read() returned value -1
Jan 7 07:17:29 rak-gateway ttn-gateway[372]: WARNING: [gps] read() returned value -1
This warning message was accumulating in the log very quickly.
How can I solve this problem?
Thanks very much for your help.