Google Authenticator extension in Plesk declines one-time password that was sent to the mobile phone:
PLESK_ERROR: XXXXXX is not valid
Phone number was set correctly and the correct password from the one-time message was entered.
Incorrect time is set on the server or Google Authenticator is misconfigured
Note: in case Plesk runs on Hyper-V, check this article.
Set correct time on the server:
- Check what is the current time for your time zone using any public resources, for example, worldtimeserver.com:
- Compare it with the current server time in Plesk > Tools & Settings > System Time. If it is different, correct it in Plesk > Tools & Settings > System Time.
Otherwise, re-enable Google Authenticator:
Log in to the server over SSH
Disable the extension:
# plesk bin extension --disable google-authenticator
Enable it back:
# plesk bin extension --enable google-authenticator