X
點擊此處開啟此網站的行動版。

技術支援討論區

Lost settings for most addons after system crash

已張貼

I had a system crash, probably with Firefox opened.

After restarting PC and starting Firefox, most of the addons I have had lost all of their settings and were reset to default - Tampermonkey lost all the scripts I had installed, uBlock lost all settings and rules, etc. Weirdly some extensions kept portions of their settings, like TreeTabs saved tree structure despite also getting reset to default.

Additionally Firefox also got its own settings reset to default, while the tabs from my session and bookmarks were saved.

Is there any way to recover addon and Firefox settings, is there any backup of them?

I had a system crash, probably with Firefox opened. After restarting PC and starting Firefox, most of the addons I have had lost all of their settings and were reset to default - Tampermonkey lost all the scripts I had installed, uBlock lost all settings and rules, etc. Weirdly some extensions kept portions of their settings, like TreeTabs saved tree structure despite also getting reset to default. Additionally Firefox also got its own settings reset to default, while the tabs from my session and bookmarks were saved. Is there any way to recover addon and Firefox settings, is there any backup of them?

被選擇的解決方法

jscher2000 said

I don't know of a repair tool for corrupted extension data databases. There is an arduous looking method to re-migrate your Firefox 65 extension data described in this blog: https://blog.mozilla.org/addons/2018/08/03/new-backend-for-storage-local-api/ Those might be newer than your last backup.

This process worked! Loaded back all my data for uBlock and Tampermonkey, which were the most important ones!

Thanks for posting this link!

Process is actually much simpler than it looks - basically you go to addon settings folder, copy .migrated file and remove .migrated from its name, uninstall the addon you need to restore the setting for, close browser, reopen browser then reinstall addon - that's it.

從原來的回覆中察看解決方案 0
引用
FredMcD
  • Top 10 Contributor
4230 個解決方法 59028 個答案

Unless you have backups someplace . . . . .

When a computer loses power without shutting down, files can be corrupted.

Perform a System File Check to fix corrupted system files

Win 7, 8, 10, Vista: https://support.microsoft.com/en-us/kb/929833 Win XP: https://answers.microsoft.com/en-us/windows/forum/all/windows-xp-scan-and-fix-disk-errors/6fe2827a-4be6-4bc1-8083-5139b5aa3a3d

Wiki - Windows 10 System File Check http://answers.microsoft.com/en-us/windows/wiki/windows_10-update/system-file-check-sfc-scan-and-repair-system-files/bc609315-da1f-4775-812c-695b60477a93

Unless you have backups someplace . . . . . When a computer loses power without shutting down, files can be corrupted. Perform a System File Check to fix corrupted system files '''Win 7, 8, 10, Vista:''' https://support.microsoft.com/en-us/kb/929833 '''Win XP:''' https://answers.microsoft.com/en-us/windows/forum/all/windows-xp-scan-and-fix-disk-errors/6fe2827a-4be6-4bc1-8083-5139b5aa3a3d Wiki - Windows 10 System File Check http://answers.microsoft.com/en-us/windows/wiki/windows_10-update/system-file-check-sfc-scan-and-repair-system-files/bc609315-da1f-4775-812c-695b60477a93
這篇文章有幫助嗎? 0
引用
FredMcD
  • Top 10 Contributor
4230 個解決方法 59028 個答案

After the above, Use Microsoft ScanDisk {web link}

