OpenEnergyMonitor Community

EmonHub not working on fresh install of EmonOS2020

Tags: #<Tag:0x00007fc0aceee818>


A fresh install of EmonPi 2020 onto an SD card but I seem to be getting the same problem that the EmonHub is not launching.

*Failed to start emonhub.service: Unit home-pi-data.mount not found.
waiting for emonpi to stop controlling LCD

Starting emonPi LCD service…*

Not sure why this is the case, as a fresh image on the SD card gave me a working install (working EmonHub) just yesterday.

For what its worth here is the Emoncms log:
2020-08-19 19:44:00.795|WARN|emoncms_mqtt.php|Not connected, retrying connection
2020-08-19 19:44:00.830|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0
2020-10-13 12:06:32.223|WARN|emoncms_mqtt.php|Not connected, retrying connection
2020-10-13 12:06:32.251|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0
2020-10-13 12:07:56.466|ERROR|index.php|Not Authenticated|setup/setwifi

Any ideas? (not sure what to try next…)

I do not understand why this requirement was added to the service file @TrystanLea @glyn.hudson.

To fix (but you will need to undo it for future updates to work unfortunately)

sudo nano /opt/openenergymonitor/emonhub/service/emonhub.service

and replace (or comment out with #) this line

After=var-log.mount home-pi-data.mount

with this line


I’ve merged your patch, thanks @borpin. I had to remote the home-pi-data.mount from requirements as well, although I think emonhub was still running it was just giving a notice… Latest changes are in stable.

1 Like