Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
-
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.
Cause
Incorrect time is set on the server or Google Authenticator is misconfigured
Resolution
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:
For Windows check the following article How to configure an authoritative time server in Windows Server
For Linux:
- Log in to the server over SSH:
Note: if direct SSH access to the server is not possible, contact server administrator for further assistance.
-
Disable NTP:
# timedatectl set-ntp false
-
Change the timezone Hour/mionites/seconds:
# timedatectl set-time HH:MM:SS
-
Enable ntp:
# timedatectl set-ntp true
Comments
4 comments
Unknown command: --disable
Unknown command: --enable
Hi @Kevin!
Possibly you are trying to execute these commands in Plesk 12.5?
Such commands are not implemented in Plesk 12.5:
The "extension" utility | Plesk 12.5
The article is valid for Plesk Onyx only
For Plesk 12.5 use the "Set correct time on the server" way from the article
As an alternative solution the extension can be removed and installed back via CLI in the following way:
# plesk bin extension --uninstall google-authenticator
# plesk bin extension --install-url https://ext.plesk.com/packages/d6d6e361-b55d-467f-8b97-6426174c77a1-google-authenticator/download?1.3.2-8
No solution can actually work : I suggest that Plesk does not to change System Time or device Timezone :
https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/39952537-avoid-imposing-to-set-system-time-to-have-google-a
Hello Alex Laforge
Thank you!
As I can see, your feature suggestion has already attracted the attention of RnD.
Please sign in to leave a comment.