Manual backup to SD: failure to load playlists or notes

REPRODUCIBILITY: 100% (on my phone, that is)
BUILD ID: 4.0.1.48 (Koli)
HARDWARE: Xperia XA2
UI LANGUAGE: Dutch
REGRESSION: Yes

DESCRIPTION:

Early july, prior to upgrading to 4.0.1, I successfully managed to perform a manual backup to SD. When I now tried to perform the exact same operation, preparing for the 4.1 (Kvarken) update, the backup fails at the level of the playlists or notes (~ “Error: can’t load notes” or “Error: can’t load playlists”).

STEPS TO REPRODUCE:

  1. Assure SD card is present and has sufficient space.
  2. Settings>System>Backup-up>Manual backup>“Backup up now” button (best guess translations based on Dutch UI)

EXPECTED RESULT:

Progression and completion of backup progress bar, and creation of backup file in root of SD card (at least, this is where I found the file of the last successful manual backup to be residing)

ACTUAL RESULT:

  • Backup progress bar progresses and messages “back-up: accounts” and “back-up: gallery” (best guess translations) appear below bar.
  • Then error message “Error: can’t load notes” or “Error: can’t load playlists” (best guess translations) appears below the progress bar, along with a ‘check’ (~ “V”) sign to the right of the progress bar.
  • Despite the ‘check’ sign, no backup file was created in the root folder of the SD card.

ADDITIONAL INFORMATION:


(no idea how to read the log files and/or where to find the relevant ones, journalctl seemed to require root, please advise)

2 Likes

I had the same problem. It’s some problem with too little storage on the device itself. Backup process seems to need quite a lot temporary storage for compression. For me it helped to manually copy all pictures to SD card and then delete them from device storage. After update I copied them back.

2 Likes

Thanks. This workaround works!

I guess it would be more appropriate if the backup process performs a prior check of required and available space and give a proper and more to the point error/warning in case no sufficient space is found available. Could I somehow notify developers of this suggestion or is this forum bug report sufficient?

Thank you - this helped me make my backup with the same problem! I ran into the inverse problem when I tried to restore from that backup on a fresh Xperia 10ii. It kept faulting at Notes and leaving my contacts (!!!) and calls behind. (Note to developers: alphabetical order isn’t the correct priority sequence for backups, as People and Phone are dead last). The new phone and the SD card were both otherwise empty so there was nothing left to delete.

In case others run into this problem I unzipped the backup .tar locally on my computer and located the all.vcf file, which contained all my contacts – it is under /People/Data. I transferred that back to the phone and then used the following from the Guide:

Install vcardconverter if not already installed.

pkcon install nemo-qml-plugin-contacts-qt5-tools

Import contacts from vCard

devel-su -p vcardconverter all.vcf

I can confirm that this is still persistent in 4.4.
Freeing more space on the phone did work. It doesn’t matter how many GB are available on your sd card

Yes, tested and got the “cannot load playlists”. (XA2 Dual 4.4 with license)

1 Like

Not sure if this worth anything but the SF Cheat Sheet talks about diagnosing backup problems.

Backup Diagnostics

On the target device go to the command line. Download there Backup status reporting script and make it executable.

curl -o the-vault-storage-report.sh https://github.com/sailfishos/the-vault/blob/master/tools/the-vault-storage-report.sh && chmod a+x the-vault-storage-report.sh

Execute the command in privileged mode.

devel-su -p ./the-vault-storage-report.sh > /home/<user>/backup-status-report.txt

Attach resulting /home/<user>/backup-status-report.txt file to your bug report.

1 Like

Same here (4.4.0.68), error with Playlists or Notes. Jolla is it really that hard to make working backup? Or at least be able to exclude Gallery. Thats a bit sad that in 2022 a device cant make a backup to an empty SD card.

Thanks for your report @dad_and_alive. I’ve created an internal bug report about this and tagged it as “tracked”.

To make it easier to diagnose, it would be useful if you could please confirm that the underlying reason in your case was a lack of free space on your device (but not on the SD card you were backing up to).

How to get some usefull log out of failed backup?

Unfortunately the problem still exists in 4.4.0.72.
I used the backup (and restore) to switch from my slightly broken XA2 to the new 10 III.
Backup at the XA2 works fine. But restoring the backup at the 10 III always stops after the gallery with the error-message: Cannot load notes (translated from German). So neither the notes, nor all the hereafter coming data (primary the “contacts” are important) are restored.

The suggested workaround with freeing-up space on the phone unfortunately does not work: I cleaned all the images, there is 95 GB free user space + 2,3 GB free System Space.

Any other suggestions for a proper backup? (yes I know, I could copy the contacts etc. handish-ly, but this is not satifying).

Thx a lot in advance.

Cross-referencing: “Failed to load Notes” when restoring a backup from an old device to a newly flashed one sounds like this problem (caused by default username change, has a workaround in the linked topic).

1 Like

Is there a way to exclude the gallery from the backup?
As a workaround I will now move the pictures taken with the camera to the SD card. Hooe this helps.

One should make a backup before OS update, but backup doesnt work. Maybe there’s some Jolla joke hidden in here… :wink:

Looks that I can report from exactly same issues. First nothing mentioned about running out of space when creating a backup in XA2, just an issue related to “notes”. And then the issue of “notes” reappeared when loading the backup to 10 III that was fixed by creating a symlink for a temporary nemo user as described here. All looks good now, thanks all for really helpful instructions! :grin:

Maybe these instructions could be mentioned in Sailfish Support as well.

Trying to create a backup on an empty 32GB USB-stick. German translation of the error is basically “could not load” and it comes somewhere in the “compressing data” phase.

Very not helpful and the result is that i can not create backups anymore before digging into that and somehow exclude/remove the files causing the issue.

Anyhow, i would like to be able to simply backup over ssh. A feature already requested probably 20 times.

What exactly are you looking for there? Backing up (i.e. making a copy of) the home folder, or parts of it, via ssh is trivial … ok thinking about it there’s a challenge with some “privileged” files & folders. Nothing insurmountable.

Proof of concept:

ssh Sailfish-phone "devel-su tar cvzf backup.tar.gz /home/defaultuser/"
scp Sailfish-phone:backup.tar.gz .
ssh Sailfish-phone "devel-su rm backup.tar.gz"
2 Likes

You will also find many informations by using the forum search tool with some keywords like “bachup, ssh, ssffs…”

This subject has been discussed many times.

Turns out the the problem boils down to file size limits of the default FAT32, where it is 4GB.

Steps to repro:

  • have a lot of pictures/video so that a compressed tarball of them will exceed 4GB
  • plug in a fresh USB storage device and format it
  • create a manual back

what happens:

  • “could not read” error somewhere in the “compression” phase

expected result:

  • should create a working backup or return a meaningful error message

suggested workaround for current users:

  • format with exfat on a linux machine
  • or move the big files away for the backup and put them back later … lame workaround

suggested improvements:

  • better error reporting and logging for backups!
  • allow the use of ext4 USB for backups
  • change default fs when formatting a fresh drive 4GB is really not cutting it
  • look into 2038 bug when mkfs ing
  • split backups on “old filesystems” into multiple tarballs