MQTT change now nothing works even after returning to defaults

Thanks @borpin, I’ve amended the above settings example to include the full list of MQTT settings, @dodegkr see section:

[mqtt]
enabled = true
host = 'localhost'
port = 1883
user = 'emonpi'
password = 'emonpimqtt2016'
basetopic = 'emon'
client_id = 'emoncms'

If you change these as applicable it should work.

Note: The issue with copying the default settings file from the EmonScripts repo is that it contains key words that are replaced by the installation script so copying it over doesnt work unfortunately, the version of the settings file I have pasted above is the version that results after modification by the install script and is suitable for image emonSD-17Oct19

1 Like

Thank you for the reply, I copied over the settings and now the input processing shows up correctly, the emonhub log is still empty and not running. I think its something to do with the update re flashing the rfm12
I tried to refresh it again but it gives broken pipe errors, is this ok ?

Starting update via service-runner-update.sh (v3.0) >
- emonSD version: emonSD-17Oct19
emonSD base image check passed...continue update
git pull /opt/openenergymonitor/EmonScripts
  master
* stable
On branch stable
Your branch is up to date with 'origin/stable'.

nothing to commit, working tree clean
Already up to date.
-------------------------------------------------------------
Main Update Script
-------------------------------------------------------------
Date: Wed 8 Jul 12:22:47 BST 2020
EUID: 1000
openenergymonitor_dir: /opt/openenergymonitor
type: firmware
firmware: rfm12pi
Hardware detected: rfm2pi
-------------------------------------------------------------
RFM12Pi Firmware Update
-------------------------------------------------------------

Flashing RFM12Pi


avrdude-original: Version 6.3-20171130
                  Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                  Copyright (c) 2007-2014 Joerg Wunsch

                  System wide configuration file is "/etc/avrdude.conf"
                  User configuration file is "/root/.avrduderc"
                  User configuration file does not exist or is not a regular file, skipping

                  Using Port                    : /dev/ttyAMA0
                  Using Programmer              : arduino
                  Overriding Baud Rate          : 38400
avrdude-original: Using autoreset DTR on GPIO Pin 7
                  AVR Part                      : ATmega328P
                  Chip Erase delay              : 9000 us
                  PAGEL                         : PD7
                  BS2                           : PC2
                  RESET disposition             : dedicated
                  RETRY pulse                   : SCK
                  serial program mode           : yes
                  parallel program mode         : yes
                  Timeout                       : 200
                  StabDelay                     : 100
                  CmdexeDelay                   : 25
                  SyncLoops                     : 32
                  ByteDelay                     : 0
                  PollIndex                     : 3
                  PollValue                     : 0x53
                  Memory Detail                 :

                                           Block Poll               Page                       Polled
                    Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
                    ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
                    eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
                    flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
                    lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                    hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                    efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                    lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                    calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                    signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

                  Programmer Type : Arduino
                  Description     : Arduino
                  Hardware Version: 3
                  Firmware Version: 4.4
                  Vtarget         : 0.3 V
                  Varef           : 0.3 V
                  Oscillator      : 28.800 kHz
                  SCK period      : 3.3 us

avrdude-original: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude-original: Device signature = 0x1e950f (probably m328p)
avrdude-original: NOTE: "flash" memory has been specified, an erase cycle will be performed
                  To disable this feature, specify the -D option.
avrdude-original: erasing chip
avrdude-original: reading input file "/opt/openenergymonitor/data/firmware/rfm12pi.hex"
avrdude-original: input file /opt/openenergymonitor/data/firmware/rfm12pi.hex auto detected as Intel Hex
avrdude-original: writing flash (8982 bytes):

Writing | ################################################## | 100% 3.08s

avrdude-original: 8982 bytes of flash written
avrdude-original: verifying flash memory against /opt/openenergymonitor/data/firmware/rfm12pi.hex:
avrdude-original: load data flash data from input file /opt/openenergymonitor/data/firmware/rfm12pi.hex:
avrdude-original: input file /opt/openenergymonitor/data/firmware/rfm12pi.hex auto detected as Intel Hex
avrdude-original: input file /opt/openenergymonitor/data/firmware/rfm12pi.hex contains 8982 bytes
avrdude-original: reading on-chip flash data:

