iCloud Keychain fails to sync on one device (out of five)
This is the first time I'm getting this behavior, so I thought I'd ask if anyone has encountered it here. My iCloud Keychain passwords were gone after a reboot on a Retina Macbook 12" 2017, so I disabled the sync, rebooted and enabled it again.
Now I get the first dozen or so passwords to show up in Keychain Access.app, but the rest of them don't, not even overnight. Disabling and re-enabling sync reproduces the problem. Passwords sync just fine to and from other devices. But on the Macbook (latest Mojave) I get only about ten of them, the rest never come.
Opening console log and filtering for "keychain" shows a ton of these rows, and they keep coming:
"SecDbKeychainItemV7: error unwrapping item metadata key (class 6, bag -3): Error Domain=SFCryptoServicesErrorDomain Code=3 "(null)""
Google doesn't provide useful answers trying to search with those terms.
A possible fix could be to disable iCloud Keychain on all devices, keeping them on one, making it reset the cloud version, and starting over on all devices, but that seems overkill and a lot of trouble. I'm not too keen on doing that.
Signing out of iCloud also results in long overnight sync operations, so not my first or second option.
Can anyone think of fixes I could do locally on this machine, something that might help? And any guesses why (if I read the log message correctly) it might have trouble "unwrapping" the secrets from the cloud keychain? What's the most complete iCloud Keychain reset I can do on a local machine, without wiping the cloud instance or messing with the other Apple devices?
Another weird behavior is that I'm unable to turn on iCloud Keychain sync authorization/security code on any of the devices. It was already on once, but now it's disabled. If I turn it on, it asks for a new 6-digit code, asks for my phone number, asks for a password, and after OKing that all and opening the dialog again, the security code is still not enabled.
Finally, receiving the iCloud Keychain authorization code seems to work in an unreliable manner. I get it maybe every 3 tries on those other devices. That's what makes it somewhat tedious to disable and then enable keychain sync to begin with.
The problem is isolated on this one Macbook. I've also got iPhone, iMac, iPad and Apple Watch. No problem (yet) with them. The Macbook was not modified in any way, this started to happen after I changed my login password and rebooted.
Login keychain password and user account password itself are in sync. For instance, I'm able to enable Apple Watch log in authorization.
All devices have the latest updates installed, always.
MacBook, macOS 10.14