Skip to content

Unable to restore encrypted backup #7637

@johanw666

Description

@johanw666

Bug description

I can not restore the new encrypted backup after I remove and re-install Signal on a device. Same issue as #7446 that was closed in the mega cleanup.

Steps to reproduce

  • install Signal 4.18.1 (official Playstore apk).
  • register Signal.
  • Exchange some messages with other Signal users.
  • Create full backup.
  • Uninstall Signal
  • Install Signal
  • Start Signal
  • Try to restore backup

Actual result: I always get a toast with "Incorrect Backup Passphrase".
Expected result: The backup is restored.

Screenshots

screenshot_20180404-231835
screenshot_20180404-233226

The backup file with the password shown above can be found at https://mega.nz/#!0JAE0ICZ!m7mdGvQbl1wkTpJJbf1FIMKvxCovreG_gDW7JkfQ-xI

Device info

Device: Sony Z3 Compact (D5508)
Android version: 6.0.1
Signal version: 4.18.1

Link to debug log

Since Signal did not start I placed a logcat output on https://mega.nz/#!0JhxXZqA!oR2jjR_POoZqw_vfws92KwgVU-uq3F2UT9oefuMCHnI

The relecvant part is:

04-04 23:32:22.214 W/RegistrationActivity(30637): java.io.IOException: Bad MAC
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at org.thoughtcrime.securesms.backup.FullBackupImporter$BackupRecordInputStream.readFrame(FullBackupImporter.java:248)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at org.thoughtcrime.securesms.backup.FullBackupImporter$BackupRecordInputStream.readFrame(FullBackupImporter.java:189)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at org.thoughtcrime.securesms.backup.FullBackupImporter.importFile(FullBackupImporter.java:67)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at org.thoughtcrime.securesms.RegistrationActivity$2.doInBackground(RegistrationActivity.java:372)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at org.thoughtcrime.securesms.RegistrationActivity$2.doInBackground(RegistrationActivity.java:364)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at android.os.AsyncTask$2.call(AsyncTask.java:295)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
04-04 23:32:22.214 W/RegistrationActivity(30637): 	at java.lang.Thread.run(Thread.java:818)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions