Can't add, delete or edit items
I can't add, delete or edit items in Zotero 1.0.10 (FF 3.0.11), although I have full access to view them.
Somehow I have ended up with a bunch of attachments (20) without items at the bottom of My Library. When I start Zotero, the Error console shows 19 errors like this:
Error: itemData row references nonexistent item 10322
Source File: chrome://zotero/content/xpcom/data_access.js
Line: 2881
When I then try to add a new item, the following:
Error: uncaught exception: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageConnection.commitTransaction]" nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 321" data: no] [ERROR: database is locked]
When I then try to delete an item (one of the attachments without items listed above), I get:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.beginTransaction]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 295" data: no]
Any suggestions would be welcome.
Somehow I have ended up with a bunch of attachments (20) without items at the bottom of My Library. When I start Zotero, the Error console shows 19 errors like this:
Error: itemData row references nonexistent item 10322
Source File: chrome://zotero/content/xpcom/data_access.js
Line: 2881
When I then try to add a new item, the following:
Error: uncaught exception: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageConnection.commitTransaction]" nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 321" data: no] [ERROR: database is locked]
When I then try to delete an item (one of the attachments without items listed above), I get:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.beginTransaction]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 295" data: no]
Any suggestions would be welcome.
This morning there was a forced shutdown of Firefox by my AVG anti-virus. When I restarted Firefox, the Zotero icon has a yellow triangle with "!", and when I hover over the icon it says "There was an error starting Zotero". The error console gave me the following:
Error: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageService.openDatabase]" nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 807" data: no]
Source File: chrome://zotero/content/xpcom/zotero.js
Line: 230
I have tried uninstalling and reinstalling Zotero without success.
Yes, things are definitely worse. Previously Zotero would run but I couldn't change anything, now it won't run, so I can't view items either.
Close Firefox, make a backup of everything, and check for a zotero.sqlite-journal file in the data directory. If it's there, delete it.
I suppose I need to uncorrupt my database and then start using v2. Is there a recommended way to do this? Should I try exporting the database, then importing to a new location?
You could try changing your data directory location (also in the Advanced pane of the Zotero prefs) to somewhere else on the network drive and testing with a fresh library.
But I would recommend just copying your Zotero data directory to a local drive, repairing it if necessary, and using off a local drive with 2.0.
If you have a choice, I'd recommend a local drive. If you want to continue using a network drive from one open Firefox instance at a time, I'd recommend frequent backups and regular checking via "Check Database Integrity" in the Advanced pane of the Zotero prefs to make sure it's working properly.