Random Hangs of emonPi/emonSD

Hi Brian

Sorry for being so imprecise. There are a variety of logs in the /var/log.old directory, but in the emonhub directory, there are only more recent files. In the emoncms log directory there are loads of entries (see image) - but when uncompressed the files all seem empty.

The EmonPi is used with a current clamp, and four wireless temperature sensors. When one of these ‘hang events’ occurs, I can open the emoncms admin page and everything seems to be running…yet no data is being collected from any sensors. Reboot and everything still seems to run, yet still no sensor data is collected. Power down and the start up again, everything comes back successful and data is once again collected. Everything is running OK now…and I’ll probably have to just wait a few weeks until it hangs again to gather some more information.

Here is the server information

System Info
Server Information

Server Information

Services

  • emonhub :- Active Running

  • emoncms_mqtt :- Active Running

  • feedwriter :- Active Running - sleep 300s 14 feed points pending write

  • service-runner :- Active Running

  • emonPiLCD :- Active Running

  • redis-server :- Active Running

  • mosquitto :- Active Running

  • demandshaper :- Active Running

Emoncms

Server

  • CPU :- 1 Threads(s) | 4 Core(s) | 1 Sockets(s) | Cortex-A53 | 59.73MIPS |
  • OS :- Linux 5.4.51-v7+
  • Host :- emonpi | emonpi | (192.168.2.10)
  • Date :- 2022-07-05 22:37:08 BST
  • Uptime :- 22:37:08 up 5:55, 1 user, load average: 0.11, 0.10, 0.11

Memory

  • RAM :- Used: 19.25%
    • Total :- 925.85 MB
    • Used :- 178.25 MB
    • Free :- 747.61 MB
  • Swap :- Used: 0.00%
    • Total :- 100 MB
    • Used :- 0 B
    • Free :- 100 MB

Disk

  • **** :- - / :- Used: 49.75%
    • Total :- 4.06 GB
    • Used :- 2.02 GB
    • Free :- 1.85 GB
    • Read Load :- 69.17 B/s
    • Write Load :- 161.39 B/s
    • Load Time :- 5 hours 52 mins
  • /var/opt/emoncms :- Used: 0.49%
    • Total :- 24.86 GB
    • Used :- 125.18 MB
    • Free :- 23.47 GB
    • Read Load :- 63.98 B/s
    • Write Load :- 73.72 B/s
    • Load Time :- 5 hours 52 mins
  • /boot :- Used: 21.52%
    • Total :- 252.05 MB
    • Used :- 54.23 MB
    • Free :- 197.81 MB
    • Read Load :- 0 B/s
    • Write Load :- 0 B/s
    • Load Time :- 5 hours 52 mins
  • /var/log :- Used: 6.96%
    • Total :- 50 MB
    • Used :- 3.48 MB
    • Free :- 46.52 MB
    • Read Load :- n/a
    • Write Load :- n/a
    • Load Time :- n/a

HTTP

  • Server :- Apache/2.4.38 (Raspbian) HTTP/1.1 CGI/1.1 80

MySQL

  • Version :- 5.5.5-10.3.23-MariaDB-0+deb10u1
  • Host :- 127.0.0.1 (127.0.0.1)
  • Date :- 2022-07-05 22:37:08 (UTC 01:00‌​)
  • Stats :- Uptime: 86005 Threads: 13 Questions: 949 Slow queries: 0 Opens: 46 Flush tables: 1 Open tables: 40 Queries per second avg: 0.011

Redis

  • Version :-
    • Redis Server :- 5.0.3
    • PHP Redis :- 5.3.1
  • Host :- localhost:6379
  • Size :- 492 keys (926.36K)
  • Uptime :- 0 days

MQTT Server

  • Version :- Mosquitto 1.5.7
  • Host :- localhost:1883 (127.0.0.1)

PHP

  • Version :- 7.3.19-1~deb10u1 (Zend Version 3.3.19)
  • Run user :- User: www-data Group: www-data video Script Owner: pi
  • Modules :- apache2handlercalendar Core ctype curl date dom v20031129exif fileinfo filter ftp gd gettext hash iconv json v1.7.0libxml mbstring mosquitto v0.4.0mysqli mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $openssl pcre PDO pdo_mysql Phar posix readline redis v5.3.1Reflection session shmop SimpleXML sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zlib

Pi

  • Model :- Raspberry Pi 3 Model B+ Rev 1.3 - 1GB (Sony UK)

  • Serial num. :- CEEE5A02

  • CPU Temperature :- 51.54°C

  • GPU Temperature :- 51.5°C

  • emonpiRelease :- emonSD-24Jul20

  • File-system :- read-write

Client Information

Client Information

HTTP

  • Browser :- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
  • Language :- en-GB,en-US;q=0.9,en;q=0.8

Window

  • Size :- 1583 x 886

Screen

  • Resolution :- 1440 x 900