Community
OpenEnergyMonitor

OpenEnergyMonitor Community

Emoncms dashboard EV daily charge

I have a dashboard with multiple widgets displaying various parameters relating to my EV. This all works very well but there is one item that I have so far failed to implement correctly, this is the daily or periodic charge indicator.

The idea is to provide an indication of the energy (kWh) provided to the car in the last charging session or period. I was advised to use the ‘kWh period’ widget for this purpose:

But no matter what values I choose when configuring the element the resulting display makes no sense. Yes, there are numbers displayed that go up and down but have no obvious relationship with the real figures.

Anyhow, rather than try to describe what I am doing in detail I thought this is such an obvious thing that others would have also wanted there will be some kind soul who will be able to provide a working example that I can simply copy.

Hello @BrianD

Are you selecting a cumulative kWh feed in the widget? It wont work with a power feed if that is what you are using?

Testing it here now it seems to be giving me the correct value:

@TrystanLea Do you mean like this:

This is the resuly (No Data)

Thanks @BrianD do you have enough data in the feed for it to work? It will need at least the time for the period selected? Can you show a screenshot of what the use_kwh feed looks like from the Graph page?

Thanks @TrystanLea I shall work on this tomorrow and let you know.

1 Like

The graph results were very odd so I tried to update the software and received this message:

LAST ENTRIES ON THE LOG FILE
Starting update via service-runner-update.sh (v2.0) >
- emonSD version: emonSD-30Oct18
ERROR: emonSD base image old or undefined...update will not continue
See latest verson: https://github.com/openenergymonitor/emonpi/wiki/emonSD-pre-built-SD-card-Download-&-Change-Log
Stopping update

I guess this may take me a while. :slightly_smiling_face:

Hi,

I did an update on mine a little while back by creating a backup, then putting the new software image on a new 16Gb SD card. Swapped the card in the EmonPi let it do its thing set up a dummy account when prompted and put the old card in a USB reader and did a restore this all worked well and I was on the new version. I think all the instructions are in the sticky topic on the top of the forum.

John

Thanks John. I read that and will have a go in the morning.

Cheers

Brian

Well, that was an adventure.

The first problem is the img file on this page:

I tried downloading it 5 times and it failed each time. See screen shot below.

Then I noticed it is also available on github where it downloaded perfectly first go.

The checksum for both .zip and .img were good so I continued.

I used etcher to flash the image and verify was good so removed the old SD and inserted the new. Then left it alone for an hour. It appeared to have finished so created a temp account and logged in.

Put the old SD in a USB card reader and plugged into one of the four USB ports. Selected Setup/Backup and the screen below appeared. Clicking ‘Import from USB drive’ refreshes the page but I don’t think anything else happens.

Tried rebooting and logging in with old details but that failed. Also, only the Temp account appears to be listed.

Unfortunately, the helpful screen shot on this page is too small to read.
Tried the above with 2 USB readers and all four USB ports.

Also, confirmed the old SD card can be read OK using PC.

Stumped now so put it all back to how it was and working again.

Ideas?



Hi,
not sure but I think I have seen elsewhere on the forum that multi card USB adapters do not work, and looking at your screen shot it looks like that is what you are using, though I could be wrong.

John

1 Like

I think you’re right - or at least one particular multi-card adapter.

Thanks John.

I was also puzzled by the message, especially as it says the same thing with no USB card reader adapter plugged in.

I tried a four port multi card USB adapter first then moved to a dedicated micro SD card adapter which I tried on all four USB ports. The Import from USB message remains the same whatever I do.

Curiously, the old image produces no message at all.

No doubt @TrystanLea will have some ideas tomorrow.

I also seem to recollect that there are assumptions regarding the naming of the ports - I can’t remember the exact details now - that were thought to be the root cause of the problem then. Your problem might not be the same, but I suggest you try to find that thread and see what was written.

1 Like

Try this: Cant get service-runner enabled and running for backup to new SD install on EmonPi

I don’t think it’s a service-ruuner problem. Will wait for @TrystanLea to comment

Hello @BrianD sorry about this. I’ve improved the import script now to try to load and validate the structure of each disk in turn, if it finds a disk with a valid structure it continues without checking the other slots in the multi SD card reader.

Could you run the emoncms updater and try again?

This is what the new validation procedure looks like in the log:

