Your Zotero profile cannot be loaded. It may be missing or inaccessible (Windows)
I've been a long-term Zotero user via the firefox plugin. Having now been forced to change to the stand-alone version, I cannot get it to run. I've tried installing both version 4.0.29.17 and 5.0.29 and for both the only thing Zotero produces is a dialogue box with "Your Zotero profile cannot be loaded. It may be missing or inaccessible." Really anoying!
I'm on Windows 7, and yes Zotero will happily create a "Zotero" subdirectory in both my AppData/Local and AppData/Roaming directories - but it leaves these empty except for a further Zotero subdirectory. I've tried all the things suggested on various forums including -ZoteroDebug or -profile flags on the command-line, deleting the directories and letting it recreate them, putting in a dummy profiles.ini file, all to no avail.
Any ideas on how I can at least get a sensible error message (or preferably a fix to make Zotero start)?
I'm on Windows 7, and yes Zotero will happily create a "Zotero" subdirectory in both my AppData/Local and AppData/Roaming directories - but it leaves these empty except for a further Zotero subdirectory. I've tried all the things suggested on various forums including -ZoteroDebug or -profile flags on the command-line, deleting the directories and letting it recreate them, putting in a dummy profiles.ini file, all to no avail.
Any ideas on how I can at least get a sensible error message (or preferably a fix to make Zotero start)?
only option I have is to go back to an earlier version Firefox to run the old zotero within the browser. Not really an ideal solution.
If you have a Firefox installation, you can try copying its Profiles folder to C:\Users\:username:\AppData\Roaming\Zotero\Zotero\Profiles and seeing if that works. (If so, you can clean it up a bit after.)
Failing that, you might be able to monitor disk access with a separate tool (e.g., DiskMon, though I'm not sure if that shows the actual files that a process tries to access).
(There are also some low-level logging options for Mozilla code that you could use if you have Cygwin installed, but if you don't know what that is, it's not worth worrying about, since it's pretty complicated and unlikely to actually show anything useful.)
Again, the code here is from the underlying Firefox components that Zotero uses — Zotero's own code isn't even running at this point. It's possible that some security software could flag Zotero as being part of Firefox and prevent it from writing outside of expected Firefox locations, but that's purely speculation.
Also note that this error is entirely unrelated to the Zotero data directory at C:\Users\username\Zotero.
After updating to Zotero 5.0 on macOS 10.13.4 I too got the dreaded "*Profile missing* Your Zotero profile cannot be loaded. It may be missing or inaccessible."
The profile folder at ~/Library/Application Support/Zotero has the usual (and right) permissions. I have no special security software installed, but am running the default macOS security settings.
Besides the current thread, I've looked into a couple related ones:
https://forums.zotero.org/discussion/68433/your-zotero-profile-cannot-be-loaded-it-may-be-missing-or-inaccessible
https://forums.zotero.org/discussion/68736/profile-cant-be-loaded-after-installing-zotero-5-0-on-linux
The otherwise extremely helpful guru dstillman has unfortunately not been able to help anybody with this problem, pointing out that it must be a user problem. I doubt that. I suspect it is not a one-sided, but rather a multi-faceted problem in the way that Zotero tries to interact with my computer.
The only way (for now), how I've been able to get Zotero to run is by calling it as a superuser from the terminal:
sudo /Applications/Zotero.app/Contents/MacOS/zotero
As dstillman points out above, that is far from desired, but it will give me access to Zotero on the short run while I figure out what is going wrong in the interaction between Zotero and my computer. Wish me luck.
cheers,
Lennart
The problem is as I say in my previous post above: something preventing Zotero from writing to either the profile directory or the cache directory. You don't say if you checked the latter.
Rename both /Users/:username:/Library/Application Support/Zotero and /Users/:username:/Library/Caches/Zotero to Zotero-Old and try again as a normal user.
The /Users/:username:/Library/Cashes folder was owned by the 'root' user, not by :username:. With the permissions set to 755 that did not allow Zotero to access the cache directory when run as a regular user. Changing the permissions to 775 (or changing the owner, of course) gave Zotero access and solved the problem.
I have the same error message, but the two Profile folder mentioned above are empty [the profile directory (within C:\Users\username\AppData\Roaming\Zotero\Zotero\Profiles) and the cache directory (within C:\Users\username\AppData\Local\Zotero\Zotero\Profiles)].
Is there a way to recreate the files which are supposed to be in those folders ?
Thanks,
François
François Maurice
I checked that the Zotero profile and cache directories are accessible:
sudo chown -R patrick:patrick ~/.zotero
sudo chmod -R 777 ~/.zotero
sudo chown -R patrick:patrick ~/Documents/Zotero\ Storage/
sudo chmod -R 777 ~/Documents/Zotero\ Storage/
... but that doesn't avoid the message on startup. I haven't yet tried running the executable as an administrator for fear of introducing new problems.
I'm running the Zotero Standalone executable from a terminal by typing ~/bin/Zotero_linux-x86_64/zotero-bin under Linux Mint 18.2.
(Unrelated to Zotero, but note too that, while it doesn't matter too much on a personal system, you should never run chmod -R 777 on a Linux system, even when troubleshooting. Since you run programs as your own user, if the directory/file is owned by you then only the user part is necessary, and you don't want to set non-executable files as executable by you or anyone else. You can fix these recursively using
find /path/to/folder -type d -exec chmod 700 {} \;
andfind /path/to/folder -type f -exec chmod 600 {} \;
.)Thank you, dstillman. Quick follow-up question: is there anything in the Zotero data directory or in ~/.zotero that SHOULD be executable, or can I just run `chmod -R a-x` on both directories?
If you run the second command on a directory that's supposed to have executable files, you'd have to fix the permissions on any executables separately afterwards.
But we can't really get into general Linux advice here, so you'd want to look elsewhere for that. I was just pointing out that `chmod -R 777` is never something you want to do.
$sudo chown snerx:snerx -Rv zotero
That solved the "Your Zotero profile cannot be loaded..." problem.
If you don't run ubuntu, the ppa packages simply run https://raw.githubusercontent.com/retorquere/zotero-jurism-ppa/master/install-zotero.py, which should be distribution-independent. If you run it as root it will install in /usr/lib/zotero, if you don't run it as root it will install in ~/bin/zotero. In either case you get a desktop file so whichever launcher you use it will be picked up.
Unless it was something like "sudo zotero_installer.sh; sudo /opt/zotero/zotero". That will probably leave the cache directory in a user dir but root-owned.
In any case, having the Zotero binaries be root-owned (whether they live in /opt or /usr/lib or elsewhere) is no problem. You may get errors doing in-app updates, but those would be harmless (and can be deactivated).