LCD Screen says "Updating - Do Not Unplug" (updating system from V8.5)

use

du -a / | sort -n -r | head -n 20

to find the largest files (probably logs)

To make the files smaller (deleting them can be a bad idea) use

truncate -s 0 /var/log/<log file>

HTH

Problem solved, it was an error in my config where I was putting the backup in /home/pi/backup. Moved it to /home/pi/data/backup and it has now completed successfully. Now to boot the new image and try an import.

I assume I should be safe to use the 2.0.0 backup script to import the data on the new image, or should I stick to 1.2.0?

It will be a different version I suspect.

Just get EmonCMS fully up to date and then do the import. Remeber once you import you need to use the original account info to log in.

You may find an oddity with the dashboards…

Oh and be patient…

Take a while to do all it’s bits first time.

Will do - many thanks for all the help, I’ll update once complete.

Hi,
I now have a new installation fully updated and ready to go. I’ve ensured it is updated, and have imported the backup through the web interface import utility. It appeared to progress well untilI got the following errors:

emonPi%20Import%20Error
emonPi%20Import%20Error%202

I also get an error on the Web GUI:
**Notice** : Trying to get property of non-object in **/var/www/emoncms/Theme/basic/menu_view.php** on line **144**

Also:
Database error, you may need to run database update

I’ve seen reports of this last error and the requirement to do a manual database update using the PHP script described here, however the script doesn’t appear to be available in that folder:

Any thoughts as to the next steps?

Found that the emoncmsdbupdate.php script is now in the update folder…

You should just be able to do it from the admin screen.

What page was this on?

The errors were pop-ups in Chrome, whilst importing the data through the GUI.

When selecting “Graphs” on the left, I still get a pop-up error in Chrome:

image

Incidentally, the data is imported (though I don’t know if it was a clean import) - I can see the graphs with my old data, but can’t currently see how to get new data logging to the old dataset.

Does the error go when you select ‘graphs’ or does it persist? Try changing something on the graphs, add a feed and then delete it and so you can save the graph.

Your data sources should just appear in the Inputs page. Does it?

Can you PM me your settings.php please?

The error persists, each time you re-select the “Graphs” menu at the left.

In my inputs page, I had 3 things listed, all called “emo”, as if it was truncated. It looks like one of them is the emonpi, the other two are emonth sensors. I can select them to initialise them, but can’t see any data. As it stands, I should have 2x wired dallas sensors, 2x TH RF sensors, AC mains sensor, current clamp, etc.

The graphs are all in an “undefined” submenu, and where it has created new graphs for the emonpi (by initialising it), the drop-down to select a graph (under MyGraphs) is completely empty.

Can you do a screen shot of what you currently see? Win 10 you can just Win+shift+S, Alt+PrtScrn, or use the snipping tool, then just paste it in a message.

On its way now…

Thanks. I meant post the images here (for all) and the file to me as it has passwords etc in it, but no bother.

Let me check, what hardware do you have? EmonPi, EmonBase, EmonTX, EmonTH?

Could you also do a ls -la /var/www/emoncms/ please.

Ah, I can post them here too…

I have an emonPi, and two emonTH sensors.

Output of the above command is:

pi@emonpi:/var/www/emoncms $ ls -la /var/www/emoncms/
total 216
drwxr-xr-x 9 pi pi 4096 Oct 19 15:15 .
drwxr-xr-x 4 pi root 4096 Aug 15 2018 …
-rw-r–r-- 1 pi pi 513 Oct 19 12:26 composer.json
-rw-r–r-- 1 pi pi 1025 Oct 19 12:26 COPYRIGHT.txt
-rw-r–r-- 1 pi pi 8052 Oct 19 12:26 core.php
-rw-r–r-- 1 pi pi 7037 Oct 19 12:26 default.emonpi.settings.php
-rw-r–r-- 1 pi pi 5843 Oct 19 12:26 default-settings.ini
-rw-r–r-- 1 pi pi 7130 Oct 19 12:26 default-settings.php
drwxr-xr-x 4 pi pi 4096 Oct 19 12:26 docs
-rw-r–r-- 1 pi pi 2063 Oct 19 12:26 example.settings.ini
drwxrwxrwx 8 pi pi 4096 Oct 19 13:38 .git
-rw-r–r-- 1 pi pi 413 Oct 19 12:26 .gitignore
-rw-r–r-- 1 pi pi 8917 Oct 19 12:26 .htaccess
-rw-r–r-- 1 pi pi 16213 Oct 19 12:26 index.php
-rw-r–r-- 1 pi pi 223 Aug 2 2018 .jshintrc
drwxr-xr-x 11 pi pi 4096 Oct 19 12:26 Lib
-rw-r–r-- 1 pi pi 32386 Aug 2 2018 LICENSE.txt
-rw-r–r-- 1 pi pi 3703 Oct 19 12:26 locale.php
drwxr-xr-x 17 pi pi 4096 Oct 19 12:27 Modules
-rw-r–r-- 1 pi pi 4119 Aug 2 2018 param.php
-rwxr-xr-x 1 pi pi 95 Aug 2 2018 php-info.php
-rw-r–r-- 1 pi pi 4585 Oct 19 12:26 process_settings.php
-rw-r–r-- 1 pi pi 12504 Oct 19 12:26 readme.md
-rw-r–r-- 1 pi pi 4821 Oct 19 12:26 route.php
drwxr-xr-x 6 pi pi 4096 Oct 19 12:26 scripts
-rw-r–r-- 1 pi pi 628 Oct 19 12:26 settings.env.ini
-rw-r–r-- 1 pi pi 7037 Oct 19 12:26 settings.php
drwxr-xr-x 4 pi pi 4096 Oct 25 2018 tests
drwxr-xr-x 3 pi pi 4096 Aug 2 2018 Theme
-rw-r–r-- 1 pi pi 111 Oct 19 12:26 .travis.yml
-rw-r–r-- 1 pi pi 7 Oct 19 12:26 version.txt

Images here for reference:

This may or may not be relevant (from emoncms.log):

2019-10-19 16:17:22.981|WARN|emoncms_mqtt.php|Not connected, retrying connection
2019-10-19 16:17:23.162|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0
2019-10-19 16:17:24.688|WARN|index.php|406 Not Acceptable|feed/list
2019-10-19 16:17:29.183|WARN|index.php|406 Not Acceptable|feed/list
.
.
.
2019-10-19 16:28:20.382|WARN|index.php|406 Not Acceptable|feed/list
2019-10-19 16:28:22.649|ERROR|index.php|Not Authenticated|feed/view
2019-10-19 16:56:01.633|WARN|emoncms_mqtt.php|Not connected, retrying connection
2019-10-19 16:56:01.665|WARN|emoncms_mqtt.php|Connecting to MQTT server: Connection Accepted.: code: 0