"Database Disc Image is Malformed"
Hi there,
I've been having trouble getting my Zotero to start. I've tried reinstalling and have also tried the database .sqlite fix (upload id reference: 5b2636ef5b8f8)
When I try to restart Zotero after the reinstall and .sqlite fix I keep getting the following error:
"Error: Error(s) encountered during statement execution: database disk image is malformed [QUERY: SELECT COALESCE(MAX(valueID) + 1, 1) FROM itemDataValues] [PARAMS: ] [ERROR: database disk image is malformed]
Zotero.DBConnection.prototype.valueQueryAsync<@chrome://zotero/content/xpcom/db.js:760:10
From previous event:
ZoteroService@file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:339:4
@chrome://zotero/content/include.js:4:14"
Quite keen to fix this ASAP as I had setup a really good biblio for my PhD and it's not accessible with Zotero at the moment! Any ideas anyone?
EK
I've been having trouble getting my Zotero to start. I've tried reinstalling and have also tried the database .sqlite fix (upload id reference: 5b2636ef5b8f8)
When I try to restart Zotero after the reinstall and .sqlite fix I keep getting the following error:
"Error: Error(s) encountered during statement execution: database disk image is malformed [QUERY: SELECT COALESCE(MAX(valueID) + 1, 1) FROM itemDataValues] [PARAMS: ] [ERROR: database disk image is malformed]
Zotero.DBConnection.prototype.valueQueryAsync<@chrome://zotero/content/xpcom/db.js:760:10
From previous event:
ZoteroService@file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:339:4
@chrome://zotero/content/include.js:4:14"
Quite keen to fix this ASAP as I had setup a really good biblio for my PhD and it's not accessible with Zotero at the moment! Any ideas anyone?
EK
If the latter, this might be some security software on your computer interfering with Zotero's ability to access the database, though this would be an unusual error message in that case. Do you have your Zotero data directory in the standard location, or is it in some sort of cloud storage or network share?
Put your Zotero folder back in the default location (~/Zotero on Mac/Linux or C:/users//Zotero on Windows). In Zotero, in the Advanced pane, reset the data directory location to the default location. Try to restart Zotero. If that doesn’t work, rename the .bak file to just zotero.sqlite and try again.
C:\Users\EKM\Zotero
And I still got the error message, so I've reuploaded the sqlite file to the dbfix page (upload id: 5b2cfe1cbdac2)
It's now gotten rid of the error message, and the collection folders are showing on the left, but when I open the collection folders there is nothing in there! I've checked that they are all still there in the "storage" folder inside the Zotero directory, but they seem to have lost their associations with the collections. Any ideas how to fix this part? I've got quite a few and not sure I'll be able to go through manually to re-assign them to the right collections!
Please read the following documentation items and, if necessary, ask specific questions.
https://www.zotero.org/support/kb/using_multiple_computers
https://www.zotero.org/support/preferences/advanced (scroll to Data Directory Location)
https://www.zotero.org/support/attaching_files
https://www.zotero.org/support/sync
1.) Use linked files, automatically moved via ZotFile, as described in option 1 here: https://www.zotero.org/support/sync#alternative_syncing_solutions
2.) Set up a webDAV bridge to google drive. Possible, but a bit finnicky
3.) The new Google "Backup and Sync" tool allows you to sync specific folders on your harddisk. If you set it up to sync _just_ the storage folder in the Zotero, making sure to not sync any of the data folders other content, that should work, too. Since the service is new, we don't have any reports on how well that'll work yet.