TOTP not working

Hi,

I have same (i think) problem like in this topic OTP code not working

But now luckily i have active session on desktop and i successfully disable the 2FA for root account.

What is main problem?
Enrolling the user again for 2FA the provided code not working in any application.

I try

  • Google Authenticator iOS
  • 2FAS Auth iOS

none of them working, still got Incorrect OTP when logging in.

SYSTEM INFORMATION
OS type and version Debian Linux 12
Webmin version 2.303

Make sure your system time is synced. Try running systemctl restart systemd-timesyncd and give it another shot.

Failed to restart systemd-timesyncd.service: Unit systemd-timesyncd.service not found.

Now i try to enable Time server sync schedule but got,
No time servers to sync with entered

Looking into Hardware → System time
seems that the System time is 2 minutes before Hardware time.

What to do and why this becomes a problem over time?

Does your Debian 12 not have the systemd init system?

timedatectl status

               Local time: Tue 2025-07-01 17:40:52 CEST
           Universal time: Tue 2025-07-01 15:40:52 UTC
                 RTC time: Tue 2025-07-01 15:42:38
                Time zone: Europe/Skopje (CEST, +0200)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no

Then do:

apt-get install systemd-timesyncd

and

systemctl enable --now systemd-timesyncd

Okay, now synchronized is yes and NTP is active.
I also enable the time sync schedule successfully for 4 times a day.
I hope never happen again.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.