Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kb:data_missing_after_zotero_5_upgrade [2017/11/23 05:59] bwiernikkb:data_missing_after_zotero_5_upgrade [2021/06/23 17:03] (current) dstillman
Line 5: Line 5:
 When you first start Zotero 5.0, it attempts to migrate your data directory to a new default location, a "Zotero" directory in your home directory. (See [[:Zotero Data]] for the default location on your platform.) If you previously used both Zotero for Firefox and Zotero Standalone and chose not to share a data directory, you may have a Zotero database in both profile directories, and Zotero will automatically use whichever database was modified more recently. When you first start Zotero 5.0, it attempts to migrate your data directory to a new default location, a "Zotero" directory in your home directory. (See [[:Zotero Data]] for the default location on your platform.) If you previously used both Zotero for Firefox and Zotero Standalone and chose not to share a data directory, you may have a Zotero database in both profile directories, and Zotero will automatically use whichever database was modified more recently.
  
-Howeverif you opened Zotero Standalone 4.0 before installing Zotero 5.0, or if security software on your system prevents Zotero 5.0 from accessing the Firefox profile directory, Zotero will automatically either create a new data directory or migrate the data directory from your //Zotero// (not Firefox) profile, potentially leaving you with an outdated or empty database.+In some cases, Zotero may not copy the correct directory and instead either create a new data directory or migrate the data directory from the wrong profile, potentially leaving you with an empty or outdated database.
  
 If Zotero 5.0 then syncs with your online library, it will update that database, but if your online library is out of date — for example, if you haven't synced in several months — you could still end up with missing local data. If Zotero 5.0 then syncs with your online library, it will update that database, but if your online library is out of date — for example, if you haven't synced in several months — you could still end up with missing local data.
Line 11: Line 11:
 === Restoring Your Data === === Restoring Your Data ===
  
-Zotero may automatically detect your previous directory at startup and offer to migrate the directory for you. If that's not happening, you may need to temporarily disable security software or whitelist Zotero so that it can access the Firefox profile directory.+If you used Zotero for Firefox at any point in the past, your data may be stored in the Firefox profile directory, and you may need to temporarily disable security software so that Zotero can access that directory on startup and offer to restore your data.
  
-Otherwise, to restore your data, first identify your current Zotero data directory from the Advanced → Files and Folders pane of the Zotero preferences. (Again, this will generally be "Zotero" within your home directory, but it could also be 'zotero' within your Zotero profile directory.)+Otherwise, to restore your data manually, first identify your current Zotero data directory from the Advanced → Files and Folders pane of the Zotero preferences. (Again, this will generally be "Zotero" within your home directory, but it could also be 'zotero' within your Zotero profile directory.)
  
-Then find your [[https://support.mozilla.com/kb/Profiles|Firefox profile directory]] and look for a 'zotero' subdirectory. If you find one, check the timestamp of the zotero.sqlite file — which should correspond to the last time you had Zotero for Firefox installed — and confirm that there's a 'storage' directory with other directories below it, corresponding to the range of dates that you added items to Zotero. (These are your attachment files.)+Then find your [[profile directory|Zotero profile directory]] and/or [[https://support.mozilla.com/kb/Profiles|Firefox profile directory]] and look for a 'zotero' subdirectory. If you find one, check the timestamp of the zotero.sqlite file and confirm that there's a 'storage' directory with other directories below it, corresponding to the range of dates that you added items to Zotero. (These are your attachment files.)
  
-If you have also recently used Firefox's "Refresh Firefox" feature, you can also look for your Zotero data in a 'zotero' folder folder located in the "Old Firefox Data" folder on your desktop. See [[kb/restore_after_firefox_reset|Restore after Firefox Refresh]] for more details.+If you ever used Firefox's "Refresh Firefox" feature, you can also look for your Zotero data in a 'zotero' folder folder located in the "Old Firefox Data" folder on your desktop.
  
 To restore the data directory you located, follow these steps: To restore the data directory you located, follow these steps:
   - Close Zotero   - Close Zotero
   - Rename your current data directory in your home directory from "Zotero" to "Zotero-Old"   - Rename your current data directory in your home directory from "Zotero" to "Zotero-Old"
-  - Move the 'zotero' directory from your Firefox profile (or from "Old Firefox Data") to your home directory and rename it to "Zotero" (with a capital "Z").+  - Move the 'zotero' directory from the profile directory (or from "Old Firefox Data") to your home directory and rename it to "Zotero" (with a capital "Z").
   - When you then start up Zotero 5.0 again, you should see your previous data.   - When you then start up Zotero 5.0 again, you should see your previous data.
  
-If there isn't a 'zotero' directory within your Firefox profile directory or in the "Old Firefox Data" folder on your desktop, it'also possible you were previously using a custom data directory location, which Zotero 5.0 also wouldn't be able to locate automatically if it was blocked from accessing the Firefox preferences file. If you know the location, you can simply point Zotero to it from the Advanced → Files and Folders pane of the Zotero preferences. Otherwise, open the prefs.js file in your Firefox profile in a text editor and search for ''dataDir'' to see if a custom path was set.+If there isn't a 'zotero' directory within either profile directory or in the "Old Firefox Data" folder on your desktop, it's possible you were previously using a custom data directory location, which Zotero 5.0 also wouldn't be able to locate automatically if it was blocked from accessing the Firefox preferences file. If you know the location, you can simply point Zotero to it from the Advanced → Files and Folders pane of the Zotero preferences. Otherwise, open the prefs.js file in your Firefox profile in a text editor and search for ''dataDir'' to see if a custom path was set.
  
 === Further Assistance === === Further Assistance ===
kb/data_missing_after_zotero_5_upgrade.1511434792.txt.gz · Last modified: 2017/11/23 05:59 by bwiernik