Error1360227143: Updating to v1.5a1r3939
When I updated to v1.5a1r3939 from v1.5a1r3908 I got a message that the database needed to be updated. When I said 'Yes' to the update I got the error:
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.executeSimpleSQL]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 127" data: no] [QUERY: INSERT INTO syncDeleteLog SELECT syncObjectTypeID, key, timestamp FROM syncDeleteLogOld] [ERROR: column key is not unique]
On attempting to open Zotero, I got an error saying that there was a problem and Zotero could not launch. I then reverted to the previous version (always have a backup). On another Zotero instance with a blank library, the database converted to the new version without a problem. Any ideas?
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.executeSimpleSQL]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 127" data: no] [QUERY: INSERT INTO syncDeleteLog SELECT syncObjectTypeID, key, timestamp FROM syncDeleteLogOld] [ERROR: column key is not unique]
On attempting to open Zotero, I got an error saying that there was a problem and Zotero could not launch. I then reverted to the previous version (always have a backup). On another Zotero instance with a blank library, the database converted to the new version without a problem. Any ideas?
sqlite3 zotero.sqlite .dump > dump.sql
ren zotero.sqlite zotero.sqlite.old
sqlite3 zotero.sqlite "PRAGMA auto_vacuum=1"
sqlite3 zotero.sqlite < dump.sql
(which should be the same as the DB Repair Tool) and updating again. Still the same error.
sqlite3 zotero.sqlite ".dump syncDeleteLog" > dump.sql
Thanks.