TL;DR:
Go into ~/Library/Keychains and delete the folder that represents your local keychain (the folder will have a GUID-style name). Restart your Mac and all should be dandy. Please note, you MAY lose the convenience of having (some) saved passwords, requiring you to re-enter those.
Longer read:
So it was upgrade time for my Macbook. I updated Mojave to Catalina. Coincidentally, I also had to renew my laptop’s user password (company policy) and meanwhile, also the new iOS came out (13.3).
This morning, my Macbook sounded like it was taking off. The fan was going berserk and checking the Activity Monitor, I saw that both the accountsd and the secd daemons were consistently using between 60% and 100% of CPU.
I tried enabling Keychain, as per forum posts, but it would not let me enable it. I got the spinning wheel and the process was just very slow.
I also tried signing in and out of iCloud, disabling iCloud on my iOS devices. Heck, I even changed the password for my Apple ID. All to no avail.
What eventually set me on the right track was opening Safari and going to the Passwords-tab in Preferences. It said passwords were locked and to enter the password for a user. To which I obliged, but it gave me the uh-oh shake, refusing to open the passwords.
I tried entering my old user passwords, but all to no avail. This ofcourse is very puzzling but led me to thinking that somewhere, something must be blocking access to keychain items. Could this be the reason the daemons were running amok?
So, I finally went into the terminal app and navigated to:
˜/Library/Keychains
In it, there were a couple of “keychain-db” files, but more importantly, a subfolder that had a GUID-like-name (ABCDE12-EFG2-21BA-……you get the idea). This folder represents your local keychain and holds your “local” items. It is a bit of a nuisance because of having to enter your passwords again, but it is safe to delete it.
Restarting the MAC then re-generated the GUID folder and the fans quieted down.
Hope this helps someone trying to fix this.
Perfect! Thanks for the write-up. User processes were running at about 15% with secd and accountsd at the top of the list. Idle is no 1% on the CPU meter.
LikeLike
Thank you so much for sharing this. My CPU *immediately* dropped to normal levels after I removed the directory.
LikeLike
Secd doesn’t stop running even after trying this. The folder comes back again to the library/keychains folder..
LikeLike
The folder is supposed to re-appear and the process is supposed to run. Just not at 80-90% for longer periods.
The article talks about that case and then deleting the folder (and having it re-appear) solves the high CPU usage.
LikeLike
Thank you for the fix 👍 Had a user with 8 folders in Keychain folder that had to be removed and CPU dropped from 100-110%
LikeLike
Just want to drop a note and say thank you. It solves my problem.
LikeLiked by 1 person
Just make a “secure start” (with shift key). Login in, wait two minutes and then make a normal restart an everything is fine.
LikeLiked by 1 person
Looks like it worked for me. Just reboot in safe mode, reboot again in normal mode and “voilá”.
Thanks!!
LikeLiked by 1 person
I didn’t delete the folder but I renamed it and it worked.
LikeLike
Thank you so so so much for your note – it literally saved my day (and lots of nerve btw) .
LikeLike
I just want to say thank you. This literally saved my day.
LikeLiked by 1 person
Pingback: Catalina 10.15.7 Update = accountsd using 400% CPU if using iCloud
Thank you SO MUCH! I was starting to get worried as my computer is getting “old” (according to obsolescence standards…). Look at how silent my baby is 😀
LikeLike
Worked perfectly, thanks Bud.
LikeLike
Thanks. Work’s after two tentatives.
LikeLike
Thanks a lot for this post. I had to repeat the process you describe twice, but it successfully fixed the problem after the second attempt. CPU is back to normal level. Thanks!
LikeLike
the fix worked for me but I had to repeat it the second time after a few days when the problem reappeared – I hope it won’t keep on coming back
LikeLike
Thanks for saving my comp! Also had to repeat twice.
LikeLike
Thanks guys, deleting the folders plus restart in save mode did solve the problem.
LikeLike
Pingback: Mac OS X Catalina загрузка CPU 100% accountsd - lexone ru
Peace in the forest again. Thank you!
LikeLike
the 5 files I have in Keychains are apsd.keychain, crls, pinningrules.sqlite3, suppementalsassets, system.keychain
which one should i consider here
LikeLike
Not any individual file, it’s the folder with the GUID style name
LikeLike
Hi, i have the same issue, my CPU is now 498%. But there are no GUIDstyle name folders in the Keychains folder. Only a crls and SupplementalsAssets folder. Which should I remove?
LikeLike
Are you in the ~/Library/Keychains folder. I believe there is also one in /Library/Keychains
If you are in the correct location; the issue may be a different one and not related to what is described here.
LikeLike
Thank you! I was in the wrong folder (stupid)
LikeLike
Can you help me? I am new to mac and what’s basic and obvious for you idon’t get it. I have the same problem with my macbook pro but i don’t understand how to get to:
“So, I finally went into the terminal app and navigated to:
˜/Library/Keychains”
Can you help me?
Thank you so much.
LikeLike
Hi, using the Terminal app is a world in itself which would go beyond the scope of a comment to explain. I suggest you check out an introduction to this app, for instance: https://youtu.be/FfT8OfMpARM
LikeLike
Use Finder, Terminal not needed
LikeLike
There is no GUID type folder there. I am on Big Sur. Can you please guide me how to fix that? The issue occurs since I updated to big sur.
LikeLike
Hi. I have not upgraded to Big Sur yet. I always wait at least a point version to upgrade. I do not know whether this is the same issue therefore. Sorry I cannot help you.
LikeLike
Pingback: Process in /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd taking almost all ressources (Catalina - MacOS 10.15.6) - PhotoLens