Mac - Can't access zotero directory via AFP

Using Leopard 10.5.2 and FF3 RC1 with Zotero 1.0.4.

When I have my zotero data directory on my local machine, it works fine. When I copy it to another Leopard machine on my network and connect to the AFP share, and try to use that share as the location for zotero data, I get 'There was an error starting zotero'.
Clicking 'check database integrity' does nothing, although 'show data directory' brings up the directory fine.

Any ideas?
  • Follow the steps in the Advanced Instructions section of the Reporting Bugs page and let us know what appears in the Error Console.
  • I've followed the steps in that section, and nothing appears in the error log whatsoever on trying to start zotero.
  • Really nothing at all! Any tips? Please!
  • I've tried deleting the FF3 profile and starting again, no change.

    Nothing appears in the console logs when I start.

    I can browse the AFP folder via /Volumes/.
  • edited May 20, 2008
    Try deleting compreg.dat and xpti.dat from your Firefox profile directory before starting Firefox, and then check the Error Console. If you turned on the showInConsole pref, you should really see something there if Zotero is displaying a startup error. Also try selecting "All" instead of "Errors" in the Error Console.

    If that doesn't work, reset the extensions.zotero.useDataDir and extensions.zotero.dataDir prefs in about:config, restart Firefox, and then try configuring it again from the Zotero prefs.

    You can also enable debug output to see how far in the initialization process Zotero is getting.

    Edit: OK, some of these steps aren't necessary if you started again with a new profile. But please make sure javascript.options.showInConsole is set to true, since it shouldn't be possible to get a Zotero startup error without seeing something in the Error Console.
  • All I get is :

    zotero(3): Using data directory /Volumes/nick/WorkSync/MVMDocs/zotero

    zotero(3): Opening database 'zotero'

    Is this any help?
  • When I do: reset the extensions.zotero.useDataDir and extensions.zotero.dataDir prefs in about:config, restart Firefox, and then try configuring it again from the Zotero prefs,

    the problem still occurs.
  • I'd focus on getting errors to show up in the Error Console, since without that it's going to be rather difficult to debug this. I don't want to sound repetitive, but can you confirm that javascript.options.showInConsole is set to true?

    And then if you reset the data dir pref, reset Zotero so it starts normally, and then set the data directory to the share and restart, can you confirm that nothing shows up in the Error Console?

    If not, just to make sure your Error Console is working, try installing, for example, the Yahoo Toolbar. You should see various chrome://ytoolbar errors in the Error Console. Is that the case?

    Outside of Firefox, another thing you can try is opening an SQLite database on the share using the command-line SQLite 3 client.
  • macbook:Downloads nick$ ./sqlite3-3_5_9-osx-x86.bin ../Desktop/zotero.sqlite SQLite version 3.5.9
    Enter ".help" for instructions
    sqlite> .tables
    annotations highlights settings
    baseFieldMappings itemAttachments tags
    charsets itemCreators transactionLog
    collectionItems itemData transactionSets
    collections itemDataValues transactions
    creatorTypes itemNoteTitles translators
    creators itemNotes userFieldMask
    csl itemSeeAlso userFields
    fieldFormats itemTags userItemTypeFields
    fields itemTypeCreatorTypes userItemTypeMask
    fileTypeMimeTypes itemTypeFields userItemTypes
    fileTypes itemTypes version
    fulltextItemWords items zoteroDummyTable
    fulltextItems savedSearchConditions
    fulltextWords savedSearches
    sqlite> .exit
    macbook:Downloads nick$ ./sqlite3-3_5_9-osx-x86.bin /Volumes/nick/WorkSync/MVMDocs/zotero/zotero.sqlite
    SQLite version 3.5.9
    Enter ".help" for instructions
    sqlite> .tables
    Error: database is locked

    It seems that sqlite can't open the database when it's on a share, but can when it's local.
  • It all works over AFP if I use Firefox 2. Then doesn't again if I go back to 3...
  • I *can* see the tables in the remote database if I use the builtin sqlite3 (v 3.4.0).
  • Got some errors in Zotero prefs (accessed via Tools|Addons|Preferences) when changing _from_ custom datadir _to_ profile directory:

    Error: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageService.openDatabase]" nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 799" data: no]
    Source File: chrome://global/content/bindings/preferences.xml
    Line: 713

    Error: uncaught exception: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageService.openDatabase]" nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 799" data: no]

    Error: event.originalTarget is null
    Source File: chrome://zotero/content/preferences/preferences.js
    Line: 54

    Is any help?
  • OK, mozStorage is broken over AFP in Fx3, which also prevents Fx3 from running at all off an AFP-based profile directory. Here's the bug:

    https://bugzilla.mozilla.org/show_bug.cgi?id=417037

    We'll try to get some attention on this before Fx3 ships.

    Thanks for helping to track this down. You were also right about the lack of Error Console output with this particular startup error. I've fixed that in the latest dev build.
  • Thanks for your help too. I'm back to FF2, which isn't so bad - fingers crossed for a definitive fix.
  • Doesn't work in RC2 either.
  • Doesn't work in RC2 either.
    If it were, the Bugzilla ticket would be marked as Fixed. It's getting some attention, though, and is currently nominated for blocking-firefox3. That may not happen, but it hopefully would be in 3.0.1 at the latest.
  • Just as an update, this didn't happen for Firefox 3.0, but it is fixed on Mozilla's end and waiting approval for Firefox 3.0.1. I'll post an update if it makes it into the 3.0 nightly builds.

    Also: It appears to affect SMB (i.e., Windows) network shares on OS X as well as AFP.
  • Thanks again. I'm now a happy Unison user, running off my hard drive - or several hard drives - without any difficulty, so no immediate problem with this particular bug. Good that it's being fixed though, and I'm happy to have played a part!

    People are always talking about rsync, but what they /really/ need for most real-world applications is Unison - it seems a bit scary to set up. It isn't really. Maybe I'll do a posting.

    Nick
  • OK, the fix was approved for 3.0.1 and should be in the latest Firefox 3.0 nightlies as well.
  • Fixed in Firefox 3.0.1, which is now available for download.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.