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

The case is that I can login on http://icloud.com with my user and password, but when I try to connect the iCloud with my mac book pro is saying "An unknown error occured":

the error is shown when i try to login Here is my system information:

mac os description It was working just 3 days ago.

Now when I log in to my mac everything is just clean, even on Google Chrome all cache and sessions are lost.


Solution 1:

Fixed by:

  1. Signing out (tried to login again but nothing)

  2. Reboot from terminal with -l:

    sudo -i
    
    reboot -l
    
  3. Signing in again.

and it worked for me.