Hi All,
I’ve had an emonpi running quite happily for about 6 months now on a solar home setup (one emonpi and 2 x CTs).
It was a pretty straightforward setup and left it to run quite nicely (is actually at my parents house so mainly manager / moinitor remotely).
But about a week ago it just stopped getting current readings. There may have been a power cut around that time. I’ve visited and tried to get it working again but with no luck. Originally the EmonHub light was red (under setup > Admin). All of those lights are now green.
Here are the latest logs (update and emonhub).
The one bit I couldn’t figure out is how to actually run “apt --fix-broken install’”. Tried it in the terminal shell after I had done the other bit it asked for (sudo dpkg --configure -a) but didn’t seem to like it.
Any advice gratefully received.
I do have a new SD card from Amazon coming and will be installing pi update onto that and then copying across, may or may not solve it but welcome any help here first.
It does seem that it gets stuck on the emonhub on RFM2Pi interfacer not sure how to correct this. I did a fresh copy of the emonHub config file and that didn’t help.
Thanks
Henry
UPDATE LOG
LAST ENTRIES ON THE LOG FILE
Starting update via service-runner-update.sh (v3.0) >
- emonSD version: emonSD-17Oct19
- supported images: emonSD-24Jul20 emonSD-02Oct19 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: Sun 18 Oct 14:46:19 BST 2020
EUID: 1000
openenergymonitor_dir: /opt/openenergymonitor
type: emonhub
firmware: none
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (18.1-5+rpt1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python3-twisted : Depends: python3-twisted-bin (>= 18.9.0-3) but it is not going to be installed
Depends: python3-service-identity but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: redis in /home/pi/.local/lib/python3.7/site-packages (3.5.3)
Hardware detected: EmonPi
Stopping emonPiLCD service
Display update message on LCD
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...
Start emonhub update script:
-------------------------------------------------------------
emonHub update
-------------------------------------------------------------
git fetch --all --prune -v
Fetching origin
From https://github.com/openenergymonitor/emonhub
= [up to date] stable -> origin/stable
= [up to date] MQTTSubscriberInterfacer -> origin/MQTTSubscriberInterfacer
= [up to date] emon-pi -> origin/emon-pi
= [up to date] env_example -> origin/env_example
= [up to date] include_serial_number -> origin/include_serial_number
= [up to date] lanip-status -> origin/lanip-status
= [up to date] master -> origin/master
= [up to date] new_config_format -> origin/new_config_format
= [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 up to date with 'origin/stable'.
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
Already up to date.
Running emonhub install & update script emonSD_pi_env:1
--------------------------------------------------------------------
Reading package lists...
Building dependency tree...
Reading state information...
python3-configobj is already the newest version (5.0.6-3).
python3-pymodbus is already the newest version (2.1.0+dfsg-1).
python3-serial is already the newest version (3.4-4).
bluetooth is already the newest version (5.50-1.2~deb10u1+rpt2).
libbluetooth-dev is already the newest version (5.50-1.2~deb10u1+rpt2).
python3-pip is already the newest version (18.1-5+rpt1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python3-twisted : Depends: python3-twisted-bin (>= 18.9.0-3) but it is not going to be installed
Depends: python3-service-identity but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: paho-mqtt in /usr/local/lib/python3.7/dist-packages (1.5.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.21.0)
Requirement already satisfied: pybluez in /usr/local/lib/python3.7/dist-packages (0.23)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (0.7.0)
The user `emonhub' is already a member of `gpio'.
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
Added node 12 to emonhub.conf
[[13]]
Node 13 already present
[[14]]
Node 14 already present
Added node 15 to emonhub.conf
Added node 16 to emonhub.conf
[[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
Starting emonPi LCD service..
-------------------------------------------------------------
emonPi update done: Sun 18 Oct 14:47:23 BST 2020
-------------------------------------------------------------
emonhub log
2020-10-18 15:12:36,222 DEBUG MainThread Setting MQTT pubchannels: [‘ToRFM12’]
2020-10-18 15:12:36,222 DEBUG MainThread Setting MQTT subchannels: [‘ToEmonCMS’]
2020-10-18 15:12:36,222 INFO MainThread Setting MQTT node_format_enable: 1
2020-10-18 15:12:36,223 INFO MainThread Setting MQTT nodevar_format_enable: 1
2020-10-18 15:12:36,223 INFO MainThread Setting MQTT nodevar_format_basetopic: emon/
2020-10-18 15:12:36,224 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer ‘emoncmsorg’
2020-10-18 15:12:36,225 DEBUG MainThread Setting emoncmsorg pubchannels: [‘ToRFM12’]
2020-10-18 15:12:36,225 DEBUG MainThread Setting emoncmsorg subchannels: [‘ToEmonCMS’]
2020-10-18 15:12:36,225 WARNING MainThread Setting emoncmsorg apikey: obscured
2020-10-18 15:12:36,226 INFO MainThread Setting emoncmsorg url: https://emoncms.org
2020-10-18 15:12:36,226 INFO MainThread Setting emoncmsorg senddata: 1
2020-10-18 15:12:36,226 INFO MainThread Setting emoncmsorg sendstatus: 1
2020-10-18 15:21:19,202 INFO MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2020-10-18 15:21:19,202 INFO MainThread Opening hub…
2020-10-18 15:21:19,203 INFO MainThread Logging level set to DEBUG
2020-10-18 15:21:19,203 INFO MainThread Creating EmonHubJeeInterfacer ‘RFM2Pi’
2020-10-18 15:21:19,204 ERROR MainThread Unable to create ‘RFM2Pi’ interfacer: module ‘serial’ has no attribute ‘SerialException’
2020-10-18 15:21:19,204 INFO MainThread Creating EmonHubMqttInterfacer ‘MQTT’
2020-10-18 15:21:19,206 DEBUG MainThread Setting MQTT pubchannels: [‘ToRFM12’]
2020-10-18 15:21:19,207 DEBUG MainThread Setting MQTT subchannels: [‘ToEmonCMS’]
2020-10-18 15:21:19,207 INFO MainThread Setting MQTT node_format_enable: 1
2020-10-18 15:21:19,207 INFO MainThread Setting MQTT nodevar_format_enable: 1
2020-10-18 15:21:19,207 INFO MainThread Setting MQTT nodevar_format_basetopic: emon/
2020-10-18 15:21:19,208 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer ‘emoncmsorg’
2020-10-18 15:21:19,209 DEBUG MainThread Setting emoncmsorg pubchannels: [‘ToRFM12’]
2020-10-18 15:21:19,210 DEBUG MainThread Setting emoncmsorg subchannels: [‘ToEmonCMS’]
2020-10-18 15:21:19,210 WARNING MainThread Setting emoncmsorg apikey: obscured
2020-10-18 15:21:19,210 INFO MainThread Setting emoncmsorg url: https://emoncms.org
2020-10-18 15:21:19,211 INFO MainThread Setting emoncmsorg senddata: 1
2020-10-18 15:21:19,211 INFO MainThread Setting emoncmsorg sendstatus: 1