Problem syncing (Report ID 109434251)

Hi, For the last two days I've been receiving error messages and unable to complete a sync. Could someone please advise me on what I should do? Thanks!

Windows 7
Firefox 3.6.6
Zotero 2.03

Here's what shows up in the error report:

[JavaScript Error: "Shortening filename to 'w6nCgMKjw6jCvMKJw6CvMKNw6CvMKsw6CvcKBw6CvcKTw6CvcKUw6PCgMKAw6CvMKjw6CvcKIw6CvcKBw6CvcKOw6CvcKDw6CvcKFw6PCgMKAw6jCiMKqw6fCqcK6w6bCqcKfw6fClMKjw6bCpcKt'" {file: "chrome://zotero/content/xpcom/storage.js" line: 1174}]

[JavaScript Error: "[Exception... "Component returned failure code: 0x80520011 (NS_ERROR_FILE_NAME_TOO_LONG) [nsIZipReader.extract]" nsresult: "0x80520011 (NS_ERROR_FILE_NAME_TOO_LONG)" location: "JS frame :: chrome://zotero/content/xpcom/storage.js :: _processZipDownload :: line 1190" data: no]" {file: "chrome://zotero/content/xpcom/storage.js" line: 1190}]
  • I noticed that someone else posted a similar error message in April and no one replied.

    http://forums.zotero.org/discussion/12074/error-while-syncing/

    I would really appreciate some help, guys. It's not syncing... and I use this Zotero account on three other computers...

    Thanks.
  • 1) Provide a Debug ID for a sync attempt that generates this error.

    And then:

    2) Find that file on the other machine and either the delete associated item in Zotero or delete the long file and modify the main HTML file to force it to resync without the long file.

    or

    3) On the computer throwing the error, try moving your Zotero data directory higher up in your filesystem. Long filenames generally shouldn't cause a problem, but they might on Windows if the Zotero data directory is deep in the filesystem. Zotero is supposed to warn you about that or deal with it, but it might not in some cases (which is why I asked you for the Debug ID).
  • Actually, it's possible that Windows 7 just deals with this better than XP, since I don't think we've seen the explicit NS_ERROR_FILE_NAME_TOO_LONG error before. On XP it returns a FILE_NOT_FOUND error when a filename is too long.
  • Hi Dan,

    Thanks. I did what you said - The Debug ID is D1169447810.

    I don't understand your second comment. I'm using Windows 7. Is there something else I should do?

    Thanks!

    Adam
  • Also, how do I know which file is causing the problem? How do I find it so I can delete it?

    (sorry if these are stupid questions - I'm not very good with computers)

    I appreciate your help.
  • It's the file listed above. "w6nCgMKjw6jCvMKJw" + more gibberish. You can search for it in the filesystem.
  • i just searched this computer. there are several files that begin with those letters and numbers, but none that have the full, complete name I listed above...

    does that mean that the problematic file is a) not currently on this computer and b) on one of the other computers linked to this account. The idea being that Zotero is having trouble downloading it onto this computer from the server?

    I wonder if it's caused by subdirectories that I created in Zotero. I only have a max of 5 levels of subfolders , though.
  • I don't know what "this computer" means. The computer generating the error, or another one? You need to search the other one.

    But, basically, find that file (which might already have a shortened filename) within your Zotero data directory on a computer that's not generating the sync error—in other words, that's already successfully synced, and on which Zotero already shortened the filename as it's supposed to—and then edit the main HTML file (which you can locate from Zotero) and sync again.

    If this is too complicated, just delete the attachment in Zotero. It's not worth putting in too much effort for a single attachment. You can always save the an HTML-only version of the attachment from Firefox and reimport just that single file.

    Subcollections in Zotero have nothing to do with the filename.
  • Sorry. "This computer" means the one that is currently generating the error.

    I'll have to wait until Monday to check on the other one at work.

    Thanks.
  • I just got back from the office

    1) So, the same error that occurred on my desktop at home (the one I posted about 2 days ago) occurred on my laptop at work (also running Windows 7 and the latest version of Zotero). Strangely, the error did not seem to occur on my desktop at work (running Windows XP and the latest version of Zotero), but I'm not sure if it synced or not - the green arrow just kept spinning (for 7 hours straight) and the download progress bar never showed up.

    2) As you instructed me, I tried searching for the file that showed up in the original error message and it did not exist on any of the three computers' hard drives. (Incidentally, the "w6nCgMKjw6jCvMKJw6Cv...." file name doesn't end in an extension; are you sure it is a file?) I also couldnt find the storage.js file or nsIZipReader.extract file.

    Is there anything else that can be done? Or should I cancel my online storage account, start over, and transfer files the old fashioned way (flash drive) from now on?

    Please advise. Thanks!

    Adam
  • edited July 19, 2010
    Is there anything else that can be done?
    On the XP computer, look for a '2QIWEID4' directory in the 'storage' directory within your Zotero data directory. Find the main HTML file. Then view that attachment from within Zotero, save it as "Web Page, HTML only", delete the attachment, empty your trash, and reattach the saved HTML file by viewing it in Firefox and using Create New Item from Current Page.

    If there are images you really want, you might try saving as "Web Page, complete" and hoping that Firefox throws out more of the stuff that's interfering with the sync, but that's less sure to work.

    Or if you don't care about the document, just delete it and don't worry about it.
    Or should I cancel my online storage account, start over, and transfer files the old fashioned way (flash drive) from now on?
    No.
  • And, actually, once you locate the file, if you could tell us (here or, if you prefer, via an e-mail to support@zot....org, with a link to this thread) the URL where you retrieved it from, that might be helpful. Reviewing the debug output, it's actually all sorts of messed up.
  • edited July 19, 2010
    Since you're using Zotero File Storage, I can also simply delete that file for you if that's easier—the attachment in Zotero will sync, but the file won't, and it should let you complete the sync (and, if you want, you can follow the process above to salvage part of the snapshot when you get back to the XP computer). But I wanted to check with you first.
  • That would be great. Thanks!

    I'm going to let you do it, since for some reason I am completely incompetent when it comes to finding zotero files. I located the folder via Windows search, but can't find an html file in it. It seems to just be jpegs, pngs, gifs, and a bunch of empty folders.

    I am surprised to hear you say that this is the problem folder - as based on the pngs in it, this folder contains an article in Japanese business magazine that I downloaded more than a month ago... I'm not sure why the problem would occur now.

    I had thought that the problem might be a file I saved from Aviation Week & Space Technology via EBSCOHost, since that was what I last recall doing prior to Zotero going on the fritz, but I guess not.

    Oh well. Please do what you need to do.

    Thanks alot.

    Adam
  • OK, try now.
  • It worked. Thanks! (It's kind of disturbing how happy this makes me).

    So, what's the lesson here? What did I do that caused this problem and how can I (and anybody else who is reading this thread) avoid making the same mistake in the future?

    Adam
  • Well it's a bug, certainly, and probably new to Windows 7. If you can provide a URL for that file, we can look into fixing it.
  • Hi,

    trying to sync my bibliography at work (zotero 2.1.8, firefox 5.0, windows server 2008) I am experiencing a similar problem like akira4489. I just reported the error (ID 2135295400) and pasted the main parts of the output below.

    I tried to find the respective file, UGVvcGxlJ3M..., at my Windows Vista Computer at home (not the one which reports the error) but without success. Can anyone give me please some advice on how to identify the directory which contains the problematic file in order to delete it? In the above thread it is the directory 2QIWEID4 - but how do I know it from the error message? Is it possible?

    Many thanks in advance,
    Best, Georg

    Error message:

    [JavaScript Error: "Image corrupt or truncated: <unknown>" {file: "<unknown>" line: 0}]

    [JavaScript Error: "Shortening filename to 'UGVvcGxlJ3MgRGFpbHkgLSDDpMK6wrrDpsKwwpHDpsKXwqXDpsKKwqXDp8K9wrLDpcKQwo3DpsKWwofDp8KrwqDDr8K8wprDpsKywrDp8KdwoDDpsKtwqPDp8Khwq7DpsKUwrDpsKywrvDpsKWwrnDpcKQwpHDp8KnwqDpsKewoHDp8KowrPDpcKmwqXDpsKOwqjDqMKwpvDpsKUwrDpsKywrvDpMK9wpPDp'" {file: "chrome://zotero/content/xpcom/storage.js" line: 1176}]

    [JavaScript Error: "[Exception... "Component returned failure code: 0x80520011 (NS_ERROR_FILE_NAME_TOO_LONG) [nsIZipReader.extract]" nsresult: "0x80520011 (NS_ERROR_FILE_NAME_TOO_LONG)" location: "JS frame :: chrome://zotero/content/xpcom/storage.js :: _processZipDownload :: line 1193" data: no]" {file: "chrome://zotero/content/xpcom/storage.js" line: 1193}]

    [JavaScript Error: "Shortening filename to 'UGVvcGxlJ3MgRGFpbHkgLSDDpMK6wrrDpsKwwpHDpsKXwqXDpsKKwqXDp8K9wrLDpcKQwo3DpsKWwofDp8KrwqDDr8K8wprDpsKywrDp8KdwoDDpsKtwqPDp8Khwq7DpsKUwrDpsKywrvDpsKWwrnDpcKQwpHDp8KnwqDpsKewoHDp8KowrPDpcKmwqXDpsKOwqjDqMKwpvDpsKUwrDpsKywrvDpMK9wpPDp'" {file: "chrome://zotero/content/xpcom/storage.js" line: 1176}]
Sign In or Register to comment.