Help with syncing issue/error and application crash

Seasoned Scrivener user on Mac, but I recently began using my iPad as well, and that’s how I got to this problem.

I thought I was fairly careful about following best practices, but I’ve encountered a syncing error. It arose yesterday when I opened the file on the iPad. I clicked through the messages to resolve the conflict and thought it was fixed. Both files–Mac and iPad–were synced with the latest changes.

  1. However, when I sat down to write on the Mac today, I’m getting a sort of loop:
  2. “Sync conflicts are detected”
  3. I click to resolve them, after first confirming that my computer is synced with Dropbox
  4. “Sync conflicts are resolved”
  5. Scrivener crashes

This happened a couple of times, and I stopped trying to fix it because I noted that my local, synced book file on the Mac shows as zero bytes in the Finder. I opened Dropbox on the web, and the file still shows as 300+ bytes there.

Now, because Scrivener wants to open my (possibly corrupt) project when it starts up, I can’t do anything, because it crashes whether or not I tell it to fix the conflict.

How can I get the app to open and at the same time not lose my work?

================

Update: Here’s what I did to get up and working again:

  1. In Dropbox, I duplicated my project file, then opened the duplicate in BBedit to see if there was, in fact, any content, and there was;
  2. Opened the duplicate; Scrivener again wanted to fix conflicts, so I let it, but it didn’t crash this time;
  3. I created a new project and copied the files from the problematic duplicate into it.

Seems to be working fine now, but would appreciate advice on how to fix this if it happens again.

1 Like

This “empty” project is in this state on your Mac before you try to open it with Scrivener on macOS, correct?

In this case, make sure that macOS’ “Optimize Storage” setting is turned off (as it will move the actual data to Apple’s remote, slow and potentially paid storage, in order to “save space”, and then leave those empty file stumps locally). Same goes for Dropbox, set it to keep your files local.

I could be wrong. But if you feed those “empty” files to Scrivener, the outcome tends to look like that.

2 Likes

Thanks for your reply.

Where does this storage setting live in system settings? I can only see the button that allows optimizing the storage of tv shows, etc.

For Dropbox, does keeping files local mean selecting them and choosing “Make available offline”?

2 Likes

For some reason Apple loves to move this setting around, but in Sequoia it’s under System Settings → Your Account (the topmost menu item in the sidebar, right below search) → iCloud → Drive → Optimize Mac Storage (turn it off).

As a band-aid (iCloud offers something similar).

I’d turn this “feature” off completely. Dropbox → Preferences → Sync (last item) → “Available offline”, turn that on.

2 Likes

Thanks for spelling this out. However, I think I already had the options set correctly. Not sure where things went wrong, but I’ll be more careful shutting down and syncing in the future.

1 Like

What version of Mac OS do you have? Apparently there’s a new “feature” in Tahoe allowing iCloud to save and sync the Dropbox folder. That’s just asking for trouble.

3 Likes

I’ve noticed you’ve said that before. I’m running Tahoe 26.6.1 and I’ve looked everywhere for this setting. I’d appreciate if you or someone could point me to this setting so that if set, I can unset it.

I’ve focused my search in Apple Icon → Settings → Apple Account → iCloud → See All and I see no reference to Dropbox or related.

Edit: I’m not having any issues that I see with synching Scrivener (with Dropbox) or the other sync services I have active supporting other apps and needs.

Me neither. And I haven’t had any problems with synchronisation so far…

1 Like

On my Tahoe Mac using 26.6, the file path kewms is referencing is System Settings > Apple Account > iCloud > Drive > Apps Syncing to iCloud Drive. There, I’ll see this list:

(Edited to clarify my macOS.)

3 Likes

Interesting. With Dropbox 264.4.3385 on macOS 26.6.1 I do not see Dropbox on my list. Nor do I see any of the sync services in operation (for years) by me: Google Drive, OneDrive, or Synology Sync.

That is interesting. I just checked a different Mac, which has been upgraded to 26.6.1. It’s not showing that setting any longer.

1 Like

I stand corrected. I had to got two levels deeper in the system settings to see that there indeed is a Dropbox setting. It was activated and I deativated it right away although, like I said above, I had not faced any problems.

What caused the confusion was that two levels up, Saved to iCloud already shows a list of apps. Plus, I’m using macOS with a German user interface and the translations can sometimes be misleading.

Enter: the next level of confusion.

1 Like

I’m on the latest, 26.6.1. But I don’t use iCloud for Scrivener, just Dropbox. I thought, maybe some years back, that iCloud wasn’t recommended for Scrivener syncing. This is before Apple made iCloud Drive more robust, I think.

Apple never made iCloud Drive more robust. But it made Dropbox less robust.

