iOS Debug Log: D1095313334

Hi! Thank you for a great app! I had hoped it is possible to read debug logs by myself, and not bother anyone, but apparently for iOS it doesn’t work this way.

So I was in the process of setting up sync to WebDAV server. After syncing from my PC I ran sync on iPhone and got an error saying “Unable to upload attachment snapshot xxx. Please try re-adding the attachment”. I decided to delete the item entirely and re add it later. That didn’t help, so 2 sync issues became 5 :( and “Show Item” button in the error stopped showing the item. Any advice on how to proceed? Thanks in advance

  • Hey @LizardWizzard, the debug log shows that the app tried to sync files that were not downloaded in the device, hence the failures. Did you delete the item just by moving it to trash, or did you also empty the trash?

    The "Show Item" button shouldn't appear for those cases, that's a bug we'll fix in an upcoming release. In certain cases the app shouldn't also try to upload deleted attachments, so hopefully you won't see so many errors.

    However, where there any of the missing files you were expecting to have in your iOS device? Are those in your desktop, or are they missing there as well?
  • Thank you for your reply!

    > Did you delete the item just by moving it to trash, or did you also empty the trash?

    Just moved to trash. Restoring it and rerunning the sync makes "Show Item" to show the offending item, but 5 sync issues are still in place

    > where there any of the missing files you were expecting to have in your iOS device?

    I dont think so, but cant say for sure. I remember adding some items to zotero on my iPhone, and it is possible they didnt make it to the PC before the switch to my own WebDAV server. But this should make an iPhone to have more files than on PC. Maybe there were both cases, PC had some files that were missing from iPhone, and an iPhone had files that are not present on the PC.

    Is there a way I can manually diff the list of attachments between phone and PC aside from eyeballing the list of items? Is it possible to somehow see all 5 offending items?

    If I can see the list of failed items it is not a problem for me to completely remove them from the library and add them again once sync completes without errors
  • > Restoring it and rerunning the sync makes "Show Item" to show the offending item, but 5 sync issues are still in place

    For this case it is also a bug that "Show Item" doesn't work, it will be fixed in upcoming release.

    For the other missing items, they could be a false alarm, due to a bug. WIll also be improved in an upcoming release. We'll let you know when it is available so you can check again if sync errors still appear.
  • mvasilak Zotero Team
    We have added the fix I mentioned in the latest beta, can you please check that it does resolve the issue?
    https://www.zotero.org/support/beta_builds#zotero_for_ios_beta
  • Thanks for notifying me! I hope I correctly installed beta version.

    The problem still persists. This is the trace when I just updated and rerun the sync: D1349747771

    When I removed (remove download + move to trash) the attachment sync issues went from 5 to 4 and showed me next offending item

    With first item I removed download first, then moved attachment to trash and that worked. For the second one I just moved attachment to trash and it didnt immediately work. Then I removed the attachment completely and after two syncs issue number went from 4 to 3.

    In the end I managed to get to zero issues but there were some quirks along the way. I turned on debug logging for the rest of the process: D971626129

    1. When jumping to the offending item the ui switched to the item first and then immediately without my action to the list of items, so I had to press "back" to go back to the item
    2. For some items remove download didnt work so I moved to trash first
    3. For the last item the workflow didnt work at all, moving the item to trash didnt help, so I deleted the entire item from trash and that helped. For the last item there was an icon that looks like glasses but there was no remaining attachments (I removed them completely)

    Thanks a lot for your help! Hope debug logs will be useful

    I'll re add attachments after sync and in case of any problems I'll post there
Sign In or Register to comment.