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
Apply one of the following solutions:
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.
Make sure that the local time and the timezone on the server match those on the mobile device.
Note: If the time does not change via Plesk UI, the server time need to change directly from the server:
For Windows check the following article How to configure an authoritative time server in Windows Server
- Log in to the server over SSH:
Note: if direct SSH access to the server is not possible, contact server administrator for further assistance.
# timedatectl set-ntp false
Change the timezone Hour/mionites/seconds:
# timedatectl set-time HH:MM:SS
# timedatectl set-ntp true