Reading | ################################################## | 100% 2.79s

avrdude-original: verifying ...
avrdude-original: 8982 bytes of flash verified
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe
strace: |autoreset: Broken pipe

avrdude-original done.  Thank you.

strace: |autoreset: Broken pipe
Flashing RFM12Pi done

-------------------------------------------------------------
emonPi update done: Wed  8 Jul 12:23:01 BST 2020
-------------------------------------------------------------

the main error log also has this

2020-07-08 11:15:28.823|ERROR|index.php|Not Authenticated|input/view
2020-07-08 11:15:28.970|ERROR|index.php|Not Authenticated|device/template/listshort
2020-07-08 11:15:28.975|ERROR|index.php|Not Authenticated|process/list
2020-07-08 11:15:28.992|ERROR|index.php|Not Authenticated|schedule/list
2020-07-08 11:15:29.018|ERROR|index.php|Not Authenticated|feed/list
2020-07-08 11:15:29.021|ERROR|index.php|Not Authenticated|input/list
2020-07-08 11:15:29.115|ERROR|index.php|Not Authenticated|device/list

You always get the broken pipe messages.

This is because you are not actually logged into the emoncms webUI. click on ‘Admin’ and it will ask you to authenticate.

from SSH shell

journalctl -u emonhub

and

systemctl status emonhub.service
root@emonpi:~# journalctl -u emonhub

-- Logs begin at Wed 2020-07-08 12:13:41 BST, end at Wed 2020-07-08 15:55:02 BST. --

Jul 08 12:13:42 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:13:42 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:13:45 emonpi emonhub.py[366]: Traceback (most recent call last):

Jul 08 12:13:45 emonpi emonhub.py[366]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:13:45 emonpi emonhub.py[366]: from interfacers import *

Jul 08 12:13:45 emonpi emonhub.py[366]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:13:45 emonpi emonhub.py[366]: import serial

Jul 08 12:13:45 emonpi emonhub.py[366]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:13:45 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:13:45 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:13:45 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:13:45 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 1.

Jul 08 12:13:45 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:13:45 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:13:45 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:13:46 emonpi emonhub.py[428]: Traceback (most recent call last):

Jul 08 12:13:46 emonpi emonhub.py[428]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:13:46 emonpi emonhub.py[428]: from interfacers import *

Jul 08 12:13:46 emonpi emonhub.py[428]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:13:46 emonpi emonhub.py[428]: import serial

Jul 08 12:13:46 emonpi emonhub.py[428]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:13:46 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:13:46 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:13:46 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

And the other command?

root@emonpi:~# systemctl status emonhub.service

emonhub.service - emonHub service description

Loaded: loaded (/opt/openenergymonitor/emonhub/service/emonhub.service; enabled; vendor preset: enabled)

Active: failed (Result: exit-code) since Wed 2020-07-08 12:23:07 BST; 3h 43min ago

Process: 1534 ExecStartPre=/bin/mkdir -p /var/log/emonhub/ (code=exited, status=0/SUCCESS)

Process: 1535 ExecStartPre=/bin/chgrp -R emonhub /var/log/emonhub/ (code=exited, status=0/SUCCESS)

Process: 1536 ExecStartPre=/bin/chmod 775 /var/log/emonhub/ (code=exited, status=0/SUCCESS)

