[MLZ] NS_ERROR_FILE_ALREADY_EXISTS when syncing

MLZ gets stuck when trying to sync with the error message "NS_ERROR_FILE_ALREADY_EXISTS". The only solution is to manually delete the respective file, hoping that the newest version is on the server, not local. This is the third time that this happens, each time with a different file. I am using MLZ and Papership. Zotero standalone reportedly had the same bug: https://forums.zotero.org/discussion/48303/syncing-error-report-id-1597005439/#Item_5 . I don't know if the fix has been implemented in MLZ yet?

Below excerpts of the error logs. The third time:
------------------------------------

[…]

[JavaScript Error: "Not deleting symlink '8X3APDHE.pdf' in Zotero.Sync.Storage._deleteExistingAttachmentFiles()" {file: "chrome://zotero/content/xpcom/storage.js" line: 1784}]
[JavaScript Error: "[Exception... "Component returned failure code: 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsIFile.create]" nsresult: "0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS)" location: "JS frame :: chrome://zotero/content/xpcom/file.js :: Zotero.File</this.createShortened :: line 326" data: no]" {file: "chrome://zotero/content/xpcom/file.js" line: 660}]
[JavaScript Error: "[Exception... "Component returned failure code: 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsIFile.create]" nsresult: "0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS)" location: "JS frame :: chrome://zotero/content/xpcom/file.js :: Zotero.File</this.createShortened :: line 326" data: no]" {file: "chrome://zotero/content/xpcom/sync.js" line: 586}]
[JavaScript Error: "TypeError: namedNodes.counter is null" {file: "resource://treestyletab-modules/browser.js" line: 1210}]

[…]

version => 4.0.26m512, platform => Linux x86_64, oscpu => Linux x86_64, locale => de-DE, appName => Firefox, appVersion => 34.0, extensions => LastPass (3.1.1, extension), Pons Context Search (1.0.1, extension), WikiWand: Wikipedia Modernized (3.2, extension), Clearly (10.2.1.7, extension), DownloadHelper (4.9.24, extension), All-in-One Sidebar (0.7.25, extension), Omnibar (0.7.28.20141004, extension), RSS Handler for Feedly (1.0, extension), feedly (16.0.528, extension), Duplicate-Tab-Blocker (0.1.0, extension), Sitzungs-Manager (0.8.1.6, extension), Add to Search Bar (2.8, extension), User Agent Switcher (0.7.3, extension), Ubuntu Firefox Modifications (3.0, extension), LeechBlock (0.6.7.1, extension), LEO Wörterbücher (2.0.0, extension), Tab Mix Plus (0.4.1.7, extension), Terms of Service; Didn’t Read (0.4.1, extension), Hide Unwanted Results of Google Search (1.5.2, extension), Adblock Plus (2.6.9, extension), Tree Style Tab (0.15.2015030601, extension), LibX (2.0.16525.0, extension), Zotero LibreOffice Integration (3.5.9, extension), ZotFile (4.1.5, extension), Google Scholar-Schaltfläche (1.1, extension), Back to Start (0.8.1, extension), Space Next (0.34, extension), RSS Icon In Awesombar (1.4, extension), zotxt (0.1.27, extension), RTF/ODF Scan for Zotero (1.0.22, extension), Zotero automatic export (1.1.9.1, extension), Zotero Bibliography Locale Switcher (1.0, extension), Zotero Storage Scanner Plugin (0.0.15, extension), LyZ (2.1.7.1-signed, extension), Astrill Proxy Switcher (1.6.2, extension), HTTPS-Everywhere (5.0.4, extension), Download YouTube Videos as MP4 (1.8.3, extension), Zutilo Dienstprogramm für Zotero (1.2.10.1-signed, extension), Integrated Inbox for Gmail & Google Apps (3.7.4.1-signed, extension), ZenMate Security & Privacy VPN (4.1.7, extension), Cleanest Addon Manager (7.0, extension), Zotero Better Bib(La)Tex (0.10.6, extension), Scholar H-Index Calculator (3.1.6, extension), Disconnect (3.15.3, extension), OpenH264 Video Codec provided by Cisco Systems, Inc. (1.3, plugin), Shockwave Flash (11.2.202.457, plugin), Pocket (1.2, service), DoubleClick ContextMenu (1.0, extension, disabled), English (GB) Language Pack (37.0.2, locale, disabled), English (South Africa) Language Pack (37.0.2, locale, disabled), Deutsch (DE) Language Pack (37.0.2, locale, disabled), Chinese Simplified (zh-CN) Language Pack (37.0.2, locale, disabled), Korean (KR) Language Pack (37.0.2, locale, disabled), Java(TM) Plug-in 11.45.2 (11.45.2, plugin, disabled), Google Talk Plugin (, plugin, disabled), Google Talk Plugin Video Renderer (, plugin, disabled)

