I got the following error
"There was an error encrypting or decrypting credentials. Either a credential update is currently being performed, or you must update the farm account credentials on this server before you can perform this task."
I tried running
stsadm –o updatefarmcredentials –userlogin username –password password
but both the command prompt and powershell gives above error. I have even tried changing passwords in services and IIS Manager but nothing worked.