59

since a couple of days the icloud drive seems to be "stuck". The symbol in the sidebar in finder doesn't go away (pie chart). It looks like it still sycning.

enter image description here

What can I do to find out at which files it is potentially stuck?

Tino
  • 693
  • 1
  • 6
  • 5
  • 1
    Have you tried to restart the machine? – Ramhound Feb 26 '16 at 13:40
  • yes I have tried that (first thing ;)) – Tino Feb 26 '16 at 13:41
  • But as the OP asked, how do I find out which file is stuck? Or which files are stuck. – Harry McGovern Dec 20 '19 at 18:53
  • 1
    I can’t post an answer because of my “bad reputation” (you would think my SO rep would count for something) but I have encountered this problem intermittently, including the pie progress indicator stuck at nearly complete. The trick for me this time was checking the Trash for stuck files. Permanently delete any file with a cloud icon next to it. I also recommend deleting any files that are copies of files that have not been deleted (i.e. duplicates of files still on the system, whether or not they have the same file name). Or just empty your Trash, if you’re into that sort of thing. – daxmacrog Nov 11 '20 at 22:51
  • Other questions of this, ordered by number of votes: https://apple.stackexchange.com/q/264915/63255, https://apple.stackexchange.com/q/313716/63255, https://apple.stackexchange.com/q/293051/63255. Most successful resolutions seems to be `killall bird`, and if necessary first deleting `${HOME}/Library/Application Support/CloudDocs/`. – Carl Apr 18 '23 at 11:39

10 Answers10

87

Go to the Terminal and type:

killall bird

Check if this fixes your issue. If not, go back to Terminal and type:

cd ~/Library/Application\ Support
rm -rf CloudDocs

Then immediately restart.

For 300gb of files, I had to wait an hour for anything to show up in the iCloud folder, and 4 hours for the sync to finish.

Source for this answer: here.

Andy Swift
  • 1,885
  • 1
  • 21
  • 26
  • 22
    Just for anyone trying this: _first_, kill bird. Check to see if the problem is fixed. If it is, skip the remaining steps to save yourself a ton of time. – Jake Bathman Nov 14 '19 at 20:40
  • 1
    When I do kill bird everything in the sidebar jumps its so funny – אורי orihpt Apr 06 '21 at 15:01
  • This worked for me but it took a few minutes for the sync to get back up and running, meanwhile it just showed "0 MB of X MB". – Daniel Schlaug Oct 22 '21 at 17:01
  • 3
    Worked for me! All I had to do was `killall bird`. – bill May 12 '22 at 17:31
  • 1
    I had to rename the ~/Library/Application\ Support/CloudDocs from Finder to avoid a permission issue, but it worked. – Vincent J Apr 10 '23 at 21:52
  • If you fail to rename/delete CloudDocs in command line, try it with Finder. It's because Apple has added quite a few ACL restrictions to the filesystem (such as Monterey) so that your terminal may not be allowed to read/change some folders even you own them! – Charles Jie Apr 29 '23 at 10:39
15

For me what worked is going into my Utilities, opening the Activity Monitor. Then look for a process called "bird" and force quit. No files deleted or moved, it just restarted the upload process.

dave
  • 151
  • 1
  • 2
  • 4
    On macOS Catalina here. Whatever the reason for it to get stuck, killing `bird` in Activity Monitor immediately fixed the issue for me. – Jake Bathman Nov 14 '19 at 20:39
  • 1
    Catalina here. Killing Bird and it immediately restarts, but. Now the upload reads 0 of 374k bytes uploaded. – Harry McGovern Dec 20 '19 at 17:56
8

I found that use of a VPN can both cause and cure the problem. Certainly turning on a VPN midway through an upload has stopped mine, but I also found that turning it on can cause a stalled upload to restart. Of course, it might just be my internet service provider messing with me.

karel
  • 13,390
  • 26
  • 45
  • 52
Ralph Hopkins
  • 81
  • 1
  • 1
  • 2
    It makes sense to me. I observed this problem after I was testing VPN connection. I wish I had tested your solution. I followed other's suggestion by unchecking "iCloud drive" and checking it back. It turned out to be a disaster. – nngeek Nov 26 '19 at 01:49
  • The same case for me, turning off NordVPN fixed the issue. – Igor Leonovich Jul 24 '23 at 10:35
5

Under ~/Library/Application Support/, there's a folder called CloudDocs. Chances are this is the culprit. Delete it (or move it elsewhere) and iCloud will reset itself and stop looping and re-caching the same files over and over again.

brandonscript
  • 566
  • 1
  • 6
  • 15
1
  1. Manually go through all the iCloud Drive files via Finder and look for all files with a 'cloud' (not-yet-synced) icon and drag or copy those files to a location outside iCloud Drive. (Perhaps someone knows of an automated way to do step (1).) (Simply dragging the files out and back in might also solve the issue; didn't think to try that, so if anyone can test that … ;)
  2. In System Preferences:iCloud:options, uncheck the app(s) that had the 'cloud' files; alternatively uncheck iCloud Drive (in which case, iCloud Drive will reinitialize with all apps checked).
  3. Then check the option:app(s) (or iCloud Drive) to restart it.
  4. Move the files from (1) above back to their proper locations in iCloud Drive.
  • This seemed to work for me. I believe it happened when I closed my laptop mid-sync. – Neil Jan 20 '17 at 16:41
0

I had same problem but found there was an old application buried w/in my Documents folder that was incompatible with Sierra (circle/slash through icon) so, for whatever reason, iCloud sync wouldn't move it. I "compressed" (read: zip’d) the problem app and deleted the original and now everything is peachy.

Meltemi
  • 6,807
  • 11
  • 30
  • 30
0

I had this issue with iCloud Drive not syncing iBooks. I found that using the touch command on the parent folder causes everything to be uploaded. Touch tells the OS that the files were modified, so it reuploads them. If you only have one or two files, just touch those.

Drag a file from that folder to the command line to see what the actual directory is.

Mine turned out to be

/Users/username/Library/Mobile\ Documents/iCloud\~com\~apple\~iBooks/Documents/

So I went to the parent directory, and "touched" the Documents folder.

cd /Users/username/Library/Mobile\ Documents/iCloud\~com\~apple\~iBooks/

touch Documents

Then, everything changed from "Waiting to Upload" to "Uploading".

landonepps
  • 101
  • 1
-1

I had the same problem, and found that relaunching Finder solved it for me. If someone else comes here with the same problem, I suggest they try relaunching Finder first, before moving on to more intense things like restarting the machine or other steps.

wevrem
  • 111
  • 2
-3

'In System Preferences:iCloud:options, uncheck the app(s) that had the 'cloud' files; alternatively uncheck iCloud Drive (in which case, iCloud Drive will reinitialize with all apps checked)'

When I try this, it warns me that files will be deleted permanently. I can see no files in my Documents folder on the hard drive; and most on iCloud drive are missing

-3

I simply double-clicked on the cloud icon for those not updating on the iCloud drive. Just like that, they started updating correctly. You need to double click on each one, one at a time.

jon
  • 1