为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Crashed, old profile does not load logins. Files are different!

  • 12 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 Ben

more options

windows 10 crashed, had to start over. Saved a profile last November, copied it over, Nightly can not recover my passwords. Old profile used key3.db, new profile uses key4.db. How can I make it work?

windows 10 crashed, had to start over. Saved a profile last November, copied it over, Nightly can not recover my passwords. Old profile used key3.db, new profile uses key4.db. How can I make it work?

被采纳的解决方案

Solved. I am not sure how. After extensive searching, I found a cmd line to set environment varfiables. It did not work. Having no knowledge of environment vars. or how to set them, I clipped off the problematic part and ran "set NSS_DEFAULT_DB_TYPE=sql" through Windows Power Shell. That is supposed to force FF to use the old sqlite db files. No change, of cuss. I created a new profile, renamed it and renamed the year old profile to match it. Bingo! both programs now have my old logins!

Thanks for your help!!!

定位到答案原位置 👍 1

所有回复 (12)

more options

Your passwords are stored in two different files, both of which are required:

   key4.db - This file stores your key database for your passwords. To transfer saved passwords, you must copy this file along with the following file.
   logins.json - Saved passwords. 

https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile#w_passwords

more options

I saved a profile last November. It contains key3.db, not key4.db which the new version requires.

I copied all the files from the old profile to a new profile. No saved logins!!!

How can I convert the old db file to the new format?

more options

You need to delete an existing key4.db file to make Firefox fallback to logins.json and key3.db.

You may have to remove pkcs11.txt and secmode.db.

more options

File deletions and setting the environment variable failed. No logins!

more options

What Firefox version created/used the profile with the logins.json and key3.db files you used?

Do these files work in a separate profile with the current Firefox release?

more options

cor-el said

What Firefox version created/used the profile with the logins.json and key3.db files you used? Do these files work in a separate profile with the current Firefox release?

I have no clue. I began using Nightly when a windows update killed the audio in videos. Everything was lost in a crash. All I have left that I can find is one profile. I am presently searching a 1TB external for key4.db and doubt there is any hope.

I can not make Nightly or Thunderbird recognize old profiles, must make a new profile and copy files into it. The Profile Mgr. does not see them. The current try comes from a backup made 11/18/17.

Search came back empty. The backup I used, from last May, did not replace all files. It is nothing but a long list of zip folders with no indication of the contents. A search for key4.db came up empty.

more options

Why don't you try the current Firefox release?

Nightly updates twice a day and is an unstable development branch meant for experienced users.

You can find the full version of the current Firefox release (62.0.3) in all languages and all operating systems here:

more options

I had both installed, generally used Nightly, I like it. I doubt that FF will differ in regard to the profile but I will try it. In the mean time I have no access to my logins.

I have fat finger syndrome and visual impairment so I depend on the saved passwords!

more options

Firefox gives the same result except that now neither program will set new history. Both report that another program is using the file even though only one is running.

more options

选择的解决方案

Solved. I am not sure how. After extensive searching, I found a cmd line to set environment varfiables. It did not work. Having no knowledge of environment vars. or how to set them, I clipped off the problematic part and ran "set NSS_DEFAULT_DB_TYPE=sql" through Windows Power Shell. That is supposed to force FF to use the old sqlite db files. No change, of cuss. I created a new profile, renamed it and renamed the year old profile to match it. Bingo! both programs now have my old logins!

Thanks for your help!!!

more options

Note that 'sql' (SQLite) is the newer format and the old format was 'dbm' (Berkeley Database) although SQL has been supported since 2011. So you would have to use set NSS_DEFAULT_DB_TYPE=dbm to use key3.db

more options

Tried the rename trick on 760, it worked without setting any env. vars.