Process: 1537 ExecStart=/usr/local/bin/emonhub/emonhub.py --config-file=/etc/emonhub/emonhub.conf --logfile=/var/log/emonhub/emonhub.log (code=exited, st

Main PID: 1537 (code=exited, status=1/FAILURE)

Jul 08 12:23:07 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:23:07 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 5.

Jul 08 12:23:07 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:23:07 emonpi systemd[1]: emonhub.service: Start request repeated too quickly.

Jul 08 12:23:07 emonpi systemd[1]: emonhub.service: Failed with result ‘exit-code’.

Jul 08 12:23:07 emonpi systemd[1]: Failed to start emonHub service description.

Please try running a full update from the Admin page and then journalctl -u emonhub again please.

root@emonpi:~# journalctl -u emonhub

-- Logs begin at Wed 2020-07-08 12:13:41 BST, end at Wed 2020-07-08 16:53:21 BST. --

Jul 08 12:13:42 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:13:42 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:13:45 emonpi emonhub.py[366]: Traceback (most recent call last):

Jul 08 12:13:45 emonpi emonhub.py[366]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:13:45 emonpi emonhub.py[366]: from interfacers import *

Jul 08 12:13:45 emonpi emonhub.py[366]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:13:45 emonpi emonhub.py[366]: import serial

Jul 08 12:13:45 emonpi emonhub.py[366]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:13:45 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:13:45 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:13:45 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:13:45 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 1.

Jul 08 12:13:45 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:13:45 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:13:45 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:13:46 emonpi emonhub.py[428]: Traceback (most recent call last):

Jul 08 12:13:46 emonpi emonhub.py[428]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:13:46 emonpi emonhub.py[428]: from interfacers import *

Jul 08 12:13:46 emonpi emonhub.py[428]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:13:46 emonpi emonhub.py[428]: import serial

Jul 08 12:13:46 emonpi emonhub.py[428]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:13:46 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:13:46 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:13:46 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:13:46 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 2.

Jul 08 12:13:46 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:13:46 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:13:46 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:13:47 emonpi emonhub.py[433]: Traceback (most recent call last):

Jul 08 12:13:47 emonpi emonhub.py[433]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:13:47 emonpi emonhub.py[433]: from interfacers import *

Jul 08 12:13:47 emonpi emonhub.py[433]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:13:47 emonpi emonhub.py[433]: import serial

Jul 08 12:13:47 emonpi emonhub.py[433]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:13:47 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:13:47 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:13:48 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:13:48 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 3.

Jul 08 12:13:48 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:13:48 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:13:48 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:13:49 emonpi emonhub.py[438]: Traceback (most recent call last):

Jul 08 12:13:49 emonpi emonhub.py[438]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:13:49 emonpi emonhub.py[438]: from interfacers import *

Jul 08 12:13:49 emonpi emonhub.py[438]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:13:49 emonpi emonhub.py[438]: import serial

Jul 08 12:13:49 emonpi emonhub.py[438]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:13:49 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:13:49 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:13:49 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:13:49 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 4.

Jul 08 12:13:49 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:13:49 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:13:49 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:13:50 emonpi emonhub.py[444]: Traceback (most recent call last):

Jul 08 12:13:50 emonpi emonhub.py[444]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:13:50 emonpi emonhub.py[444]: from interfacers import *

Jul 08 12:13:50 emonpi emonhub.py[444]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:13:50 emonpi emonhub.py[444]: import serial

Jul 08 12:13:50 emonpi emonhub.py[444]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:13:50 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:13:50 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:13:51 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:13:51 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 5.

Jul 08 12:13:51 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:13:51 emonpi systemd[1]: **emonhub.service: Start request repeated too quickly.**

Jul 08 12:13:51 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:13:51 emonpi systemd[1]: **Failed to start emonHub service description.**

Jul 08 12:23:00 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:23:00 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:23:01 emonpi emonhub.py[1510]: Traceback (most recent call last):

Jul 08 12:23:01 emonpi emonhub.py[1510]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:23:01 emonpi emonhub.py[1510]: from interfacers import *

Jul 08 12:23:01 emonpi emonhub.py[1510]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:23:01 emonpi emonhub.py[1510]: import serial

Jul 08 12:23:01 emonpi emonhub.py[1510]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:23:02 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:23:02 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:23:02 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:23:02 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 1.

Jul 08 12:23:02 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:23:02 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:23:02 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:23:03 emonpi emonhub.py[1521]: Traceback (most recent call last):

Jul 08 12:23:03 emonpi emonhub.py[1521]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:23:03 emonpi emonhub.py[1521]: from interfacers import *

Jul 08 12:23:03 emonpi emonhub.py[1521]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:23:03 emonpi emonhub.py[1521]: import serial

Jul 08 12:23:03 emonpi emonhub.py[1521]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:23:03 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:23:03 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:23:03 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:23:03 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 2.

Jul 08 12:23:03 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:23:03 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:23:03 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:23:04 emonpi emonhub.py[1526]: Traceback (most recent call last):

Jul 08 12:23:04 emonpi emonhub.py[1526]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:23:04 emonpi emonhub.py[1526]: from interfacers import *

Jul 08 12:23:04 emonpi emonhub.py[1526]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:23:04 emonpi emonhub.py[1526]: import serial

Jul 08 12:23:04 emonpi emonhub.py[1526]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:23:05 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:23:05 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:23:05 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:23:05 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 3.

Jul 08 12:23:05 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:23:05 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:23:05 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:23:06 emonpi emonhub.py[1531]: Traceback (most recent call last):

Jul 08 12:23:06 emonpi emonhub.py[1531]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:23:06 emonpi emonhub.py[1531]: from interfacers import *

Jul 08 12:23:06 emonpi emonhub.py[1531]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:23:06 emonpi emonhub.py[1531]: import serial

Jul 08 12:23:06 emonpi emonhub.py[1531]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:23:06 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:23:06 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:23:06 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:23:06 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 4.

Jul 08 12:23:06 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:23:06 emonpi systemd[1]: Starting emonHub service description...

Jul 08 12:23:06 emonpi systemd[1]: Started emonHub service description.

Jul 08 12:23:07 emonpi emonhub.py[1537]: Traceback (most recent call last):

Jul 08 12:23:07 emonpi emonhub.py[1537]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 12:23:07 emonpi emonhub.py[1537]: from interfacers import *

Jul 08 12:23:07 emonpi emonhub.py[1537]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 12:23:07 emonpi emonhub.py[1537]: import serial

Jul 08 12:23:07 emonpi emonhub.py[1537]: ModuleNotFoundError: No module named 'serial'

Jul 08 12:23:07 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 12:23:07 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:23:07 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 12:23:07 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 5.

Jul 08 12:23:07 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 12:23:07 emonpi systemd[1]: **emonhub.service: Start request repeated too quickly.**

Jul 08 12:23:07 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 12:23:07 emonpi systemd[1]: **Failed to start emonHub service description.**

Jul 08 16:52:50 emonpi systemd[1]: **/opt/openenergymonitor/emonhub/service/emonhub.service:10: PIDFile= references path below legacy directory /var/run/, up**

Jul 08 16:52:51 emonpi systemd[1]: **/opt/openenergymonitor/emonhub/service/emonhub.service:10: PIDFile= references path below legacy directory /var/run/, up**

Jul 08 16:52:52 emonpi systemd[1]: **/opt/openenergymonitor/emonhub/service/emonhub.service:10: PIDFile= references path below legacy directory /var/run/, up**

Jul 08 16:52:53 emonpi systemd[1]: **/opt/openenergymonitor/emonhub/service/emonhub.service:10: PIDFile= references path below legacy directory /var/run/, up**

Jul 08 16:52:54 emonpi systemd[1]: Starting emonHub service description...

Jul 08 16:52:54 emonpi systemd[1]: Started emonHub service description.

Jul 08 16:52:56 emonpi emonhub.py[17214]: Traceback (most recent call last):

Jul 08 16:52:56 emonpi emonhub.py[17214]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 16:52:56 emonpi emonhub.py[17214]: from interfacers import *

Jul 08 16:52:56 emonpi emonhub.py[17214]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 16:52:56 emonpi emonhub.py[17214]: import serial

Jul 08 16:52:56 emonpi emonhub.py[17214]: ModuleNotFoundError: No module named 'serial'

Jul 08 16:52:56 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 16:52:56 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 16:52:56 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 16:52:56 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 1.

Jul 08 16:52:56 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 16:52:56 emonpi systemd[1]: Starting emonHub service description...

Jul 08 16:52:56 emonpi systemd[1]: Started emonHub service description.

Jul 08 16:52:57 emonpi emonhub.py[17283]: Traceback (most recent call last):

Jul 08 16:52:57 emonpi emonhub.py[17283]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 16:52:57 emonpi emonhub.py[17283]: from interfacers import *

Jul 08 16:52:57 emonpi emonhub.py[17283]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 16:52:57 emonpi emonhub.py[17283]: import serial

Jul 08 16:52:57 emonpi emonhub.py[17283]: ModuleNotFoundError: No module named 'serial'

Jul 08 16:52:57 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 16:52:57 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 16:52:57 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 16:52:57 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 2.

Jul 08 16:52:57 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 16:52:57 emonpi systemd[1]: Starting emonHub service description...

Jul 08 16:52:57 emonpi systemd[1]: Started emonHub service description.

Jul 08 16:52:58 emonpi systemd[1]: **/opt/openenergymonitor/emonhub/service/emonhub.service:10: PIDFile= references path below legacy directory /var/run/, up**

Jul 08 16:52:59 emonpi emonhub.py[17301]: Traceback (most recent call last):

Jul 08 16:52:59 emonpi emonhub.py[17301]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 16:52:59 emonpi emonhub.py[17301]: from interfacers import *

Jul 08 16:52:59 emonpi emonhub.py[17301]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 16:52:59 emonpi emonhub.py[17301]: import serial

Jul 08 16:52:59 emonpi emonhub.py[17301]: ModuleNotFoundError: No module named 'serial'

Jul 08 16:52:59 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 16:52:59 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 16:52:59 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 16:52:59 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 3.

Jul 08 16:52:59 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 16:52:59 emonpi systemd[1]: Starting emonHub service description...

Jul 08 16:52:59 emonpi systemd[1]: **emonhub.service: Control process exited, code=killed, status=15/TERM**

Jul 08 16:52:59 emonpi systemd[1]: emonhub.service: Succeeded.

Jul 08 16:52:59 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 16:52:59 emonpi systemd[1]: Starting emonHub service description...

Jul 08 16:52:59 emonpi systemd[1]: Started emonHub service description.

Jul 08 16:53:00 emonpi emonhub.py[17375]: Traceback (most recent call last):

Jul 08 16:53:00 emonpi emonhub.py[17375]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 16:53:00 emonpi emonhub.py[17375]: from interfacers import *

Jul 08 16:53:00 emonpi emonhub.py[17375]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 16:53:00 emonpi emonhub.py[17375]: import serial

Jul 08 16:53:00 emonpi emonhub.py[17375]: ModuleNotFoundError: No module named 'serial'

Jul 08 16:53:00 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 16:53:00 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 16:53:00 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 16:53:00 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 1.

Jul 08 16:53:00 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 16:53:00 emonpi systemd[1]: Starting emonHub service description...

Jul 08 16:53:00 emonpi systemd[1]: Started emonHub service description.

Jul 08 16:53:02 emonpi emonhub.py[17438]: Traceback (most recent call last):

Jul 08 16:53:02 emonpi emonhub.py[17438]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 16:53:02 emonpi emonhub.py[17438]: from interfacers import *

Jul 08 16:53:02 emonpi emonhub.py[17438]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 16:53:02 emonpi emonhub.py[17438]: import serial

Jul 08 16:53:02 emonpi emonhub.py[17438]: ModuleNotFoundError: No module named 'serial'

Jul 08 16:53:02 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 16:53:02 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 16:53:02 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 16:53:02 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 2.

Jul 08 16:53:02 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 16:53:02 emonpi systemd[1]: Starting emonHub service description...

Jul 08 16:53:02 emonpi systemd[1]: Started emonHub service description.

Jul 08 16:53:03 emonpi emonhub.py[17469]: Traceback (most recent call last):

Jul 08 16:53:03 emonpi emonhub.py[17469]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 16:53:03 emonpi emonhub.py[17469]: from interfacers import *

Jul 08 16:53:03 emonpi emonhub.py[17469]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 16:53:03 emonpi emonhub.py[17469]: import serial

Jul 08 16:53:03 emonpi emonhub.py[17469]: ModuleNotFoundError: No module named 'serial'

Jul 08 16:53:03 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 16:53:03 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 16:53:03 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 16:53:03 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 3.

Jul 08 16:53:03 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 16:53:03 emonpi systemd[1]: Starting emonHub service description...

Jul 08 16:53:03 emonpi systemd[1]: Started emonHub service description.

Jul 08 16:53:05 emonpi emonhub.py[17491]: Traceback (most recent call last):

Jul 08 16:53:05 emonpi emonhub.py[17491]: File "/usr/local/bin/emonhub/emonhub.py", line 26, in <module>

Jul 08 16:53:05 emonpi emonhub.py[17491]: from interfacers import *

Jul 08 16:53:05 emonpi emonhub.py[17491]: File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubSerialInterfacer.py", line 1, in <module>

Jul 08 16:53:05 emonpi emonhub.py[17491]: import serial

Jul 08 16:53:05 emonpi emonhub.py[17491]: ModuleNotFoundError: No module named 'serial'

Jul 08 16:53:05 emonpi systemd[1]: **emonhub.service: Main process exited, code=exited, status=1/FAILURE**

Jul 08 16:53:05 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 16:53:05 emonpi systemd[1]: emonhub.service: Service RestartSec=100ms expired, scheduling restart.

Jul 08 16:53:05 emonpi systemd[1]: emonhub.service: Scheduled restart job, restart counter is at 4.

Jul 08 16:53:05 emonpi systemd[1]: Stopped emonHub service description.

Jul 08 16:53:05 emonpi systemd[1]: **emonhub.service: Start request repeated too quickly.**

Jul 08 16:53:05 emonpi systemd[1]: **emonhub.service: Failed with result 'exit-code'.**

Jul 08 16:53:05 emonpi systemd[1]: **Failed to start emonHub service description.**

Post the update log please.

LAST ENTRIES ON THE LOG FILE
Starting update via service-runner-update.sh (v3.0) >
- emonSD version: emonSD-17Oct19
emonSD base image check passed...continue update
git pull /opt/openenergymonitor/EmonScripts
master
* stable
On branch stable
Your branch is up to date with 'origin/stable'.

nothing to commit, working tree clean
Already up to date.
-------------------------------------------------------------
Main Update Script
-------------------------------------------------------------
Date: Wed 8 Jul 16:52:25 BST 2020
EUID: 1000
openenergymonitor_dir: /opt/openenergymonitor
type: all
firmware: none
Running apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists...
Hardware detected: rfm2pi
git pull /opt/openenergymonitor/emonpi
* master
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Fetching origin
Already up to date.
git pull /opt/openenergymonitor/RFM2Pi
* master
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Fetching origin
Already up to date.
Start emonhub update script:
-------------------------------------------------------------
emonHub update
-------------------------------------------------------------
git fetch --all --prune -v
Fetching origin
POST git-upload-pack (989 bytes)
From https://github.com/openenergymonitor/emonhub
a0cd518..d2c5dd3 stable -> origin/stable
= [up to date] MQTTSubscriberInterfacer -> origin/MQTTSubscriberInterfacer
= [up to date] SDS011 -> origin/SDS011
= [up to date] emon-pi -> origin/emon-pi
= [up to date] env_example -> origin/env_example
= [up to date] lanip-status -> origin/lanip-status
97581bc..1da8085 master -> origin/master
= [up to date] redis_config_interface -> origin/redis_config_interface
= [up to date] unitless_decoder -> origin/unitless_decoder
git status
On branch stable
Your branch is behind 'origin/stable' by 2 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)

