Zotero FF add-on won’t start—“Database upgrade error”
Hi there. My Firefox Zotero add-on suddenly won’t open. When I hit Ctrl+Alt+Z a popup window says “Database upgrade error.” In the Error Console I get:
Firefox can't establish a connection to the server at ws://nik.io/api/nikio.json/subscribe?X-Atmosphere-tracking-id=e03e8f39-a9c1-9f30-de23-dd6b8f649c78&X-Atmosphere-Framework=0.8&X-Atmosphere-Transport=websocket&X-Cache-Date=1337357438902&Content-Type=undefined.
Source File: http://nik.io/v1/nikio.js Line: 2448
I think it coincided with an upgrade I did of Ubuntu packages which included Firefox 12.0 (FF for Ubuntu canonical 1.0). I am using Zotero 3.0.7 and just tried reinstalling it, as a similar thread recommended, with no effect.
Any thoughts or advice?
Both devtools.errorconsole.enabled and javascript.options.showInConsole are set to true.
zotero(5): DELETE FROM itemTypesCombined
zotero(3): [Exception... "Component returned failure code: 0x80630002
(NS_ERROR_STORAGE_IOERR) [mozIStorageConnection.executeSimpleSQL]"
nsresult: "0x80630002 (NS_ERROR_STORAGE_IOERR)" location: "JS frame
:: chrome://zotero/content/xpcom/db.js :: <TOP_LEVEL> :: line 149"
data: no] [QUERY: DELETE FROM itemTypesCombined] [ERROR: disk I/O
error]
zotero(5): Rolling back transaction
And to be honest, I have been getting the odd disk I/O error here and there over the past couple of months (since my laptop fell off the kitchen table—oops).
Any thoughts of how I might be able to salvage whatever parts of my database might be readable? If not, I might have a backup of an earlier uncorrupted zotero db, what do I do to restore it?
I'd start by making a full backup of your Zotero data directory (and, really, your entire hard drive, which might be on the wane). Then check your whole disk for errors—if there are just filesystem errors, they might be able to be repaired, but the hardware might also be failing. If the drive itself is OK and only part of the Zotero database file is corrupt, you could try uploading it to the DB Repair Tool, though depending on the extent of corruption that might not help.