A copy of Zotero is already open.

Folks,

I've read several posts regarding this, and none have a definitive answer beyond 'restarting your computer' (which I would like to avoid). What is most interesting about this bug is that it does not happen when I switch to a different user account on my Mac. So, for my school user (where I am doing all of my research), Zotero can't open. But on my work account, it opens fine.

So, what file is present on my school user account that is preventing this from opening? That way, I can remove it and move forward with my research.

Also, why does this bug exist? Why is this a problem, and why are you writing a file on disk instead of checking the processes on the machine to see if something is running? This seems like something that could be avoided with some smarter code.

Thanks.
  • that's a relatively common problem with Firefox (on which Zotero is build) and Mac, you can replace Zotero with Firefox in the error message and get to a number of proposed solutions, they basically all come down to deleting the .parentlock file for Firefox/Zotero, see here:
    http://superuser.com/questions/8991/a-copy-of-firefox-is-already-open-only-one-copy-of-firefox-can-be-open-at-a-ti

    If you're interested in why Mozilla (as a cross-platform app) chose this particular approach, you can get a sense from reading the Wikipedia article on file locking:
    http://en.wikipedia.org/wiki/File_locking
  • edited March 13, 2015
    Thanks for this lead. This fixes the problem (in Terminal):

    rm ~/Library/Application\ Support/Zotero/Profiles/zsrcumro.default/.parentlock

    I think it is caused when the account crashes or otherwise gets closed out suddenly. I came to my computer this morning and all of my users were logged out (an interesting occurrence in itself). Zotero doesn't quit properly, leaveing this file on the drive, and it can't open as a result.

    In case anyone is concerned - there shouldn't be any issue with deleting this file, it doesn't have anything in it. It's just a flag to say Zotero is open.
  • Thanks, Cajund, this solved my problem.
Sign In or Register to comment.