Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save to disk exception - realm file decryption failed #3332

Closed
pysiak opened this issue Jun 29, 2021 · 7 comments
Closed

Save to disk exception - realm file decryption failed #3332

pysiak opened this issue Jun 29, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@pysiak
Copy link

pysiak commented Jun 29, 2021

I had bluewallet on an iPhone 7. I migrated to iPhone 11. When I launch bluewallet I get this:
image

The iPhone 11 has some MDM restrictons.

What do?

@Overtorment
Copy link
Member

how did you migrate from iphone7 to iPhone 11?
looks like encryption key didn't migrate for this particular database file

@Overtorment
Copy link
Member

luckily this is not very important database file, so we could probably handle this exception and recreate this database from scratch.

you could also backup wallet export, and then reinstall bluewallet

@pysiak
Copy link
Author

pysiak commented Jul 2, 2021

new phone was restored from iCloud backup of previous phone. I made sure previous phone had a very recent backup.
where are the keys stored? iCloud keychain?
I know that the new phone is managed and has some OS-level restrictions. Perhaps in such scenario this fails.

Restrictions I have are:

  1. Authentication before Auto Filling passwords enforced
  2. Managed apps cloud sync not allowed
  3. Diagnostic submission not allowed
  4. Unmanaged apps read managed contacts allowed
  5. USB drives not accessible in Files app
  6. Sharing managed documents using AirDrop not allowed
  7. iCloud Keychain not allowed
  8. Delay period for Delayed Software Updates is 45 days
  9. Safari fraud warning enforced
  10. Synchronizing enterprise books notes and highlights not allowed
  11. Managed apps write to unmanaged contacts allowed
  12. Network drives not accessible in Files app
  13. Documents in the Cloud not allowed
  14. Delayed Software Updates enforced
  15. Wrist detection enforced on Apple Watch
  16. Establishing untrusted TLS connections not allowed
  17. Opening documents from managed to unmanaged apps not allowed
  18. Backup up enterprise books not allowed
  19. Limited ad tracking enforced

Perhaps 7, 13, maybe 12 are causing issues in my situation. I suspect that may be some of it because I'm seeing the new phone cannot decrypt my Breez wallet, says PIN incorrect.

I will try to reinstall and restore using an export and report how that goes.

@Overtorment
Copy link
Member

iCloud Keychain not allowed might be the issue.
but the existing wallet survived the migration? in this case, it's a bit odd.

@motud2
Copy link

motud2 commented Jul 12, 2021

I have th same problem on iPaf.

New iPad restored from old iPad.

B429E1F4-1B08-4853-BA7E-0F6D3C3CC324

@Overtorment Overtorment self-assigned this Jul 12, 2021
@Overtorment Overtorment added the bug Something isn't working label Jul 12, 2021
@Overtorment Overtorment changed the title Save to disk exception Save to disk exception - realm file decryption failed Jul 23, 2021
GladosBlueWallet added a commit that referenced this issue Aug 15, 2021
FIX: realm encryption mismatch after backup restore (closes #3332)
@brendanphall
Copy link

Same problem occurring after backup / restore on Mac OS 11.3.1

@Overtorment
Copy link
Member

fix should make it into the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants