Was using emonSD-17Jun2015 on my emonPi 2.5 with low-write 8.5 emoncms.
Created a backup using the backup utility. No issues.
Compressed backup file is 10.1 Mb. Uncompressed, around 211 MB.
Updated my SD card by writing the emonSD-03May16.img
Ran update using setup > administration. All is current.
Attempted to restore the backup file.
Web interface fails saying “Cannot write: No space left on device”
Tried running the manual method, same result.
SD Card is 4 GB.
Am I going to be forced to upgrade to an 8 GB card in order to import my data? (cuz that sucks)
Is there something I can purge in the file system to make room for the process?
log into your emonPi via SSH. Then type in:
df -h
and you should get something like this:
pi@emonpi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.4G 1.8G 1.5G 55% /
devtmpfs 483M 0 483M 0% /dev
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 487M 6.6M 481M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 487M 0 487M 0% /sys/fs/cgroup
tmpfs 40M 6.6M 34M 17% /var/lib/openhab
tmpfs 1.0M 4.0K 1020K 1% /var/lib/dhcpcd5
tmpfs 1.0M 0 1.0M 0% /var/lib/dhcp
tmpfs 50M 2.6M 48M 6% /var/log
/dev/mmcblk0p1 60M 21M 40M 35% /boot
tmpfs 30M 44K 30M 1% /tmp
/dev/mmcblk0p3 3.8G 639M 3.0G 18% /home/pi/data
/dev/sda1 59G 40G 16G 72% /mnt/usb
pi@emonpi:~ $
then copy your results into a post.
EDIT: And then let’s look at the data directory:
ls -al /home/pi/data{/,/import,/uploads}
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s2 232Gi 67Gi 165Gi 29% 17514403 43325339 29% /
devfs 196Ki 196Ki 0Bi 100% 678 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
and with: ls -al /home/pi/data{/,/import,/uploads}
I get:
ls: /home/pi/data/: No such file or directory
ls: /home/pi/data/import: No such file or directory
ls: /home/pi/data/uploads: No such file or directory
I’m sorry, I’m not a good Linux guy, so thanks much for the help.
Edit - fixed formatting. Moderator, BT
This looks like a report of a Unix (Mac?) drive (/dev/disk0s2 = disk 0 slice 2)
The above looks like your own computer and we need to access your emonPi. Open the Terminal again and then follow this section to log on to your emonPi via SSH:
Well that’s embarrassing… here you go:
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.4G 2.2G 997M 70% /
devtmpfs 483M 0 483M 0% /dev
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 487M 13M 475M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 487M 0 487M 0% /sys/fs/cgroup
tmpfs 40M 6.7M 34M 17% /var/lib/openhab
/dev/mmcblk0p3 194M 41M 143M 23% /home/pi/data
tmpfs 1.0M 4.0K 1020K 1% /var/lib/dhcpcd5
tmpfs 1.0M 0 1.0M 0% /var/lib/dhcp
/dev/mmcblk0p1 60M 20M 40M 34% /boot
tmpfs 50M 3.7M 47M 8% /var/log
tmpfs 30M 40K 30M 1% /tmp
and
/home/pi/data/:
total 41
drwxrwxrwx 9 pi pi 1024 Aug 28 22:23 .
drwxr-xr-x 16 pi pi 4096 Apr 29 00:33 ..
-rw-rw-r-- 1 pi www-data 0 May 3 12:49 emoncms.conf
-rw-r--r-- 1 pi pi 1038 Aug 28 22:24 emoncms-import.log
-rw-rw-rw- 1 pi www-data 6515 Aug 28 21:58 emonhub.conf
-rw-rw-rw- 1 pi root 3295 Aug 28 22:39 emonpiupdate.log
drwxr-xr-x 2 pi pi 1024 Aug 28 22:40 import
drwx-w--w- 2 pi pi 12288 Jan 21 2016 lost+found
drwx------ 5 mysql mysql 1024 Aug 28 22:04 mysql
drwxr-xr-x 4 pi pi 1024 Apr 29 00:35 node-red
-rw-r--r-- 1 root root 0 Feb 8 2016 nodes_mqtt_process_lock
drwxr-xr-x 2 www-data root 1024 May 3 12:49 phpfina
drwxr-xr-x 2 www-data root 1024 May 3 12:49 phptimeseries
-rw-r--r-- 1 pi pi 370 Mar 19 22:14 readmeta.php
-rw-r--r-- 1 root root 93 Aug 28 22:04 resolv.conf
-rwxrwxrwx 1 pi pi 0 Jan 22 2016 resolv.conf.dhclient-new
drwxrwxrwx 2 www-data pi 1024 Aug 28 22:23 uploads
-rw-r--r-- 1 root root 1539 Aug 29 04:31 wificheck.log
-rw-r--r-- 1 root root 72 May 3 12:49 wpa_supplicant.conf
/home/pi/data/import:
total 2
drwxr-xr-x 2 pi pi 1024 Aug 28 22:40 .
drwxrwxrwx 9 pi pi 1024 Aug 28 22:23 ..
/home/pi/data/uploads:
total 9913
drwxrwxrwx 2 www-data pi 1024 Aug 28 22:23 .
drwxrwxrwx 9 pi pi 1024 Aug 28 22:23 ..
-rw-r--r-- 1 www-data www-data 10107827 Aug 28 22:23 emoncms-backup-2016-08-28.tar.gz
That’s probably a little more like what you wanted to see
Yes, I’m afraid the data you are trying to restore is too big to fit on the default data
partition on the 4GB SD card. You will need to upgrade to an 8GB SD card then run $ emonSDexpand
to expand the data
partition to fill the remainder of the 8GB card. This will create plenty of space for logging data for many years to come .
Got it! I’ll make the hour long trip to town today and get one.
Incidentally, nice work on the new emoncms interface. From what I can see so far it’s a great improvement. Now to see if I can export to csv with the missing data points included… I’m so hoping that works now as I have a hell of a time aligning data in spreadsheets when 10 out of 12000 records are out of alignment.
Thanks for the assistance, folks! I sure appreciate all you geeks
Well that all worked flawlessly. Thanks for the help, gents! Much appreciated.