Untracked files:
(use "git add ..." to include in what will be committed)

src/src

nothing added to commit but untracked files present (use "git add" to track)
git pull origin stable
From https://github.com/openenergymonitor/emonhub
* branch stable -> FETCH_HEAD
Updating a0cd518..d2c5dd3
Fast-forward
src/interfacers/EmonHubTeslaPowerWallInterfacer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Running emonhub install & update script emonSD_pi_env:1
--------------------------------------------------------------------
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
sudo: pip3: command not found
Unit /etc/systemd/system/[email protected] is masked, ignoring.
useradd: user 'emonhub' already exists
- installing emonhub.service
- Service ActiveState=active
--------------------------------------------------------------------
Running emonhub automatic node addition script
[[5]]
Node 5 already present
[[6]]
Node 6 already present
[[7]]
Node 7 already present
[[8]]
Node 8 already present
[[9]]
Node 9 already present
[[10]]
Node 10 already present
[[11]]
Node 11 already present
[[12]]
Node 12 already present
[[13]]
Node 13 already present
[[14]]
Node 14 already present
[[15]]
Node 15 already present
[[16]]
Node 16 already present
[[19]]
Node 19 already present
[[20]]
Node 20 already present
[[21]]
Node 21 already present
[[22]]
Node 22 already present
[[23]]
Node 23 already present
[[24]]
Node 24 already present
[[25]]
Node 25 already present
[[26]]
Node 26 already present

