Database Upgrade Error/ Zotero Crashing on Start-Up after Update
I updated Zotero on launch today. I get this error message when starting Zotero:
Database upgrade error
Error: Error(s) encountered during statement execution: attempt to write a readonly database [QUERY: DELETE FROM itemTypesCombined] [PARAMS: ] [ERROR: attempt to write a readonly database]
Zotero.DBConnection.prototype.queryAsync@chrome://zotero/content/xpcom/db.js:705:13
From previous event:
this.init@chrome://zotero/content/xpcom/zotero.js:414:25
Z prompts me to update. There are no updates.
Then Z shuts down.
I tried reinstalling Z and the Firefox connection to no effect.
Database upgrade error
Error: Error(s) encountered during statement execution: attempt to write a readonly database [QUERY: DELETE FROM itemTypesCombined] [PARAMS: ] [ERROR: attempt to write a readonly database]
Zotero.DBConnection.prototype.queryAsync@chrome://zotero/content/xpcom/db.js:705:13
From previous event:
this.init@chrome://zotero/content/xpcom/zotero.js:414:25
Z prompts me to update. There are no updates.
Then Z shuts down.
I tried reinstalling Z and the Firefox connection to no effect.
If this is an institutional computer, you should ask your IT department for help.
I deleted Zotero and reinstalled to no effect.
I checked the permissions on:
/Applications/Zotero.app/Contents/MacOS/zotero
and they are set to read/write.
Is there another file that needs permissions checked?
I had tried that but the link says the directory should be in:
/Users/username/Zotero
But I have no such file or directory in my
/Users/username/
directory. (And I replaced "username" with my actual username).
I'm using Mac Sequoia 15.5
Searching for "zotero.sqlite" yields nothing either.
Is there another file to search for?
You can fix the permissions on the home folder using File → Get Info in Finder, but the rest obviously only you would know about.
I had a disk image of Zotero 7.0.11 and installed that. It loaded fine. It says the default data directory is:
/Users/username/Library/Application Support/Zotero/Profiles/gc0u8noh.default/zotero
You can also close Zotero and move that final 'zotero' folder to 'Zotero' in the home folder yourself, and Zotero will then use that, but other programs could also break with incorrect permissions on the home folder.
I can't figure out why Mac isn't locating the zotero.sqlite files. I was using "locate" in Terminal (yes, I updated the database). Spotlight wasn't finding it either. I'm rebuilding Spotlight index.
@dstillman It was the update from 7.0.11 to 7.021 yesterday that initiated the snafus.
Will try Advanced>Data Directory>"Revert to Default Location" later but worried that will do more wackiness.
If you can reproduce 7.0.11 → 7.0.21 triggering this startup error, we'd want to know that.
Anyway, it's what I say — this is an ancient data directory location from the days of Zotero Standalone, and you should fix the permissions in your home folder and move that 'zotero' to be 'Zotero' in your home folder.