X
Tap here to go to the mobile version of the site.

Support Forum

Is there any way of recovering logins.json.corrupt ?

Posted

Yesterday I lost all my passwords after a weird episode ( see https://support.mozilla.org/en-US/questions/1085073 and https://support.mozilla.org/en-US/questions/1085300 ). I have a new logins.json file in my profile folder with whatever passwords I've been able to reconstruct, and in the same folder is logins.json.corrupt (27K, 24740 characters according to Texpad, but none of them visible - blank page). This answer (https://support.mozilla.org/en-US/questions/1054932 ) - reset signon.importedFromSqlite, close FF, delete logins.json and re-open - did not work. But I re-set "Value (user set)" in signon.importedFromSqlite - maybe I should have reset "Value"?

Just checked - resetting Value didn't help either.

Yesterday I lost all my passwords after a weird episode ( see https://support.mozilla.org/en-US/questions/1085073 and https://support.mozilla.org/en-US/questions/1085300 ). I have a new logins.json file in my profile folder with whatever passwords I've been able to reconstruct, and in the same folder is logins.json.corrupt (27K, 24740 characters according to Texpad, but none of them visible - blank page). This answer (https://support.mozilla.org/en-US/questions/1054932 ) - reset signon.importedFromSqlite, close FF, delete logins.json and re-open - did not work. But I re-set "Value (user set)" in signon.importedFromSqlite - maybe I should have reset "Value"? Just checked - resetting Value didn't help either.

Modified by FxFxx

Chosen solution

cor-el said

You can check if there are previous versions of the logins.json and key3.db files available.
  • Right-click: Properties > Previous Versions
There is no way to tell if you have a correct key3.db file. If it works then you see the names in the Password Manager. Otherwise you see an empty Password Manager window or an error message.

Yes! A million thanks. Got all my passwords back.

For people who find this answer: I opened my Profiles folder, right-clicked on logins.json, viewed Properties "Previous versions". It produced a list of three. In the list, right-clicked on one from last week, the only useful option was "Copy". Copied then pasted to desktop, where recovered logins.json appeared. Then copied current logins.json from Profiles to safe place (just it case), then deleted it from the Profiles folder and replaced it with the recovered version.

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • Adobe PDF Plug-In For Firefox and Netscape 11.0.12
  • Content Blocker Extension
  • GEPlugin
  • Online Banking Extension
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Shockwave Flash 19.0 r0
  • Virtual Keyboard

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0

More Information

guigs
  • Top 25 Contributor
  • Administrator
  • Moderator
1038 solutions 11342 answers

Did you ever set a master password>>? Unfortunately, since it is corrupt I might have to suggest to only salvage part of the file that does still work. You might find a reference of a working logins.json file to see what format it is in to decipher the corruption. It's ugly, but I cannot think of a better way to save them other then starting over.

Did you ever set a master password>>? Unfortunately, since it is corrupt I might have to suggest to only salvage part of the file that does still work. You might find a reference of a working logins.json file to see what format it is in to decipher the corruption. It's ugly, but I cannot think of a better way to save them other then starting over.
cor-el
  • Top 10 Contributor
  • Moderator
15474 solutions 140148 answers

Using the signon.importedFromSqlite pref makes it possible to reimport passwords stored in the signons.sqlite file that older Firefox versions used.

The passwords stored in logins.json and signons.sqlite are encrypted with a key stored in key3.db. If you do not have the correct key3.db file then you won't be able to use the logins.json file or the signons.sqlite file if you still have this file.

Using the signon.importedFromSqlite pref makes it possible to reimport passwords stored in the signons.sqlite file that older Firefox versions used. The passwords stored in logins.json and signons.sqlite are encrypted with a key stored in key3.db. If you do not have the correct key3.db file then you won't be able to use the logins.json file or the signons.sqlite file if you still have this file.

Question owner

cor-el said

Using the signon.importedFromSqlite pref makes it possible to reimport passwords stored in the signons.sqlite file that older Firefox versions used. The passwords stored in logins.json and signons.sqlite are encrypted with a key stored in key3.db. If you do not have the correct key3.db file then you won't be able to use the logins.json file or the signons.sqlite file if you still have this file.

I still have key3.db, and a new logins.json file has generated itself, but the one with all my passwords is logins.json.corrupt.

''cor-el [[#answer-785616|said]]'' <blockquote> Using the signon.importedFromSqlite pref makes it possible to reimport passwords stored in the signons.sqlite file that older Firefox versions used. The passwords stored in logins.json and signons.sqlite are encrypted with a key stored in key3.db. If you do not have the correct key3.db file then you won't be able to use the logins.json file or the signons.sqlite file if you still have this file. </blockquote> I still have key3.db, and a new logins.json file has generated itself, but the one with all my passwords is logins.json.corrupt.
FredMcD
  • Top 10 Contributor
3092 solutions 41810 answers

In the event that the passwords information is lost, you should record all information in a separate text file somewhere else on your hard drive, or written down. You can easily copy and paste if you need to do so. If you are concerned about someone else looking at that file, you can compress it using a password.


These can't get your data back, but will help in the future.

These add-ons can be a great help by backing up and restoring Firefox

FEBE (Firefox Environment Backup Extension) {web link} FEBE allows you to quickly and easily backup your Firefox extensions, history, passwords, and more. In fact, it goes beyond just backing up -- It will actually rebuild your saved files individually into installable .xpi files. It will also make backup of files that you choose.

OPIE {web link} Import/Export extension preferences

In the event that the passwords information is lost, you should record all information in a separate text file somewhere else on your hard drive, or written down. You can easily copy and paste if you need to do so. If you are concerned about someone else looking at that file, you can compress it using a password. ---------------- These can't get your data back, but will help in the future. These add-ons can be a great help by backing up and restoring Firefox '''[https://addons.mozilla.org/en-US/firefox/addon/febe/ FEBE (Firefox Environment Backup Extension)]''' {web link} FEBE allows you to quickly and easily backup your Firefox extensions, history, passwords, and more. In fact, it goes beyond just backing up -- It will actually rebuild your saved files individually into installable .xpi files. It will also make backup of files that you choose. '''[https://addons.mozilla.org/en-US/firefox/addon/opie/ OPIE]''' {web link} Import/Export extension preferences
cor-el
  • Top 10 Contributor
  • Moderator
15474 solutions 140148 answers

You can check if there are previous versions of the logins.json and key3.db files available.

  • Right-click: Properties > Previous Versions

There is no way to tell if you have a correct key3.db file. If it works then you see the names in the Password Manager. Otherwise you see an empty Password Manager window or an error message.

You can check if there are previous versions of the logins.json and key3.db files available. *Right-click: Properties > Previous Versions *http://windows.microsoft.com/en-US/windows7/Previous-versions-of-files-frequently-asked-questions There is no way to tell if you have a correct key3.db file. If it works then you see the names in the Password Manager. Otherwise you see an empty Password Manager window or an error message.

Chosen Solution

cor-el said

You can check if there are previous versions of the logins.json and key3.db files available.
  • Right-click: Properties > Previous Versions
There is no way to tell if you have a correct key3.db file. If it works then you see the names in the Password Manager. Otherwise you see an empty Password Manager window or an error message.

Yes! A million thanks. Got all my passwords back.

For people who find this answer: I opened my Profiles folder, right-clicked on logins.json, viewed Properties "Previous versions". It produced a list of three. In the list, right-clicked on one from last week, the only useful option was "Copy". Copied then pasted to desktop, where recovered logins.json appeared. Then copied current logins.json from Profiles to safe place (just it case), then deleted it from the Profiles folder and replaced it with the recovered version.

''cor-el [[#answer-785648|said]]'' <blockquote> You can check if there are previous versions of the logins.json and key3.db files available. *Right-click: Properties > Previous Versions *http://windows.microsoft.com/en-US/windows7/Previous-versions-of-files-frequently-asked-questions There is no way to tell if you have a correct key3.db file. If it works then you see the names in the Password Manager. Otherwise you see an empty Password Manager window or an error message. </blockquote> Yes! A million thanks. Got all my passwords back. For people who find this answer: I opened my Profiles folder, right-clicked on logins.json, viewed Properties "Previous versions". It produced a list of three. In the list, right-clicked on one from last week, the only useful option was "Copy". Copied then pasted to desktop, where recovered logins.json appeared. Then copied current logins.json from Profiles to safe place (just it case), then deleted it from the Profiles folder and replaced it with the recovered version.

Modified by FxFxx

statements 0 solutions 1 answers

Hi

My files got corrupted on yesterday update . I have the same issue. but i could not find the old version of logins.json file.

There is a file logins.json.corrupt instead of logins.json

corrupt file is about 324KB.

Is there any way to get login details from the corrupt file ?

Hi My files got corrupted on yesterday update . I have the same issue. but i could not find the old version of logins.json file. There is a file logins.json.corrupt instead of logins.json corrupt file is about 324KB. Is there any way to get login details from the corrupt file ?
guigs
  • Top 25 Contributor
  • Administrator
  • Moderator
1038 solutions 11342 answers

@ statements I might encourage you to start a new question for more help from the experts. Other than searching through the corrupt file with a word editor I cannot think of a quick way to recover this.

If the above information does not resolve your issue, please consider creating a new thread containing the specific details of your issue.

Doing so will allow the Mozilla volunteers to give you solutions that are more helpful to you. This may help them to solve your problem faster and more efficiently.

Please, feel free to post the link to your thread on this thread for volunteers interested in assisting you.

Thank you.

@ statements I might encourage you to start a new question for more help from the experts. Other than searching through the corrupt file with a word editor I cannot think of a quick way to recover this. If the above information does not resolve your issue, please consider creating a new thread containing the specific details of your issue. Doing so will allow the Mozilla volunteers to give you solutions that are more helpful to you. This may help them to solve your problem faster and more efficiently. Please, feel free to post the link to your thread on this thread for volunteers interested in assisting you. Thank you.
FredMcD
  • Top 10 Contributor
3092 solutions 41810 answers

Those files are encoded to prevent that type of action.


In the event that the passwords information is lost, you should record all information in a separate text file somewhere else on your hard drive, or written down. You can easily copy and paste if you need to do so. If you are concerned about someone else looking at that file, you can compress it using a password.


These can't get your data back, but will help in the future.

These add-ons can be a great help by backing up and restoring Firefox

FEBE (Firefox Environment Backup Extension) {web link} FEBE allows you to quickly and easily backup your Firefox extensions, history, passwords, and more. In fact, it goes beyond just backing up -- It will actually rebuild your saved files individually into installable .xpi files. It will also make backup of files that you choose.

OPIE {web link} Import/Export extension preferences

Those files are encoded to prevent that type of action. ----------- In the event that the passwords information is lost, you should record all information in a separate text file somewhere else on your hard drive, or written down. You can easily copy and paste if you need to do so. If you are concerned about someone else looking at that file, you can compress it using a password. --------------- These can't get your data back, but will help in the future. These add-ons can be a great help by backing up and restoring Firefox '''[https://addons.mozilla.org/en-US/firefox/addon/febe/ FEBE (Firefox Environment Backup Extension)]''' {web link} FEBE allows you to quickly and easily backup your Firefox extensions, history, passwords, and more. In fact, it goes beyond just backing up -- It will actually rebuild your saved files individually into installable .xpi files. It will also make backup of files that you choose. '''[https://addons.mozilla.org/en-US/firefox/addon/opie/ OPIE]''' {web link} Import/Export extension preferences
cor-el
  • Top 10 Contributor
  • Moderator
15474 solutions 140148 answers

Ht statement

Did you check the content of the logins.json-corrupt file to see if it is a valid JSON format?

You can open the file in the Scratchpad (Firefox menu button or Tools > Web Developer). Click the "Pretty Print" button to format the file for readability.

Ht statement Did you check the content of the logins.json-corrupt file to see if it is a valid JSON format? You can open the file in the Scratchpad (Firefox menu button or Tools > Web Developer). Click the "Pretty Print" button to format the file for readability.