Just connected my emonpi but I’m having two issues. The first issue is that the LCD is reporting that MQTT is not connected. But a tail of /var/log/mosquitto/mosquitto.log produces:
1492297665: Socket error on client paho/D93DD1CD3C5D68662C, disconnecting.
1492297733: New connection from 127.0.0.1 on port 1883.
1492297733: New client connected from 127.0.0.1 as paho/3F51D877D37D2C9D47 (c1, k60, u’emonpi’).
1492297739: Socket error on client openhab.1492297529360, disconnecting.
1492297739: Socket error on client mosq/olMP[OlHljx4;a@De@, disconnecting.
1492297740: New connection from ::1 on port 1883.
1492297740: New client connected from ::1 as mosq/eI;WrcAM1n1jZ=W@wX (c1, k5, u’emonpi’).
1492297760: New connection from 127.0.0.1 on port 1883.
1492297760: New client connected from 127.0.0.1 as openhab.1492297760094 (c1, k60, u’emonpi’).
1492297762: New connection from 127.0.0.1 on port 1883.
The second problem, probably related, is that I’m not getting any data out on the feeds I created.
tail /var/log/emoncms.log produces:
2017-04-15 23:05:14.095|WARN|phpmqtt_input.php|Starting MQTT Input script
2017-04-15 23:05:15.225|WARN|phpmqtt_input.php|Subscribing to: emon/#
2017-04-15 23:05:15.226|WARN|phpmqtt_input.php|Not connected, retrying connection
2017-04-15 23:05:15.227|WARN|phpmqtt_input.php|Connecting to MQTT server: Connection Accepted.: code: 0
2017-04-15 23:05:15.228|WARN|phpmqtt_input.php|Subscribed to topic: emon/#
2017-04-15 23:08:59.873|WARN|phpmqtt_input.php|Starting MQTT Input script
2017-04-15 23:09:00.998|WARN|phpmqtt_input.php|Subscribing to: emon/#
2017-04-15 23:09:00.998|WARN|phpmqtt_input.php|Not connected, retrying connection
2017-04-15 23:09:00.999|WARN|phpmqtt_input.php|Connecting to MQTT server: Connection Accepted.: code: 0
2017-04-15 23:09:00.999|WARN|phpmqtt_input.php|Subscribed to topic: emon/#
Version information:
Server Information
Emoncms Version low-write 9.8.0 | 2017.02.01
** Modules admin app backup config dashboard eventp feed graph input postprocess process schedule time user vis wifi**
** Buffer 0 feed points pending write**
** Writer Daemon is running with sleep 60s**
Server OS Linux 4.4.26-v7+
** Host emonpi emonpi (127.0.1.1)**
** Date 2017-04-15 23:20:13 UTC**
** Uptime 23:20:14 up 15 min, 1 user, load average: 0.15, 0.13, 0.14**
HTTP Server Apache/2.4.10 (Raspbian) HTTP/1.1 CGI/1.1 80
Database Version MySQL 5.5.52-0+deb8u1
** Host localhost (127.0.0.1)**
** Date 2017-04-15 23:20:13 (UTC 00:00)**
** Stats Uptime: 921 Threads: 3 Questions: 2529 Slow queries: 0 Opens: 57 Flush tables: 1 Open tables: 50 Queries per second avg: 2.745**
Redis Version 2.8.17
** Host localhost:6379 (127.0.0.1)**
** Size 31 keys (496.39K)**
** Uptime 0 days**
MQTT Version 1.4.10
** Host localhost:1883 (127.0.0.1)**
Pi CPU Temp 46.16°C
** Release emonSD-07Nov16**
I ran emonpi update from the web interface and rebooted but that did not fix the issue. Not sure what to try next.