Start emoncms update:
-------------------------------------------------------------
Update Emoncms Core
-------------------------------------------------------------


Checking status of /var/www/emoncms git repository
- git branch: stable
- no local changes
- running: git pull origin stable

Fetching origin
From https://github.com/emoncms/emoncms
* branch stable -> FETCH_HEAD
Already up to date.

Update Emoncms database
[]

-------------------------------------------------------------
Update Emoncms Services
-------------------------------------------------------------
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed

Reloading systemctl deamon
Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---
- sudo systemctl restart emonhub.service
--- ActiveState=active ---
/opt/openenergymonitor/EmonScripts/sudoers.d/emoncms-rebootbutton: parsed OK
emonPi emoncms admin reboot button sudoers updated

-------------------------------------------------------------
Update Emoncms Modules
-------------------------------------------------------------
------------------------------------------
Updating /var/www/emoncms/Modules/app module
------------------------------------------
- git branch: stable
- git tags: 2.1.1-42-ge5d51a4
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/config module
------------------------------------------
- git branch: stable
- git tags: 2.0.5
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/dashboard module
------------------------------------------
- git branch: stable
- git tags: 2.0.7
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/device module
------------------------------------------
- git branch: stable
- git tags: 2.0.5
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/graph module
------------------------------------------
- git branch: stable
- git tags: 2.0.9
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/setup module
------------------------------------------
- git branch: stable
fatal: No names found, cannot describe anything.
- git tags:
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/wifi module
------------------------------------------
- git branch: stable
- git tags: 2.0.0-29-g274bcd5
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

