I just restarted my mac. The internet here is spotty. I saw the popup below. I really could not care less if I can connect to iCloud at the moment of a particular startup or not. I just don't want popups. Is there any way I can get rid of it, permanently? Hopefully not by disabling iCloud; I'm sure there was a reason I enabled it; likely to get rid of some other popup somewhere.
In your user folder, go to
~/Library/Keychains/(hold down the option key when clicking in the Go menu in Finder to show the Library folder).
In that folder, there are the regular keychains, plus some folders with monstrously long names like
F2555809-AAC0-5CFA-BEF6-57BB56345BIURor some such.
I deleted those folders only.
After restarting, you may need to log into iCloud again, but the persistent popup and "An unknown error occurred" messages should be gone for good.
I've been dealing with this same problem for a few days now (pretty annoying). The last thing I tried was to un-check every iCloud service that was enabled, sign out of iCloud and then sign back in. So far it seems to be OK, I'll just try it a bit more to see if the message pops up again.
To do so, just go to your iCloud settings in the System Preferences. This will open a setting windows much like this one.
Once there you have to deselect every service enabled and then proceed to
You may be asked to save a copy of your iCloud data such as Contacts, Calendars, Pictures, etc. You may uncheck the services you dont want to save a copy and then just click
Keep if you have selected any of the data to keep.
If you want to re-connect with your iCloud user account (or a new one) you'll have to select
Sign In and then just proceed as requested.