Zotero Standalone won't open - Database upgrade error
Hello,
Installed Trying to install Zotero Standalone 5.0.78 on laptop running Windows 10 (no Firefox or Chrome) and getting the following error message when trying to launch it:
=============
Database upgrade error
Error: Error(s) encountered during statement execution: no such trigger: insert_date_field [QUERY: DROP TRIGGER insert_date_field] [PARAMS: ] [ERROR: no such trigger: insert_date_field]
Zotero.DBConnection.prototype.queryAsync<@chrome://zotero/content/xpcom/db.js:662:13
From previous event:
Zotero.Schema</this.updateSchema/updated<@chrome://zotero/content/xpcom/schema.js:204:25
==============
Same client on a different computer seems to be working fine with the same parameters. The Zotero library is stored on the local hard disk, same location and both copies are identical. Any suggestions would be most welcome.
Thanks and best wishes
Alex
Installed Trying to install Zotero Standalone 5.0.78 on laptop running Windows 10 (no Firefox or Chrome) and getting the following error message when trying to launch it:
=============
Database upgrade error
Error: Error(s) encountered during statement execution: no such trigger: insert_date_field [QUERY: DROP TRIGGER insert_date_field] [PARAMS: ] [ERROR: no such trigger: insert_date_field]
Zotero.DBConnection.prototype.queryAsync<@chrome://zotero/content/xpcom/db.js:662:13
From previous event:
Zotero.Schema</this.updateSchema/updated<@chrome://zotero/content/xpcom/schema.js:204:25
==============
Same client on a different computer seems to be working fine with the same parameters. The Zotero library is stored on the local hard disk, same location and both copies are identical. Any suggestions would be most welcome.
Thanks and best wishes
Alex
This discussion has been closed.
I tried running once and then overwriting the current installation, but now I get a different message:
=========
There was an error starting Zotero.
Error: Invalid field 'accessDate
_fieldCheck@chrome://zotero/content/xpcom/data/itemFields.js:426:13
Zotero.ItemFields</this.getLocalizedString@chrome://zotero/content/xpcom/data/itemFields.js:166:5
getLocalizedName@chrome://zotero/content/xpcom/data/searchConditions.js:654:14
Zotero.SearchConditions</this.init<@chrome://zotero/content/xpcom/data/searchConditions.js:578:23
From previous event:
ZoteroService@file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:352:7
@chrome://zotero/content/include.js:4:14
=========
As I mentioned, the database seems to work perfectly on the other computer.
Anything else that could be done?
Thanks!
Still a bit strange that the old (corrupt?) DB file works fine on one computer, but not the other. Hopefully, the above info could provide insights... Anyway, everything works fine on both machines now - thanks a lot for your time!
You're saying you tried the same zotero.sqlite file on both computers? Or just synced libraries?
If the former, I'd guess that the other one simply hasn't been updated to Zotero 5.0.78 yet, which includes a DB upgrade that touched the corrupted data.
On the computer where this was broken, is there a zotero.sqlite.105.bak file in your data directory? Could you upload that to the DB Repair Tool and provide another Upload ID?
I uploaded the zotero.sqlite.105.bak from the 'new' computer. The ID is 5de5844763d44.
Thanks!
Thanks in advance,
We definitely fixed the original error for databases in this unexpected state in the beta, so if you don't want to worry about this, that's fine, but I'd be very curious if you're able to reproduce any sort of problem again by closing Zotero, moving the working zotero.sqlite out of the way, and then renaming zotero.sqlite.105.bak to zotero.sqlite and restarting the Zotero beta. If so, it'd be great to see debug output for a startup that results in the error from the beta.
Could you help me please ? Thanks very much.
I tried reverting back to zotero.sqlite.105.bak but the DB loaded no problem, so I can't replicate the glitch. I have a hunch that it had something to do with the fact that I had an outdated version of Zotero on this laptop but did not use it for a while until I tried using it today and it said that it could not read the DB in this later version and requested an upgrade. Do you think something might have gone wrong when I moved from 4.x to 5.0.58.?
_fieldCheck@chrome://zotero/content/xpcom/data/itemFields.js:426:13
Zotero.ItemFields</this.getLocalizedString@chrome://zotero/content/xpcom/data/itemFields.js:166:5
getLocalizedName@chrome://zotero/content/xpcom/data/searchConditions.js:654:14
Zotero.SearchConditions</this.init<@chrome://zotero/content/xpcom/data/searchConditions.js:578:23
From previous event:
ZoteroService@file:///Applications/Zotero.app/Contents/Resources/components/zotero-service.js:352:7
@chrome://zotero/content/include.js:4:14").
I downloaded the last version of zotero, used the DB repair tool (My Upload ID is 5de59a0f6f342). And nothing works. An idea of why?
I have access to my synchronized database from 6 month ago (approximately), but lost all the changes that I have done on it since the last months. I think it comes from the fact that I changed my word version, so I had to update my zotero version. At this point, I lost everything. Thank you for the help.
I closed Zotero (after many restarts and attempts at reinstalling), deteted the Zotero file within my user section and restarted the programme. It downloaded all the deleted info from the cloud storage when it restarted and now works fine.
I'm running a mac, so if you're using a PC I'm not sure where I'd find the folder.
No idea what went wrong, but a new start seemed to fix it.
@adelineDelonca, we'll review your Upload ID and get back to you shortly.
We'll try to have a fix out today, but if you prefer to restore from a synced computer in the meantime, that's fine — we don't need further debugging info.
If you'd like to fix this right away, here's how you can do so:1) Close Zotero and go to your Zotero data directory.2) Make a backup of all the zotero.sqlite* files in that directory.3) In that directory, look for zotero.sqlite.X.bak, where X is the highest number above 1 and below 105 — probably around zotero.sqlite.78.bak. Delete the current zotero.sqlite and rename zotero.sqlite.78.bak (or similar) to zotero.sqlite.4) Before starting Zotero again, install Zotero 5.0.77:MacWindowsLinux 64-bitLinux 32-bit5) Open Zotero 5.0.77, which should upgrade your Zotero 4 database.6) Update to Zotero 5.0.79 from Help → Check for Updates.OK, a fix is available in the latest Zotero beta, so you can install that and let us know if it works for you. After doing so, you can switch back to Zotero 5.0.79 from the download page.