- Plesk Onyx for Linux
- Plesk Onyx for Windows
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.
Apply one of the following solutions:
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:
- Log in to the server over SSH:
# timedatectl set-ntp false
Change the timezone Hour/mionites/seconds:
# timedatectl set-time HH:MM:SS
# timedatectl set-ntp true