The second time:
------------------

[…]

[JavaScript Error: "Not deleting symlink 'I244DSE8.pdf' in Zotero.Sync.Storage._deleteExistingAttachmentFiles()" {file: "chrome://zotero/content/xpcom/storage.js" line: 1784}]
[JavaScript Error: "Not deleting symlink 'Clayton Munnings et al. - 2014 - Assessing the Design of Three Pilot Programs for C.pdf' in Zotero.Sync.Storage._deleteExistingAttachmentFiles()" {file: "chrome://zotero/content/xpcom/storage.js" line: 1784}]
[JavaScript Error: "[Exception... "Component returned failure code: 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsIFile.create]" nsresult: "0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS)" location: "JS frame :: chrome://zotero/content/xpcom/file.js :: Zotero.File</this.createShortened :: line 326" data: no]" {file: "chrome://zotero/content/xpcom/file.js" line: 660}]
[JavaScript Error: "[Exception... "Component returned failure code: 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsIFile.create]" nsresult: "0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS)" location: "JS frame :: chrome://zotero/content/xpcom/file.js :: Zotero.File</this.createShortened :: line 326" data: no]" {file: "chrome://zotero/content/xpcom/sync.js" line: 586}]

version => 4.0.26m512, platform => Linux x86_64, oscpu => Linux x86_64, locale => en-US, appName => Firefox, appVersion => 34.0, extensions => Astrill Proxy Switcher (1.6.2, extension), LastPass (3.1.1, extension), Pons Context Search (1.0.1, extension), Clearly (10.2.1.7, extension), DownloadHelper (4.9.24, extension), All-in-One Sidebar (0.7.25, extension), Omnibar (0.7.28.20141004, extension), RSS Handler for Feedly (1.0, extension), feedly (16.0.528, extension), Duplicate-Tab-Blocker (0.1.0, extension), Add to Search Bar (2.8, extension), User Agent Switcher (0.7.3, extension), Ubuntu Firefox Modifications (3.0, extension), LeechBlock (0.6.7.1, extension), LEO Dictionaries (2.0.0, extension), Tab Mix Plus (0.4.1.7, extension), Download YouTube Videos as MP4 (1.8.1, extension), Terms of Service; Didn’t Read (0.4.1, extension), Hide Unwanted Results of Google Search (1.5.2, extension), Adblock Plus (2.6.9, extension), Tree Style Tab (0.15.2015030601, extension), LibX (2.0.16525.0, extension), HTTPS-Everywhere (5.0.3, extension), Zotero LibreOffice Integration (3.5.9, extension), ZotFile (4.1.5, extension), Google Scholar Button (1.1, extension), Back to Start (0.8.1, extension), Space Next (0.34, extension), RSS Icon In Awesombar (1.4, extension), Zutilo Utility for Zotero (1.2.10, extension), zotxt (0.1.27, extension), RTF/ODF Scan for Zotero (1.0.22, extension), Zotero automatic export (1.1.9.1, extension), Zotero Bibliography Locale Switcher (1.0, extension), Zotero Storage Scanner Plugin (0.0.15, extension), LyZ (2.1.7.1-signed, extension), Zotero Better Bib(La)Tex (0.9.18, extension), OpenH264 Video Codec provided by Cisco Systems, Inc. (1.3, plugin), Shockwave Flash (11.2.202.457, plugin), Pocket (1.2, service), WikiWand: Wikipedia Modernized (3.2, extension, disabled), Session Manager (0.8.1.6, extension, disabled), English (GB) Language Pack (37.0.1, locale, disabled), English (South Africa) Language Pack (37.0.1, locale, disabled), Deutsch (DE) Language Pack (37.0.1, locale, disabled), Chinese Simplified (zh-CN) Language Pack (37.0.1, locale, disabled), Korean (KR) Language Pack (37.0.1, locale, disabled), DoubleClick ContextMenu (1.0, extension, disabled), Google Talk Plugin (, plugin, disabled), Google Talk Plugin Video Renderer (, plugin, disabled)
  • Yes, the Zotero patch isn't in the current MLZ release.

    A rebranded release of the project is in prep, which will replace MLZ. I'll be chasing Zotero changes in the new release. MLZ is basically frozen (for want of time), but I'll try to get a fix out for this issue in the next day or two.
  • Ok, thank you!
  • I am still running in the same bug every other day. Would it help to install Juris-M or does it have exactly the same code basis as MLZ?
  • Sorry for the time it took me to get back to you on this.

    From the logs, it looks like code updates to MLZ did not reach that revision. Juris-M is up to date, so installing that from https://juris-m.github.io/downloads should clear the error for you.

    Juris-M is just an incremental upgrade from MLZ, and it should produce the same results on styles. As the note under the link explains, you can now hold Zotero and Juris-M versions of your Zotero library on the same machine, since Juris-M works on a copy of the database, instead of modifying the original.

    If you install over Zotero or MLZ, Juris-M will disable itself and whinge at you, but that's expected: just go to Firefox Add-ons, disable MLZ, and re-enable Juris-M, as explained in the alert.

    During a recent round of Masters thesis submissions in our faculty, I fixed quite a few bugs and papercuts in the Juris-M fork. Highlights include:
    • A bug that clobbered the parent field content when the text-case of a variant field was changed via the context menu [FIXED];

    • A bug that left a stray (and invisible) language variant on creator names when swapping fields with the context menu, which resulted in an uneditable parent field, and mis-formatted citations [FIXED];

    • Several fields have been added, including parentTreaty (to correctly cite TRIPS and other treaty annexes).
    Juris-M also introduces modular support for legal citation forms. This was a major change at the MLZ -> Juris-M watershed, but Juris-M is still compatible with the legacy MLZ styles.
  • Ah, a couple of additional notes.

    Juris-M releases will not automatically update at present, because the update manifests are not signed. I will fix this when I get to it -- the tool that I use for this started to not work for some reason, and calls for advice on scripted signing infrastructure to various quarters haven't yet yielded any responses. It will be sorted out eventually, but for now, you'll have to watch for release announcements, or check the site from time to time to see if there has been movement.

    Another item worth mentioning is a screen-clip FAQ we've started, aimed at students in our faculty. It might be work glancing through the list, just in case.
  • Ok, thank you!
    I didn't get any warning and Juris-M continued to use the same library, but I guess that's because I had already been using MLZ before. Juris-M deactivated itself, but only after the second browser restart if I remember correctly.
  • It sounds like the install went according to plan, but let's be sure.

    Check in gear menu -> Preferences -> Advanced -> Files and Folders, then "Show Data Directory". You should see if there is a "jurism.sqlite" file alongside "zotero.sqlite."

    You won't see any change in the content of the library, since it is an exact copy. If the Juris-M library turns up empty, that would mean that the copy attempt failed (and that should actually crash the client if it happens).

    Juris-M should have installed itself, issued the alert, and the browser should have restarted when you clicked "OK", with Juris-M disabled. (If it didn't behave like that, post back with your OS and Firefox version, and I'll see if I can reproduce the anomaly on another machine here - but whatever happened there, it sounds like you are all set to go.)
  • yes, I have a jurism.sqlite, I didn't look for it first because I thought it would copy the whole library.
    I didn't see any alert - the only cause I can think of if I by chance pressed the enter key in the moment it appeared. Anyway, Juris-M is working fine so far.
    I am using Kubuntu 14.04 with Firefox 37.0.1 modified for KDE.
Sign In or Register to comment.