為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox deleted all my passwords, then I tried to sync them back from my Android. All gone. Can I restore them?

  • 5 回覆
  • 1 有這個問題
  • 8 次檢視
  • 最近回覆由 wiki003

more options

Hi,

Today I changed my Firefox Sync password. Than changed another passwords so I started to update them in my Firefox. I want to delete on of my saved passwords, but Firefox deleted all of my accounts/passwords without any permission or validation.

Then I checked Firefox on my phone, the passwords are there so I tried to sync them with my Firefox Sync account...but Sync didn't "upload" them to my desktop, just delete them from my phone too...

What can I do now? How can I restore all of them? Why does sync deleted them insteand of uploading the to my desktop Firefox?

Hi, Today I changed my Firefox Sync password. Than changed another passwords so I started to update them in my Firefox. I want to delete on of my saved passwords, but Firefox deleted all of my accounts/passwords without any permission or validation. Then I checked Firefox on my phone, the passwords are there so I tried to sync them with my Firefox Sync account...but Sync didn't "upload" them to my desktop, just delete them from my phone too... What can I do now? How can I restore all of them? Why does sync deleted them insteand of uploading the to my desktop Firefox?

由 wiki003 於 修改

所有回覆 (5)

more options

Your Desktop was the Master Sync. Your phone gets the info from the Master most of the time. So if you wanted to delete, you should have disconnected your phone from Sync. By leaving it on you synced with the Master that had no information so it deleted it all to be the same as it is suppose to.

Profile :

What's What in the Profile :

  • bookmarks and history: places.sqlite
  • bookmark backups: compressed .jsonlz4 JSON backups in the bookmarkbackups folder

If a jsonlz4 backup can't be imported restored because it has the same structural problem as the database, a user can try to fix it using the Check/Repair JSON button on this page:

  • https://www.jeffersonscher.com/res/bookbackreader.html
  • formhistory.sqlite for saved autocomplete Form Data
  • logins.json (passwords) and key4.db (58+) or key3.db (57 and older) (decryption key) for Passwords saved in the Password Manager
  • if you only have key3.db then make sure to remove an existing key4.db
more options
more options

Hi Pkshadow!

When I noticed the problem first thing was disconnect my phone from internet (to save my passwords), than disconnect my desktop Firefox.

Afthe my desktop Firefox was offline, I turned on the internet on my Android Firefox and then start the sync on my Android...and passwords disappeared.

But I don't know what happend, because my bookmarks and sessions are not lost, just the password. And on some pages the user names can be choosen from a list. There is the old user names but the passwords didn't saved anymore.

Do you have any idea to solve this? I don't have backup from my Firefox.

more options

Hi wiki003, if you don't make backups, one possible source of an old version of the relevant files is a Windows Restore Point. Usually these are created when Windows 10 does its monthly updates.

Do not use Windows System Restore!! That typically makes things worse. But you can use a utility program to search inside shadow copies of your user data to try to locate an old file. Here are the steps:

(1) Set Windows to show hidden files and folders:

https://support.microsoft.com/en-us/help/14201/windows-show-hidden-files

(2) Download and run one of these programs:

Within the most recent restore point shown in the program, you can explore along this path to see whether you can find a recent shadow copy of your profile:

\Users\your-user-name\AppData\Roaming\Mozilla\Firefox\Profiles\

(3) Export a recent copy of this set of files to a convenient location such as your currently live desktop. Then you can try to swap them into your currently active profile in place of what's there to see whether that brings back your passwords.

  • logins.json
  • key4.db
  • key3.db

Firefox switched to key4.db at some point, so if key3.db is gone, don't worry about it.

If you found some candidate files to try...

(1) From inside Firefox, open your current Firefox settings (AKA Firefox profile) folder using either

  • "3-bar" menu button > "?" Help > Troubleshooting Information
  • (menu bar) Help > Troubleshooting Information
  • type or paste about:support in the address bar and press Enter

In the first table on the page, click the "Open Folder" button. This should launch a Windows Explorer window listing the various files and folders in your profile.

(2) Leaving that window open, switch back to Firefox and Exit, either:

  • "3-bar" menu button > "power" button Exit
  • (menu bar) File > Exit

Pause while Firefox finishes its cleanup, then:

  • right-click > Rename logins.json to loginsOLD.json
  • right-click > Rename key4.db to key4OLD.db

(3) Then copy/paste into the folder the files you extracted from the restore point.

When you start Firefox, it should use those older files. Success?

more options

Thank you jscher2000!

The recommanded programs didn't find any restore points. :O But system restore is active on my Windows.

Now, I added my passwords which I remember. If some of them are lost, maybe they were not important.