Community
OpenEnergyMonitor

Community

Emoncms V10.0.0-beta master branch release

This issue should now be fixed by this PR which has now been merged into master. Please could you try to update and test.

Thanks

Yes fixed. Thanks.

2 Likes

A post was split to a new topic: emonSD issues created using new scripts

@glyn.hudson
Just opened a PR on sync module to solve problems with EmonCMSV10

1 Like

Did update to v10 but I did not changed to the new device beta module. Now i got the old behavior of the inputs and feeds.
Also strugling to find my api key ?
I see the Admin-Users. but clicking on the id does not do anything.

never mind. i should rtfm
found my account symbol on the top right. need to get used to it…
hmm. changing gives a error…
error

Did you also update the device module?

Got the script. updates everything.
new git pull update did update to v 10.0.1 now its working…

1 Like

@glyn.hudson @emrys
I’ve opened a PR on config module to make the button restart functionnal : I involved the python service-runner - hope it is OK from yur side …


don’t know if the same trouble was experienced by other users ?
The new UI is really awesome :slight_smile: nice work - the improvment in the admin module is significant !
best
Alex

Thanks a lot @alexandrecuer, that’s great! I’ve just merged your PR. Good spot.

Thanks for the positive feedback.

After update my emonpi to V10.0.2 there are a lot of errors.
I leave some pictures of the lcd




I hope you can help me…

Can you post your emonpiupdate.log? Have you tried restarting emonhub from the emonhub config page in emoncms?

The log

LAST ENTRIES ON THE LOG FILE
Starting emonPi Update >
via service-runner-update.sh
Service Runner update script V1.1.1
EUID: 1000
Argument: emonhub
Fri 24 May 19:30:28 UTC 2019
#############################################################

emonSD version: emonSD-26Oct17

emonSD base image check passed...continue update

#############################################################
I2C LCD DETECTED Ox27
Filesystem is unlocked - Write access
type ' rpi-ro ' to lock
git pull /home/pi/emonpi
* master
wifiap
On branch master
Your branch is behind 'origin/master' by 142 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified: lcd/emonPiLCD.cfg

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

1

no changes added to commit (use "git add" and/or "git commit -a")
error: Your local changes to the following files would be overwritten by merge:
lcd/emonPiLCD.cfg
Please, commit your changes or stash them before you can merge.
Aborting
Updating b9af6a8..57ca523
git pull /home/pi/RFM2Pi
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/emonhub
K0den-wibeee_interface
* emon-pi
hmm01i-syslogging
On branch emon-pi
Your branch is up-to-date with 'origin/emon-pi'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/oem_openHab
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/usefulscripts
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/huawei-hilink-status
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.

Start emonPi Atmega328 firmware update:

=================================
EmonPi update started
=================================

EUID: 1000

