Zotero Forgets Custom Data Directory Location on Windows Restart

I have set a custom data directory location (D:\Projects\Zotero) in Zotero under “Settings > Advanced > Files and Folders > Data Directory Location”. Everything works fine when I close and reopen Zotero.

However, once I shut down and restart my computer or reboot Windows, a pop-up warning appears when I launch Zotero:

"You are about to sync to an empty Zotero database. This could happen if you accidentally deleted the zotero.sqlite file in your Zotero data directory or the location of your data directory changed.

If you continue, data in the ‘KevinQAQ’ account will be downloaded to this computer. Your online library won’t be affected.

If your Zotero data exists elsewhere on this computer, you should move it to the current data directory or change the data directory location to point to your existing data.

Data Directory: C:\Users\kevin\Zotero"

Every time I restart my computer, Zotero reverts to the default Data Directory Location instead of the Custom Location I set! Consequently, I have to reset my custom data directory location every time I open Zotero after booting up.

I am not using any Unsafe Data Directory Locations, e.g., Cloud storage folders, Network drives, Virtual machines, or External disks. And the custom data directory path does not contain spaces or non-ASCII characters.

Could anyone help me resolve this issue?
  • dstillman Zotero Team
    Are other settings saved? Generally this would be caused by something preventing Zotero from saving the prefs.js file in your Zotero profile folder.
  • Ok, I see. The encryption software encrypts the Invalidprefs.js file in the Zotero profile folder, which cannot be read by Zotero.
Sign In or Register to comment.