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

搜索 | 用户支持

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

详细了解

Firefox not saving usernames passwords

  • 4 个回答
  • 0 人有此问题
  • 5 次查看
  • 最后回复者为 cgrobertson

more options

I recently updated to Firefox 104. When starting up the browser it prompted me to do a refresh which I naively said yes to. After Firefox was done refreshing and finally came up again I noticed all my saved logins (usernames/passwords) from version 103 were gone. I spent the last several recovering my passwords which was very frustrating. And when Firefox prompted me to save the uname/passwds for each I pressed the save button thinking they were saved. I should have checked because they were not saved when I went to the about:logins page to see. It was empty. So I clicked on the "Create New Login" button to enter one manually. After entering in the web URL, my username and password and clicking "Save" a red banner appears above saying "An error occurred while trying to save this password."

How can I fix this so Firefox will once again save passwords?

I recently updated to Firefox 104. When starting up the browser it prompted me to do a refresh which I naively said yes to. After Firefox was done refreshing and finally came up again I noticed all my saved logins (usernames/passwords) from version 103 were gone. I spent the last several recovering my passwords which was very frustrating. And when Firefox prompted me to save the uname/passwds for each I pressed the save button thinking they were saved. I should have checked because they were not saved when I went to the about:logins page to see. It was empty. So I clicked on the "Create New Login" button to enter one manually. After entering in the web URL, my username and password and clicking "Save" a red banner appears above saying "An error occurred while trying to save this password." How can I fix this so Firefox will once again save passwords?
已附加屏幕截图

被采纳的解决方案

Ok, I got my saved passwords restored. I found a logins-backup.json in the new profile folder and copying that to logins.json and starting Firefox restored my saved passwords and the password saving functionality is working properly now. However, by just copying that one file my session was not restored. All the tabs and windows I had open in the previous session (before the copy) all disappeared. I had to go the the "Old Firefox Data/" directory and copy the sessionstore.jsonlz4 over to recover my saved tabs and windows. Just weird.

定位到答案原位置 👍 0

所有回复 (4)

more options

You can check if you have an "Old Firefox Data" folder on the desktop in case the Refresh feature in Firefox has been used and a new profile has been created.

You can copy certain files with Firefox closed to the current profile folder to transfer or recover personal data. Note that best is to avoid copying a full profile folder.

You can use the button on the "Help -> More Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page (Root directory).


  • bookmarks and history: places.sqlite
  • favicons: favicons.sqlite
  • bookmark backups: compressed .jsonlz4 JSON backups in the bookmarkbackups folder
  • cookies.sqlite for the Cookies
  • formhistory.sqlite for saved autocomplete Form Data
  • logins.json (encrypted logins;32+) and key4.db (decryption key;58+) for Passwords saved in the Password Manager
    key3.db support ended in 73+; to use key3.db in 58-72, make sure to remove key4.db
  • cert9.db (58+) for (intermediate) certificates stored in the Certificate Manager
  • persdict.dat for words added to the spell checker dictionary
  • permissions.sqlite for Permissions and possibly content-prefs.sqlite for other website specific data (Site Preferences)
  • sessionstore.jsonlz4 for open tabs and pinned tabs (see also the sessionstore-backups folder)
more options

If I understand you correctly I can copy my old saved passwords from the old profile directory to the new profile directory. My current profile directory is: /home/cgrobertson/.mozilla/firefox/4ozo14jy.default-release-1662042812647 And I found what seems to be an old profile directory: /home/cgrobertson/.mozilla/firefox/og73kpb3.default-release-1624288838501/ but it is empty.

I read the article you posted above which says a refresh will save passwords but it obviously did not. Or, is it possible the logins.json and/or key4.db were corrupted in the process? Either way, there is nothing in the old profile directory to copy.

more options

You can check if you have an "Old Firefox Data" folder on the desktop in case the Refresh feature in Firefox has been used and a new profile has been created.

more options

选择的解决方案

Ok, I got my saved passwords restored. I found a logins-backup.json in the new profile folder and copying that to logins.json and starting Firefox restored my saved passwords and the password saving functionality is working properly now. However, by just copying that one file my session was not restored. All the tabs and windows I had open in the previous session (before the copy) all disappeared. I had to go the the "Old Firefox Data/" directory and copy the sessionstore.jsonlz4 over to recover my saved tabs and windows. Just weird.