Cannot sync file from webdav

Report ID: 190327077

I met following errors when trying to sync files from webdav

[JavaScript Error: "XML Parsing Error: no root element found
Location: https://dilved1014@gmail.com:****@dav.jianguoyun.com/dav/zotero/
Line Number 1, Column 1:" {file: "https://dilved1014@gmail.com:****@dav.jianguoyun.com/dav/zotero/" line: 1}]

[JavaScript Error: "XML Parsing Error: no root element found
Location: https://dilved1014@gmail.com:****@dav.jianguoyun.com/dav/zotero/
Line Number 1, Column 1:" {file: "https://dilved1014@gmail.com:****@dav.jianguoyun.com/dav/zotero/" line: 1}]

[JavaScript Error: "Renaming single file '2002.09783.pdf' in ZIP to known filename 'Tan 和 Cong - 2021 - Optimality Study of Existing Quantum Computing Lay.pdf'" {file: "chrome://zotero/content/xpcom/storage/storageLocal.js" line: 874}]
Zotero.Sync.Storage.Local._processZipDownload<@chrome://zotero/content/xpcom/storage/storageLocal.js:874:11
tryCatcher@resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js:16:16
module.exports/PromiseSpawn.prototype._promiseFulfilled@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:97:18
module.exports/Promise.prototype._settlePromise@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:609:17
module.exports/Promise.prototype._settlePromise0@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:649:5
module.exports/Promise.prototype._settlePromises@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:729:13
_drainQueueStep@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:93:9
_drainQueue@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:86:9
Async.prototype._drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:102:5
Async/this.drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:15:9


[JavaScript Error: "Download request 1/BFZJUEIY failed"]

[JavaScript Error: "Invalid attachment hash 'undefined'" {file: "chrome://zotero/content/xpcom/data/item.js" line: 3335}]

[JavaScript Error: "Renaming single file '0005101.pdf' in ZIP to known filename 'Eisert 等 - 2000 - Optimal local implementation of non-local quantum .pdf'" {file: "chrome://zotero/content/xpcom/storage/storageLocal.js" line: 874}]
Zotero.Sync.Storage.Local._processZipDownload<@chrome://zotero/content/xpcom/storage/storageLocal.js:874:11
tryCatcher@resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js:16:16
module.exports/PromiseSpawn.prototype._promiseFulfilled@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:97:18
module.exports/Promise.prototype._settlePromise@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:609:17
module.exports/Promise.prototype._settlePromise0@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:649:5
module.exports/Promise.prototype._settlePromises@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:729:13
_drainQueueStep@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:93:9
_drainQueue@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:86:9
Async.prototype._drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:102:5
Async/this.drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:15:9


[JavaScript Error: "Download request 1/ND7RB6SL failed"]

[JavaScript Error: "Invalid attachment hash 'undefined'" {file: "chrome://zotero/content/xpcom/data/item.js" line: 3335}]

version => 6.0.23, platform => MacIntel, oscpu => Intel Mac OS X 10.16, locale => en-US, appName => Zotero, appVersion => 6.0.23, extensions => Zotero LibreOffice Integration (6.0.4.SA.6.0.23, extension), Zotero Word for Mac Integration (6.0.6.SA.6.0.23, extension)
  • Can you provide a Debug ID (different from a Report ID) for a sync attempt that produces the error?
  • Sure, the debug ID is: D589718908

    Thanks for your help
  • edited March 23, 2023
    (3)(+0000575): HTTP GET https://[…]@dav.[…].com/dav/zotero/ND7RB6SL.prop succeeded with 200

    (3)(+0000005): <properties version="1"><mtime>1671545640317</mtime><hash>undefined</hash></properties>
    (1)(+0000003): Error: Invalid attachment hash 'undefined'
    There's a problem with at least one of the files on the server. Have you synced using any third-party apps?

    In any case, you should delete that file and the corresponding ZIP file. You can then Reset File Sync History from the Sync → Reset pane of the Zotero preferences from the computer where that attachment exists to force it to reupload. (Paste ND7RB6SL into the search field in All Fields & Tags mode to find the file in question.)
  • Yeah actually, I have windows version of zotero installed on other computers and they synced these files successfully. I have already tried to delete one file mentioned in the log and resync, however another file met the same error (which is the one in the log you saw.) Do you have any suggestion on the root cause of this problem?
  • I'm asking whether you've used a third-party app, not an official one.

    Your only option is to delete the files that it shows an error for.
  • Ok I got it, I will give a try.

    Thanks
  • edited March 23, 2023
    The previous error is fixed after deleting the error file. However I met another error shown as below. Does it mean a forbidden error?


    [error output removed — D.S.]
  • edited March 23, 2023
    We always need to see a Debug ID — don't paste error reports here.
  • Sorry, the Debug ID is: D1197646612
  • That shows file syncing finishing without error. What's the problem now?
  • Some file cannot be synced from server. I think on top of the log there's a line showing: XML Parsing Error: no root element found
  • It's what I say above — for any file you deleted, you'll need to Reset File Sync History on the computer where it exists. If you can't download a file, the problem by definition can only be fixed on the computer where the file exists.
  • edited March 23, 2023
    Now I have one file that cannot be synced, I searched on the webdav server and cannot find that file, so it means that it failed to upload the file from the computer that stores the original copy...

    I got it. Thanks a lot for your help!
Sign In or Register to comment.