I'm running Node-RED on a RaspberryPi to manage a Home Energy Management System.
It crashes infrequently (approx once per 10 days) but always at night between around 03:30.
The rest of the time the system works without any issues.
The RaspberryPi syslog give the following information around the time NR crashes:
Mar 11 03:29:46 raspberrypi Node-RED[437]: 11 Mar 03:29:46 - [info] [mqtt-broker:Local server] Connected to broker: mqtt://192.168.1.11:1883
Mar 11 03:29:44 raspberrypi avahi-daemon[421]: No service file found in /etc/avahi/services.
Mar 11 03:29:44 raspberrypi avahi-daemon[421]: Got SIGHUP, reloading.
Mar 11 03:29:44 raspberrypi dhcpcd[808]: eth0: adding default route via 192.168.0.1
Mar 11 03:29:44 raspberrypi avahi-daemon[421]: Registering new address record for 192.168.1.11 on eth0.IPv4.
Mar 11 03:29:44 raspberrypi dhcpcd[808]: eth0: adding route to 192.168.0.0/24
Mar 11 03:29:44 raspberrypi avahi-daemon[421]: New relevant interface eth0.IPv4 for mDNS.
Mar 11 03:29:44 raspberrypi avahi-daemon[421]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.11.
Mar 11 03:29:44 raspberrypi dhcpcd[808]: eth0: leased 192.168.1.11 for 86400 seconds
Mar 11 03:29:38 raspberrypi dhcpcd[808]: eth0: probing address 192.168.1.11/24
Mar 11 03:29:35 raspberrypi dhcpcd[808]: eth0: rebinding lease of 192.168.1.11
Mar 11 03:29:34 raspberrypi kernel: [...] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Mar 11 03:29:34 raspberrypi dhcpcd[808]: eth0: carrier acquired
Mar 11 03:29:30 raspberrypi Node-RED[437]: }
Mar 11 03:29:30 raspberrypi Node-RED[437]: hostname: 'eu-central-1-1.aws.cloud2.influxdata.com'
Mar 11 03:29:30 raspberrypi Node-RED[437]: syscall: 'getaddrinfo',
Mar 11 03:29:30 raspberrypi Node-RED[437]: code: 'EAI_AGAIN',
Mar 11 03:29:30 raspberrypi Node-RED[437]: errno: -3001,
Mar 11 03:29:30 raspberrypi Node-RED[437]: at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
Mar 11 03:29:30 raspberrypi Node-RED[437]: WARN: Write to InfluxDB failed (attempt: 5). Error: getaddrinfo EAI_AGAIN eu-central-1-1.aws.cloud2.influxdata.com
Mar 11 03:29:01 raspberrypi Node-RED[437]: 11 Mar 03:29:01 - [info] [mqtt-broker:Local server] Disconnected from broker: mqtt://192.168.1.11:1883
Mar 11 03:28:40 raspberrypi Node-RED[437]: }
Mar 11 03:28:40 raspberrypi Node-RED[437]: hostname: 'eu-central-1-1.aws.cloud2.influxdata.com'
Mar 11 03:28:40 raspberrypi Node-RED[437]: syscall: 'getaddrinfo',
Mar 11 03:28:40 raspberrypi Node-RED[437]: code: 'EAI_AGAIN',
Mar 11 03:28:40 raspberrypi Node-RED[437]: errno: -3001,
Mar 11 03:28:40 raspberrypi Node-RED[437]: at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
Mar 11 03:28:40 raspberrypi Node-RED[437]: WARN: Write to InfluxDB failed (attempt: 4). Error: getaddrinfo EAI_AGAIN eu-central-1-1.aws.cloud2.influxdata.com
Mar 11 03:28:33 raspberrypi kernel: [...] bcmgenet fd580000.ethernet eth0: Link is Down
Mar 11 03:28:33 raspberrypi dhcpcd[808]: eth0: carrier lost
Mar 11 03:28:30 raspberrypi dhcpcd[808]: eth0: rebinding lease of 192.168.1.11
Mar 11 03:28:30 raspberrypi kernel: [...] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Mar 11 03:28:30 raspberrypi dhcpcd[808]: eth0: carrier acquired
Mar 11 03:28:12 raspberrypi Node-RED[437]: }
Mar 11 03:28:12 raspberrypi Node-RED[437]: hostname: 'eu-central-1-1.aws.cloud2.influxdata.com'
Mar 11 03:28:12 raspberrypi Node-RED[437]: syscall: 'getaddrinfo',
Mar 11 03:28:12 raspberrypi Node-RED[437]: code: 'EAI_AGAIN',
Mar 11 03:28:12 raspberrypi Node-RED[437]: errno: -3001,
Mar 11 03:28:12 raspberrypi Node-RED[437]: at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
Mar 11 03:28:12 raspberrypi Node-RED[437]: WARN: Write to InfluxDB failed (attempt: 3). Error: getaddrinfo EAI_AGAIN eu-central-1-1.aws.cloud2.influxdata.com
Mar 11 03:28:09 raspberrypi Node-RED[437]: 11 Mar 03:28:09 - [warn] [modbus-read:Meter2] Modbus Failure On State sending Get More About It By Logging
Mar 11 03:28:09 raspberrypi Node-RED[437]: 11 Mar 03:28:09 - [warn] [modbus-read:Meter Event] Modbus Failure On State sending Get More About It By Logging
Mar 11 03:28:09 raspberrypi Node-RED[437]: 11 Mar 03:28:09 - [warn] [modbus-read:Meter] Modbus Failure On State sending Get More About It By Logging
Mar 11 03:28:09 raspberrypi Node-RED[437]: 11 Mar 03:28:09 - [warn] [modbus-read:Solar] Modbus Failure On State sending Get More About It By Logging
Mar 11 03:28:00 raspberrypi Node-RED[437]: }
Mar 11 03:28:00 raspberrypi Node-RED[437]: hostname: 'eu-central-1-1.aws.cloud2.influxdata.com'
Mar 11 03:28:00 raspberrypi Node-RED[437]: syscall: 'getaddrinfo',
Mar 11 03:28:00 raspberrypi Node-RED[437]: code: 'EAI_AGAIN',
Mar 11 03:28:00 raspberrypi Node-RED[437]: errno: -3001,
Mar 11 03:28:00 raspberrypi Node-RED[437]: at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
Mar 11 03:28:00 raspberrypi Node-RED[437]: WARN: Write to InfluxDB failed (attempt: 2). Error: getaddrinfo EAI_AGAIN eu-central-1-1.aws.cloud2.influxdata.com
Mar 11 03:27:57 raspberrypi avahi-daemon[421]: No service file found in /etc/avahi/services.
Mar 11 03:27:57 raspberrypi avahi-daemon[421]: Got SIGHUP, reloading.
Mar 11 03:27:57 raspberrypi dhcpcd[808]: eth0: deleting default route via 192.168.0.1
Mar 11 03:27:57 raspberrypi avahi-daemon[421]: Interface eth0.IPv4 no longer relevant for mDNS.
Mar 11 03:27:57 raspberrypi avahi-daemon[421]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.11.
Mar 11 03:27:57 raspberrypi dhcpcd[808]: eth0: deleting route to 192.168.0.0/24
Mar 11 03:27:57 raspberrypi avahi-daemon[421]: Withdrawing address record for 192.168.1.11 on eth0.
Mar 11 03:27:57 raspberrypi kernel: [...] bcmgenet fd580000.ethernet eth0: Link is Down
Mar 11 03:27:57 raspberrypi dhcpcd[808]: eth0: carrier lost
Mar 11 03:27:54 raspberrypi Node-RED[437]: }
Mar 11 03:27:54 raspberrypi Node-RED[437]: hostname: 'eu-central-1-1.aws.cloud2.influxdata.com'
Mar 11 03:27:54 raspberrypi Node-RED[437]: syscall: 'getaddrinfo',
Mar 11 03:27:54 raspberrypi Node-RED[437]: code: 'EAI_AGAIN', Mar 11 03:27:54 raspberrypi Node-RED[437]: errno: -3001,
Mar 11 03:27:54 raspberrypi Node-RED[437]: at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
Mar 11 03:27:54 raspberrypi Node-RED[437]: WARN: Write to InfluxDB failed (attempt: 1). Error: getaddrinfo EAI_AGAIN eu-central-1-1.aws.cloud2.influxdata.com
I pull data from Inverter via modbus every 10s and push these to InfluxDB and I suspect the issue is on somehow due to a short drop of the connection to Internet but that should not cause a problem for the modbus reading that is done locally.
Any ideas on what the cause can be and how to dig deeper?
The log also mentions "Modbus Failure On State sending Get More About It By Logging".
Does anyone know how to set up that up?