Zotero won't open properly - Green Bar, 'Upgrading Database'
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Database upgrade error
Error: Error(s) encountered during statement execution: database disk image is malformed [QUERY: DELETE FROM libraries WHERE libraryID != 0 AND libraryID NOT IN (SELECT libraryID FROM groups)] [PARAMS: ] [ERROR: database disk image is malformed]
Zotero.DBConnection.prototype.queryAsync<@chrome://zotero/content/xpcom/db.js:703:10
From previous event:
TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:396:7
TaskImpl_run@resource://gre/modules/Task.jsm:327:15
TaskImpl@resource://gre/modules/Task.jsm:277:3
createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:252:14
Task_spawn@resource://gre/modules/Task.jsm:166:12
ConnectionData.prototype<.executeTransaction/promise</transactionPromise<@resource://gre/modules/Sqlite.jsm:593:28
TaskImpl_run@resource://gre/modules/Task.jsm:319:42
Do you have an untouched copy of the data directory from after the upgrade on the main drive? If so, run that zotero.sqlite through the DB Repair Tool and see if it finds any problems. (You can also check the zotero.sqlite.77.bak file, which is the pre-upgrade backup.)
You really don't want to overwrite any files here — that's too error-prone. The proper way to do this is just to take your post-upgrade data directory from the main drive and move it into place on the external drive, and then move the old 'storage' directory in. Zotero just then start right up with the upgraded database.