We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Restoring from backup fails [XA2 Ultra][3.0.3.9]

asked 2019-05-12 13:43:27 +0300

Shoppinguin gravatar image

As problems started piling up on my XA2 Ultra i decided to reset it to factory defaults. The built-in backup tool was only creating mostly empty files(only ~20kB) in size, despite saying it was successfully created. To put the icing on the cake, the tool also deleted the last working backup without asking, since it was obviously programmed to keep only the last two files... I resorted to back up /home completely to a tar file using the "--numeric-owner" to help keep file permissions and copy everything back later. Now is where all the fun started. The factory reset completely hung up, failed and sent the device into a bootloop. Tha backup was done while being on the same version 3.0.3.9 so i figured i'd just download that exact same version from the Jolla shop and flash it to the device. The flashing process went smoothly, so i installed the most important packages and restored /home from the backup file preserving owner and permissions. Everything went well, at least for the android apps. they were all back again just where i left them. Not so much for the native apps. None of my emails were there, the contact list was empty and the store was not working as there was suddenly no account registered anymore and no way to add one. Also the contact list would not open. Is there any hope i could get at least my contact list back so i can do a fresh start?

edit retag flag offensive close delete

Comments

I attempted the built-in backup function one time, and it didn't work for me either, so I just occasionally make full image backups now, and always keep one on hand. I have a feeling that the backup function is pretty lacking at this point ...

Levone1 ( 2019-05-12 14:57:14 +0300 )edit

i tried this https://together.jolla.com/question/162902/contactsdb-what-to-do-with-it/ but it did not work. The contacts.db contains all my contacts data, as i can see it with an sqlite browser application. But when i copy it over to my phone contacts are still not shown. Contacts app will do like there's nothing here.

Shoppinguin ( 2019-05-16 19:46:01 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-05-20 19:16:06 +0300

Shoppinguin gravatar image

I consider this now solved. After reflashing the latest Sailfish 3.0.3.9 to the device i can now make working backups again. The key to getting my contacts first was to copy back the files under /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite/ The reason why it worked now was because i deleted the complete folder prior to copying. Simply overwriting obviously does not work!

edit flag offensive delete publish link more

Comments

two possible explanations:

  • the folder has special access rights ("privileged" instead of "nemo"). if you do not untar as root, you'll have access problems
  • the sqlite consist of multiple files. .db is always here and contains the database it self. but there can be other files, e.g containing the journal. upon untaring your backup, you might end up with an inconsistent mix (journal entries for a different version of the database). Upon restarting the contactsd daemon it could be trying to replay the journal and crash due to inconsistencies.

Personally, when restoring or moving to a new phone from my full backup (rsync instead of tar), i don't attempt restoring contacts, i re-register the accounts (Settings app -> Accounts section completely at the bottom after the settings) and redownload them.

DrYak ( 2019-05-22 01:12:07 +0300 )edit

The second point is a good one, the first point not so much. I untared and tared as root for obvious reasons and made sure the contacs service wasn't running. Now, backup and restoring from the system menu are working again, so i might as well save them that way

Shoppinguin ( 2019-05-25 21:20:11 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2019-05-12 13:43:27 +0300

Seen: 208 times

Last updated: May 20 '19