NOTICE: Unexplained Data Loss Issue

Hi folks

Thanks for sharing information here - there are a few of us looking at this. We’ve found a few places where we should be able to add logging to find more information

In the meantime, I do have something that people on Windows can check for. Folks having this issue can look in the profile folder. For me, this is:
%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data

When you navigator there in Windows explorer, you should see a file called Local State. For people having the problem, I’m curious if there is a file called Local State.bad.

If the Local State file becomes corrupt for whatever reason, it will move itself to the .bad version and generate a new empty local state. OSCrypt (the code behind the scenes) is looking for a key inside Local State called os_crypt. Under that key, there is a value encrypted_key. If that key is not found (because it’s in Local State.bad OR because it can’t decrypt), that triggers a condition where a new key is created

If you DO have a .bad file, please open in an editor and look for this os_crypt key and encrypted_key value. If you see those, you can carefully copy that single line to your Local State. I would use an editor that checks for valid JSON before saving.

Please let me know! Thanks for your patience

2 Likes