Trouble Accessing Zotero.sqlite Copies Archived with Windows File History
I realize we can't here try to debug issues with Windows File History (WFH), but I'm coming across an odd issue and wondering if there's anything related on the Zotero side.
Normally, WFH seems to just save a straight copy of a given file. And I can pull files back from the archive when needed as if they're simply copies. But things aren't working that way for zotero.sqlite.
When I try to open a zotero.sqlite file from the WFH archive even from yesterday (e.g., in Zotero's current ZIPed beta version, portable version, and for good measure, regular stable version), I'm told the "database can't be opened" (in this error message) and that I should
- ensure I have read and write permissions for the data directory and
- ensure no security software is preventing Zotero from accessing that directory.
Both of these (I think) check out. I have full access to the directory (see, e.g., here), and no security software shows in Task Manager when I boot Windows into Safe Mode. And I've made sure I'm also trying to open a WFH archive file made from the same machine.
But in any of these scenarios, the same error occurs whenever I try to use Zotero to read a zotero.sqlite file that's been saved via WFH.
But, if I try to
- open in Zotero a backup Zotero has made and that's still in the data directory (i.e., not one that's been saved/copied from there into the WFH archive), the file opens just fine or
- open any of the zotero.sqlite files from the WFH archive directly (e.g., with DB Browser for SQLite), I can open the file and pick through the database just fine there too.
I'm not sure if getting the WFH archive files to open in something like DB Browser is diagnostic for anything. But if anyone has any insight on what I might be missing here when trying to open these same files in Zotero, I'd be most grateful for any thoughts.
Thanks so much!
Normally, WFH seems to just save a straight copy of a given file. And I can pull files back from the archive when needed as if they're simply copies. But things aren't working that way for zotero.sqlite.
When I try to open a zotero.sqlite file from the WFH archive even from yesterday (e.g., in Zotero's current ZIPed beta version, portable version, and for good measure, regular stable version), I'm told the "database can't be opened" (in this error message) and that I should
- ensure I have read and write permissions for the data directory and
- ensure no security software is preventing Zotero from accessing that directory.
Both of these (I think) check out. I have full access to the directory (see, e.g., here), and no security software shows in Task Manager when I boot Windows into Safe Mode. And I've made sure I'm also trying to open a WFH archive file made from the same machine.
But in any of these scenarios, the same error occurs whenever I try to use Zotero to read a zotero.sqlite file that's been saved via WFH.
But, if I try to
- open in Zotero a backup Zotero has made and that's still in the data directory (i.e., not one that's been saved/copied from there into the WFH archive), the file opens just fine or
- open any of the zotero.sqlite files from the WFH archive directly (e.g., with DB Browser for SQLite), I can open the file and pick through the database just fine there too.
I'm not sure if getting the WFH archive files to open in something like DB Browser is diagnostic for anything. But if anyone has any insight on what I might be missing here when trying to open these same files in Zotero, I'd be most grateful for any thoughts.
Thanks so much!
Can you provide a Debug ID for Zotero startup, using the "Restart with Logging Enabled…" option? Or if you can't access the menu to trigger that, see Reporting Startup Errors. We might be able to tell you a little more.
Thanks so much for having a look and whatever thoughts you may have!
You should copy zotero.sqlite from the backup to the default location in C:\Users\[user]\Zotero and test with that.
Beyond that, I'm afraid you'll need to debug this on your end.
Thanks again for your time and thoughts.