Out of the blue, after running my system for more than a year without problems, I got the following alarms:
'BMS lost' on 'VE.Bus System [276]'
'Low battery' on 'VE.Bus System [276]'
The low battery LED of the MultiPlus II was on and it had switched to pass-through. But the battery was fine and continued to report its status via CAN to the Cerbo. However, the VE.bus communication between the Cerbo and Multiplus II seemed to be lost.
I couldn’t find anything, and finally decided to reboot the Cerbo (v3.70~54) which cleared the alarms. But the problem came back the next day.
At that point, I noticed that the firmware check also didn’t work anymore: the check button was greyed out. The log file was missing and /var/log/messages showed the reason:
Dec 28 02:05:00 einstein cron.info CROND[5500]: (root) CMDOUT (multilog: fatal: unable to write to /data/log/swupdate/current: out of disk space)
There was plenty of disk space:
root@einstein:/data# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 1.1G 986.2M 17.5M 98% /
devtmpfs 453.9M 0 453.9M 0% /dev
tmpfs 502.4M 864.0K 501.6M 0% /run
tmpfs 502.4M 272.0K 502.2M 0% /var/volatile
/dev/mmcblk1p5 4.6G 1.3G 3.1G 29% /data
tmpfs 502.4M 864.0K 501.6M 0% /service
overlay 502.4M 272.0K 502.2M 0% /var/lib
However, there were no more i-nodes:
root@einstein:/data# df -h -i
Filesystem Inodes Used Available Use% Mounted on
/dev/root 297.3K 55.7K 241.6K 19% /
devtmpfs 113.5K 338 113.2K 0% /dev
tmpfs 125.6K 908 124.7K 1% /run
tmpfs 125.6K 146 125.5K 0% /var/volatile
/dev/mmcblk1p5 305.9K 305.9K 0 100% /data
tmpfs 125.6K 908 124.7K 1% /service
overlay 125.6K 146 125.5K 0% /var/lib
I found a directory with 309005 files in it:
root@einstein:/data/var/lib/venus-www-sessions# ls | wc
309005 309005 11742190
root@einstein:/data/var/lib/venus-www-sessions# ls -ltr | less
-rw------- 1 php-fpm php-fpm 32 Sep 9 16:55 sess_e80bba1d4622f3d9bc6ca551f7b7ba3e
-rw------- 1 php-fpm php-fpm 32 Sep 9 16:55 sess_92ed02d728a95f954b59fb249821b3ce
-rw------- 1 php-fpm php-fpm 32 Sep 9 16:56 sess_efee5ef104e8b1501130015f232012d1
[...]
-rw------- 1 php-fpm php-fpm 32 Dec 26 01:03 sess_c2e57c21a072a865b03880d2ee81d577
-rw------- 1 php-fpm php-fpm 32 Dec 28 07:58 sess_7fbbb52b50f79383610da3e67ee86315
-rw------- 1 php-fpm php-fpm 32 Dec 28 15:00 sess_f700eea964c039658dae748054e223c9
root@einstein:/data/var/lib/venus-www-sessions# cat -n sess_e80bba1d4622f3d9bc6ca551f7b7ba3e
1 remoteconsole-authenticated|b:1;
It turns out that these files are created by the http server for the local GUI. It creates about 2 files per minute, even after all connections are terminated! I upgraded to v3.70~61, but the behavior remains the same.
Why are these session files constantly being created? Why are they created on a disk that only allows a limited number of writes? Why are they not cleaned up?
