Hello. I recently noticed that 2 of my feeds were not updating. I have an emontx3 with 2 inputs and this only happens to the feeds House Power and House Power kWh of the first input, power1. The feeds of power2 continue to work just fine.
I know that these screeenshots show both feeds working! The gap is visible in the feed graph. The gap in the Heating Power (in blue) is because I restarted emonhub service.
When I restart the emonhub service it starts working again. In the log from emonhub, I see that the emontx3 continues to send values for both inputs so I know emontx3 is working fine and emonbase is getting those values.
2019-06-02 16:25:02,900 DEBUG RFM2Pi 4694 NEW FRAME : OK 8 63 1 63 0 0 0 0 0 34 90 184 11 184 11 184 11 184 11 184 11 184 11 0 0 0 0 (-30)
2019-06-02 16:25:02,903 DEBUG RFM2Pi 4694 Timestamp : 1559489102.9
2019-06-02 16:25:02,904 DEBUG RFM2Pi 4694 From Node : 8
2019-06-02 16:25:02,904 DEBUG RFM2Pi 4694 Values : [319, 63, 0, 0, 230.74, 300, 300, 300, 300, 300, 300, 0]
2019-06-02 16:25:02,905 DEBUG RFM2Pi 4694 RSSI : -30
2019-06-02 16:25:02,906 DEBUG RFM2Pi 4694 Sent to channel(start)' : ToEmonCMS
2019-06-02 16:25:02,906 DEBUG RFM2Pi 4694 Sent to channel(end)' : ToEmonCMS
2019-06-02 16:25:03,096 DEBUG MQTT Publishing: emon/emontx3/power1 319
2019-06-02 16:25:03,098 DEBUG MQTT Publishing: emon/emontx3/power2 63
2019-06-02 16:25:03,099 DEBUG MQTT Publishing: emon/emontx3/power3 0
2019-06-02 16:25:03,101 DEBUG MQTT Publishing: emon/emontx3/power4 0
2019-06-02 16:25:03,102 DEBUG MQTT Publishing: emon/emontx3/vrms 230.74
2019-06-02 16:25:03,103 DEBUG MQTT Publishing: emon/emontx3/temp1 300
2019-06-02 16:25:03,104 DEBUG MQTT Publishing: emon/emontx3/temp2 300
2019-06-02 16:25:03,106 DEBUG MQTT Publishing: emon/emontx3/temp3 300
2019-06-02 16:25:03,108 DEBUG MQTT Publishing: emon/emontx3/temp4 300
2019-06-02 16:25:03,110 DEBUG MQTT Publishing: emon/emontx3/temp5 300
2019-06-02 16:25:03,111 DEBUG MQTT Publishing: emon/emontx3/temp6 300
2019-06-02 16:25:03,113 DEBUG MQTT Publishing: emon/emontx3/pulse 0
2019-06-02 16:25:03,115 DEBUG MQTT Publishing: emon/emontx3/rssi -30
2019-06-02 16:25:03,117 INFO MQTT Publishing: emonhub/rx/8/values 319,63,0,0,230.74,300,300,300,300,300,300,0,-30
2019-06-02 16:25:08,549 DEBUG RFM2Pi Discarding RX frame 'unreliable content'? 0 88 59 223 1 207 237 126 108 56 148 243 105 172 38 62 150 61 98 1 26 (-96)
2019-06-02 16:25:09,913 DEBUG RFM2Pi Discarding RX frame 'unreliable content'? 2 18 194 131 1 239 16 254 248 159 81 187 77 164 168 124 176 54 46 118 217 (-96)
2019-06-02 16:25:11,147 DEBUG RFM2Pi Discarding RX frame 'unreliable content'? 5 14 19 252 34 19 212 72 237 46 4 76 198 51 205 237 245 85 154 157 140 (-96)
2019-06-02 16:25:11,253 DEBUG RFM2Pi Discarding RX frame 'unreliable content'? 5 74 253 240 0 247 28 71 227 159 26 249 163 113 5 46 227 29 208 179 94 (-95)
2019-06-02 16:25:11,457 DEBUG RFM2Pi Discarding RX frame 'unreliable content'? 28 152 83 12 70 232 85 183 246 48 194 134 109 32 50 9 168 51 67 77 24 (-93)
2019-06-02 16:25:12,073 DEBUG RFM2Pi Discarding RX frame 'unreliable content'? 12 111 192 144 137 206 1 63 89 66 19 49 15 13 237 194 198 133 244 228 216 (-95)
2019-06-02 16:25:12,805 DEBUG RFM2Pi 4695 NEW FRAME : OK 8 61 1 63 0 0 0 0 0 73 90 184 11 184 11 184 11 184 11 184 11 184 11 0 0 0 0 (-31)
2019-06-02 16:25:12,808 DEBUG RFM2Pi 4695 Timestamp : 1559489112.8
2019-06-02 16:25:12,809 DEBUG RFM2Pi 4695 From Node : 8
2019-06-02 16:25:12,809 DEBUG RFM2Pi 4695 Values : [317, 63, 0, 0, 231.13, 300, 300, 300, 300, 300, 300, 0]
2019-06-02 16:25:12,810 DEBUG RFM2Pi 4695 RSSI : -31
2019-06-02 16:25:12,810 DEBUG RFM2Pi 4695 Sent to channel(start)' : ToEmonCMS
2019-06-02 16:25:12,811 DEBUG RFM2Pi 4695 Sent to channel(end)' : ToEmonCMS
2019-06-02 16:25:12,999 DEBUG MQTT Publishing: emon/emontx3/power1 317
2019-06-02 16:25:13,001 DEBUG MQTT Publishing: emon/emontx3/power2 63
2019-06-02 16:25:13,003 DEBUG MQTT Publishing: emon/emontx3/power3 0
2019-06-02 16:25:13,005 DEBUG MQTT Publishing: emon/emontx3/power4 0
2019-06-02 16:25:13,007 DEBUG MQTT Publishing: emon/emontx3/vrms 231.13
2019-06-02 16:25:13,008 DEBUG MQTT Publishing: emon/emontx3/temp1 300
2019-06-02 16:25:13,010 DEBUG MQTT Publishing: emon/emontx3/temp2 300
2019-06-02 16:25:13,012 DEBUG MQTT Publishing: emon/emontx3/temp3 300
2019-06-02 16:25:13,014 DEBUG MQTT Publishing: emon/emontx3/temp4 300
2019-06-02 16:25:13,016 DEBUG MQTT Publishing: emon/emontx3/temp5 300
2019-06-02 16:25:13,018 DEBUG MQTT Publishing: emon/emontx3/temp6 300
2019-06-02 16:25:13,019 DEBUG MQTT Publishing: emon/emontx3/pulse 0
2019-06-02 16:25:13,021 DEBUG MQTT Publishing: emon/emontx3/rssi -31
2019-06-02 16:25:13,023 INFO MQTT Publishing: emonhub/rx/8/values 317,63,0,0,231.13,300,300,300,300,300,300,0,-31
I looked for anything that could tell me why this is happening and the only thing I noticed is in the mosquitto log. Emonhub and mqtt services were up and running (otherwise the feeds from the second input would not update).
mosquitto.log
1559489023: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 65493.
1559489033: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 65507.
1559489043: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 65521.
1559489053: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 65535.
1559489063: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 14.
1559489073: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 15.
1559489073: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 28.
1559489083: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 29.
1559489083: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 42.
1559489093: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 43.
1559489093: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 56.
1559489103: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 57.
1559489103: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 70.
1559489113: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 71.
1559489113: Warning: Received PUBREL from auto-8F084150-79CF-5097-3304-2568B53BD998 for an unknown packet identifier 84.
1559489121: Socket error on client auto-8F084150-79CF-5097-3304-2568B53BD998, disconnecting.
1559489132: New connection from 127.0.0.1 on port 1883.
1559489132: New client connected from 127.0.0.1 as auto-FFFACBAE-C836-B1DF-2D67-14ED47556EE6 (p2, c1, k60, u'emonpi').
1559489142: Warning: Received PUBREL from auto-FFFACBAE-C836-B1DF-2D67-14ED47556EE6 for an unknown packet identifier 15.
1559489162: Warning: Received PUBREL from auto-FFFACBAE-C836-B1DF-2D67-14ED47556EE6 for an unknown packet identifier 29.
1559489172: Warning: Received PUBREL from auto-FFFACBAE-C836-B1DF-2D67-14ED47556EE6 for an unknown packet identifier 43.
NOTE: These logs also include the emonhub restart.
When the identifier reaches 65536 and resets, the feeds stops updating! I have seen this happening several times and it’s always the same pattern.
Attached emonhub.log and mosquitto.log
logs.zip (313.0 KB)
This started to happen after I updated emoncms to the latest version a couple weeks ago and also after I ran apt upgrade on the OS.
Any idea why this is happening? As always, your help is greatly appreciated!