/opt/openenergymonitor/EmonScripts/sudoers.d/wifi-sudoers: parsed OK
wifi sudoers entry updated
------------------------------------------
Updating /opt/emoncms/modules/backup module
------------------------------------------
- git branch: stable
- git tags: 2.2.2-6-g70894e1
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/demandshaper module
------------------------------------------
- git branch: stable
- git tags: 1.2.4-5-gd689aae
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/postprocess module
------------------------------------------
- git branch: stable
- git tags: 2.1.3-4-g5c50627
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/sync module
------------------------------------------
- git branch: stable
- git tags: 2.0.5
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/usefulscripts module
------------------------------------------
- git branch: stable
fatal: No names found, cannot describe anything.
- git tags:
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

--------------------------------------------
Backup module installation and update script
--------------------------------------------
- Loading EmonScripts config.ini
- Copying default.config.cfg to config.cfg
- Setting config.cfg settings
- Backup module symlink already exists
- PHP Version: 7.3
- Creating /etc/php/7.3/mods-available/emoncmsbackup.ini
post_max_size = 3G
upload_max_filesize = 3G
upload_tmp_dir = /var/opt/emoncms/backup/uploads
- phpenmod emoncmsbackup
- /var/opt/emoncms/backup already exists
- /var/opt/emoncms/backup/uploads already exists
- restarting apache

