Community
OpenEnergyMonitor

Community

emonPi update Emoncms V9.8.28

Tags: #<Tag:0x00007f6e0f486820>

I’ve just checked the change logs for emoncms and found that there is an update. V9.8.28 | 2018.01.27
@glyn.hudson released this 6 days ago

I’ve logged onto my admin page and executed the emonpi update. ( I have the log copied but don’t know how to upload. ) anyway after the update my server information screen still shows

Server Information
Emoncms Version low-write 9.8.27 | 2017.12.21

I’ve run the update database but nothing required updating.

Is there anything else I need to do to execute/activate the update?

Regards John

I updated my emonpi a few days ago using the same steps you described - going to Setup - Administration - emonPi Update. I don’t recall having to do anything else and both my emonPi’s are 9.8.28 | 2018.01.27.
You can upload the log file when you compose a reply using the upload icon:
upload
Maybe your logs will reveal more info on the subject.

emonpiupdate (2).log.txt (6.3 KB)

Thanks Liviu hadn’t used the upload icon before.

Log file attached (I hope)

You can indeed, but you will make helping you easier for others by putting the log straight into the thread using code blocks (3 backward ticks ``` before and after the log) .

```

log goes here

```

Like so…

Filesystem is unlocked - Write access
type ' rpi-ro ' to lock
I2C LCD DETECTED Ox27
Starting emonPi Update >
via service-runner-update.sh
Service Runner update script V1.0.0
EUID: 1000
Argument: emonpi
Fri  2 Feb 09:16:47 UTC 2018
#############################################################

emonSD version: emonSD-26Oct17

emonSD base image check passed...continue update

#############################################################
Filesystem is unlocked - Write access
type ' rpi-ro ' to lock
git pull /home/pi/emonpi
* master
  wifiap
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	1
	hardware/emonpi/emonpi2c/

nothing added to commit but untracked files present (use "git add" to track)
Updating d7ebe03..b29abce
Fast-forward
 docs/SD-card-build.md                       |   26 +-
 emoncmsupdate                               |    2 +-
 firmware/compiled/archive/emonPi_V2.8.4.hex | 1123 ++++++++++++++
 firmware/compiled/archive/emonPi_V2.9.0.hex | 1120 ++++++++++++++
 firmware/compiled/latest.hex                | 2215 +++++++++++++--------------
 firmware/compiled/readme.md                 |    8 +-
 firmware/readme.md                          |   16 +-
 firmware/src/lcd_serial.ino                 |   16 +-
 firmware/src/src.ino                        |   48 +-
 firmware/src/startup.ino                    |    4 +-
 lcd/emonPiLCD.py                            |   20 +-
 11 files changed, 3432 insertions(+), 1166 deletions(-)
 create mode 100644 firmware/compiled/archive/emonPi_V2.8.4.hex
 create mode 100644 firmware/compiled/archive/emonPi_V2.9.0.hex
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
Updating 40b3035..f9748ef
Fast-forward
 configuration.md                      | 34 ++++++++++++++++++++++++++++++++++
 src/interfacers/emonhub_interfacer.py |  4 ++++
 2 files changed, 38 insertions(+)
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

Requirement already up-to-date: paho-mqtt in /usr/local/lib/python2.7/dist-packages
Stopping OpenEnergyMonitor emonHub: emonhub has been stopped ok.
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
Starting OpenEnergyMonitor emonHub: emonhub has been started ok.
[email protected] node_modules/node-red-node-emoncms


Start emonhub update script:

=================================
EmonPi update started
=================================
Running emonhub automatic node addition script
EUID: 1000
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.1.1

Fri  2 Feb 09:17:55 UTC 2018

#############################################################

emonSD version: emonSD-26Oct17

emonSD base image check pass...continue update

#############################################################
EUID: 1000
Checking cron tab for service runner entry...
Add service runner cron entry

current settings.php md5: c000f614aacbb38d288f0e3dbe9cfb88
Default settings.php md5: c000f614aacbb38d288f0e3dbe9cfb88

git pull /var/www/emoncms
  dev-mosquitto-php
  master
* stable
  symlinked_modules
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean

NEW default settings.php md5: c000f614aacbb38d288f0e3dbe9cfb88
settings.php had NOT been user modifed
settings.php not updated


git pull /var/www/emoncms/Modules/app
  9.0
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean

git pull /var/www/emoncms/Modules/config
  9.0
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean

git pull /var/www/emoncms/Modules/wifi
  9.0
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean
git pull /var/www/emoncms/Modules/dashboard
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean

git pull /var/www/emoncms/Modules/graph
  master
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean

git pull /home/pi/postprocess
git pull /home/pi/backup
  master
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean

update mqtt_input systemd unit file

Update Emoncms database
[]

Restarting Services...
Restarting OpenEnergyMonitor emonHub: emonhub has been restarted ok.
Log is turned off
Restarting feedwriter

Restarting openhab (via systemctl): openhab.service.


set log rotate config owner to root
Restarting Services...


Starting emonPi LCD service..

Filesystem is locked - Read Only access
type ' rpi-rw ' to unlock
Fri  2 Feb 09:18:31 UTC 2018


...................
emonPi update done

this excerpt

git pull /var/www/emoncms
  dev-mosquitto-php
  master
* stable
  symlinked_modules
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean

NEW default settings.php md5: c000f614aacbb38d288f0e3dbe9cfb88
settings.php had NOT been user modifed
settings.php not updated

suggests you are up to date, @glyn.hudson might know more.

Have you tried a shutdown of your emonPi?

Just done a reboot. Still no update showing.

Hi John,

Very sorry to hear that the update has not worked for you. Your update log looks ok, it just seems to not be pulling in the latest commits from github. Could you try running update again. If this does’t work are you able to connect to the emonPi via ssh then run the following commands then post the full output you get on this thread:

rpi-rw
cd /var/www/emoncms
git status
git log | head
git branch
git pull 
rpi-ro

Okay has just run update again and all fixed. Thank you all for assistance.