Scanning for USB card reader:
- Unmounted disk: /dev/disk/by-id/usb-Mass_Storage_Device_125C20100726-0:0 at /dev/sdb
-- Unmounted disk has correct number of partitions
-- Mounting old SD card boot partition
-- Mounting old SD card root partition
-- Mounting old SD card data partition
-- image version: emonSD-24Jul20
-- Emoncms mysql database found (new location)
-- Emoncms phptimeseries data directory found
-- Emoncms phptimeseries data directory found
-- Disk appears to be valid, continuing with import

@borpin @JJC @Robert.Wall as a plus this change does not check for disks with a predefined USB reader *like* name, it just tries to mount each disk that has 3 partitions and checks for a valid directory structure instead.

1 Like

Thank you @TrystanLea I ran the updater and now see this in the log:

=== USB Emoncms import start ===
2020-11-14-08:24:51
Backup module version:
“version” : “2.2.5”
EUID: 1000
Reading /opt/emoncms/modules/backup/config.cfg…
Location of data databases: /var/opt/emoncms
Location of emonhub.conf: /etc/emonhub
Location of Emoncms: /var/www/emoncms

Scanning for USB card reader:

  • Unmounted disk: /dev/disk/by-id/usb-Multi_Flash_Reader_058F091111B-0:0 at /dev/sda
    – Unmounted disk has correct number of partitions
    – Mounting old SD card boot partition
    mount: /media/old_sd_boot: mount point does not exist.
    – Mounting old SD card root partition
    mount: /media/old_sd_root: mount point does not exist.
    – Mounting old SD card data partition
    mount: /media/old_sd_data: mount point does not exist.
    ls: cannot access ‘/media/old_sd_boot/emonSD*’: No such file or directory
    – Error: Image version file not present
    – Error: Could not find mysql database
    – Error: Emoncms phpfina data directory not found
    – Error: Emoncms phptimeseries data directory not found
    – Invalid disk
    umount: /dev/sda1: not mounted.
    umount: /dev/sda2: not mounted.
    umount: /dev/sda3: not mounted.
  • No card reader found on sdb
  • No card reader found on sdc
    USB drive not found

This is what happens using the old image:

Starting update via service-runner-update.sh (v2.0) >

1 Like

Thanks @BrianD, ah I missed something! could you update and try again now?

@TrystanLea
Different result this time but no inputs or feeds configured. The dashboard has imported OK but obviously no data.

=== USB Emoncms import start ===
2020-11-14-14:19:02
Backup module version:
    "version"      : "2.2.6"
EUID: 1000
Reading /opt/emoncms/modules/backup/config.cfg....
Location of data databases: /var/opt/emoncms
Location of emonhub.conf: /etc/emonhub
Location of Emoncms: /var/www/emoncms

creating mount point /media/old_sd_boot
creating mount point /media/old_sd_root
creating mount point /media/old_sd_data
Scanning for USB card reader:
- Unmounted disk: /dev/disk/by-id/usb-Multi_Flash_Reader_058F091111B-0:0 at /dev/sda
-- Unmounted disk has correct number of partitions
-- Mounting old SD card boot partition
-- Mounting old SD card root partition
-- Mounting old SD card data partition
-- image version: emonSD-30Oct18
-- Emoncms mysql database found (old location)
-- Emoncms phptimeseries data directory found
-- Emoncms phptimeseries data directory found
-- Disk appears to be valid, continuing with import

