MQTT Problems
Posted: Sat 14 Aug 2021 5:58 pm
Had to rebuild my Raspberry Pi, from scratch, and now the Cumulus MX MQTT server does not seem to talk to the (new) mosquitto mqtt install. Everything seems the same, but no data flows. The Cumulus MX mxdiag logs show the following:
2021-08-14 18:44:50.915 InitSerial: Connection confirmed
2021-08-14 18:44:50.916 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:44:54.326 LOOP: 4 - Expected data not received, expected 99 bytes, got 0
2021-08-14 18:44:58.327 LOOP: 5 - Expected data not received, expected 99 bytes, got 0
2021-08-14 18:45:00.229 DoLogFile: Writing log entry for 8/14/2021 6:45:00 PM
2021-08-14 18:45:00.230 DoLogFile: Written log entry for 8/14/2021 6:45:00 PM
2021-08-14 18:45:00.233 Writing today.ini, LastUpdateTime = 8/14/2021 6:45:00 PM raindaystart = 597.2 rain counter = 598.4
2021-08-14 18:45:02.325 LOOP: 6 - Expected data not received, expected 99 bytes, got 0
2021-08-14 18:45:03.327 LOOP: 6 - Timed out waiting for LOOP data
2021-08-14 18:45:03.328 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:03.412 InitSerial: Connecting to the station
2021-08-14 18:45:04.415 InitSerial: Connection confirmed
2021-08-14 18:45:04.415 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:09.623 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:09.663 InitSerial: Connecting to the station
2021-08-14 18:45:10.666 InitSerial: Connection confirmed
2021-08-14 18:45:10.667 InitSerial: Connecting to the station
2021-08-14 18:45:11.676 InitSerial: Connection confirmed
2021-08-14 18:45:11.676 SendLoopCommand: Error sending LOOP command [LPS 2 1]: Specified port is not open.
2021-08-14 18:45:11.677 InitSerial: Connecting to the station
2021-08-14 18:45:12.680 InitSerial: Connection confirmed
2021-08-14 18:45:12.681 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:15.894 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:15.934 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:19.007 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:19.081 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:22.323 LOOP: 4 - Expected data not received, expected 99 bytes, got 0
2021-08-14 18:45:23.325 LOOP: 4 - Timed out waiting for LOOP data
2021-08-14 18:45:23.326 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:23.413 InitSerial: Connecting to the station
2021-08-14 18:45:24.416 InitSerial: Connection confirmed
2021-08-14 18:45:24.416 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:29.617 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:29.659 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:31.381 WOW Response: ERROR - Response code = ServiceUnavailable, body = The service is unavailable.
2021-08-14 18:45:32.733 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:32.806 SendLoopCommand: Starting - LOOP 50
But whether any of that related to mqtt issues, and if so how, I do not comprehend. Help much appreciated!! The mqtt output is going to homeassistant, on the same machine, but that isn't seeing anything. mqtt is configured toi send every 30 secs (just for testing) so some should have occurred during that log snippet.
Mosquitto is running, and I see message traffic from other (local) sources, just nothing from CumulusMX.
2021-08-14 18:44:50.915 InitSerial: Connection confirmed
2021-08-14 18:44:50.916 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:44:54.326 LOOP: 4 - Expected data not received, expected 99 bytes, got 0
2021-08-14 18:44:58.327 LOOP: 5 - Expected data not received, expected 99 bytes, got 0
2021-08-14 18:45:00.229 DoLogFile: Writing log entry for 8/14/2021 6:45:00 PM
2021-08-14 18:45:00.230 DoLogFile: Written log entry for 8/14/2021 6:45:00 PM
2021-08-14 18:45:00.233 Writing today.ini, LastUpdateTime = 8/14/2021 6:45:00 PM raindaystart = 597.2 rain counter = 598.4
2021-08-14 18:45:02.325 LOOP: 6 - Expected data not received, expected 99 bytes, got 0
2021-08-14 18:45:03.327 LOOP: 6 - Timed out waiting for LOOP data
2021-08-14 18:45:03.328 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:03.412 InitSerial: Connecting to the station
2021-08-14 18:45:04.415 InitSerial: Connection confirmed
2021-08-14 18:45:04.415 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:09.623 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:09.663 InitSerial: Connecting to the station
2021-08-14 18:45:10.666 InitSerial: Connection confirmed
2021-08-14 18:45:10.667 InitSerial: Connecting to the station
2021-08-14 18:45:11.676 InitSerial: Connection confirmed
2021-08-14 18:45:11.676 SendLoopCommand: Error sending LOOP command [LPS 2 1]: Specified port is not open.
2021-08-14 18:45:11.677 InitSerial: Connecting to the station
2021-08-14 18:45:12.680 InitSerial: Connection confirmed
2021-08-14 18:45:12.681 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:15.894 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:15.934 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:19.007 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:19.081 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:22.323 LOOP: 4 - Expected data not received, expected 99 bytes, got 0
2021-08-14 18:45:23.325 LOOP: 4 - Timed out waiting for LOOP data
2021-08-14 18:45:23.326 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:23.413 InitSerial: Connecting to the station
2021-08-14 18:45:24.416 InitSerial: Connection confirmed
2021-08-14 18:45:24.416 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:29.617 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:29.659 SendLoopCommand: Starting - LOOP 50
2021-08-14 18:45:31.381 WOW Response: ERROR - Response code = ServiceUnavailable, body = The service is unavailable.
2021-08-14 18:45:32.733 SendLoopCommand: Starting - LPS 2 1
2021-08-14 18:45:32.806 SendLoopCommand: Starting - LOOP 50
But whether any of that related to mqtt issues, and if so how, I do not comprehend. Help much appreciated!! The mqtt output is going to homeassistant, on the same machine, but that isn't seeing anything. mqtt is configured toi send every 30 secs (just for testing) so some should have occurred during that log snippet.
Mosquitto is running, and I see message traffic from other (local) sources, just nothing from CumulusMX.