MozillaZine

Corrupt localstore.rdf

From MozillaZine Knowledge Base

This article was written for Firefox but, in general, it also applies to SeaMonkey.

Note: Localstore.rdf will soon be deprecated and replaced with a json xulstore. See Bug 559505 and this mozilla.dev.platform topic.

This article will help you fix problems caused by a corrupt localstore.rdf file, which include:

  • Changes to the toolbar reset themselves after you close Firefox and start it up again
  • Window size or position not remembered at startup
  • Bookmarks appear in the Bookmarks Manager but not in the main menu and can't be edited [1]
  • "Add Bookmark" dialog not working [2]
  • Back/forward toolbar buttons missing after Firefox upgrade and unable to restore using the Customize Toolbar dialog. [3]
  • Navigation Toolbar (containing the Location bar, a.k.a address bar) or Bookmarks Toolbar is empty, even though selected in the Firefox "View -> Toolbars" menu or in the Firefox button Options sub-menu. [4]
  • Unable to save or download files because the dialog box prompting you to open or save a file does not appear.


Contents

Solution

If you have a backup copy of the localstore.rdf file from a working profile, a quick remedy is to close your Mozilla application and overwrite the localstore.rdf file in the profile folder with your backup copy (see Profile folder - Firefox or Profile folder - SeaMonkey for profile folder locations). [5] If you have no localstore.rdf backup, you will need to close Firefox (or SeaMonkey) and remove the localstore.rdf file from the Firefox (or SeaMonkey) profile folder (by moving, deleting, or renaming the file). When you restart the application, a new localstore.rdf file will be generated. Your toolbar customizations will be gone but future changes will be retained.

Before continuing you may wish to save a screenshot of your current toolbar customizations, to help you restore them later.

Note: You can restore the default set of toolbar items by opening the Customize Toolbar dialog and selecting "Restore Default Set" but this does not restore the default content of the localstore.rdf file and is not a solution if the localstore.rdf file is indeed corrupt.

Use either of the two methods given below, to regenerate the localstore.rdf file.

Manual method

  1. Open the Firefox profile folder (see the linked article for details).
  2. Exit Firefox completely (if open)
  3. Delete (or rename) the file localstore.rdf.

Safe Mode method

Image:Fx15SafeModeOptions.png

Note: In Firefox 15 and above, Safe Mode has been redesigned to replace the individual troubleshooting options that were included in earlier Firefox versions with the option to Reset Firefox. Resetting Firefox will automatically create a new profile which will include a new copy of the localstore.rdf file; however, using the Reset Firefox feature will also remove all of your other Firefox profile data and settings, except for certain essential data (bookmarks, browsing history, passwords, cookies, and form-fill data) that is migrated to the new profile. The old Firefox profile will be deleted and all of the old Firefox data will be moved to a folder on the desktop. Warning! This change cannot be reversed without manually transferring the old Firefox data back to the new profile.

Firefox 15 and above:

  1. Restart in Firefox Safe Mode using the instructions in the Safe Mode article.
  2. After restarting in Safe Mode, a window called Firefox Safe Mode will appear.
  3. Select the option Reset Firefox and follow the prompts.
Image:SM2SafeMode.png

Firefox 14 and below and SeaMonkey:

  1. Restart in Firefox Safe Mode or SeaMonkey Safe Mode using the instructions in the Safe Mode article.
  2. After restarting in Safe Mode, a window called Firefox Safe Mode or SeaMonkey Safe Mode" will appear.
  3. Select the option Reset toolbars and controls (Firefox) or Reset toolbars and window sizes (SeaMonkey).
  4. Click "Make Changes and Restart".

See also

External links

Related bug reports:

  • Bug 99236 – localstore.rdf should be deleted when it is corrupt
  • Bug 319196 – customized toolbar always reset to default on restart, bookmarks and search engines lost, unable to add search engines (localstore.rdf corruption on upgrade or crash)
  • Bug 426026 – Back/forward buttons disappear when moving from 1.8 to 1.9 if they've been moved
  • Bug 559505 - localstore.rdf kills ponies / Deprecate localstore.rdf and replace it with xulstore.