Community
OpenEnergyMonitor

Community

Keeping an EmonSD installation up to date

(Craig Fryer) #1

What is the correct method to keep a RPi running emonSD-30Oct18 up to date?

In this sense I mean the current version of EMONCMS & Linux.

0 Likes

New emonSD release: emonSD-30Oct18 (Raspbian Stretch Pi3B+ compatible) :tada:
(Brian Orpin) #2

Hi @whatsupskip, If it is a pure SD image on an RPi (as opposed to the EmonPi) then there will be 2 parts.

The underlying system. The EmonSD is built off a Rasbian Stretch Lite base image. The recommended way from them to update is

sudo apt-get update
sudo apt-get dist-upgrade

This was slightly surprising to me as I usually just use upgrade rather than dist-upgrade but it is the recommended method.

To update EmonCMS, there are 2 paths.

The simplest way is to use the update script when a new release is made. Current release is 9.9.5, but 9.9.6 is in the wings. There is a new update script coming with that, which will keep things simple (we hope). This deos not update the underlying system.

If you are a little more adventurous then there are 2 different branches of the software called master and stable. The master branch has the latest fixes etc that are rolled up into releases on stable branch. If you are interested, I can take you through that.

In all cases, it is a good idea to take a backup before doing any significant upgrades.

0 Likes

(Craig Fryer) #3

Yes, I had seen this mentioned else where and this is why I asked.
Thank you for clarifying this for me.

0 Likes

(ian) #4

Definitely a full image back up before you use dist-upgrade.
I seem to recall I tried it on emoncms and it really screwed things up. From that point on I never used dist-upgrade.

1 Like

(Craig Fryer) #5

There could have been another cause, but my system wouldn’t work properly after using dist-upgrade.

0 Likes

(Sam) #6

@whatsupskip see my threads here and here. I had some issues on dist-upgrade due to some changes to service file.

0 Likes

(Lee) #7

Hi Brian, where can I find this update script?

0 Likes

(Brian Orpin) #8

This thread was primarily about updating the underlying OS but I am guessing you are asking about EmonCMS.

It depends on what Version of EmonCMS you are are running and on what hardware.

0 Likes

(Lee) #9

Ah, that would be…

Powered by [OpenEnergyMonitor.org] | [low-write 9.8.30 | 2018.05.08]

On a Raspbery Pi !

0 Likes

(Brian Orpin) #10

That I think is the old Jessie image. There have been some changes that mean there are sometime issues with doing an update. The preferred solution is to backup the data and start with a fresh SD Card (which is on the newer ‘Stretch’ Raspbian). I’d suggest a new SD card so if all else fails you can put the old one back in and you have a small gap in your data collection.

Do you have an EmonBase (the little RFM card)?

0 Likes

(Lee) #11

Brian, you are indeed correct, I’ve just checked and it is running Jessie, and I do use the EmonBase/RFM69Pi.
So, as you suggest I guess it’s best just to rip out & replace. Fortunately, I have a spare RPi I can set it up on & tinker with (as I have lot’s of NodeRed stuff running too) before big switcher over.

Just one last question, any idea when the next version is due out? Is it likely to be October?

0 Likes

(Brian Orpin) #12

Probably not. Next release will be Buster and there will not be any immediate need to move. The aim is to make the backup and restore process simpler and more robust.

0 Likes

(Lee) #13

Excellent! Thanks for your help, that’s me busy this weekend then! :smiley:

1 Like