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

Please enter valid encryption key for realm file #4795

Closed
saham opened this issue Mar 29, 2017 · 17 comments
Closed

Please enter valid encryption key for realm file #4795

saham opened this issue Mar 29, 2017 · 17 comments

Comments

@saham
Copy link

saham commented Mar 29, 2017

screen shot 2017-03-29 at 9 09 46 am

Goals

Open my realm DB

Expected Results

Opens the file as usual

Actual Results

Steps to Reproduce

Just open a realm DB created with Realm-Swift 2.5.0

Code Sample

Version of Realm and Tooling

Realm version: ?
2.1.6
Xcode version: ?
8.3.1
iOS/OSX version: ?
MacOS Sierra 10.12.4
Dependency manager + version: ?

@kishikawakatsumi
Copy link
Contributor

@saham This means that you attempt to open encrypted Realm file, synced Realm file that was produced by Realm Mobile Platform or a corrupted Realm file. If you don't use encryption feature, the file may be corrupted. Could you share more details? Please share your code around using Realm.

@saham
Copy link
Author

saham commented Mar 29, 2017

It's a big project but I will share some codes working on realm. I even deleted all realm database files and folders but I still get the same error. How can I find if I am using synced one? Where it is synced to?
Thank you

@saham
Copy link
Author

saham commented Mar 29, 2017

It happened after I used realm swift 3.5.0 ro work with swift 3.1 and Xcode 8.3

@kishikawakatsumi
Copy link
Contributor

@saham It figures out. Realm 2.5 introduces new file format. Existing files will automatically be upgraded when they are opened. The Realm browser in AppStore doesn't support the new file format. You can use new version of browser that can be downloaded from GitHub until new version will be passed AppStore review.

https://github.com/realm/realm-browser-osx/releases/tag/v2.1.7

@saham
Copy link
Author

saham commented Mar 29, 2017

Problem solved. Thanks a million

@intiocean
Copy link

intiocean commented Feb 15, 2018

The same thing happened again with the upgrade to the latest version of realm - get the latest realm browser off github: https://github.com/realm/realm-browser-osx/releases/

@tomkoptel
Copy link

Happened to me as wellon Realm Browser 3.0.1

@alizainprasla
Copy link

alizainprasla commented May 23, 2018

@tomkoptel Did you found any solution?

@aalenliang
Copy link

Happened to me sometimes with Realm Browser Version 3.0.1 (98), RealmSwift (3.17.1)

@ashmenon
Copy link

Happening to be as well, on Version 3.0.1 (98). And I can confirm this is a brand new Realm database (just installed the pod 5 mins ago).

@anshuvij
Copy link

happening to me as well. using 3.0.1 from AppStore

@salvoeffe
Copy link

Happening to me as well, found any solutions?

@leofr1cs
Copy link

leofr1cs commented May 24, 2020

solution:
Realm browser is deprecated - the developer now has released realm studio (not available on app store but from their website) with one catch... its not fully updated for Catalina (Apple can't scan it for virus') - solution, open in finder, then right click to open it (I guess I'm ok with taking risks... )
... and realm studio CAN open the default.realm file without a prompt for a 128bit encryption key! hooray

@mhamidg
Copy link

mhamidg commented Jun 17, 2020

I am also facing the same issue after updating realm version 5....
I am unable to open in realm browser as well as real studio. Same 128 bit encryption error. even I didn't put any encryption.

@mhamidg
Copy link

mhamidg commented Jun 17, 2020

I just downloaded Realm Studio latest verison 3.11.0. and its working fine.

@stevhens
Copy link

stevhens commented Jun 27, 2020

Downloaded Realm Browser 3.0.1 on the App Store and facing the same issue.

solution:
Realm browser is deprecated - the developer now has released realm studio (not available on app store but from their website) with one catch... its not fully updated for Catalina (Apple can't scan it for virus') - solution, open in finder, then right click to open it (I guess I'm ok with taking risks... )
... and realm studio CAN open the default.realm file without a prompt for a 128bit encryption key! hooray

Referring to @leofr1cs answer above, eventually I could open .realm file with current Realm Studio 3.11.0.

To download, go to "Get Started with Realm" section near the bottom of below page and you'll find it:
Download Realm Studio here
or
realm.io docs

@shinhyogeun
Copy link

i think best solution is just download realm Studio in https://docs.realm.io/sync/realm-studio
and they might be considered virus but i think that's because Catalina update is not complited..
and i also this @leofr1cs 's opinion (I guess I'm ok with taking risks... ) i think they will update realm Studio in Big sur

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests