My emonpi is stuck showing the “booting” message. The main system is running, and I can access both SSH and the web interface. In the web interface, all the feeds show as “inactive”.
I’m a moderately competent Linux sysadmin but I don’t know enough about the architecture of the emonpi to know where to start troubleshooting… advice appreciated!
The only solutions I found were for a power-cut situation where the SD card had become corrupt, and the Pi wasn’t booting. I’ll have another look - any specific terms I could add to narrow it away from “dead SD card” results?
Plenty of free space on the device, and the services are all showing as running.
Aah, this is part of the syslog that looks interesting!
Nov 30 08:31:17 emonpi python3[9657]: I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
Nov 30 08:31:17 emonpi systemd[1]: emonPiLCD.service: Succeeded.
Nov 30 08:31:18 emonpi systemd[1]: emonPiLCD.service: Service RestartSec=100ms expired, scheduling restart.
Nov 30 08:31:18 emonpi systemd[1]: emonPiLCD.service: Scheduled restart job, restart counter is at 30112.
Nov 30 08:31:18 emonpi systemd[1]: Stopped emonPi LCD driver.
Nov 30 08:31:18 emonpi systemd[1]: Starting emonPi LCD driver...
Nov 30 08:31:18 emonpi systemd[1]: Started emonPi LCD driver.
Nov 30 08:31:20 emonpi python3[9664]: emonPiLCD logging to: /var/log/emonpilcd/emonpilcd.log
Nov 30 08:31:20 emonpi python3[9664]: I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
Nov 30 08:31:20 emonpi systemd[1]: emonPiLCD.service: Succeeded.
Nov 30 08:31:20 emonpi systemd[1]: emonPiLCD.service: Service RestartSec=100ms expired, scheduling restart.
Nov 30 08:31:20 emonpi systemd[1]: emonPiLCD.service: Scheduled restart job, restart counter is at 30113.
Nov 30 08:31:20 emonpi systemd[1]: Stopped emonPi LCD driver.
Nov 30 08:31:20 emonpi systemd[1]: Starting emonPi LCD driver...
Nov 30 08:31:20 emonpi systemd[1]: Started emonPi LCD driver.
Nov 30 08:31:22 emonpi python3[9671]: emonPiLCD logging to: /var/log/emonpilcd/emonpilcd.log
Nov 30 08:31:22 emonpi python3[9671]: I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
Nov 30 08:31:22 emonpi systemd[1]: emonPiLCD.service: Succeeded.
Nov 30 08:31:23 emonpi systemd[1]: emonPiLCD.service: Service RestartSec=100ms expired, scheduling restart.
Nov 30 08:31:23 emonpi systemd[1]: emonPiLCD.service: Scheduled restart job, restart counter is at 30114.
Nov 30 08:31:23 emonpi systemd[1]: Stopped emonPi LCD driver.
Nov 30 08:31:23 emonpi systemd[1]: Starting emonPi LCD driver...
Nov 30 08:31:23 emonpi systemd[1]: Started emonPi LCD driver.
Nov 30 08:31:25 emonpi python3[9678]: emonPiLCD logging to: /var/log/emonpilcd/emonpilcd.log
Nov 30 08:31:25 emonpi python3[9678]: I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
Nov 30 08:31:25 emonpi systemd[1]: emonPiLCD.service: Succeeded.
Nov 30 08:31:25 emonpi systemd[1]: emonPiLCD.service: Service RestartSec=100ms expired, scheduling restart.
Nov 30 08:31:25 emonpi systemd[1]: emonPiLCD.service: Scheduled restart job, restart counter is at 30115.
Nov 30 08:31:25 emonpi systemd[1]: Stopped emonPi LCD driver.
Nov 30 08:31:25 emonpi systemd[1]: Starting emonPi LCD driver...
Nov 30 08:31:25 emonpi systemd[1]: Started emonPi LCD driver.
Nov 30 08:31:27 emonpi python3[9686]: emonPiLCD logging to: /var/log/emonpilcd/emonpilcd.log
Nov 30 08:31:27 emonpi python3[9686]: I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
Nov 30 08:31:27 emonpi systemd[1]: emonPiLCD.service: Succeeded.
Nov 30 08:31:28 emonpi systemd[1]: emonPiLCD.service: Service RestartSec=100ms expired, scheduling restart.
Nov 30 08:31:28 emonpi systemd[1]: emonPiLCD.service: Scheduled restart job, restart counter is at 30116.
Nov 30 08:31:28 emonpi systemd[1]: Stopped emonPi LCD driver.
Nov 30 08:31:28 emonpi systemd[1]: Starting emonPi LCD driver...
Nov 30 08:31:28 emonpi systemd[1]: Started emonPi LCD driver.
And lots of repetitions of this in the LCD log iteslf:
2021-11-30 08:32:42,616 INFO Starting emonPiLCD V5
2021-11-30 08:32:42,617 ERROR I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
2021-11-30 08:32:45,206 INFO Starting emonPiLCD V5
2021-11-30 08:32:45,207 ERROR I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
2021-11-30 08:32:47,634 INFO Starting emonPiLCD V5
2021-11-30 08:32:47,635 ERROR I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
2021-11-30 08:32:50,120 INFO Starting emonPiLCD V5
2021-11-30 08:32:50,121 ERROR I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
Hello @wheeto can you restart the emonPiLCD service? you should be able to do this from the Admin information page at the top (If you have a recent version of emoncms).
In the absence of any other suggestions, I replaced the SD card with one with a brand new image, and then restored a backup.
This is now working fine, which is good news as it means there was no hardware problem, but is a bit unsatisfactory in terms of knowing what had spontaneously gone wrong! Anyway, onwards and upwards…
Thanks @wheeto I have noticed that if the SD card starts to corrupt it can be a really small thing that only breaks one part so I wonder if it is somehow still down to a corruption. The fact that the problem resolved itself with a new image suggests that it was a software issue, the July20 image uses the same emonpi software scripts for the LCD as the newer image so I dont think it would be that. EmonPi v2.9.4 is also relatively recent…