I just upgraded my pi’s emoncms from low-write-v8.5 to 9.8.30. I did this by “gitting” the latest version from github. I followed the upgrade instructions from there.
However, I notice the web page is now substantially different. And the problem is - I have no “inputs.” My feeds are there, and show data (i.e. the sizes are not zero). But, I cannot display them, and they show no new data coming in, even though emonhub logs and phpfina data files show updates are coming in. I don’t see anything odd in /var/log/…, although I rebooted a couple of times.
Have you updated the database files via the button on the emoncms admin page?
Be aware that there were significant changes to the dashboard module it now needs to be installed seperately and many if not all your dashboards will need revisting to reselect the feeds and re-save etc.
If you are running redis, you may need to flush that too, either via the button on the admin page or via the commandline
sudo redis-cli FLUSHALL
More ifo might be useful if the above doen’t help.
Where is this hosted? Where do the inputs that no longer update originate?
In answer to your questions, and also a bit of additional information.
This is hosted on the RasPi that has been serving as an EmonBase for several years. EmonCms was working (version 8.5) on that. It was and still is receiving inputs from emonTx nodes as I write this, and they show up in the phpfina data files. I did update the database as you suggest. I also just did the sudo redis-cli FLUSHALL, followed by a reboot.
At this point, no inputs show on Setup->Inputs. All of my historic feeds exist under “NoGroup”. One other feed exists by itself All feeds show 0 bytes of data and N/A for Updated.
I cloned the SD card for the upgrade, so I can still go back to the prior state.
If I were to do that, can you say what steps I should take?
Sorry John, but no I am not familiar enough to guide you, I am just aware there are significant differences and maybe able to chuck in a couple of scraps of vaguely useful info here and there.
Are you able to log in to emoncms ok? if so can you add your “server information” from the admin page here?
Can you also try an input api to see if a new input can be created or updated from the browser, if not, are there any error messages given in the browser console (ctrl-f12)?
I assume you are running emonhub, if so are there any error messages logged there or does emoncms reply “ok”?
Is there any error messages displayed in the log panal of the admin page?
Have you reviewed settings.php? I have no doubt there will be differences between your original copy and the latest copy.
With just a quick look at that, It appears neither low-write mode or redis are enabled so I would check your settings.php as suggested above. and it looks like there is no dashboard module installed, also mentioned above.
No, there’s no mention of mqtt there. But it does look like you are running an emonSD image if you are yusing MQTT and emonhub “emonpi variant”, that’s a very different kettle of fish. You are updating just a part of an ecosystem in which all parts have evolved together, I do not think just changing bits of it will work.
I think the mqtt_input and buffered write and the way MQTT is used in gerenral has changed, In fact you may be using the old nodes module that is now retired.
The settings.php file will be your old file you need to look at the emonpi.default.settings.php file as a template and put your specific settings into it from your old settings.php file, creating a new settings.php file based on the new template. But that is just a small part of the things you need to change.
I would recommend going back to your old image temporarily and do some reading up on updating from a 2015 image to the latest emonSD. It will most likely involve backing up your data and creating a brand new SD image to import your data to.
Tks. I didn’t realize it had changed that much. I started with this back in July 2015, IIRC, so it is indeed old. And I am using emonBase, not emonPi although I guess that doesn’t matter much. Also, I don’t feed the .org site - I just use the data on my pi.
I think that backing it up and moving that data into a brand new installation probably is the best bet, as you suggest. I’ll take a look at it. If the SQL schema has changed, then hopefully there are scripts that will let me use the old data without writing my own SQL.