[4.1.0.24 Xperia 10 II] Backup: Restore from XA2 fails

REPRODUCIBILITY (% or how often): 100%
BUILD ID = OS VERSION (Settings > About product): 4.1.0.24
HARDWARE (XA2, Xperia 10…): XA2 → Xperia 10 II
UI LANGUAGE: english
REGRESSION: (compared to previous public release: Yes, No, ?): ?

DESCRIPTION:

Both devices run OS 4.1.0.24, XA2 via update, Xperia 10 II via flash. After backing up on XA2 and inserting the SDcard to the Xperia 10 II the backup application finds the backup and restores it until the Messages section. Here it hangs without giving any clue in the logfiles…

PRECONDITIONS:

Fresh backup from XA2 on virgin Xperia 10 II (after several reboots…)

STEPS TO REPRODUCE:

  1. backup to SDcard
  2. insert SDcard in Xperia 10 II
  3. use restore function in Settings > System > Backup

EXPECTED RESULT:

Restore runs through all sections and reports success

ACTUAL RESULT:

Restore hangs, process “commhistory-tool” needs to be killed manually.

ADDITIONAL INFORMATION:

Last info in “sailfish_backup_2021-05-29T18-17-56Z_memory-card_restore.txt”

Start: /usr/libexec/jolla-vault/units/vault-messages --action import --name Messages --bin-dir /home/defaultuser/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2021-05-29T18-17-56Z/Messages/blobs --dir /home/defaultuser/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2021-05-29T18-17-56Z/Messages/data --home-dir /home/defaultuser

Log (journalctl):

May 30 16:28:27 Xperia10II-DualSIM p[12321]: [W] unknown:0 - [Log] “Start: /usr/libexec/jolla-vault/units/vault-messages --action import --name Messages --bin-dir /home/defaultuser/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2021-05-29T18-17-56Z/Messages/blobs --dir /home/defaultuser/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2021-05-29T18-17-56Z/Messages/data --home-dir /home/defaultuser”
May 30 16:28:27 Xperia10II-DualSIM commhistory-tool[13353]: [W] CommHistoryDatabase::open:303 - Opened commhistory database: “/home/defaultuser/.local/share/commhistory/commhistory.db”
May 30 16:28:28 Xperia10II-DualSIM commhistory-tool[13353]: [D] Catcher::groupsCommittedSlot:81 - void Catcher::groupsCommittedSlot(QList, bool)
May 30 16:28:28 Xperia10II-DualSIM commhistory-tool[13355]: [W] CommHistoryDatabase::open:303 - Opened commhistory database: “/home/defaultuser/.local/share/commhistory/commhistory.db”
May 30 16:28:28 Xperia10II-DualSIM commhistory-tool[13355]: [D] Catcher::groupsCommittedSlot:81 - void Catcher::groupsCommittedSlot(QList, bool)
May 30 16:28:28 Xperia10II-DualSIM commhistory-tool[13355]: [W] CommHistory::DatabaseIO::addEvent:383 - bool CommHistory::DatabaseIO::addEvent(CommHistory::Event&) Adding event with an ID set. ID will be ignored.
<…~250x>
May 30 16:28:28 Xperia10II-DualSIM commhistory-tool[13355]: [D] Catcher::eventsCommittedSlot:71 - void Catcher::eventsCommittedSlot(QListCommHistory::Event, bool)
May 30 16:28:28 Xperia10II-DualSIM commhistory-tool[13355]: [D] Catcher::groupsCommittedSlot:81 - void Catcher::groupsCommittedSlot(QList, bool)
…~250x

This is an easy fix for this problem:

1 Like

…I’ve tried this and the other topic where you re-tar the backup - did not help in my case. The path look OK in the log. Guess it’s something with the database?