Large database fails to upgrade to 5.0
Greetings - heavy/happy/thankful Zotero user for ~10y now. My database grew to ~45.000 records, nearly all of them with pdf file attached and most of these indexed. Size of zotero.sqlite is at ~4.3 GB, never experienced database failure since ~2010. Last working Zotero version is 4.0.29.16 running within Firefox 53.0b9, OS is Windows 10 Pro v1703.
After Zotero Standalone 5.0.17 install, the software starts, then apparently hangs while displaying "Upgrading database" message, Windows Task Manager shows constant CPU/memory/file activity from Zotero process. After 3-4 hours, Zotero 5.0 displays error message cited below and exits after confirmation. Zotero background process remains active for another few minutes, then exits too. Checking reveals that database file remained unchanged and accessible by Zotero 4.0/FF (which was not running during the events described). This sequence repeated 5 times with no changes.
Searching the forum, I found only a few discussions of similar problems, but none that could help me in achieving the conversion. E.g., an earlier timeout issue seemed resolved (https://forums.zotero.org/discussion/63727/zotero-5-0-beta-repeated-failure-to-upgrade-database-with-standalone-beta).
How can I upgrade my Zotero database to version 5.0?
Please advise. Many thanks in advance.
Christian
Error message displayed by Zotero 5.0:
Datenbank-Upgrade-Fehler
Error Transaction timeout, most likely caused by unresolved pending work.
ConnectionData.prototype<.executeTransaction/promise</timeoutPromise</< ©resource:
//gre/modules/Sqlite.jsm:641:33
setTimeout_timer©resource://gre/modules/Timer.jsm:30:5
From previous event:
ZoteroService©file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:347:4
XPCOMUtils_getFactory/factory.createlnstance@resource://gre/modules/XPCOMUtils.jsm:387:19
@chrome://zotero/content/include.js:4:14
After Zotero Standalone 5.0.17 install, the software starts, then apparently hangs while displaying "Upgrading database" message, Windows Task Manager shows constant CPU/memory/file activity from Zotero process. After 3-4 hours, Zotero 5.0 displays error message cited below and exits after confirmation. Zotero background process remains active for another few minutes, then exits too. Checking reveals that database file remained unchanged and accessible by Zotero 4.0/FF (which was not running during the events described). This sequence repeated 5 times with no changes.
Searching the forum, I found only a few discussions of similar problems, but none that could help me in achieving the conversion. E.g., an earlier timeout issue seemed resolved (https://forums.zotero.org/discussion/63727/zotero-5-0-beta-repeated-failure-to-upgrade-database-with-standalone-beta).
How can I upgrade my Zotero database to version 5.0?
Please advise. Many thanks in advance.
Christian
Error message displayed by Zotero 5.0:
Datenbank-Upgrade-Fehler
Error Transaction timeout, most likely caused by unresolved pending work.
ConnectionData.prototype<.executeTransaction/promise</timeoutPromise</< ©resource:
//gre/modules/Sqlite.jsm:641:33
setTimeout_timer©resource://gre/modules/Timer.jsm:30:5
From previous event:
ZoteroService©file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:347:4
XPCOMUtils_getFactory/factory.createlnstance@resource://gre/modules/XPCOMUtils.jsm:387:19
@chrome://zotero/content/include.js:4:14
I just did as advised, submitting 10-15mins of initial output under debug ID D46735849 and another after about 35mins, ID D524697273.
An earlier, full debug run up to the error message produced an impressively long debug output but apparently did not complete the submit procedure, as no debug ID was given. I was able to save that output as an HTML file though, from which I insert the final statements below.
(4)(+0000094): CREATE TABLE fulltextItemWords ( wordID INT, itemID INT, PRIMARY KEY (wordID, itemID), FOREIGN KEY (wordID) REFERENCES fulltextWords(wordID), FOREIGN KEY (itemID) REFERENCES items(itemID) ON DELETE CASCADE )
(4)(+0000107): INSERT OR IGNORE INTO fulltextItemWords SELECT * FROM fulltextItemWordsOld
(1)(+0673278): Rolled back DB transaction 0FEyP3aq
(1)(+0000065): Transaction timeout, most likely caused by unresolved pending work.
(4)(+0000066): PRAGMA foreign_keys = true
(4)(+2166536): DROP INDEX IF EXISTS fulltextItemWords_itemID
(1)(+0000078): Error: Transaction timeout, most likely caused by unresolved pending work. Error: Transaction timeout, most likely caused by unresolved pending work. ConnectionData.prototype<.executeTransaction/promise</timeoutPromise</<@resource://gre/modules/Sqlite.jsm:641:33 setTimeout_timer@resource://gre/modules/Timer.jsm:30:5 From previous event: ZoteroService@file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:347:4 XPCOMUtils__getFactory/factory.createInstance@resource://gre/modules/XPCOMUtils.jsm:387:19 @chrome://zotero/content/include.js:4:14
(1)(+0000065): Error: Transaction timeout, most likely caused by unresolved pending work. Error: Transaction timeout, most likely caused by unresolved pending work. ConnectionData.prototype<.executeTransaction/promise</timeoutPromise</<@resource://gre/modules/Sqlite.jsm:641:33 setTimeout_timer@resource://gre/modules/Timer.jsm:30:5 From previous event: ZoteroService@file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:347:4 XPCOMUtils__getFactory/factory.createInstance@resource://gre/modules/XPCOMUtils.jsm:387:19 @chrome://zotero/content/include.js:4:14
(3)(+8227874): HTTP POST "1504110399496 addons.update-ch…" (8965181 chars) to https://repo.zotero.org/repo/report?debug=1
Conversion still took ~8 hours though, and startup time is 10-15 mins. Current configuration: OS and applications starting from an SSD, the database sitting on an internal hard disk, in a four years old machine. I am going to transfer the database now to an all-SSD environment and see how it works from there. I will update you on startup times there.
Can you provide a Debug ID for Zotero startup using the "Restart with Logging Enabled…" option?
Besides that, I would like to thank all of the Zotero team again for providing this wonderful piece of software, and in particular for the help in making the upgrade to 5.0.
Christian