Conversations icon indicating copy to clipboard operation
Conversations copied to clipboard

Restore of backup not working

Open sjaeckel opened this issue 4 years ago • 13 comments
trafficstars

Both versions: 2.9.13+fcr

Steps to reproduce:

  1. On device 1 - "Create backup"
  2. Transfer ceb files from device 1 to device 2
  3. On device 2 - "Restore backup"
  4. Navigate to the ceb file and select it

Expected behavior: Backup is restored

Actual result: Message is displayed "The file you selected is not a Conversations backup file"

Side-note: This also happens when trying to restore the ceb file on the device where the backup was created.

sjaeckel avatar May 17 '21 09:05 sjaeckel

Looks like there went something wrong while transferring the file. If I use the original file on the device where the backup is created, it seems to work.

sjaeckel avatar May 17 '21 10:05 sjaeckel

I've reopened this issue as I'm not sure where the problem lies and I'd like to have your opinion on it.

I've created the backup and transferred the file via the NextCloud client to the new device.

After downloading in the NextCloud client I selected the ceb file from the "Open from" dialog via "Nextcloud", navigating to the file, selecting it and this resulted in the aforementioned error.

When I navigated to the file via the full path Android/media/com.nextcloud.client/nextcloud/<account>/path/to/file.ceb and retried it worked as expected.

sjaeckel avatar May 17 '21 10:05 sjaeckel

Put the file in /Conversations/Backup Does it always work?

licaon-kter avatar May 17 '21 10:05 licaon-kter

Do you have a log?

iNPUTmice avatar May 17 '21 13:05 iNPUTmice

How can I create one?

sjaeckel avatar May 17 '21 14:05 sjaeckel

https://github.com/iNPUTmice/Conversations/blob/master/README.md#how-do-i-debug-conversations

iNPUTmice avatar May 17 '21 14:05 iNPUTmice

The only thing that is printed on failure in the log is

directory not found: /storage/emulated/0/Quicksy/Backup
directory not found: /storage/emulated/0/Conversations/Backup

sjaeckel avatar May 17 '21 15:05 sjaeckel

@sjaeckel did you allow storage permission when asked?

licaon-kter avatar May 17 '21 15:05 licaon-kter

Yes, Storage permission is set to "Allow".

I've also tried to add an attachment to a message via the same logic and that worked.

sjaeckel avatar May 17 '21 16:05 sjaeckel

My best guess is that the NextCloud client doesn’t grant us permission to access that file. However 98ffadd87d8a6118af39fb00b2cb02d075e37951 will log the full stack trace.

iNPUTmice avatar May 18 '21 08:05 iNPUTmice

@iNPUTmice in the FAQ it is described how to do the backup, but I could not see how to do the restore. I.E. tap on the ceb file and open with Conversations. Or have I overlooked it? For me it was not obvious how to restore the backup. Only when I've read in this issue to tap on the file, it was clear to me.

hermann-san avatar May 09 '22 12:05 hermann-san

@hermann-san

Install Conversations, try to open a .ceb file via a File manager?

Start a fresh install of Conversations, upper right menu, Restore?

A running Conversations, accounts, upper right menu, Restore?

Which one did you try?

licaon-kter avatar May 09 '22 14:05 licaon-kter

@licaon-kter Thanks, I already got it working, but I thought that the FAQ could be improved.

hermann-san avatar May 09 '22 16:05 hermann-san