Sub topic 12
Troubleshooting sync problems
This chapter assumes you have iCloud Drive turned on, know the cloud and progress icons in Finder, and can open Terminal. It covers a short order of checks for stalled or missing files, from the cheapest to the most disruptive.
Start with what the Mac can tell you
Most sync problems come from one of four causes: no network, the wrong Apple Account, a full iCloud quota, or a file that is still uploading. Check these before you change anything.
- Open the folder in Finder and look at the icon beside the file. A cloud with a down arrow means the file is only in iCloud. A circular progress icon means a transfer is running. A cloud with an exclamation mark or an error badge means the transfer failed.
- Open System Settings, click your name, then iCloud. Confirm the account is the one you expect and that iCloud Drive is still on.
- On the same screen, check the storage bar. If the quota is full, uploads stop until you free space or buy a larger plan.
- Open Apple's System Status page and check that iCloud Drive shows no outage.
A decision order
Work down this chart and stop when the problem is fixed.
Common symptoms and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| File on one device, missing on another | Upload not finished, or different account | Wait for the progress icon to clear. Compare accounts. |
| Cloud icon will not turn into a file | Download blocked or failed | Choose Download Now, or use `brctl download` below. |
| Upload never starts | Quota full or no network | Free storage and check the connection. |
| File named "name 2" appears | Sync conflict | Open both versions and keep the right one. |
| Folder not syncing at all | Name ends in `.nosync` | Rename it if you want it synced. |
Forcing a download from Terminal
If Finder's Download Now does nothing, you can ask the system to fetch the file. brctl is the command-line tool for the iCloud Drive service.
brctl download "$HOME/Library/Mobile Documents/com~apple~CloudDocs/report.pdf"Then run ls -la on the folder to check that the file is no longer a placeholder.
Restarting the sync process
The background process that moves iCloud Drive files is called bird. macOS restarts it automatically when you stop it, which sometimes clears a stuck transfer.
killall birdWait a minute and look at the progress icons again. This does not delete files. A restart of the Mac has the same effect if you prefer not to use Terminal.
Habits that prevent stalls
- Keep a few gigabytes of free disk space. Optimize Mac Storage needs room to work.
- Do not move or rename a folder while it is mid-upload.
- Keep development folders such as
node_modulesout of sync with the.nosyncsuffix, because thousands of small files are a common cause of slow transfers.
Exercise
A PDF in iCloud Drive shows a cloud icon, and double-clicking it never opens it. You are online and your storage is not full. What are two things you can try before signing out of iCloud?
Show answer
Right-click the file and choose Download Now, or run brctl download on its path in Terminal. If that fails, restart the sync process with killall bird (or restart the Mac) and check the icon again.