My EmonCMS had an issue a few hours ago in that the data logging stopped.
After a quick check to see the SD card was OK, I restarted the Pi.
Now, although the RF module is receiving the data fine (as seen in EmonHub and MQTT) it’s not being stored in the database. Data from MQTT and from HTTP calls seems to be store OK.
I’m seeing the odd
"WARNING emoncms local emoncms local couldn't send to server: HTTPConnectionPool(host='10.0.0.4', port=81): Read timed out. (read timeout=60)"
message in EmonHub log.
And EmonHub is also trying to send VERY large http calls (big wads of EmonTX data).
I’ve been playing for hours with several restarts and restarting EmonHub, service-runner, etc but I’m at a loss to fix the issue. Google has also failed me.
Any ideas? I’ve got a 7 hour loss of data and losing more by the second…
As additional info I seem to be getting a lot of these errors in the Emoncms.log
Next RedisException: Connection closed in /var/www/emoncms/Modules/input/input_model.php:240
Stack trace:
#0 /var/www/emoncms/Modules/input/input_model.php(240): Redis->exec()
#1 /var/www/emoncms/Modules/input/input_model.php(220): Input->redis_get_inputs(1)
#2 /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php(325): Input->get_inputs(1)
#3 [internal function]: message(Object(Mosquitto\Message))
#4 /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php(140): Mosquitto\Client->loop()
#5 {main}
Next RedisException: Connection closed in /var/www/emoncms/Modules/input/input_model.php:240
Stack trace:
#0 /var/www/emoncms/Modules/input/input_model.php(240): Redis->exec()
#1 /var/www/emoncms/Modules/input/input_model.php(220): Input->redis_get_inputs(1)
#2 /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php(325): Input->get_inputs(1)
#3 [internal function]: message(Object(Mosquitto\Message))
#4 /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php(140): Mosquitto\Client->loop()
#5 {main}
Next RedisException: Connection closed in /var/www/emoncms/Modules/input/input_model.php:240
Stack trace:
#0 /var/www/emoncms/Modules/input/input_model.php(240): Redis->exec()
#1 /var/www/emoncms/Modules/input/input_model.php(220): Input->redis_get_inputs(1)
#2 /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php(325): Input->get_inputs(1)
#3 [internal function]: message(Object(Mosquitto\Message))
#4 /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.php(140): Mosquitto\Client->loop()
#5 {main}
2022-04-30 21:03:57.560|WARN|emoncms_mqtt.php|Not connected, retrying connection
2022-04-30 21:03:57.576|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0
Edit - formatted text. Moderator - BT