Stopping services..
Read MYSQL authentication details from settings.php
stopping mysql
Copying over mysql database from SD card (old structure)
'/media/old_sd_data/mysql/emoncms' -> '/var/lib/mysql/emoncms'
'/media/old_sd_data/mysql/emoncms/db.opt' -> '/var/lib/mysql/emoncms/db.opt'
'/media/old_sd_data/mysql/emoncms/app_config.frm' -> '/var/lib/mysql/emoncms/app_config.frm'
'/media/old_sd_data/mysql/emoncms/dashboard.frm' -> '/var/lib/mysql/emoncms/dashboard.frm'
'/media/old_sd_data/mysql/emoncms/app_config.MYI' -> '/var/lib/mysql/emoncms/app_config.MYI'
'/media/old_sd_data/mysql/emoncms/app_config.MYD' -> '/var/lib/mysql/emoncms/app_config.MYD'
'/media/old_sd_data/mysql/emoncms/device.frm' -> '/var/lib/mysql/emoncms/device.frm'
'/media/old_sd_data/mysql/emoncms/device.MYI' -> '/var/lib/mysql/emoncms/device.MYI'
'/media/old_sd_data/mysql/emoncms/device.MYD' -> '/var/lib/mysql/emoncms/device.MYD'
'/media/old_sd_data/mysql/emoncms/feeds.frm' -> '/var/lib/mysql/emoncms/feeds.frm'
'/media/old_sd_data/mysql/emoncms/feeds.MYI' -> '/var/lib/mysql/emoncms/feeds.MYI'
'/media/old_sd_data/mysql/emoncms/feeds.MYD' -> '/var/lib/mysql/emoncms/feeds.MYD'
'/media/old_sd_data/mysql/emoncms/graph.frm' -> '/var/lib/mysql/emoncms/graph.frm'
'/media/old_sd_data/mysql/emoncms/graph.MYI' -> '/var/lib/mysql/emoncms/graph.MYI'
'/media/old_sd_data/mysql/emoncms/graph.MYD' -> '/var/lib/mysql/emoncms/graph.MYD'
'/media/old_sd_data/mysql/emoncms/input.frm' -> '/var/lib/mysql/emoncms/input.frm'
'/media/old_sd_data/mysql/emoncms/input.MYI' -> '/var/lib/mysql/emoncms/input.MYI'
'/media/old_sd_data/mysql/emoncms/input.MYD' -> '/var/lib/mysql/emoncms/input.MYD'
'/media/old_sd_data/mysql/emoncms/postprocess.frm' -> '/var/lib/mysql/emoncms/postprocess.frm'
'/media/old_sd_data/mysql/emoncms/postprocess.MYI' -> '/var/lib/mysql/emoncms/postprocess.MYI'
'/media/old_sd_data/mysql/emoncms/postprocess.MYD' -> '/var/lib/mysql/emoncms/postprocess.MYD'
'/media/old_sd_data/mysql/emoncms/schedule.frm' -> '/var/lib/mysql/emoncms/schedule.frm'
'/media/old_sd_data/mysql/emoncms/schedule.MYI' -> '/var/lib/mysql/emoncms/schedule.MYI'
'/media/old_sd_data/mysql/emoncms/schedule.MYD' -> '/var/lib/mysql/emoncms/schedule.MYD'
'/media/old_sd_data/mysql/emoncms/setup.frm' -> '/var/lib/mysql/emoncms/setup.frm'
'/media/old_sd_data/mysql/emoncms/setup.MYI' -> '/var/lib/mysql/emoncms/setup.MYI'
'/media/old_sd_data/mysql/emoncms/setup.MYD' -> '/var/lib/mysql/emoncms/setup.MYD'
'/media/old_sd_data/mysql/emoncms/sync.frm' -> '/var/lib/mysql/emoncms/sync.frm'
'/media/old_sd_data/mysql/emoncms/sync.MYI' -> '/var/lib/mysql/emoncms/sync.MYI'
'/media/old_sd_data/mysql/emoncms/sync.MYD' -> '/var/lib/mysql/emoncms/sync.MYD'
'/media/old_sd_data/mysql/emoncms/rememberme.frm' -> '/var/lib/mysql/emoncms/rememberme.frm'
'/media/old_sd_data/mysql/emoncms/rememberme.MYI' -> '/var/lib/mysql/emoncms/rememberme.MYI'
'/media/old_sd_data/mysql/emoncms/rememberme.MYD' -> '/var/lib/mysql/emoncms/rememberme.MYD'
'/media/old_sd_data/mysql/emoncms/multigraph.frm' -> '/var/lib/mysql/emoncms/multigraph.frm'
'/media/old_sd_data/mysql/emoncms/multigraph.MYI' -> '/var/lib/mysql/emoncms/multigraph.MYI'
'/media/old_sd_data/mysql/emoncms/multigraph.MYD' -> '/var/lib/mysql/emoncms/multigraph.MYD'
'/media/old_sd_data/mysql/emoncms/dashboard.MYI' -> '/var/lib/mysql/emoncms/dashboard.MYI'
'/media/old_sd_data/mysql/emoncms/dashboard.MYD' -> '/var/lib/mysql/emoncms/dashboard.MYD'
'/media/old_sd_data/mysql/emoncms/users.frm' -> '/var/lib/mysql/emoncms/users.frm'
'/media/old_sd_data/mysql/emoncms/users.MYI' -> '/var/lib/mysql/emoncms/users.MYI'
'/media/old_sd_data/mysql/emoncms/users.MYD' -> '/var/lib/mysql/emoncms/users.MYD'
Setting database ownership
starting mysql
checking database
emoncms.app_config                                 OK
emoncms.dashboard                                  OK
emoncms.device                                     OK
emoncms.feeds                                      OK
emoncms.graph                                      OK
emoncms.input                                      OK
emoncms.multigraph                                 OK
emoncms.postprocess                                OK
emoncms.rememberme                                 OK
emoncms.schedule                                   OK
emoncms.setup                                      OK
emoncms.sync                                       OK
emoncms.users                                      OK
Updating Emoncms Database..
["CREATE TABLE `demandshaper` (`userid` int(11), `schedules` text) ENGINE=MYISAM"]
Archive old data folders
Copying PHPFina feed data
'/media/old_sd_data/phpfina' -> '/var/opt/emoncms/phpfina'
'/media/old_sd_data/phpfina/9.meta' -> '/var/opt/emoncms/phpfina/9.meta'
'/media/old_sd_data/phpfina/9.dat' -> '/var/opt/emoncms/phpfina/9.dat'
cp: error reading '/media/old_sd_data/phpfina/9.dat': Input/output error
'/media/old_sd_data/phpfina/10.meta' -> '/var/opt/emoncms/phpfina/10.meta'
cp: error reading '/media/old_sd_data/phpfina/10.meta': Input/output error
'/media/old_sd_data/phpfina/10.dat' -> '/var/opt/emoncms/phpfina/10.dat'
cp: error reading '/media/old_sd_data/phpfina/10.dat': Input/output error
'/media/old_sd_data/phpfina/14.meta' -> '/var/opt/emoncms/phpfina/14.meta'
cp: error reading '/media/old_sd_data/phpfina/14.meta': Input/output error
'/media/old_sd_data/phpfina/14.dat' -> '/var/opt/emoncms/phpfina/14.dat'
cp: error reading '/media/old_sd_data/phpfina/14.dat': Input/output error
'/media/old_sd_data/phpfina/12.meta' -> '/var/opt/emoncms/phpfina/12.meta'
cp: error reading '/media/old_sd_data/phpfina/12.meta': Input/output error
'/media/old_sd_data/phpfina/12.dat' -> '/var/opt/emoncms/phpfina/12.dat'
cp: error reading '/media/old_sd_data/phpfina/12.dat': Input/output error
'/media/old_sd_data/phpfina/5.meta' -> '/var/opt/emoncms/phpfina/5.meta'
cp: error reading '/media/old_sd_data/phpfina/5.meta': Input/output error
'/media/old_sd_data/phpfina/5.dat' -> '/var/opt/emoncms/phpfina/5.dat'
cp: error reading '/media/old_sd_data/phpfina/5.dat': Input/output error
'/media/old_sd_data/phpfina/6.meta' -> '/var/opt/emoncms/phpfina/6.meta'
cp: error reading '/media/old_sd_data/phpfina/6.meta': Input/output error
'/media/old_sd_data/phpfina/6.dat' -> '/var/opt/emoncms/phpfina/6.dat'
cp: error reading '/media/old_sd_data/phpfina/6.dat': Input/output error
'/media/old_sd_data/phpfina/7.meta' -> '/var/opt/emoncms/phpfina/7.meta'
cp: error reading '/media/old_sd_data/phpfina/7.meta': Input/output error
'/media/old_sd_data/phpfina/7.dat' -> '/var/opt/emoncms/phpfina/7.dat'
cp: error reading '/media/old_sd_data/phpfina/7.dat': Input/output error
'/media/old_sd_data/phpfina/8.meta' -> '/var/opt/emoncms/phpfina/8.meta'
cp: error reading '/media/old_sd_data/phpfina/8.meta': Input/output error
'/media/old_sd_data/phpfina/8.dat' -> '/var/opt/emoncms/phpfina/8.dat'
cp: error reading '/media/old_sd_data/phpfina/8.dat': Input/output error
'/media/old_sd_data/phpfina/15.meta' -> '/var/opt/emoncms/phpfina/15.meta'
cp: error reading '/media/old_sd_data/phpfina/15.meta': Input/output error
'/media/old_sd_data/phpfina/15.dat' -> '/var/opt/emoncms/phpfina/15.dat'
cp: error reading '/media/old_sd_data/phpfina/15.dat': Input/output error
'/media/old_sd_data/phpfina/16.meta' -> '/var/opt/emoncms/phpfina/16.meta'
cp: error reading '/media/old_sd_data/phpfina/16.meta': Input/output error
'/media/old_sd_data/phpfina/16.dat' -> '/var/opt/emoncms/phpfina/16.dat'
cp: error reading '/media/old_sd_data/phpfina/16.dat': Input/output error
'/media/old_sd_data/phpfina/17.meta' -> '/var/opt/emoncms/phpfina/17.meta'
cp: error reading '/media/old_sd_data/phpfina/17.meta': Input/output error
'/media/old_sd_data/phpfina/17.dat' -> '/var/opt/emoncms/phpfina/17.dat'
cp: error reading '/media/old_sd_data/phpfina/17.dat': Input/output error
'/media/old_sd_data/phpfina/18.meta' -> '/var/opt/emoncms/phpfina/18.meta'
cp: error reading '/media/old_sd_data/phpfina/18.meta': Input/output error
'/media/old_sd_data/phpfina/18.dat' -> '/var/opt/emoncms/phpfina/18.dat'
cp: error reading '/media/old_sd_data/phpfina/18.dat': Input/output error
'/media/old_sd_data/phpfina/19.meta' -> '/var/opt/emoncms/phpfina/19.meta'
cp: error reading '/media/old_sd_data/phpfina/19.meta': Input/output error
'/media/old_sd_data/phpfina/19.dat' -> '/var/opt/emoncms/phpfina/19.dat'
cp: error reading '/media/old_sd_data/phpfina/19.dat': Input/output error
'/media/old_sd_data/phpfina/21.meta' -> '/var/opt/emoncms/phpfina/21.meta'
cp: error reading '/media/old_sd_data/phpfina/21.meta': Input/output error
'/media/old_sd_data/phpfina/21.dat' -> '/var/opt/emoncms/phpfina/21.dat'
'/media/old_sd_data/phpfina/22.meta' -> '/var/opt/emoncms/phpfina/22.meta'
cp: error reading '/media/old_sd_data/phpfina/22.meta': Input/output error
'/media/old_sd_data/phpfina/22.dat' -> '/var/opt/emoncms/phpfina/22.dat'
'/media/old_sd_data/phpfina/23.meta' -> '/var/opt/emoncms/phpfina/23.meta'
cp: error reading '/media/old_sd_data/phpfina/23.meta': Input/output error
'/media/old_sd_data/phpfina/23.dat' -> '/var/opt/emoncms/phpfina/23.dat'
cp: error reading '/media/old_sd_data/phpfina/23.dat': Input/output error
'/media/old_sd_data/phpfina/24.meta' -> '/var/opt/emoncms/phpfina/24.meta'
cp: error reading '/media/old_sd_data/phpfina/24.meta': Input/output error
'/media/old_sd_data/phpfina/24.dat' -> '/var/opt/emoncms/phpfina/24.dat'
cp: error reading '/media/old_sd_data/phpfina/24.dat': Input/output error
'/media/old_sd_data/phpfina/25.meta' -> '/var/opt/emoncms/phpfina/25.meta'
cp: error reading '/media/old_sd_data/phpfina/25.meta': Input/output error
'/media/old_sd_data/phpfina/25.dat' -> '/var/opt/emoncms/phpfina/25.dat'
'/media/old_sd_data/phpfina/26.meta' -> '/var/opt/emoncms/phpfina/26.meta'
cp: error reading '/media/old_sd_data/phpfina/26.meta': Input/output error
'/media/old_sd_data/phpfina/26.dat' -> '/var/opt/emoncms/phpfina/26.dat'
'/media/old_sd_data/phpfina/27.meta' -> '/var/opt/emoncms/phpfina/27.meta'
cp: error reading '/media/old_sd_data/phpfina/27.meta': Input/output error
'/media/old_sd_data/phpfina/27.dat' -> '/var/opt/emoncms/phpfina/27.dat'
cp: error reading '/media/old_sd_data/phpfina/27.dat': Input/output error
'/media/old_sd_data/phpfina/28.meta' -> '/var/opt/emoncms/phpfina/28.meta'
cp: error reading '/media/old_sd_data/phpfina/28.meta': Input/output error
'/media/old_sd_data/phpfina/28.dat' -> '/var/opt/emoncms/phpfina/28.dat'
cp: error reading '/media/old_sd_data/phpfina/28.dat': Input/output error
'/media/old_sd_data/phpfina/29.meta' -> '/var/opt/emoncms/phpfina/29.meta'
cp: error reading '/media/old_sd_data/phpfina/29.meta': Input/output error
'/media/old_sd_data/phpfina/29.dat' -> '/var/opt/emoncms/phpfina/29.dat'
cp: error reading '/media/old_sd_data/phpfina/29.dat': Input/output error
'/media/old_sd_data/phpfina/30.meta' -> '/var/opt/emoncms/phpfina/30.meta'
cp: error reading '/media/old_sd_data/phpfina/30.meta': Input/output error
'/media/old_sd_data/phpfina/30.dat' -> '/var/opt/emoncms/phpfina/30.dat'
cp: error reading '/media/old_sd_data/phpfina/30.dat': Input/output error
'/media/old_sd_data/phpfina/31.meta' -> '/var/opt/emoncms/phpfina/31.meta'
cp: error reading '/media/old_sd_data/phpfina/31.meta': Input/output error
'/media/old_sd_data/phpfina/31.dat' -> '/var/opt/emoncms/phpfina/31.dat'
cp: error reading '/media/old_sd_data/phpfina/31.dat': Input/output error
'/media/old_sd_data/phpfina/32.meta' -> '/var/opt/emoncms/phpfina/32.meta'
cp: error reading '/media/old_sd_data/phpfina/32.meta': Input/output error
'/media/old_sd_data/phpfina/32.dat' -> '/var/opt/emoncms/phpfina/32.dat'
cp: error reading '/media/old_sd_data/phpfina/32.dat': Input/output error
'/media/old_sd_data/phpfina/33.meta' -> '/var/opt/emoncms/phpfina/33.meta'
cp: error reading '/media/old_sd_data/phpfina/33.meta': Input/output error
'/media/old_sd_data/phpfina/33.dat' -> '/var/opt/emoncms/phpfina/33.dat'
'/media/old_sd_data/phpfina/34.meta' -> '/var/opt/emoncms/phpfina/34.meta'
cp: error reading '/media/old_sd_data/phpfina/34.meta': Input/output error
'/media/old_sd_data/phpfina/34.dat' -> '/var/opt/emoncms/phpfina/34.dat'
'/media/old_sd_data/phpfina/35.meta' -> '/var/opt/emoncms/phpfina/35.meta'
cp: error reading '/media/old_sd_data/phpfina/35.meta': Input/output error
'/media/old_sd_data/phpfina/35.dat' -> '/var/opt/emoncms/phpfina/35.dat'
'/media/old_sd_data/phpfina/36.meta' -> '/var/opt/emoncms/phpfina/36.meta'
cp: error reading '/media/old_sd_data/phpfina/36.meta': Input/output error
'/media/old_sd_data/phpfina/36.dat' -> '/var/opt/emoncms/phpfina/36.dat'
'/media/old_sd_data/phpfina/37.meta' -> '/var/opt/emoncms/phpfina/37.meta'
cp: error reading '/media/old_sd_data/phpfina/37.meta': Input/output error
'/media/old_sd_data/phpfina/37.dat' -> '/var/opt/emoncms/phpfina/37.dat'
'/media/old_sd_data/phpfina/38.meta' -> '/var/opt/emoncms/phpfina/38.meta'
cp: error reading '/media/old_sd_data/phpfina/38.meta': Input/output error
'/media/old_sd_data/phpfina/38.dat' -> '/var/opt/emoncms/phpfina/38.dat'
'/media/old_sd_data/phpfina/39.meta' -> '/var/opt/emoncms/phpfina/39.meta'
cp: error reading '/media/old_sd_data/phpfina/39.meta': Input/output error
'/media/old_sd_data/phpfina/39.dat' -> '/var/opt/emoncms/phpfina/39.dat'
'/media/old_sd_data/phpfina/40.meta' -> '/var/opt/emoncms/phpfina/40.meta'
cp: error reading '/media/old_sd_data/phpfina/40.meta': Input/output error
'/media/old_sd_data/phpfina/40.dat' -> '/var/opt/emoncms/phpfina/40.dat'
cp: error reading '/media/old_sd_data/phpfina/40.dat': Input/output error
'/media/old_sd_data/phpfina/41.meta' -> '/var/opt/emoncms/phpfina/41.meta'
cp: error reading '/media/old_sd_data/phpfina/41.meta': Input/output error
'/media/old_sd_data/phpfina/41.dat' -> '/var/opt/emoncms/phpfina/41.dat'
cp: error reading '/media/old_sd_data/phpfina/41.dat': Input/output error
'/media/old_sd_data/phpfina/43.meta' -> '/var/opt/emoncms/phpfina/43.meta'
cp: error reading '/media/old_sd_data/phpfina/43.meta': Input/output error
'/media/old_sd_data/phpfina/43.dat' -> '/var/opt/emoncms/phpfina/43.dat'
cp: error reading '/media/old_sd_data/phpfina/43.dat': Input/output error
'/media/old_sd_data/phpfina/44.meta' -> '/var/opt/emoncms/phpfina/44.meta'
cp: error reading '/media/old_sd_data/phpfina/44.meta': Input/output error
'/media/old_sd_data/phpfina/44.dat' -> '/var/opt/emoncms/phpfina/44.dat'
cp: error reading '/media/old_sd_data/phpfina/44.dat': Input/output error
'/media/old_sd_data/phpfina/45.meta' -> '/var/opt/emoncms/phpfina/45.meta'
cp: error reading '/media/old_sd_data/phpfina/45.meta': Input/output error
'/media/old_sd_data/phpfina/45.dat' -> '/var/opt/emoncms/phpfina/45.dat'
cp: error reading '/media/old_sd_data/phpfina/45.dat': Input/output error
'/media/old_sd_data/phpfina/47.meta' -> '/var/opt/emoncms/phpfina/47.meta'
cp: error reading '/media/old_sd_data/phpfina/47.meta': Input/output error
'/media/old_sd_data/phpfina/47.dat' -> '/var/opt/emoncms/phpfina/47.dat'
cp: error reading '/media/old_sd_data/phpfina/47.dat': Input/output error
'/media/old_sd_data/phpfina/50.meta' -> '/var/opt/emoncms/phpfina/50.meta'
cp: error reading '/media/old_sd_data/phpfina/50.meta': Input/output error
'/media/old_sd_data/phpfina/50.dat' -> '/var/opt/emoncms/phpfina/50.dat'
cp: error reading '/media/old_sd_data/phpfina/50.dat': Input/output error
'/media/old_sd_data/phpfina/51.meta' -> '/var/opt/emoncms/phpfina/51.meta'
cp: error reading '/media/old_sd_data/phpfina/51.meta': Input/output error
'/media/old_sd_data/phpfina/51.dat' -> '/var/opt/emoncms/phpfina/51.dat'
cp: error reading '/media/old_sd_data/phpfina/51.dat': Input/output error
'/media/old_sd_data/phpfina/52.meta' -> '/var/opt/emoncms/phpfina/52.meta'
cp: error reading '/media/old_sd_data/phpfina/52.meta': Input/output error
'/media/old_sd_data/phpfina/52.dat' -> '/var/opt/emoncms/phpfina/52.dat'
cp: error reading '/media/old_sd_data/phpfina/52.dat': Input/output error
Copying PHPTimeSeries feed data
'/media/old_sd_data/phptimeseries' -> '/var/opt/emoncms/phptimeseries'
cp: cannot access '/media/old_sd_data/phptimeseries': Input/output error
'/media/old_sd_data/emonhub.conf' -> '/etc/emonhub/emonhub.conf'
cp: error reading '/media/old_sd_data/emonhub.conf': Input/output error
Flushing redis
OK
Restarting emonhub...
Restarting feedwriter...
Restarting emoncms MQTT...
2020-11-14-14:19:42
=== Emoncms import complete! ===

Thanks @BrianD

It looks like there’s a disk issue stopping the data import.

Could you try SSHing into the new Pi and with the old SD card in the reader running the following commands:

sudo fsck.ext4 /dev/sda2
sudo fsck.ext2 /dev/sda3

This is from the import guide here https://guide.openenergymonitor.org/setup/import/

Then once complete try importing again, thanks!