[{"data":1,"prerenderedAt":549},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2022\u002F10\u002F19\u002Fhanging-icloud-sync\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":534,"date":535,"description":213,"embedImage":534,"extension":536,"image":534,"intro":537,"meta":538,"navigation":539,"path":540,"seo":541,"series":534,"sitemap":542,"stem":543,"tags":544,"__hash__":548},"content\u002F2022\u002F10\u002F19\u002Fhanging-icloud-sync.md","Hanging iCloud sync",{"type":208,"value":209,"toc":530},"minimark",[210,214,217,220,230,233,241,258,261,269,272,275,278,339,342,345,462,469,477,501,505,516,519,526],[211,212,213],"p",{},"iCloud sync (documents etc) can be a little unstable.",[211,215,216],{},"One of the most irritating things is when the sync status shows X of X complete (i.e. should actually be complete)\nbut the progress bar does not move and no new files are synchronized.",[211,218,219],{},"The usual method to solve this seems to be",[221,222,223,227],"ul",{},[224,225,226],"li",{},"remove the Documents folder from your iCloud setup",[224,228,229],{},"then re-add it",[211,231,232],{},"This is a major pain and can take time.",[211,234,235,236,240],{},"The process running the synchronization is called ",[237,238,239],"code",{},"bird",". On my current system it lives in:",[242,243,248],"pre",{"className":244,"code":245,"language":246,"meta":247,"style":247},"language-shell shiki shiki-themes github-dark","\u002FSystem\u002FLibrary\u002FPrivateFrameworks\u002FCloudDocsDaemon.framework\u002FVersions\u002FA\u002FSupport\u002Fbird\n","shell","",[237,249,250],{"__ignoreMap":247},[251,252,255],"span",{"class":253,"line":254},"line",1,[251,256,245],{"class":257},"svObZ",[211,259,260],{},"I found a couple of suggestions that can be tried:",[221,262,263,266],{},[224,264,265],{},"niceness",[224,267,268],{},"restarting bird",[211,270,271],{},"Neither of these have been 100% - but are both worth trying before resorting to the remove\u002Fadd back fun and games.",[273,274,265],"h2",{"id":265},[211,276,277],{},"One is to up the priority of the process.",[242,279,281],{"className":244,"code":280,"language":246,"meta":247,"style":247},"ps aux | grep bird\nusername            92783   0.0  0.1 33911140  18804   ??  S     1:26PM   0:13.39 \u002FSystem\u002FLibrary\u002FPrivateFrameworks\u002FCloudDocsDaemon.framework\u002FVersions\u002FA\u002FSupport\u002Fbird\n",[237,282,283,302],{"__ignoreMap":247},[251,284,285,288,292,296,299],{"class":253,"line":254},[251,286,287],{"class":257},"ps",[251,289,291],{"class":290},"sU2Wk"," aux",[251,293,295],{"class":294},"snl16"," |",[251,297,298],{"class":257}," grep",[251,300,301],{"class":290}," bird\n",[251,303,305,308,312,315,318,321,324,327,330,333,336],{"class":253,"line":304},2,[251,306,307],{"class":257},"username",[251,309,311],{"class":310},"sDLfK","            92783",[251,313,314],{"class":310},"   0.0",[251,316,317],{"class":310},"  0.1",[251,319,320],{"class":310}," 33911140",[251,322,323],{"class":310},"  18804",[251,325,326],{"class":290},"   ??",[251,328,329],{"class":290},"  S",[251,331,332],{"class":290},"     1:26PM",[251,334,335],{"class":290},"   0:13.39",[251,337,338],{"class":290}," \u002FSystem\u002FLibrary\u002FPrivateFrameworks\u002FCloudDocsDaemon.framework\u002FVersions\u002FA\u002FSupport\u002Fbird\n",[211,340,341],{},"From this - I can see that bird is running as process id (pid) 92783.",[211,343,344],{},"Let's see the current priority:",[242,346,348],{"className":244,"code":347,"language":246,"meta":247,"style":247},"ps -fl -C 92783\n  UID   PID  PPID   C STIME   TTY           TIME CMD                     F PRI NI       SZ    RSS WCHAN     S             ADDR\n  501 92783     1   0  1:26PM ??         0:13.41 \u002FSystem\u002FLibrary\u002F     4004  31  0 33911140  18804 -      S                   0\n",[237,349,350,363,413],{"__ignoreMap":247},[251,351,352,354,357,360],{"class":253,"line":254},[251,353,287],{"class":257},[251,355,356],{"class":310}," -fl",[251,358,359],{"class":310}," -C",[251,361,362],{"class":310}," 92783\n",[251,364,365,368,371,374,377,380,383,386,389,392,395,398,401,404,407,410],{"class":253,"line":304},[251,366,367],{"class":257},"  UID",[251,369,370],{"class":290},"   PID",[251,372,373],{"class":290},"  PPID",[251,375,376],{"class":290},"   C",[251,378,379],{"class":290}," STIME",[251,381,382],{"class":290},"   TTY",[251,384,385],{"class":290},"           TIME",[251,387,388],{"class":290}," CMD",[251,390,391],{"class":290},"                     F",[251,393,394],{"class":290}," PRI",[251,396,397],{"class":290}," NI",[251,399,400],{"class":290},"       SZ",[251,402,403],{"class":290},"    RSS",[251,405,406],{"class":290}," WCHAN",[251,408,409],{"class":290},"     S",[251,411,412],{"class":290},"             ADDR\n",[251,414,416,419,422,425,428,431,434,437,440,443,446,449,451,453,456,459],{"class":253,"line":415},3,[251,417,418],{"class":257},"  501",[251,420,421],{"class":310}," 92783",[251,423,424],{"class":310},"     1",[251,426,427],{"class":310},"   0",[251,429,430],{"class":290},"  1:26PM",[251,432,433],{"class":290}," ??",[251,435,436],{"class":290},"         0:13.41",[251,438,439],{"class":290}," \u002FSystem\u002FLibrary\u002F",[251,441,442],{"class":310},"     4004",[251,444,445],{"class":310},"  31",[251,447,448],{"class":310},"  0",[251,450,320],{"class":310},[251,452,323],{"class":310},[251,454,455],{"class":290}," -",[251,457,458],{"class":290},"      S",[251,460,461],{"class":310},"                   0\n",[211,463,464,465,468],{},"So - priority is also known as the niceness of the process - and the default value (",[237,466,467],{},"NI",") here is 0.",[211,470,471,472,476],{},"Let's say \"make that a bit more agressive\". The more negative the ",[473,474,475],"em",{},"less"," nice (more agressive). This also needs running with admin rights - hence the sudo. Remember to set the correct PID",[242,478,480],{"className":244,"code":479,"language":246,"meta":247,"style":247},"sudo renice -n -5 -p 92783\n",[237,481,482],{"__ignoreMap":247},[251,483,484,487,490,493,496,499],{"class":253,"line":254},[251,485,486],{"class":257},"sudo",[251,488,489],{"class":290}," renice",[251,491,492],{"class":310}," -n",[251,494,495],{"class":310}," -5",[251,497,498],{"class":310}," -p",[251,500,362],{"class":310},[273,502,504],{"id":503},"restart-bird","Restart bird",[211,506,507,508,511,512,515],{},"This is as simple as killing the bird process with something like ",[237,509,510],{},"kill PID"," or ",[237,513,514],{},"killall bird"," (be careful with killall)",[211,517,518],{},"This second option is perhaps the one that works for me most often.",[211,520,521,522,525],{},"And here's something I don't understand - this seems to work better than restarting the system. This makes ",[473,523,524],{},"absolutely zero sense"," to me - but - I have had a system where a restart just starts up in the hung position and then after killing bird - synchronization starts up again.",[527,528,529],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}",{"title":247,"searchDepth":304,"depth":304,"links":531},[532,533],{"id":265,"depth":304,"text":265},{"id":503,"depth":304,"text":504},null,"2022-10-19 14:07 +0200","md","How to fix the issue when iCloud sync says its at X of X and doesn't progress?",{},true,"\u002F2022\u002F10\u002F19\u002Fhanging-icloud-sync",{"title":206,"description":213},{"loc":540},"2022\u002F10\u002F19\u002Fhanging-icloud-sync",[545,546,547,239],"icloud","mac","synchronization","fgRfeHBKljnKbXjK2TMZm0aTkvoToNFA2OIs7uXM0IA",1775293005992]