Remove database lock after crash
My computer just crashed while firefox and zotero were opened. I had to remove firefox lock files manually before I could run firefox. However, zotero is not working yet: "Your zotero database is currently in use". How can I remove this lock?
I think this issue can be reproduces by sending a kill -9 signal to firefox, while zotero is opened.
I think this issue can be reproduces by sending a kill -9 signal to firefox, while zotero is opened.
How can I restore the journal file?
I don't know that we've ever seen this, but you could try uploading your database to the DB Repair Tool, or rebuilding it yourself with the manual instructions, assuming the SQLite command-line client can open it.
But probably you should just restore from the last automatic backup, depending on when it's from. If you're using syncing that would then just pull down any data modified since that backup.
Obviously, you should have a backup of your entire Zotero data directory before doing anything here.
Removeing the journal file is a bad idea, as this journal file can be used to recover the database. I removed the filesystem lock by moveing the file, and then copying it back: I used sqlite3 to recover the databae and to check if the database is unlocked again:
(And yes, removing -journal is absolutely a bad idea, but if this hadn't been a network share there wouldn't really have been anything else to try.)