After deleting local folder "storage", syncing only on demand despite "at sync time" choice

188BET靠谱吗On Zotero, I have a "My Library" and I have two group libraries.These were taking up too much space on my local machine, so I decided I wanted to clear out my local storage of the group libraries and only download attachments on as "as needed" basis.188BET靠谱吗Unfortunately, Zotero standalone client does not seem to offer a way to delete the attachments corresponding to a locally stored group library in an efficient manner.The storage folder contains all attachment files with no organization by library.188BET靠谱吗(It's possible to find items in a particular library one-by-one by searching through the Zotero standalone client and then deleting the files by hand, but this is infeasible for a large library.)

188BET靠谱吗Therefore, I decided to quit the standalone client and delete the entire local storage folder (in MacOS Finder, not within Zotero).188BET靠谱吗(I backed-up the folder on an external hard disk.) I then started up the standalone client and went to "Preferences>Sync>File Syncing>Sync attachment files in group libraries using Zotero storage" (which was checked) and set "Download files" to "as needed".188BET靠谱吗However, as desired, I left "Download files" set to "at sync time" for "Preferences>Sync>File Syncing>Sync attachment files in My Library using [Zotero]" (which was also checked).Then I clicked the sync button, and the arrow spin for about a second, and then stopped.None of the attachments were downloaded.If I double-click on an item's attachment in the database of My Library, the PDF is downloaded and displayed, but none of the other items are.

I went to this page

188BET靠谱吗//www.brodersterzo.com/support/kb/changes_not_syncing

and made sure I wasn't hitting any of those issues.I confirmed that "Sync automatically" and "Sync full-text contents" were checked under "Preferences>Sync>Data Syncing".I confirmed that if I clicked "Choose Libraries", there was a checkmark next to all 3 libraries.188BET靠谱吗I double checked that I was logged into the correct Zotero account (I only have one).I wasn't getting a sync error (no red exclamation mark) and the sync was only taking a second or so!the green arrow stop rotating and the blue stop button went away.188BET靠谱吗This is the only computer I have a Zotero standalone client on.

188BET靠谱吗For debugging, I removed the "storage" folder again, restarted Zotero with debugging turned on, performed a sync, double-clicked on an item's attachment in My Library, and then tried to sync again.The Debug ID is D1374914242.This should show that the client downloaded just the one attachment.

Note that setting sync to "at sync time" for both My Library and the group libraries did not change anything.188BET靠谱吗The Zotero client just refuses to download attachments except as needed.

188BET靠谱吗I am running Zotero 5.0.77 on MacOS 10.15.1 (19B88).
  • Note that deleting the 'storage' folder isn't recommend, since it also contains other files (e.g., files for full-text syncing) that are hidden on some OSes.Functionality to better manage the local cache of files is planned, but until then if you really want to do this the better approach would be to do a search for PDFs within the 'storage' directory and delete all the results, leaving the folders intact.

    188BET靠谱吗In any case, since you deleted the files outside of Zotero, you need to use Reset File Sync History from the Sync → Reset pane of the preferences to force it to check all files.(The relevant support page is Files Not Syncing, not the one you linked to.)
  • OK, thank you.188BET靠谱吗For the record, I only skimmed that page because the first item on it seemed to directly rule it out as applying to me: "Make sure the attachment file is accessible from Zotero on at least one of your computers.188BET靠谱吗We'll refer to the computer with the file as Computer A and the computer that doesn't as Computer B." I had no computers that had access to the files through the desktop client, and the computer that could access it through Zotero.org was the same one that didn't have it on the desktop client.It may be worth editing that page to make its scope clearer.
  • edited November 25, 2019
    @dstillman, unfortunately this did not work.I went to "Preferences>Sync>Reset>Library: [My Library]>Reset File Sync History" and pressed "Reset...".It reported success and told me the next time I synced that all the missing local files would be downloaded.However, I pressed the sync button and it completed very quickly (in about a minute, which was longer than it was taking before I did the reset, but obviously too fast to download a multi-GB database).There is still nothing in the "storage folder" except the single item which I induced it to download as needed as by trying to open the attachment from within the standalone client.

    I did this again with debugging enabled.The Debug ID is D1002164935.Thanks very much for bearing with me.
  • (Also, I re-confirmed all the sync settings just like last time.I have set both My Library and group libraries to download files "at sync time".)
  • No remote storage changes for My Library -- skipping file downloads
    You may need to add another file — from another computer or the web library, or possibly this computer — to convince it to re-download remote files.188BET靠谱吗(Resetting file sync history in theory should be sufficient, so I'll look into fixing this, but local files being deleted outside of Zotero isn't something that's supposed to happen, so this isn't a finely tuned process.)
  • Thanks.188BET靠谱吗I had previously added a new item on the desktop client without success, but creating a new item through the web interface on Zotero.org did finally induce a full sync, which is now taking place.(I uploaded an attachment with that new item!not sure if that was necessary.)

    188BET靠谱吗To satisfy my own curiosity: Do you think if I had deleted just the PDFs in the "storage" folder (which appears to be the least-violent action necessary to get Zotero to stop storing PDF attachments locally for just group libraries, assuming it's unreasonable to find library-specific attachments by hand) rather than deleting the entire "storage" folder, this would have been avoided?Or might this reset have been necessary any time you remove files en-mass through the OS file manager?

    Thanks again.
  • No, that's unrelated.Deleting 'storage' vs.individual PDFs only matters for the other things you're deleting.For the syncing part it's just the absence of the PDFs that matters.
Sign Inor Registerto comment.