Community
OpenEnergyMonitor

Community

Emonhub fails to start after update

Hi folks
Updated my emonpi last night - and emonhub fails to start.
syslog shows:
Any assistance greatly appreciated.

Jun  5 08:37:29 emonpi emonhub.py[420]: Traceback (most recent call last):
Jun  5 08:37:29 emonpi emonhub.py[420]:   File "/usr/local/bin/emonhub/emonhub.py", line 23, in <module>
Jun  5 08:37:29 emonpi emonhub.py[420]:     import emonhub_setup as ehs
Jun  5 08:37:29 emonpi emonhub.py[420]:   File "/opt/openenergymonitor/emonhub/src/emonhub_setup.py", line 13, in <module>
Jun  5 08:37:29 emonpi emonhub.py[420]:     from configobj import ConfigObj
Jun  5 08:37:29 emonpi emonhub.py[420]: ModuleNotFoundError: No module named 'configobj'
Jun  5 08:37:29 emonpi systemd[1]: emonhub.service: Main process exited, code=exited, status=1/FAILURE
Jun  5 08:37:29 emonpi systemd[1]: emonhub.service: Failed with result 'exit-code'.
Jun  5 08:37:29 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.
Jun  5 08:37:29 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 4.
Jun  5 08:37:29 emonpi systemd[1]: Stopped emonHub service description.
Jun  5 08:37:29 emonpi systemd[1]: Starting emonHub service description...
Jun  5 08:37:29 emonpi systemd[1]: Started emonHub service description.
Jun  5 08:37:29 emonpi emonhub.py[424]: Traceback (most recent call last):
Jun  5 08:37:29 emonpi emonhub.py[424]:   File "/usr/local/bin/emonhub/emonhub.py", line 23, in <module>
Jun  5 08:37:29 emonpi emonhub.py[424]:     import emonhub_setup as ehs
Jun  5 08:37:29 emonpi emonhub.py[424]:   File "/opt/openenergymonitor/emonhub/src/emonhub_setup.py", line 13, in <module>
Jun  5 08:37:29 emonpi emonhub.py[424]:     from configobj import ConfigObj
Jun  5 08:37:29 emonpi emonhub.py[424]: ModuleNotFoundError: No module named 'configobj'
Jun  5 08:37:29 emonpi systemd[1]: emonhub.service: Main process exited, code=exited, status=1/FAILURE
Jun  5 08:37:29 emonpi systemd[1]: emonhub.service: Failed with result 'exit-code'.
Jun  5 08:37:30 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.
Jun  5 08:37:30 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 5.
Jun  5 08:37:30 emonpi systemd[1]: Stopped emonHub service description.
Jun  5 08:37:30 emonpi systemd[1]: emonhub.service: Start request repeated too quickly.
Jun  5 08:37:30 emonpi systemd[1]: emonhub.service: Failed with result 'exit-code'.
Jun  5 08:37:30 emonpi systemd[1]: Failed to start emonHub service description.

I’m not sure where to start as it used to work before I did the upgrade from the Admin panel.
Help and advice pleas!

ok
With more googleing it seems I need
python3-configobj
python3-serial

I wonder why they weren’t there? If anyone else has this issue, you need to run
sudo apt-get install python3-serial python3-configobj

and a reboot brings it back to life…So far, anyway!

The update is moving to Python3 but should run the install script which includes

Could you possibly post the update log plus the system info from the Admin panel please?

It will help us identify what the issue might be.

@TrystanLea

The solution will be to run the install manually

cd /opt/openenergymonitor/emonhub
./install

just say no to question (key input is not echoed; just hit return).

Thanks for reporting @gr0mit

This would be really useful if possible?