After the above, [https://www.computerhope.com/issues/ch001118.htm Use Microsoft ScanDisk] {web link}
這篇文章有幫助嗎? 0
引用

提出問題者

FredMcD said

Unless you have backups someplace . . . . . When a computer loses power without shutting down, files can be corrupted. Perform a System File Check to fix corrupted system files Win 7, 8, 10, Vista: https://support.microsoft.com/en-us/kb/929833 Win XP: https://answers.microsoft.com/en-us/windows/forum/all/windows-xp-scan-and-fix-disk-errors/6fe2827a-4be6-4bc1-8083-5139b5aa3a3d Wiki - Windows 10 System File Check http://answers.microsoft.com/en-us/windows/wiki/windows_10-update/system-file-check-sfc-scan-and-repair-system-files/bc609315-da1f-4775-812c-695b60477a93

This is not relevant to what I asked.

I have my own backups for some addons but they are quite old.

''FredMcD [[#answer-1208803|said]]'' <blockquote> Unless you have backups someplace . . . . . When a computer loses power without shutting down, files can be corrupted. Perform a System File Check to fix corrupted system files '''Win 7, 8, 10, Vista:''' https://support.microsoft.com/en-us/kb/929833 '''Win XP:''' https://answers.microsoft.com/en-us/windows/forum/all/windows-xp-scan-and-fix-disk-errors/6fe2827a-4be6-4bc1-8083-5139b5aa3a3d Wiki - Windows 10 System File Check http://answers.microsoft.com/en-us/windows/wiki/windows_10-update/system-file-check-sfc-scan-and-repair-system-files/bc609315-da1f-4775-812c-695b60477a93 </blockquote> This is not relevant to what I asked. I have my own backups for some addons but they are quite old.
這篇文章有幫助嗎?
引用
FredMcD
  • Top 10 Contributor
4230 個解決方法 59028 個答案

有幫助的回覆

I gave you those links so that you can make sure your system does not have any other problems.


Back up and restore information in Firefox profiles.{web link} I use an add-on that makes backups of my user profile, Just In Case. Unfortunately, it is not compatible with the current Firefox.

Every now and then, open the profile folder and create a copy of the current profile as is to another location on your hard drive. This way you will have a backup.

If you do this each day, you will not lose much data. This should be done with Firefox Closed.

Note: In case you need to restore from these backups, you may need to overwrite old or corrupted files.

I gave you those links so that you can make sure your system does not have any other problems. ------------ [[Back up and restore information in Firefox profiles]].{web link} I use an add-on that makes backups of my user profile, Just In Case. Unfortunately, it is not compatible with the current Firefox. Every now and then, open the profile folder and create a '''copy''' of the current profile '''as is''' to another location on your hard drive. This way you will have a backup. If you do this each day, you will not lose much data. This should be done with '''Firefox Closed. ''' Note: In case you need to restore from these backups, you may need to overwrite old or corrupted files.
這篇文章有幫助嗎? 1
引用

提出問題者

So Firefox does not keep backups of anything? Anything goes wrong and your data is gone completely?

I know I can do manual profile backups, but if I had them I wouldn't be here

So Firefox does not keep backups of anything? Anything goes wrong and your data is gone completely? I know I can do manual profile backups, but if I had them I wouldn't be here
這篇文章有幫助嗎?
引用
FredMcD
  • Top 10 Contributor
4230 個解決方法 59028 個答案

有幫助的回覆

The only backups Firefox makes are the bookmarks.

The only backups Firefox makes are the bookmarks.
這篇文章有幫助嗎? 1
引用
jscher2000
  • Top 10 Contributor
8643 個解決方法 70721 個答案

I assume you already restarted Windows again in case some file locks need to be released.

It's strange to find Firefox settings were reset without your extensions being removed -- it sounds like only half a refresh, which doesn't make sense.

Can the extensions store new data (e.g., new userscripts) normally?

Were you already on Firefox 66 at the time of the crash? Firefox 66 migrated extension settings from JSON files (renamed to storage.js.migrated) to SQLite databases (via IndexedDB). It's possible that the crash with Firefox running corrupted some of those databases.

I don't know of a repair tool for corrupted extension data databases. There is an arduous looking method to re-migrate your Firefox 65 extension data described in this blog:

https://blog.mozilla.org/addons/2018/08/03/new-backend-for-storage-local-api/

Those might be newer than your last backup.

I assume you already restarted Windows again in case some file locks need to be released. It's strange to find Firefox settings were reset ''without'' your extensions being removed -- it sounds like only half a refresh, which doesn't make sense. Can the extensions store new data (e.g., new userscripts) normally? Were you already on Firefox 66 at the time of the crash? Firefox 66 migrated extension settings from JSON files (renamed to storage.js.migrated) to SQLite databases (via IndexedDB). It's possible that the crash with Firefox running corrupted some of those databases. I don't know of a repair tool for corrupted extension data databases. There is an arduous looking method to re-migrate your Firefox 65 extension data described in this blog: https://blog.mozilla.org/addons/2018/08/03/new-backend-for-storage-local-api/ Those might be newer than your last backup.
這篇文章有幫助嗎? 1
引用

提出問題者

Alright, I'll try the described method.

I wondered why in the extension settings were .migrated files that Firefox didn't seem to be loading the data from.

So previously settings were in "browser-extension-data", where are they now? "storage/default"?

Alright, I'll try the described method. I wondered why in the extension settings were .migrated files that Firefox didn't seem to be loading the data from. So previously settings were in "browser-extension-data", where are they now? "storage/default"?
這篇文章有幫助嗎?
引用

提出問題者

jscher2000 said

Can the extensions store new data (e.g., new userscripts) normally?

Yes, seems so

''jscher2000 [[#answer-1209127|said]]'' <blockquote> Can the extensions store new data (e.g., new userscripts) normally? </blockquote> Yes, seems so
這篇文章有幫助嗎?
引用
jscher2000
  • Top 10 Contributor
8643 個解決方法 70721 個答案

Shajirr said

I wondered why in the extension settings were .migrated files that Firefox didn't seem to be loading the data from.

The .migrated extension is added to storage.js after the migration so it doesn't get migrated again.

So previously settings were in "browser-extension-data", where are they now? "storage/default"?

I think that's right.

''Shajirr [[#answer-1209314|said]]'' <blockquote>I wondered why in the extension settings were .migrated files that Firefox didn't seem to be loading the data from. </blockquote> The .migrated extension is added to storage.js after the migration so it doesn't get migrated again. <blockquote>So previously settings were in "browser-extension-data", where are they now? "storage/default"? </blockquote> I think that's right.
這篇文章有幫助嗎? 1
引用

選擇的解決方法

jscher2000 said

I don't know of a repair tool for corrupted extension data databases. There is an arduous looking method to re-migrate your Firefox 65 extension data described in this blog: https://blog.mozilla.org/addons/2018/08/03/new-backend-for-storage-local-api/ Those might be newer than your last backup.

This process worked! Loaded back all my data for uBlock and Tampermonkey, which were the most important ones!

Thanks for posting this link!

Process is actually much simpler than it looks - basically you go to addon settings folder, copy .migrated file and remove .migrated from its name, uninstall the addon you need to restore the setting for, close browser, reopen browser then reinstall addon - that's it.

''jscher2000 [[#answer-1209127|said]]'' <blockquote> I don't know of a repair tool for corrupted extension data databases. There is an arduous looking method to re-migrate your Firefox 65 extension data described in this blog: https://blog.mozilla.org/addons/2018/08/03/new-backend-for-storage-local-api/ Those might be newer than your last backup. </blockquote> This process worked! Loaded back all my data for uBlock and Tampermonkey, which were the most important ones! Thanks for posting this link! Process is actually much simpler than it looks - basically you go to addon settings folder, copy .migrated file and remove .migrated from its name, uninstall the addon you need to restore the setting for, close browser, reopen browser then reinstall addon - that's it.
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題