DefGuard / client

Best WireGuard desktop client with Multi-Factor Authentication
129 stars 13 forks source link

Osx - Aarch64 - "Could not start MFA process. Please try again or contact administrator." #344

Closed Nthalk closed 4 weeks ago

Nthalk commented 4 weeks ago

When selecting "Use authenticator app", on a 2FA location, I get the following error:

Could not start MFA process. Please try again or contact administrator.

With the application in Trace mode, I see the following log:

[2024-10-27][21:57:44][INFO][defguard_client::commands] Instances retrieved(1)
[2024-10-27][21:57:44][INFO][defguard_client::commands] Instances retrieved(1)
[2024-10-27][21:57:45][INFO][defguard_client::utils] Successfully fetched WireGuard keys for location TestLocation
[2024-10-27][21:57:45][INFO][defguard_client::utils] Fetched location stats for location ID 3
[2024-10-27][21:57:45][INFO][defguard_client::utils] Fetched location details for location ID 3

While this could be a networking error on my server side (due to closing down some ports and access when not on VPN after establishing that it worked), however, I believe this might be a common onboarding headache, and more logging around it could be useful to users like me.

Looking at the source, it's coming from:

https://github.com/DefGuard/client/blob/301fbd90c7efe0cec39ee3755bd6b09b3a38195c/src/pages/client/pages/ClientInstancePage/components/LocationsList/modals/MFAModal/MFAModal.tsx#L112

However, when trying to debug exactly what the error might be, I ended up being blocked by #253

Nthalk commented 4 weeks ago

Turns out it was resolved by restarting the defguard instances on my server.

teon commented 4 weeks ago

@Nthalk please remember to have NTP/time sync which is critical for TOTP