Zotero Standalone 5.0 opens but no database connection
Newly installed Zotero Standalone 5.0 opens but there is no database connection. It does not generate an error number but instead gives the error message below.
What do I do next?
Julia Thornton
There was an error starting Zotero.
Error: Could not open connection to D:\Firefox profile D 13022015\zotero\zotero.sqlite: 2152857621
openConnection/</<@resource://gre/modules/Sqlite.jsm:945:16
From previous event:
captureStackTrace@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/debuggability.js:826:23
CapturedTrace@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/debuggability.js:718:5
longStackTracesCaptureStackTrace@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/debuggability.js:397:19
module.exports/Promise.prototype._then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/promise.js:232:9
module.exports/Promise.prototype._passThrough@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/finally.js:94:12
module.exports/Promise.prototype.finally@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/finally.js:103:12
PromiseSpawn@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/generators.js:36:25
module.exports/Promise.coroutine/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/generators.js:197:21
ZoteroService@file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:347:4
XPCOMUtils__getFactory/factory.createInstance@resource://gre/modules/XPCOMUtils.jsm:387:19
@chrome://zotero/content/include.js:4:14
What do I do next?
Julia Thornton
There was an error starting Zotero.
Error: Could not open connection to D:\Firefox profile D 13022015\zotero\zotero.sqlite: 2152857621
openConnection/</<@resource://gre/modules/Sqlite.jsm:945:16
From previous event:
captureStackTrace@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/debuggability.js:826:23
CapturedTrace@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/debuggability.js:718:5
longStackTracesCaptureStackTrace@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/debuggability.js:397:19
module.exports/Promise.prototype._then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/promise.js:232:9
module.exports/Promise.prototype._passThrough@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/finally.js:94:12
module.exports/Promise.prototype.finally@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/finally.js:103:12
PromiseSpawn@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/generators.js:36:25
module.exports/Promise.coroutine/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://zotero/bluebird/generators.js:197:21
ZoteroService@file:///C:/Program%20Files%20(x86)/Zotero/components/zotero-service.js:347:4
XPCOMUtils__getFactory/factory.createInstance@resource://gre/modules/XPCOMUtils.jsm:387:19
@chrome://zotero/content/include.js:4:14
Then I was working in Standalone, but it began behaving very slowly as it attempted to sync on about the third sync. So I upgraded to the new 5.0 version which was when the troubles began.
The Cloud version looks perfectly intact thank goodness because I have no other recent back up. Can I get that to download to the Standalone?
How do I check what that is doing?
D:\Firefox profile D 13022015 is a pretty weird path, but if that's also your active Firefox profile, you may have more luck moving the Zotero data directory out of there and pointing Zotero to it (e.g., to D:\Zotero or C:\Users\<username>\Zotero (the default for 5.0). Point Zotero to the desired directory from the Advanced -> Files and Folders pane of the Zotero preferences, let Zotero close, and then move files from the 'zotero' directory into the new "Zotero" directory. When you start up Zotero again, it should pick up those files.
I think I have no current sqlite file on my computer due to changing both the standalone (which does not work) and the Firefox for Windows version which is now a connector. Should the Standalone have a sqlite file in it?
You're saying there are no files in D:\Firefox profile D 13022015\zotero?
Looking at the "Date Modified" on the folders the most recent is yesterday's date which would be correct. Storage, Styles and Translators all have yesterday's date.
(You might also be able to fix this by just moving the entire "Firefox profile D 13022015" directory out of the way, which might cause Zotero to prompt you what directory to use instead, but this method is a bit more precise. We'll also add a way to reset the data directory more easily at startup for cases like this.)
If it asks you to sync with an empty database at any point, say no, and fix the data directory location in the preferences.
I'll get back to you with results either way.
PS Thanks for many years of help!
Re instructions above,
"If you then move that 'zotero' directory to C:\Users\\Zotero (being sure to capitalize it), when you start up Zotero it should pick up those files (and hopefully not give the same error, assuming this is due to security software)"
I left it at C:\Users\\AppData\Roaming\Zotero\Zotero\Profiles\randomstring which was where it was before I edited it. I assume that's ok because it worked.
Now my next puzzle is to try to figure out an easy way to add snapshots of web pages to existing Zotero entries in Standalone! However that's on a much lower level of seriousness!
Thanks again Dan, for some rock solid advice.
Re Snapshots. I will await upgrades with eagerness!
All questions answered!
Have a good day, whatever time zone you're in.