With this Dropbox switch in the System Settings > Apple Account > iCloud > Drive > Apps Syncing to iCloud Drive place, my hunch is that it does not mean either Dropbox or iCloud will sync each other. Don’t these apps have to be setup to reach into these folders to synch? Each of these sync apps have their own and seperate “home” sync folder in ~/Library/CloudStorage, e.g.

So I don’t really know the purpose of having Dropbox switch in iCloud. Whatever.

Note: I dug deeper into the other location quoted by @Ruth ystem Settings > Apple Account > iCloud > Drive > Apps Syncing to iCloud Drive and yes, indeed, Dropbox switch is there and it was “on”. I turned “off”. and like @suavito, I have ever seen any issues with iCloud or Dropbox. Further making me wonder about that switch, especially since there appears to be two locations where it might exist. Sigh.

MBA M5 Tahoe. Scriv 3. excellent wifi.

my projects stopped opening on ios version; message was no proper binder.

i removed everything from Dropbox. copied in a single project. made sure it worked on desktop version & gave it time to copy fully to Dropbox.\

opened in ios, sync’d, made a change or two, then sync’d before quitting (and fully closing) ios Scriv.

re-opened in desktop, confirmed it worked – but always brought me to the a “sync’d document” binder, which should only happen with conflicts. however, the project was fine. closed & sync’d.

rechecked in ios. project was good.

added a second project & repeated the entire process.

have now added numerous projects, one by one, and now this:

i foolishly tried to upload 2 projects.

despite sync’ing both from desktop version & from ios, and giving the system time to ensure all info was copied to Dropbox (which should be instant, but the actual Dropbox files are located in my Cloud storage), getting issues with Scriv saying there are sync issues, forcing re-syncs repeatedly – reports that the sync conflicts are resolved, i click OK, search indexes are rebuilt, the project opens - and it wants to sync with (unchanged, untouched) mobile version. endless loop.

on iphone, i sync, go into a project, am told there are synch issues, it resyncs, then the project seems usable. i leave Scriv ios, making sure it’s sync’d. open the desktop version of the project. it’s finally ok (after giving the sync’d document screen for no reason).

it seems like it can just about cope with a single project file being sync’d but no more. i didn’t realize until going through this that Dropbox is actually on Cloud – is this new? is this why it suddenly broke all my ios versions?

i don’t know if this is Scriv or DB or Mac, but between this and the god-awful lagging unless i store my files directly on my hard disk with no cloud or DB, it has made my favorite app a massive, unpleasant pain.

but i have discovered a number of other apps to replace much of what i was using Scrivener for, so there’s that. i love Bear, for one.

and please, no more blaming me or other users for doing things wrong or poor set-ups. i’ve been using Scrivener from its inception, my equipment is all excellent, and i’m obeying the processes. clearly Scrivener isn’t functioning well in this environment of Tahoe & faster Macs, so figure out why, please.

1 Like

This is untrue. The Synced document collection reflects all documents in which the synced version had changes.

Could you clarify what this means? Having a file accessible to both iCloud and Dropbox is pretty much guaranteed to cause problems.

This appears to be a new setting in Tahoe. It is configurable, and we strongly recommend disabling it.

Yes, if Scrivener has to download projects from the cloud to the local system, there will be a delay while it does so. This has always been true. What appears to be new is the possibility that both Dropbox and iCloud can attempt to access the same files, which can result in one of them “optimizing” the file off to their server, where the other service can’t reach it.

Just to be clear, desktop Scrivener always saves files to and opens files from the local disk. It has only minimal awareness that cloud services even exist. What happens after that is entirely up to the operating system and whatever cloud service(s) have access to your files.

2 Likes

what are you talking about? the files are in Dropbox. are you saying that opening a project stored on dropbox means it’s copied to my local, used, then re-copied to DB?

and as i noted, i waited between desktop & iphone to give everything time to “settle”. it may well be that DB or Cloud is causing issues, but it involves Scrivener. and it’s making my use of it really crappy.

1 Like

The Dropbox software creates a folder on the local disk. Scrivener creates a project in that folder. Dropbox uploads the project to the Dropbox server and, depending on your settings, either removes or keeps the local copy.

If iCloud has access to the Dropbox folder, then it also uploads the project to the iCloud server and, depending on your settings, either removes or keeps the local copy.

Scrivener itself has no cloud access. In order for it to edit a file, that file must be resident on the local hard disk. (Note that this has always been true.)

If either Dropbox or iCloud has removed the file from the local disk, they have to go get it. That will take time, depending on the speed of your connection and the speed of their servers. If both services have access to the same file, then there can also be a conflict, for instance if Dropbox is looking for a file that iCloud has. (The potential for this conflict appears to be new in Tahoe.)

Nothing about Scrivener’s file handling has changed since the release of Scrivener 3. If you are suddenly having problems, then something about Dropbox, iCloud, Mac OS, and/or your connectivity has changed, and that’s where you should look for a solution.

2 Likes