Could not fetch URL https://pypi.python.org/simple/paho-mqtt/: There was a problem confirming the ssl certificate: ("bad handshake: SysCallError(104, 'Connection reset by peer')",) - skipping
Requirement already up-to-date: paho-mqtt in /usr/local/lib/python2.7/dist-packages
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://ppa.launchpad.net xenial InRelease
Get:1 http://archive.raspberrypi.org jessie/main armhf Packages [170 kB]
Hit http://ppa.launchpad.net xenial/main Sources
Ign http://dl.bintray.com stable InRelease
Hit http://ppa.launchpad.net xenial/main armhf Packages
Get:2 http://dl.bintray.com stable Release.gpg [821 B]
Hit http://ppa.launchpad.net xenial/main Translation-en
Get:3 http://archive.raspberrypi.org jessie/ui armhf Packages [58.9 kB]
Get:4 http://dl.bintray.com stable Release [6,051 B]
Get:5 http://dl.bintray.com stable/main armhf Packages [77.8 kB]
Ign http://dl.bintray.com stable/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://dl.bintray.com stable/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Hit http://mirrordirector.raspbian.org jessie InRelease
Get:6 http://repo.mosquitto.org jessie InRelease [11.0 kB]
Err http://repo.mosquitto.org jessie InRelease

Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 325 kB in 13s (24.3 kB/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mosquitto.org jessie InRelease: The following signatures were invalid: KEYEXPIRED 1515017477 KEYEXPIRED 1515017477 KEYEXPIRED 1515017477

W: Failed to fetch http://repo.mosquitto.org/debian/dists/jessie/InRelease

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
rng-tools is already the newest version.
python-gpiozero is already the newest version.
python-rpi.gpio is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
Start ATmega328 serial upload using avrdude with latest.hex
Discrete Sampling
avrdude -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 115200 -U flash:w:/home/pi/emonpi/firmware/compiled/latest.hex
avrdude-original: Using autoreset DTR on GPIO Pin 7

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

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

avrdude-original: Device signature = 0x1e950f
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 "/home/pi/emonpi/firmware/compiled/latest.hex"
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
avrdude-original: writing flash (17886 bytes):

Writing | ################################################## | 100% 2.49s

avrdude-original: 17886 bytes of flash written
avrdude-original: verifying flash memory against /home/pi/emonpi/firmware/compiled/latest.hex:
avrdude-original: load data flash data from input file /home/pi/emonpi/firmware/compiled/latest.hex:
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex contains 17886 bytes
avrdude-original: reading on-chip flash data:

Reading | ################################################## | 100% 1.88s

avrdude-original: verifying ...
avrdude-original: 17886 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


Start emonhub update script:

=================================
emonHub update started
=================================
emonhub.service already installed

Running emonhub automatic node addition script
EUID: 1000
[[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
[[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:

===========================================
Emoncms update started
Emoncms update script V1.2.1 (6th Feb 2019)
Fri 24 May 19:31:33 UTC 2019
===========================================

username: pi

Checking environment:
- User directory /home/pi found
- pi user and pi user directory found
- emonSD version: emonSD-26Oct17
- emoncms directory: /var/www/emoncms

EUID: 1000
/home/pi/emonpi/emonhub-sudoers: parsed OK

emonhub service control sudoers entry installed
www-data : www-data video systemd-journal

current settings.php md5: 468b110786bf0ab60a856fa3c0036f0f
Default settings.php md5: 468b110786bf0ab60a856fa3c0036f0f

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

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

NEW default settings.php md5: 468b110786bf0ab60a856fa3c0036f0f
settings.php has NOT been user modifed
settings.php not updated

==========================================
UPDATING EMONCMS MODULES
==========================================

------------------------------------------
Updating /var/www/emoncms/Modules/app module
------------------------------------------
- git branch: stable
- git tags: 1.2.0-108-g6e5016a
- no local changes
- running: git pull origin stable

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

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

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

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

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

------------------------------------------
Updating /var/www/emoncms/Modules/device module
------------------------------------------
- git branch: master
- git tags: 1.1.1-46-g8ac9145
- no local changes
- running: git pull origin master

From https://github.com/emoncms/device
* branch master -> FETCH_HEAD
Already up-to-date.

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

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

------------------------------------------
Updating /var/www/emoncms/Modules/wifi module
------------------------------------------
- git branch: stable
- git tags: 1.2.0-39-gb67783d
- no local changes
- running: git pull origin stable

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

------------------------------------------
Updating postprocess module
------------------------------------------
- git branch: emonpi
fatal: No names found, cannot describe anything.
- git tags:
- no local changes
- running: git pull origin emonpi

From https://github.com/emoncms/postprocess
* branch emonpi -> FETCH_HEAD
Already up-to-date.

------------------------------------------
Updating sync module
------------------------------------------
- git branch: master
- git tags: 1.0.0-21-g24ebf88
- no local changes
- running: git pull origin master

From https://github.com/emoncms/sync
* branch master -> FETCH_HEAD
Already up-to-date.

------------------------------------------
Updating backup module
------------------------------------------
- git branch: stable
- git tags: 1.1.6-38-g18c6189
- no local changes
- running: git pull origin stable

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

==========================================
AUTO INSTALL EMONCMS MODULES
==========================================
- graph module already installed
- device module already installed
- postprocess module already installed
- sync module already installed
- backup module already installed


==========================================
SERVICES
==========================================
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed
------------------------------------------
Update Emoncms database
[]

Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---
- sudo systemctl restart emonhub.service
--- ActiveState=active ---
- sudo /etc/init.d/openhab restart
Restarting openhab (via systemctl): openhab.service.
● openhab.service - Starts and stops the openHAB Home Automation Bus
Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled)
Active: active (running) since Fri 2019-05-24 19:31:52 UTC; 94ms ago
Docs: http://www.openhab.org
Process: 23907 ExecStartPre=/usr/share/openhab/bin/setpermissions.sh (code=exited, status=0/SUCCESS)
Main PID: 23956 (openhab.sh)
CGroup: /system.slice/openhab.service
├─23956 /bin/sh /usr/share/openhab/bin/openhab.sh -o
└─23979 /usr/bin/java -Dlogback.configurationFile=/etc/openhab/logback.xml -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=8080 -Dopenhab.configfile=/etc/openhab/configurations/openhab.cfg -Dopenhab.configdir=/etc/openhab/configurations -Dopenhab.logdir=/var/log/openhab -Dsmarthome.userdata=/var/lib/openhab -Djetty.home=/usr/share/openhab -Djetty.port.ssl=8443 -Djetty.config=/etc/openhab/jetty -Djetty.logs=/var/log/openhab -Djetty.rundir=/usr/share/openhab -Dfelix.fileinstall.dir=/usr/share/openhab/addons -Dfelix.fileinstall.filter=.*\.jar -Djava.library.path=/usr/share/openhab/lib -Djava.security.auth.login.config=/etc/openhab/login.conf -Dorg.quartz.properties=/etc/openhab/quartz.properties -Dequinox.ds.block_timeout=240000 -Dequinox.scr.waitTimeOnBlock=60000 -Dfelix.fileinstall.active.level=4 -Djava.awt.headless=true -jar /usr/share/openhab/server/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -configuration /var/lib/openhab/workspace -data /var/lib/openhab/workspace -console 5555

May 24 19:31:52 emonpi setpermissions.sh[23907]: setting owner openhab:openhab recursively for /var/lib/openhab
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab recursively for /var/log/openhab
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab recursively for /etc/openhab/configurations
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab for /usr/share/openhab/webapps/static
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab for /etc/openhab/jetty/etc/keystore
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab for /etc/openhab/configurations/users.cfg
May 24 19:31:52 emonpi systemd[1]: Started Starts and stops the openHAB Home Automation Bus.

set log rotate config owner to root

------------------------------------------
Emoncms update script complete
------------------------------------------


Starting emonPi LCD service..

Filesystem is locked - Read Only access
type ' rpi-rw ' to unlock
Fri 24 May 19:31:58 UTC 2019


...................
emonPi update done
restarting service-runner

Yes, I try
But it seems not working…

-- Logs begin at Fri 2019-05-24 17:37:44 UTC, end at Fri 2019-05-24 21:41:22 UTC. --
May 24 19:31:47 emonpi systemd[1]: Started emonHub service description.
May 24 19:31:48 emonpi emonhub.py[23841]: usage: emonhub.py [-h] [--config-file CONFIG_FILE] [--logfile LOGFILE]
May 24 19:31:48 emonpi emonhub.py[23841]: [--show-settings] [--version]
May 24 19:31:48 emonpi emonhub.py[23841]: emonhub.py: error: argument --logfile: can't open '/var/log/emonhub/emonhub.log': [Errno 2] No such file or directory: '/var/log/emonhub/emonhub.log'
May 24 19:31:48 emonpi systemd[1]: emonhub.service: main process exited, code=exited, status=2/INVALIDARGUMENT
May 24 19:31:48 emonpi systemd[1]: Unit emonhub.service entered failed state.
May 24 19:31:48 emonpi systemd[1]: emonhub.service holdoff time over, scheduling restart.
May 24 19:31:48 emonpi systemd[1]: Stopping emonHub service description...
May 24 19:31:48 emonpi systemd[1]: Starting emonHub service description...
May 24 19:31:48 emonpi systemd[1]: Started emonHub service description.
May 24 19:31:49 emonpi emonhub.py[23849]: usage: emonhub.py [-h] [--config-file CONFIG_FILE] [--logfile LOGFILE]
May 24 19:31:49 emonpi emonhub.py[23849]: [--show-settings] [--version]
May 24 19:31:49 emonpi emonhub.py[23849]: emonhub.py: error: argument --logfile: can't open '/var/log/emonhub/emonhub.log': [Errno 2] No such file or directory: '/var/log/emonhub/emonhub.log'
May 24 19:31:49 emonpi systemd[1]: emonhub.service: main process exited, code=exited, status=2/INVALIDARGUMENT
May 24 19:31:49 emonpi systemd[1]: Unit emonhub.service entered failed state.
May 24 19:31:49 emonpi systemd[1]: emonhub.service holdoff time over, scheduling restart.
May 24 19:31:49 emonpi systemd[1]: Stopping emonHub service description...
May 24 19:31:49 emonpi systemd[1]: Starting emonHub service description...
May 24 19:31:49 emonpi systemd[1]: Started emonHub service description.
May 24 19:31:49 emonpi emonhub.py[23855]: usage: emonhub.py [-h] [--config-file CONFIG_FILE] [--logfile LOGFILE]
May 24 19:31:49 emonpi emonhub.py[23855]: [--show-settings] [--version]
May 24 19:31:49 emonpi emonhub.py[23855]: emonhub.py: error: argument --logfile: can't open '/var/log/emonhub/emonhub.log': [Errno 2] No such file or directory: '/var/log/emonhub/emonhub.log'
May 24 19:31:50 emonpi systemd[1]: emonhub.service: main process exited, code=exited, status=2/INVALIDARGUMENT
May 24 19:31:50 emonpi systemd[1]: Unit emonhub.service entered failed state.
May 24 19:31:50 emonpi systemd[1]: emonhub.service holdoff time over, scheduling restart.
May 24 19:31:50 emonpi systemd[1]: Stopping emonHub service description...
May 24 19:31:50 emonpi systemd[1]: Starting emonHub service description...
May 24 19:31:50 emonpi systemd[1]: emonhub.service start request repeated too quickly, refusing to start.
May 24 19:31:50 emonpi systemd[1]: Failed to start emonHub service description.
May 24 19:31:50 emonpi systemd[1]: Unit emonhub.service entered failed state.

I haven’t yet looked through the whole file, but right at the top it seems the emonpi repo has failed to update because you have some local changes.

git pull /home/pi/emonpi
* master
wifiap
On branch master
Your branch is behind 'origin/master' by 142 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified: lcd/emonPiLCD.cfg

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

1

no changes added to commit (use "git add" and/or "git commit -a")
error: Your local changes to the following files would be overwritten by merge:
lcd/emonPiLCD.cfg
Please, commit your changes or stash them before you can merge.
Aborting
Updating b9af6a8..57ca523

This is not the first time this has come up! (see Has /var/log Filling up Been Fixed?) I’m gonna take a wild stab and say you have possibly edited the timeout for the lcd backlight?

You need to either undo the changes, git stash or force an update, depending on what the changes are and if you want/need to keep them.

[duplicated the emonpiupdate.log info from above in a easier format for reading below]

Starting emonPi Update >
via service-runner-update.sh
Service Runner update script V1.1.1
EUID: 1000
Argument: emonhub
Fri 24 May 19:30:28 UTC 2019
#############################################################

emonSD version: emonSD-26Oct17

emonSD base image check passed...continue update

#############################################################
I2C LCD DETECTED Ox27
Filesystem is unlocked - Write access
type ' rpi-ro ' to lock
git pull /home/pi/emonpi
* master
  wifiap
On branch master
Your branch is behind 'origin/master' by 142 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git checkout -- ..." to discard changes in working directory)

	modified:   lcd/emonPiLCD.cfg

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

	1

no changes added to commit (use "git add" and/or "git commit -a")
error: Your local changes to the following files would be overwritten by merge:
	lcd/emonPiLCD.cfg
Please, commit your changes or stash them before you can merge.
Aborting
Updating b9af6a8..57ca523
git pull /home/pi/RFM2Pi
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/emonhub
  K0den-wibeee_interface
* emon-pi
  hmm01i-syslogging
On branch emon-pi
Your branch is up-to-date with 'origin/emon-pi'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/oem_openHab
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/usefulscripts
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/huawei-hilink-status
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.

Start emonPi Atmega328 firmware update:

=================================
EmonPi update started
=================================

EUID: 1000

Could not fetch URL https://pypi.python.org/simple/paho-mqtt/: There was a problem confirming the ssl certificate: ("bad handshake: SysCallError(104, 'Connection reset by peer')",) - skipping
Requirement already up-to-date: paho-mqtt in /usr/local/lib/python2.7/dist-packages
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://ppa.launchpad.net xenial InRelease
Get:1 http://archive.raspberrypi.org jessie/main armhf Packages [170 kB]
Hit http://ppa.launchpad.net xenial/main Sources
Ign http://dl.bintray.com stable InRelease
Hit http://ppa.launchpad.net xenial/main armhf Packages
Get:2 http://dl.bintray.com stable Release.gpg [821 B]
Hit http://ppa.launchpad.net xenial/main Translation-en
Get:3 http://archive.raspberrypi.org jessie/ui armhf Packages [58.9 kB]
Get:4 http://dl.bintray.com stable Release [6,051 B]
Get:5 http://dl.bintray.com stable/main armhf Packages [77.8 kB]
Ign http://dl.bintray.com stable/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://dl.bintray.com stable/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Hit http://mirrordirector.raspbian.org jessie InRelease
Get:6 http://repo.mosquitto.org jessie InRelease [11.0 kB]
Err http://repo.mosquitto.org jessie InRelease
  
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 325 kB in 13s (24.3 kB/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mosquitto.org jessie InRelease: The following signatures were invalid: KEYEXPIRED 1515017477 KEYEXPIRED 1515017477 KEYEXPIRED 1515017477

W: Failed to fetch http://repo.mosquitto.org/debian/dists/jessie/InRelease  

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
rng-tools is already the newest version.
python-gpiozero is already the newest version.
python-rpi.gpio is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
Start ATmega328 serial upload using avrdude with latest.hex
Discrete Sampling
avrdude -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 115200 -U flash:w:/home/pi/emonpi/firmware/compiled/latest.hex
avrdude-original: Using autoreset DTR on GPIO Pin 7

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

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

avrdude-original: Device signature = 0x1e950f
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 "/home/pi/emonpi/firmware/compiled/latest.hex"
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
avrdude-original: writing flash (17886 bytes):

Writing | ################################################## | 100% 2.49s

avrdude-original: 17886 bytes of flash written
avrdude-original: verifying flash memory against /home/pi/emonpi/firmware/compiled/latest.hex:
avrdude-original: load data flash data from input file /home/pi/emonpi/firmware/compiled/latest.hex:
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex contains 17886 bytes
avrdude-original: reading on-chip flash data:

Reading | ################################################## | 100% 1.88s

avrdude-original: verifying ...
avrdude-original: 17886 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


Start emonhub update script:

=================================
emonHub update started
=================================
emonhub.service already installed

Running emonhub automatic node addition script
EUID: 1000
[[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
[[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:

===========================================
Emoncms update started
Emoncms update script V1.2.1 (6th Feb 2019)
Fri 24 May 19:31:33 UTC 2019
===========================================

username: pi

Checking environment:
- User directory /home/pi found
- pi user and pi user directory found
- emonSD version: emonSD-26Oct17
- emoncms directory: /var/www/emoncms

EUID: 1000
/home/pi/emonpi/emonhub-sudoers: parsed OK

emonhub service control sudoers entry installed
www-data : www-data video systemd-journal

current settings.php md5: 468b110786bf0ab60a856fa3c0036f0f
Default settings.php md5: 468b110786bf0ab60a856fa3c0036f0f

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

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

NEW default settings.php md5: 468b110786bf0ab60a856fa3c0036f0f
settings.php has NOT been user modifed
settings.php not updated

==========================================
UPDATING EMONCMS MODULES
==========================================

------------------------------------------
Updating /var/www/emoncms/Modules/app module
------------------------------------------
- git branch: stable
- git tags: 1.2.0-108-g6e5016a
- no local changes
- running: git pull origin stable

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

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

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

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

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

------------------------------------------
Updating /var/www/emoncms/Modules/device module
------------------------------------------
- git branch: master
- git tags: 1.1.1-46-g8ac9145
- no local changes
- running: git pull origin master

From https://github.com/emoncms/device
 * branch            master     -> FETCH_HEAD
Already up-to-date.

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

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

------------------------------------------
Updating /var/www/emoncms/Modules/wifi module
------------------------------------------
- git branch: stable
- git tags: 1.2.0-39-gb67783d
- no local changes
- running: git pull origin stable

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

------------------------------------------
Updating postprocess module
------------------------------------------
- git branch: emonpi
fatal: No names found, cannot describe anything.
- git tags: 
- no local changes
- running: git pull origin emonpi

From https://github.com/emoncms/postprocess
 * branch            emonpi     -> FETCH_HEAD
Already up-to-date.

------------------------------------------
Updating sync module
------------------------------------------
- git branch: master
- git tags: 1.0.0-21-g24ebf88
- no local changes
- running: git pull origin master

From https://github.com/emoncms/sync
 * branch            master     -> FETCH_HEAD
Already up-to-date.

------------------------------------------
Updating backup module
------------------------------------------
- git branch: stable
- git tags: 1.1.6-38-g18c6189
- no local changes
- running: git pull origin stable

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

==========================================
AUTO INSTALL EMONCMS MODULES
==========================================
- graph module already installed
- device module already installed
- postprocess module already installed
- sync module already installed
- backup module already installed


==========================================
SERVICES
==========================================
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed
------------------------------------------
Update Emoncms database
[]

Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---
- sudo systemctl restart emonhub.service
--- ActiveState=active ---
- sudo /etc/init.d/openhab restart
Restarting openhab (via systemctl): openhab.service.
● openhab.service - Starts and stops the openHAB Home Automation Bus
   Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled)
   Active: active (running) since Fri 2019-05-24 19:31:52 UTC; 94ms ago
     Docs: http://www.openhab.org
  Process: 23907 ExecStartPre=/usr/share/openhab/bin/setpermissions.sh (code=exited, status=0/SUCCESS)
 Main PID: 23956 (openhab.sh)
   CGroup: /system.slice/openhab.service
           ├─23956 /bin/sh /usr/share/openhab/bin/openhab.sh -o
           └─23979 /usr/bin/java -Dlogback.configurationFile=/etc/openhab/logback.xml -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=8080 -Dopenhab.configfile=/etc/openhab/configurations/openhab.cfg -Dopenhab.configdir=/etc/openhab/configurations -Dopenhab.logdir=/var/log/openhab -Dsmarthome.userdata=/var/lib/openhab -Djetty.home=/usr/share/openhab -Djetty.port.ssl=8443 -Djetty.config=/etc/openhab/jetty -Djetty.logs=/var/log/openhab -Djetty.rundir=/usr/share/openhab -Dfelix.fileinstall.dir=/usr/share/openhab/addons -Dfelix.fileinstall.filter=.*\.jar -Djava.library.path=/usr/share/openhab/lib -Djava.security.auth.login.config=/etc/openhab/login.conf -Dorg.quartz.properties=/etc/openhab/quartz.properties -Dequinox.ds.block_timeout=240000 -Dequinox.scr.waitTimeOnBlock=60000 -Dfelix.fileinstall.active.level=4 -Djava.awt.headless=true -jar /usr/share/openhab/server/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -configuration /var/lib/openhab/workspace -data /var/lib/openhab/workspace -console 5555

May 24 19:31:52 emonpi setpermissions.sh[23907]: setting owner openhab:openhab recursively for /var/lib/openhab
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab recursively for /var/log/openhab
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab recursively for /etc/openhab/configurations
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab for /usr/share/openhab/webapps/static
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab for /etc/openhab/jetty/etc/keystore
May 24 19:31:52 emonpi setpermissions.sh[23907]: setting permissions and owner openhab:openhab for /etc/openhab/configurations/users.cfg
May 24 19:31:52 emonpi systemd[1]: Started Starts and stops the openHAB Home Automation Bus.

set log rotate config owner to root

------------------------------------------
Emoncms update script complete
------------------------------------------


Starting emonPi LCD service..

Filesystem is locked - Read Only access
type ' rpi-rw ' to unlock
Fri 24 May 19:31:58 UTC 2019


...................
emonPi update done
restarting service-runner

There are some other errors noted below, but the first thing to do is to sort the local changes mentioned above, then re-run the updater to try and get everything back in line.

I recommend you only use “update all” for now and avoid doing any partial updates, oddly, this seems to be an “emonhub only” update, but it’s gone a bit pear shaped as the installed emonpi repo version wasn’t ready for the latest emoncms update buttons.

Argument: emonhub

There are some problems reported with updating paho-mqtt

Could not fetch URL https://pypi.python.org/simple/paho-mqtt/: There was a problem confirming the ssl certificate: ("bad handshake: SysCallError(104, 'Connection reset by peer')",) - skipping
Requirement already up-to-date: paho-mqtt in /usr/local/lib/python2.7/dist-packages

and with mosquitto

Get:6 http://repo.mosquitto.org jessie InRelease [11.0 kB]
Err http://repo.mosquitto.org jessie InRelease

. . . 

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mosquitto.org jessie InRelease: The following signatures were invalid: KEYEXPIRED 1515017477 KEYEXPIRED 1515017477 KEYEXPIRED 1515017477

W: Failed to fetch http://repo.mosquitto.org/debian/dists/jessie/InRelease  

W: Some index files failed to download. They have been ignored, or old ones used instead.

There was a “fatal” error when updating the postprocess module, but I think that wasn’t as “fatal” as it made out

-----------------------------------------
Updating postprocess module
------------------------------------------
- git branch: emonpi
fatal: No names found, cannot describe anything.

It also looks like the logrotate changes have not been made

set log rotate config owner to root

As for emonhub not starting, that is due to a missing log file, as far as I’m aware that is created by the revised updater in emonpi, but that update failed due to the local changes. This should get resolved automatically when the emonpi repo can be updated, that might apply to more of those issues too, so we need to get that done first.

Yes, you are right .
I have changed the timeout for the lcd backlight?
There has a update that the backlight do not turn off, and I follow the instructions of someone’s of the community to change it.

After set to 0 again the timeout of LCD backlight, and apply the full update.
The system is working normal again.

1 Like

I have just upgraded to Version 10.0.2 and have lost the App icon in the top tool bar.
Apps work if I navigate directly to them. It is just the icon missing.
Any suggestions on how to get it back?

Thanks
Screenshot_2019-05-30_11-05-47

Hello @Derek_Jennings is your system an emonpi/emonbase? did you perform an emonpi/emonbase update to the whole system or just update emoncms on its own?

If you updated using the emonpi/emonbase update, it sounds like there may be a local change to your app module that is blocking the update of the app module, could this be the case?