I use postprocess everyday and this is the first time for me that I see that message. I’ve always kept the system up to date so it’s something related to latest built (at least for me). I hope they fix it soon as I need to access to that tab.
Thanks, this is unfortunately a php version issue, the new code is using syntax that is not compatible with pre v8 versions of php. While I was aware of this from inspecting the code a few months back I totally forgot about it with this merge to stable.
The fastest way to get back to a working version is probably to roll back to the previous version of the post process module, this can be done via SSH with the following:
cd /opt/emoncms/modules/postprocess
git checkout 2.4.7
Looks like I need to either add a PHP upgrade (and all associated PHP modules) to the update process or modify the code to provide backwards compatibility. I will work out what is best to do.
I’d suggest it needs to go for full compatibility with the latest stable versions. We’ve a fair few workarounds in the installation currently (IIRC). Moving to 64bit may throw up more.
Hello @greentangerine I had not quite appreciated when I posted the above that the last three emonSD image releases all support PHP 8+ (emonSD-01Feb24, emonSD-20Nov23 & emonSD-10Nov22). We have to go back to emonSD-21Jul21 or earlier for older versions of PHP.
Option 2: I’ve just generated a script using a combination of Google Gemini and Claude that will update PHP on a RaspberryPi system running an older version. I’ve tested this on the latest image that I had on hand here and it successfully updates PHP from 8.1 to 8.3 with the Emoncms installation continuing to run as expected. This script can be ran following these steps via SSH:
cd /opt/openenergymonitor/EmonScripts
git checkout master
git pull origin master
cd update/test
sudo ./update_php.sh
Hit:1 Index of /debian buster InRelease
Hit:2 Index of /raspbian buster InRelease
Err:3 https://packages.sury.org/php buster InRelease
418 I’m a teapot [IP: 151.101.3.52 443]
Reading package lists… Done
E: Failed to fetch https://packages.sury.org/php/dists/buster/InRelease 418 I’m a teapot [IP: 151.101.3.52 443]
E: The repository ‘https://packages.sury.org/php buster InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
pi@emonpi:/opt/openenergymonitor/EmonScripts/update/test $
Looks like the issue is that https://packages.sury.org/php/dists/ only supports newer debian versions not buster and so responds randomly with “418 I’m a teapot” Looks like updating to 8+ is not going to work on older OS versions which leaves us with option 1 and 3..