How to deal with "Your Zotero database is currently in use."
Whenever I bring up firefox, The Zotero icon has a "warning triangle", and I can see the mouseover warning:
"Your Zotero database is currently in use. Only one instance of Zotero using the same database may be opened simultaneously at this time. If Zotero Standalone is open, please close it and restart Firefox."
If I click on the Zotero icon, I get the same error message.
I'm not running standalone Zotero. I've tried stopping and restarting firefox, disabling and enabling the Zotero extension, and rebooting the machine. None of this has had any effect.
FWIW, this on a Ubuntu 10.04 LTS system, using Firefox 3.6.16 and Zotero 2.1.5.
"Your Zotero database is currently in use. Only one instance of Zotero using the same database may be opened simultaneously at this time. If Zotero Standalone is open, please close it and restart Firefox."
If I click on the Zotero icon, I get the same error message.
I'm not running standalone Zotero. I've tried stopping and restarting firefox, disabling and enabling the Zotero extension, and rebooting the machine. None of this has had any effect.
FWIW, this on a Ubuntu 10.04 LTS system, using Firefox 3.6.16 and Zotero 2.1.5.
Is there a -journal file in the data directory when Firefox is closed? If so, move it somewhere else and try again. [Edit for posterity: Don't do this. It could result in database corruption, and if it helped it'd be due to some other root cause that needed to be fixed.]
Yes, there's a zotero.sqlite-journal file in the directory where I've told Zotero to store its files. Checking the date on this, it appears that Zotero was in the middle of updating the database when a recent power outage took my system down. I assume that removing the -journal file will cause any updates that were in process to be lost. The bigger question is whether this risks leaving the database in an inconsistent state?
After switching over to storing data in the firefox profile and synching with the server, I'm back up and running.
@{HOME}/<zotero_profile_directory>/* rwlk,
to the file /etc/apparmor.d/local/usr.bin.firefox
or disable the AppArmor firefox profile using
sudo ln -s /etc/apparmor.d/usr.bin.firefox /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.bin.firefox
Any thoughts on how to diagnose the problem?
I used to put zotero data on a portable external hard drive (with Mac OS X Lion) and it all worked fine until recently when I got a 32G thumbdrive and decided to move the zotero data there.
I first format the thumbdrive into Mac OS extended journaled, and run into the error "Your Zotero database is currently in use. Only one instance of Zotero using..." I deleted the zotero.sqlite-journal and it worked out fine. Then I realized I also had a windows machine that might use zotero, so I reformatted the thumbdrive into fat32, copied the same file over, and run into the same error. This time deleting the journal file does not work.
I can still use zotero in firefox without starting zotero standalone or vice versa, but zotero firefox will not shift to standalone. I checked and none of the db files are locked.
Any idea? Thanks!
My real bugbear is that the only solution I have found is to delete all the zotero files from within the firefox profile, and repopulate every time, which is a bit time consuming...
I would like to know where the lock that this message complains about is being stored, and potentially override this check in some way...
What operating system? Wnat version of Zotero? To solve your problem it is necessary to know more background. Is your Zotero in the standard place or did you set a custom location? Is this on your computer's drive or on network storage? When you say that you "repopulate", do you mean that you download the plug-in and install it a second or third time? Are there other Firefox plugins? Have you tried disabling them? Have you looked at the directory and file permissions and write/read-only settings?
As you may guess (since I am using NFS) this is on linux--At the moment Scientific Linux 6.3 (RHEL6/Centos6 equivalent). Firefox 10.0.12; zotero 3.0.11. The same problem occured with older versions of firefox and zotero.
Of course I have many other firefox plugins--but the problem is so clearly with zotero that in first instance I am willing to exclude those as a potential cause for the issue.
The only solution I have found, when after a system or firefox crash this annoying issue appears, is to delete all the zotero.sqlite.* files from my firefox profile. Zotero will then sync my local to remote information (slowly).
So the lock information seems to be stored inside the database-a very unsatisfactory situation.
Your Zotero database is currently in use. Only one instance of Zotero using the same database may be opened simultaneously at this time. ...Please close it and restart Firefox. (something like that)
I think i should step back further to explain what have happened to my firefox zotero.
I used to add zotero to my Firefox addons, first it was OK. Then one day my firefox can't be opened. Whenever i tried to open it, it says:
Your Firefox has already been opened, either restart Firefox or restart your system. (Something like that) I searched the troubleshooting of Firefox and one solution is to delete the .parentlock to rebook it. I did it and succeeded to open Firefox again. However, after that my Firefox zotero disappear, besides that all my Firefox addons seem to be blocked as no addons appear when i click the addons bouton.
I guess the problem i can't open zotero may link to the weird state of my Firefox addons. So i did as i have said in the last post: drag my zotero folder under the .mozilla folder, and succeeded in rebooking zotero again. However, firefox addons is still in trouble.
❯ sudo apparmor_parser -R /etc/apparmor.d/usr.bin.firefox
apparmor_parser: Unable to remove "/usr/lib/firefox/firefox{,*[^s][^h]}". Profile doesn't exist
(I'm using Ubuntu and Firefox. My home directory is stored on a server so that I can use any computer at work.)