Zotero standalone won't open, can't access database
Hi,
I've used Zotero for years with no problem. Upgraded to Mavericks 2 weeks ago. Zotero froze this morning. I had to force quit, and when I tried to start Zotero again, I got the message that it can't access the Zotero database, check permissions, etc. I have checked permissions on my Zotero library (/Users/<username>/Library/Application Support/Firefox/Profiles/<randomstring>/zotero) and everything is read/write. One note: there is actually no "zotero" folder inside the <randomstring> folder. All the separate sqlt and so on files are just there inside the <randomstring> folder.
Followed the directions to get an error message from Terminal, and here it is:
-------------
Could not read chrome manifest 'file:///Applications/Zotero.app/Contents/MacOS/chrome.manifest'.
While creating services from category 'profile-after-change', could not create service for entry 'Disk Space Watcher Service', contract ID '@mozilla.org/toolkit/disk-space-watcher;1'
Timestamp: 18/11/2013 15:54:02
Error: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [mozIStorageService.openDatabase]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: Zotero.DBConnection.prototype._getDBConnection :: line 1109" data: no]
Source File: chrome://zotero/content/xpcom/zotero.js
Line: 821
-------------
I've used Zotero for years with no problem. Upgraded to Mavericks 2 weeks ago. Zotero froze this morning. I had to force quit, and when I tried to start Zotero again, I got the message that it can't access the Zotero database, check permissions, etc. I have checked permissions on my Zotero library (/Users/<username>/Library/Application Support/Firefox/Profiles/<randomstring>/zotero) and everything is read/write. One note: there is actually no "zotero" folder inside the <randomstring> folder. All the separate sqlt and so on files are just there inside the <randomstring> folder.
Followed the directions to get an error message from Terminal, and here it is:
-------------
Could not read chrome manifest 'file:///Applications/Zotero.app/Contents/MacOS/chrome.manifest'.
While creating services from category 'profile-after-change', could not create service for entry 'Disk Space Watcher Service', contract ID '@mozilla.org/toolkit/disk-space-watcher;1'
Timestamp: 18/11/2013 15:54:02
Error: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [mozIStorageService.openDatabase]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: Zotero.DBConnection.prototype._getDBConnection :: line 1109" data: no]
Source File: chrome://zotero/content/xpcom/zotero.js
Line: 821
-------------
67-194-7-52:~ eschoolman$ ls -la
total 80
drwxr-xr-x+ 26 eschoolman 501 884 11 Nov 11:48 .
drwxr-xr-x 5 root admin 170 29 Oct 16:42 ..
-rw-r--r-- 1 eschoolman 501 3 11 Jun 2007 .CFUserTextEncoding
-rw-r--r--@ 1 eschoolman 501 24580 18 Nov 15:44 .DS_Store
-rw-r--r--@ 1 eschoolman 501 376 21 May 2011 .JavaPowUpload.properties
drwx------ 123 eschoolman 501 4182 18 Nov 15:35 .Trash
drwxr-xr-x 5 eschoolman 501 170 12 Oct 23:11 .autobahn
-rw-r--r-- 1 eschoolman 501 571 18 Nov 15:58 .bash_history
drwxr-xr-x@ 3 eschoolman 501 102 14 Jul 2009 .cups
drwxr-xr-x 11 eschoolman 501 374 5 Mar 2013 .dropbox
drwxr-xr-x 3 eschoolman 501 102 10 Dec 2007 .qgis
drwxr-xr-x 7 eschoolman 501 238 14 Nov 15:06 .qgis2
-rw-r--r-- 1 eschoolman 501 0 7 Nov 18:04 .st_cmd_hist
drwxr-xr-x 2 eschoolman 501 68 15 Jun 2007 Applications
drwxr-xr-x 3 eschoolman 501 102 31 Dec 2007 Backups
drwxr-xr-x 32 eschoolman 501 1088 13 Nov 22:05 Desktop
drwxr-xr-x 18 eschoolman 501 612 15 Nov 14:51 Documents
drwxr-xr-x 1816 eschoolman 501 61744 18 Nov 15:36 Downloads
drwxr-xr-x@ 9 eschoolman 501 306 23 Feb 2013 Dropbox
drwxr-xr-x@ 61 eschoolman 501 2074 18 Nov 15:58 Library
drwxr-xr-x 7 eschoolman 501 238 29 Oct 21:51 Movies
drwxr-xr-x 7 eschoolman 501 238 29 Oct 21:51 Music
drwxr-xr-x 9 eschoolman 501 306 29 Oct 21:51 Pictures
drwxr-xr-x 5 eschoolman 501 170 7 Dec 2010 Public
drwxr-xr-x 9 eschoolman 501 306 17 Mar 2010 Sites
drwxr-xr-x 3 eschoolman 501 102 28 Oct 15:07 Virtual Machines
67-194-7-52:~ eschoolman$ /Users/eschoolman/Library/Zotero
-bash: /Users/eschoolman/Library/Zotero: is a directory
67-194-7-52:~ eschoolman$
ls -la /Users/eschoolman/Library/Zotero
total 24
drwxrwxrwx 5 eschoolman 501 170 18 Nov 14:39 .
drwxr-xr-x@ 61 eschoolman 501 2074 18 Nov 15:58 ..
-rwxrwxrwx@ 1 eschoolman 501 6148 18 Nov 15:44 .DS_Store
drwxrwxrwx 4 eschoolman 501 136 18 Nov 11:31 Profiles
-rwxrwxrwx 1 eschoolman 501 103 8 Mar 2013 profiles.ini
67-194-7-52:~ eschoolman$
ls -la /Users/eschoolman/Library/Zotero/Profiles/*.default/zotero
The linked page says that my Zotero data is stored in the following:
Zotero Standalone
OS X
/Users/<username>/Library/Application Support/Zotero/Profiles/<randomstring>/zotero
But I do not have a lowercase "zotero" folder inside <randomstring>. Instead, I have the following items:
cert8.db
compatibility.ini
content-prefs.sqlite
cookies.sqlite
cookies.sqlite-shm
cookies.sqlite-wal
extensions.ini
extensions.sqlite
extensions.sqlite-journal
formhistory.sqlite
indexedDB
key3.db
localstore.rdf
marionette.log
mimeTypes.rdf
permissions.sqlite
places.sqlite
places.sqlite-shm
places.sqlite-wal
pluginreg.dat
prefs.js
secmod.db
signons.sqlite
webappsstore.sqlite
webappsstore.sqlite-shm
webappsstore.sqlite-wal
As you can see, there is nothing called "zotero" or "zotero.sqlt".
My guess, though, would be that
ls -la /Users/eschoolman/Application Support/Firefox/Profiles/*.default/zotero
will actually work.
If you had Zotero for Firefox installed first, then your data directory may be in the default Zotero for Firefox location, also mentioned on that page (and you would also be able to open Firefox, access the Zotero preferences via the Firefox Add-ons pane, go to the Advanced -> Files and Folders pane, and show the data directory that way).
ls -la /Users/eschoolman/Application\ Support/Firefox/Profiles/*.default/zotero
Now what? I can't open Zotero to tell it to look for the data in a different place, because.... well, Zotero won't let me open it.
67-194-7-52:~ eschoolman$ ls -la
total 80
drwxr-xr-x+ 26 eschoolman 501 884 11 Nov 11:48 .
drwxr-xr-x 5 root admin 170 29 Oct 16:42 ..
-rw-r--r-- 1 eschoolman 501 3 11 Jun 2007 .CFUserTextEncoding
-rw-r--r--@ 1 eschoolman 501 24580 18 Nov 15:44 .DS_Store
-rw-r--r--@ 1 eschoolman 501 376 21 May 2011 .JavaPowUpload.properties
drwx------ 131 eschoolman 501 4454 18 Nov 17:34 .Trash
drwxr-xr-x 5 eschoolman 501 170 12 Oct 23:11 .autobahn
-rw-r--r-- 1 eschoolman 501 571 18 Nov 15:58 .bash_history
drwxr-xr-x@ 3 eschoolman 501 102 14 Jul 2009 .cups
drwxr-xr-x 11 eschoolman 501 374 5 Mar 2013 .dropbox
drwxr-xr-x 3 eschoolman 501 102 10 Dec 2007 .qgis
drwxr-xr-x 7 eschoolman 501 238 14 Nov 15:06 .qgis2
-rw-r--r-- 1 eschoolman 501 0 7 Nov 18:04 .st_cmd_hist
drwxr-xr-x 2 eschoolman 501 68 15 Jun 2007 Applications
drwxr-xr-x 3 eschoolman 501 102 31 Dec 2007 Backups
drwxr-xr-x 33 eschoolman 501 1122 18 Nov 16:55 Desktop
drwxr-xr-x 18 eschoolman 501 612 15 Nov 14:51 Documents
drwxr-xr-x 1817 eschoolman 501 61778 18 Nov 17:34 Downloads
drwxr-xr-x@ 9 eschoolman 501 306 23 Feb 2013 Dropbox
drwxr-xr-x@ 60 eschoolman 501 2040 18 Nov 17:34 Library
drwxr-xr-x 7 eschoolman 501 238 29 Oct 21:51 Movies
drwxr-xr-x 7 eschoolman 501 238 29 Oct 21:51 Music
drwxr-xr-x 9 eschoolman 501 306 29 Oct 21:51 Pictures
drwxr-xr-x 5 eschoolman 501 170 7 Dec 2010 Public
drwxr-xr-x 9 eschoolman 501 306 17 Mar 2010 Sites
drwxr-xr-x 3 eschoolman 501 102 28 Oct 15:07 Virtual Machines
67-194-7-52:~ eschoolman$ /Users/eschoolman/Documents/Articles\ and\ Resources/Zotero
-bash: /Users/eschoolman/Documents/Articles and Resources/Zotero: is a directory
67-194-7-52:~ eschoolman$
67-194-7-52:~ eschoolman$ ls -la /Users/eschoolman/Documents/Articles\ and\ Resources/Zotero
total 236200
drwxr-xr-x 18 eschoolman 501 612 18 Nov 17:33 .
drwxr-xr-x 12 eschoolman 501 408 8 Mar 2013 ..
-rw-r--r--@ 1 eschoolman 501 6148 18 Nov 17:37 .DS_Store
drwx------ 6 eschoolman 501 204 8 Mar 2013 locate
--wx--xr-x@ 1 eschoolman 501 803236 28 Oct 2008 pdfinfo-MacIntel
--w----r--@ 1 eschoolman 501 4 28 Oct 2008 pdfinfo-MacIntel.version
--wx--xr-x@ 1 eschoolman 501 1080704 28 Oct 2008 pdftotext-MacIntel
--w----r--@ 1 eschoolman 501 4 28 Oct 2008 pdftotext-MacIntel.version
drwx------ 5 eschoolman 501 170 18 Nov 17:37 pipes
d------r-x@ 451 eschoolman 501 15334 18 Nov 11:28 storage
d------r-x@ 19 eschoolman 501 646 15 Nov 14:42 styles
d------r-x@ 423 eschoolman 501 14382 15 Nov 14:42 translators
--w----r--@ 1 eschoolman 501 3165 4 Mar 2010 zotero.moved-files.36.bak
--w----r--@ 4 eschoolman 501 38283264 18 Nov 11:29 zotero.sqlite
--w----r-- 1 eschoolman 501 233744 18 Nov 11:29 zotero.sqlite-journal
--w----r--@ 1 eschoolman 501 29210624 4 Mar 2013 zotero.sqlite.1.bak
--w----r--@ 1 eschoolman 501 22074368 20 Mar 2011 zotero.sqlite.73.bak
--w----r--@ 1 eschoolman 501 29210624 5 Mar 2013 zotero.sqlite.bak
67-194-7-52:~ eschoolman$
You also have neither write nor read permissions for the storage, styles, and translators folder (they should start with drw). You should be able to set read and write permissions for the entire folder (/Users/eschoolman/Documents/Articles\ and\ Resources/Zotero) and its contents.
http://www.macinstruct.com/node/415
sudo chown -R eschoolman /Users/eschoolman/Documents/Articles\ and\ Resources/Zotero
find /Users/eschoolman/Documents/Articles\ and\ Resources/Zotero -type f -exec chmod u+rw,g+r,+X {} \;
find /Users/eschoolman/Documents/Articles\ and\ Resources/Zotero -type d -exec chmod 755 {} \;
You'll have to type your system password after the first one, and you won't see it printed back to you as you type.
I think that should do it.
But I was referring to what you showed above: That seems to suggests that you have some misplaced 'Zotero' (the parent to 'Profiles', not to be confused with 'zotero') directory directly under Library, separate from whatever you have under Application Support. (And this one shows a date of November 18. Perhaps you were moving files around today and copied 'Zotero' from Library/Application Support to Library by accident?)