Can log into iCloud on icloud.com but not on my mac book pro
Fixed by:


Signing out (tried to login again but nothing)
Reboot from terminal with -l:

sudo -i

reboot -l

Signing in again.


and it worked for me.