Cannot upgrade via 'Admin' pages

Have read this morning there are some nice new updates for emoncms and many other associated components.

I tried the ‘full update’ option, this duly created the shell window at the bottom of the page,.. but then nothing. ( no text not nothing )

switched to the components page,.. and tried several options here,.. other than update box hi-lighting,.. nothing appears to be happening.

In ssh window:-

Checked disk space,… all looks good,.. plenty of space available, root 3G free, /var/opt 14% used

peformed a sudo apt update,… upgrade

and all packages updated without issue, system uptime was 139days.. so took a punt and did a full reboot.

Still unable to upgrade emoncms packages. Checked /var/log for recent updates,.. and nothing jumps out…. ( but I could be blind to ).

Pls note,.. I did make a small mod. to my emoncms files so my ‘start of week’ as Sunday… But that is all I have changed.

Any thoughts as to why I cannot update gratefully appreciated….

Thanks guys

Quite possibly that is what stopped it. I believe Github is invoked when you command an update. I have no idea how it works, but it’s extremely picky about being “interfered” with.

Somebody who knows and understands it might be able to suggest a workaround.

this may be the same issue I had. @TrystanLea said this was the fix for me

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.

2 Likes

Hi John,.. Thanks for your help,.. Yes that was the solution.

cd /var/www/emoncmsgit pull origin master   // Initially this failed.. due to changed files plus extra file ( as I kept a copy of original prior to edit)
git stash list      // Check if I already had anything stored
cd /var/www/emoncms/Modules/feed/engine // Not sure if required, but did a cd into changed folder
git stash       //create stash
cd ../../..git pull origin master

cd /var/www/emoncms/Modules/feed/engine // ran no problem all files seem to update
git stash apply     // applied edit from stash.. yes seems to work.

did ‘full update’ from admin… now we have some ‘action’ and files have up dated, and show as latest revision

And all seems well, and thankyou again..

Thanks but the fix was @TrystanLea he deserves the thanks :slight_smile:

John

1 Like

Yes Indeed John,.. but I would never have found Tystan’s ‘fix’ if you had not pointed this out to me.

But this just goes to show the ‘power of community’,.. when there is great support in the ‘office’ from Trystan, Glyn, and the team, who make it all work… for the rest of us mere mortals,. :slight_smile:

2 Likes