Zotero loop-syncs 2000 items

edited June 7, 2020
My Zotero is syncing in a loop about 2000 items out of my 4000+ collection. It takes ages to end and then it starts over non-stop. I barely add an item a day, I don't know what's triggering this behavior.
  • edited June 7, 2020
    Can you provide a Debug ID for a complete cycle of this?
  • edited June 7, 2020
    I'm not actually seeing any indication of this for your current account in the server logs. Are you actually talking about Zotero syncing? How are you determining that it's doing this?
  • Sure, I'll leave it overnight (it may take that long). A couple of days ago it ended up with an error and an automatic report was sent, but I didn't keep the number.

    Yes, I'm talking about syncing. I can see the progress in the upper right corner, when hovering. It goes down to 0 and then starts over with the same ~2000 left.
  • What exactly does it say? Again, if you're talking about this account, there's no recent server activity from you that's anything like this.

    If it's happening right now, can you provide a Debug ID for a few minutes of it?
  • I just restarted in debugging mode. It's syncing since its started. It's going faster than usual (this is maybe because of my erratic connection). It's already done half of it. I'll wait a little bit to see if it ends and then starts over. If you get that part of the log you'll maybe see what happens.
  • D2138563947 just after it ended and started over. Thanks a lot in advance!
  • 1) There's a huge amount of output in there from Better BibTeX. That could definitely be slowing things down.
    Last synced mod time for item 1/25MMGAFI doesn't match time on storage server but hash does -- ignoring
    2) Have you used a third-party Zotero client (e.g., on Android) to sync files to WebDAV? You have ~2000 files in a state that should almost never happen.

    I think we can handle this state better, but in the meantime you can see what happens if you use Reset File Sync History (and nothing else) from the Sync → Reset pane of the preferences. That may not fix it, but there's no harm in trying.
  • 2) Yes, Zoo for Zotero. Just to download a couple of files from my webdav server, not full sync. Could that have caused this failure?

    I've removed Zoo (so as not to accidentally open it while debugging), disabled BBT, and restarted in debug mode. Let's see what happens. Now it's syncing over 2500 items.
  • D331335080 this time it ended up and stopped, but I accidentally pushed the sync button, sorry. I sent the report right afterwards. I'll restart and see what happens.
  • Oh, shit, it did it again, starting over after syncing those ~2000 files. I'll reset again the file sync history and be careful not to push the button myself.
  • There was an error message with report ID: 1799260320
  • I also submit the debug log, with ID: D1926311141
  • Again, it finished with an error message: 1170040764
  • I'm going to stop syncing for the moment. Please, tell me if I can do anything else to help with this. Thx!
  • It looks like resetting file sync history may have fixed the original issue. You're no longer receiving the messages you were receiving before.
    Your WebDAV server returned an HTTP 0 error for a GET request.

    If you receive this message repeatedly, check your WebDAV server settings or contact your WebDAV server administrator.
    The error you're getting now is just a failed connection with the server. There's a good chance it's temporary.
  • edited June 8, 2020
    Sorry to come back, but it's restarted the loop once again, with no error message this time. Just in case, I started the debugger when there were ~100 left to sync, and sent you the output after it restarted: D121376927. Let's hope you can see what's causing this loop. This leaves Zotero kind of nonfunctional to me, since continuous syncing drains my battery, so I have to stop it.

  • Have you used Zoo since your earlier sync?
  • Or have you synced Zotero on any other devices?
  • No, just here. I even deleted Zoo when you told me it could be the cause. BBT is still disabled too.
  • OK, I put in what's hopefully a fix for this in the Zotero beta. If you sync with that once, it should correct the entries on the WebDAV server.
  • Fixed!!! Thanks a lot! I'll re-enable BBT and see what happens since, as per your comments, the most likely cause wasn't this extension but Zoo. I won't reinstall Zoo. It's a pity because I find it very, very useful. I know there's an iOS app coming. Will it be ported to Android? Otherwise, I'd like to help improve Zoo so that it becomes usable. Is there any useful information I should share with them in a bug report in order to avoid this kind of database corruption?
  • edited June 9, 2020
    I don't at all know that Zoo caused this. It's just not something we've seen anyone report before, and it seems to have happened for all of your files. This is the relevant explanation in Zotero:


    In addition to the possibilities there, it could happen if a Zotero client uploaded an incorrect timestamp to WebDAV (e.g., based on seconds instead of milliseconds).

    (After this fix, it will be harder to know that it's happening, though there'd still be some extra sync activity.)
Sign In or Register to comment.