Problems upgrading to 11.7.3

Tried to update my EmonPi via the admin page but it does nothing, any ideas?

Git:
URL : GitHub - emoncms/emoncms: Web-app for processing, logging and visualising energy, temperature and other environmental data
Branch : * master
Describe : 11.6.7

This is the current version.

John

1 Like

Hello @JJC what emonSD image version do you have? Should be on the Admin Info page

1 Like

@TrystanLea

Hi,

The image I am running is

emonpiRelease: emonSD-24Jul20

John

Thanks @JJC that one is on the list so should work, perhaps try a reboot and then run it again?

1 Like

@TrystanLea

Tried a reboot and then clicked the update button but still nothing happened :frowning:
I can give you access to the system if you have the time and would like a look, just let me know.

John

@TrystanLea Same problem for me on my emonBase with RFM69Pi (ATmega328).

at the moment from admin/system info
Pi Model Raspberry Pi 3 Model B+ Rev 1.3 - 1GB (Sony UK)
emoncms version: low-write 11.6.8
emonpiRelease: emonSD-21Jul21

From admin/components, all are on the Master branch

Clicking on admin/update/release info I get 11.7.3 from

Clicking on either
admin/update/Full Update or
admin/update/Update Emoncms
a blank Update Log window appears but nothing happens.
I’ve tried rebooting but it doesn’t help.

From what I remember the update mechanism used to work. The emonBase is running fine at the moment, but I just wanted to update it. I’d be grateful for any help.

Thanks

@TrystanLea @rupert

This is exactly the same issue I get though my version is
emonpiRelease: emonSD-24Jul20
low-write 11.6.7

I also purchased a new card from the shop to try a complete update but when I try the “update from USB” from the backup option using the old SD card it gives a fatal SQL error and trashes the new card. I rebuilt the card from the downloadable image and tried again with the same result. I am back on the original card for the moment as this is still working OK.
Any ideas gratefully accepted :slight_smile:

John

My only idea was to flash a spare SD card with the latest image but from what you’re saying that doesn’t look too promising!

@JJC
I wonder if the problems might be something to do with this?
from the emonSD download page -

emonSD-01Feb24

Download (1.4 GB): UK Server

Note: There is a known issue with this image when used with emonPi v1 hardware. A small modification to /boot/cmdline.txt is needed to fix. Please see: https://community.openenergymonitor.org/t/problem-with-01feb24-emoncms-image/27013/4.

as the problem above is with a RaspberryPi 3 B+. However it seems to be a boot issue, so I don’t know if it’s connected to our problem,

Apologies @rupert @JJC I will boot up a emonSD-24Jul20 image today and see what is happening.

Thank you :smiley:

Thanks all :slight_smile:

Hmm, our backup copy of emonSD-24Jul20 seems to be bricking SD cards, 3 so far, @JJC could I take you up trying to fix this via remote access to your system? Feel free to PM me connection details.

@TrystanLea @JJC
Now I am confused!
I found a copy of emonSD-24Jul20 on my PC. Out of interest I flashed it to a 16GB SD card using SUSE Studio Imagewriter and put it into a spare Pi 3B+ (no RFM69 module).
After spending some time trying to remember how to set up an emonBase(!) I got it going, registered and logged in. I switched the components to Master and did a full update - which unexpectly seemed to work.
In the Admin/System Info I now get:

Emoncms 	Version :	 low-write 11.8.6
	Git :	 
		URL :	 https://github.com/emoncms/emoncms.git
		Branch :	 * master
		Describe :	 11.7.4-112-g25e3a46b
	Components :	 Emoncms Core v11.8.6 | App v3.1.4 | EmonHub Config v2.1.5 | Dashboard v2.4.1 | Device v2.3.0 | Graph v2.2.6 | Network Setup v1.0.5 | WiFi v2.1.1 | Backup v2.3.4 | DemandShaper v2.2.3 | Postprocess v2.4.8 | Sync v3.2.1 | Usefulscripts v2.3.13 | EmonScripts v1.8.15 | RFM2Pi v1.4.3 | Avrdude-rpi v1.0.3 | Emonhub v2.7.6 | EmonPi v3.0.3

But I seem to have an Emoncms version of 11.8.6 while I think that the latest version is 11.7.3?
Have I done something silly?

EDIT
I’ve just noticed that the github entry says version 11.7.4? Clicking on admin/update/release info I get 11.7.3

No that’s fine, 11.8.6 is the latest master branch, the latest stable release is 11.7.3 and latest tag 11.7.4.

I’ve tracked down @JJC’s issue to this error when trying to run an update (available from the browser network tab):

<br />
<b>Fatal error</b>:  Uncaught Error: Call to private method Admin::runService() from context '' in /var/www/emoncms/Modules/admin/admin_controller.php:342
Stack trace:
#0 /var/www/emoncms/core.php(80): admin_controller()
#1 /var/www/emoncms/index.php(257): controller('admin')
#2 {main}
  thrown in <b>/var/www/emoncms/Modules/admin/admin_controller.php</b> on line <b>342</b><br />

On Oct the 8th 2024 I made a commit that inadvertently broke the update mechanism here harden getServiceStatus and setService · emoncms/emoncms@cc8d526 · GitHub then @reedy fixed it on Nov 7th here admin_model.php: Make runService public again · emoncms/emoncms@ef0299f · GitHub.

Systems updated between these date will unfortunately get stuck and need to be fixed via a luckily relatively simple SSH update of emoncms core:

cd /var/www/emoncms
git pull origin master

Then try running the full update again from the UI so that the rest of the system is updated.

1 Like

@TrystanLea
Thanks very much for the help.

On the test emonBase, I should have realised that the master and stable branches would have different version numbers. :flushed_face:

On the working emonBase, I ssh’ed in, typed your commands and the full update worked fine.

Thanks again

1 Like

All back up and running on 11.7.4 :slight_smile:

1 Like