Update Emoncms database
[]


-------------------------------------------------------------
emonPi update done: Wed 8 Jul 16:53:21 BST 2020
-------------------------------------------------------------
restarting service-runner

@TrystanLea Still not working!!

@dodegkr

Try this please (and post all the output).

sudo dpkg --configure -a
sudo apt update
sudo atp upgrade
cd /opt/openenergymonitor/emonhub/
git reset --hard
git pull
./install.sh

I’m not going to say this will work. There seems to be an issue with the repositories that I was not able to fix last time.

@TrystanLea @borpin
Here is the output from the commands, there is now output in the emonhub log window :slight_smile:

https://pastebin.com/0DWZEyha

Here is the emonhub log

seems to fail in a loop with

  1. 2020-07-08 17:38:07,047 WARNING RFM2Pi Exception caught in RFM2Pi thread. Traceback (most recent call last):

  2. File “/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py”, line 32, in wrapper

  3. return f(*args)

  4. File “/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py”, line 99, in run

  5. rxc = self.read()

  6. File “/opt/openenergymonitor/emonhub/src/interfacers/EmonHubJeeInterfacer.py”, line 84, in read

  7. self._rx_buf = self._rx_buf + self._ser.readline().decode()

  8. UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa1 in position 0: invalid start byte

Your package repository seems to be in a bad way!

Try

sudo apt install --reinstall python3 python3-serial python3-configobj python3-pip python3-pymodbus

trying to fix that now but I get

dpkg: error processing package python3-secretstorage (–configure):

package is in a very bad inconsistent state; you should

reinstall it before attempting configuration

Setting up python3-pip (18.1-5+rpt1) …

dpkg: dependency problems prevent configuration of python3-keyring:

python3-keyring depends on python3-secretstorage; however:

Package python3-secretstorage is not configured yet.

dpkg: error processing package python3-keyring (–configure):

dependency problems - leaving unconfigured

Setting up python3-pymodbus (2.1.0+dfsg-1) …

Processing triggers for man-db (2.8.5-2) …

Errors were encountered while processing:

python3-secretstorage

python3-keyring

E: Sub-process /usr/bin/dpkg returned an error code (1)

Very messed up!

Try

sudo dpkg --remove --force-remove-reinstreq --force-depends python3-secretstorage
sudo dpkg --remove --force-remove-reinstreq --force-depends python3-keyring

[edit] then the install command above

so that’s all ok just left with this emonhub log error

2020-07-08 18:20:02,675 WARNING RFM2Pi Exception caught in RFM2Pi thread. Traceback (most recent call last):
File “/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py”, line 32, in wrapper
return f(*args)
File “/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py”, line 99, in run
rxc = self.read()
File “/opt/openenergymonitor/emonhub/src/interfacers/EmonHubJeeInterfacer.py”, line 84, in read
self._rx_buf = self._rx_buf + self._ser.readline().decode()
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa1 in position 0: invalid start byte

No errors from the install command?

systemctl status emonhub.service
git fetch
git pull
git status
git describe
pi@emonpi:~ $ sudo su -
root@emonpi:~# systemctl status emonhub.service
● emonhub.service - emonHub service description
   Loaded: loaded (/opt/openenergymonitor/emonhub/service/emonhub.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-07-08 18:21:54 BST; 5min ago
  Process: 1265 ExecStartPre=/bin/mkdir -p /var/log/emonhub/ (code=exited, status=0/SUCCESS)
  Process: 1266 ExecStartPre=/bin/chgrp -R emonhub /var/log/emonhub/ (code=exited, status=0/SUCCESS)
  Process: 1267 ExecStartPre=/bin/chmod 775 /var/log/emonhub/ (code=exited, status=0/SUCCESS)
 Main PID: 1268 (python3)
    Tasks: 3 (limit: 2319)
   Memory: 14.6M
   CGroup: /system.slice/emonhub.service
           └─1268 python3 /usr/local/bin/emonhub/emonhub.py --config-file=/etc/emonhub/emonhub.conf --logfile=/var/log/emonhub/emonhub.log

Jul 08 18:21:54 emonpi systemd[1]: Starting emonHub service description...
Jul 08 18:21:54 emonpi systemd[1]: Started emonHub service description.

root@emonpi:~# cd /opt/openenergymonitor/emonhub/

root@emonpi:/opt/openenergymonitor/emonhub# git fetch

root@emonpi:/opt/openenergymonitor/emonhub# git pull

Already up to date.

root@emonpi:/opt/openenergymonitor/emonhub# git status

On branch stable

Your branch is up to date with 'origin/stable'.

Untracked files:

(use "git add <file>..." to include in what will be committed)

src/src

nothing added to commit but untracked files present (use "git add" to track)

root@emonpi:/opt/openenergymonitor/emonhub# git describe

2.1.5-2-gd2c5dd3

root@emonpi:/opt/openenergymonitor/emonhub#

And running?

its running yes although not receiving data or updating the inputs most likely due to the error

2020-07-08 18:20:02,675 WARNING RFM2Pi Exception caught in RFM2Pi thread. Traceback (most recent call last):
File “/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py”, line 32, in wrapper
return f(*args)
File “/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py”, line 99, in run
rxc = self.read()
File “/opt/openenergymonitor/emonhub/src/interfacers/EmonHubJeeInterfacer.py”, line 84, in read
self._rx_buf = self._rx_buf + self._ser.readline().decode()
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa1 in position 0: invalid start byte