authcha learn

Learn / Operations

Troubleshooting a failed sign-in

Module 6 of 6 · 30 minutes

By the end you can

  • Use the console tools in the right order to localise a failure
  • Read the common reject messages and their causes
  • Tell "no reply at all" apart from "a reply that says no"
  • Collect what support needs

Start with the console

Most questions are answered without a shell. Work in this order.

  1. Try It → Auth Simulator runs the decision for any user, device and source address and shows each step.
  2. Live Auth → Logs shows RADIUS decisions as they happen.
  3. Audit Trail → Auth History and OTP Funnel show past attempts and code delivery.
  4. System shows container states and health.

Then the quick checks from the first operations module: docker compose ps, the health call, "ready to process" in the RADIUS log, and free disk space.

Two very different failures

The first question is always: did Authcha answer?

  • A reply that says no. Authcha received the request and refused it. The reason is in Live Auth and Auth History. Read it.
  • No reply at all. The device times out. Authcha silently drops requests it cannot authenticate, so there is nothing to read in the log of a refusal.

When there is no reply

Check, in this order:

  • The device is not a known RADIUS client, or the secret is wrong. Check Authorization Policies → RADIUS Clients and wait for Applied.
  • A firewall blocks UDP 1812 between the device and Authcha.
  • The device timeout is too short. The first request waits for your messaging provider. Use at least 10 seconds.
  • The device sends from a different address than the one you registered. Set the device's RADIUS source interface.

To see whether packets arrive at all: docker compose logs -f freeradius | grep -i "<device-ip>". If that is not enough, turn on RADIUS debug mode for a few minutes, and turn it off afterwards.

What the reject messages mean

MessageMeaning and fix
Authentication failedDeliberately generic. Causes: unknown user, disabled or locked user, disabled user type, unregistered device, no jump server rule for the source (when required), no mobile number, or a lockout. Run the same login in the Auth Simulator
account is locked after repeated failures or by an administratorShown in Live Auth and Auth History only. The device still gets the generic message, on purpose. Users → Unlock clears it
Incorrect credentialsWrong password or code. Three failures lock the account for the code lifetime
Service temporarily unavailableThe code could not be sent. See codes, below
Service busy, try again shortlyThe server refused on purpose: overloaded, or the device sends too many password logins per second. The reason is in Live Auth
OTP rate limit exceeded, please waitThe user asked for too many codes in the window
OTP sent, submit it as your passwordNormal in trigger-phrase mode. Log in again with the code
Missing User-Name or NAS-IP-AddressThe device does not send NAS-IP-Address. Configure a RADIUS source interface

One-time codes not arriving

  1. Try It → OTP Delivery: send a test code to the same number. If that fails, the problem is the provider path, not the login.
  2. Audit Trail → OTP Funnel: find send_failed events and their error text for the user.
  3. docker compose logs --tail 100 otp_service.

Usual causes: invalid provider credentials, a WhatsApp template that is not approved or has the wrong ID, an SMS sender or DLT template that is not registered (India), no outbound internet from the host (set a proxy), a missing or badly formatted mobile number, or a mismatched token after a manual edit (REST_OTP_TOKEN missing from VALID_API_KEYS; recreate otp_service, freeradius and admin).

802.1X and MAB

  • TLS handshake fails: the client does not trust the server certificate, or checks the wrong name. Export the certificate the server presents and compare it to what the client expects.
  • Handshake works but login is rejected: the username does not exist, is locked or disabled, or the password is wrong. 802.1X users need no mobile number.
  • The client is quarantined unexpectedly: the user is enrolled for posture and the device is non-compliant, stale, or has not reported yet.
  • MAB: MAB not enabled on this NAS (turn it on under Devices), MAC not authorised (not on the allowlist, disabled, or its class does not exist), Monthly quota exceeded, or accepted into the wrong VLAN (check the class VLAN and vendor attributes). If an allowlist change seems ignored, use Flush cache under Endpoints → MAC Allowlist.

Wrong privilege level

Check the effective user type in the simulator (a jump server rule may have lowered it), then Privilege Mapping for that user type and vendor. On Juniper, the local template user named in the reply must exist on the device. On FortiGate, turn on accprofile-override for the remote admin.

Contacting support

Send your Authcha version (on the sign-in page and in the VERSION file), the output of docker compose ps, and the relevant logs:

docker compose logs --since 1h freeradius admin otp_service > authcha-logs.txt

with what you expected, what happened, and the time. Review the logs before sending, because they can hold usernames, addresses and numbers. Never send .env, otp.env or backups.

LabHands-on

  1. Open Auth History on the demo (viewer login demo-viewer, password Authcha-View-2026). Find a rejected attempt and read its reason.
  2. Open the Auth Simulator. Enter a user that does not exist. Read which step fails.
  3. Open OTP Funnel and find the counts of sent, verified and failed codes.
  4. On your install, deliberately create each failure once: wrong password, a device with the wrong secret (watch for no reply), a user with no mobile number, a MAC not on the allowlist. For each, find the evidence in Live Auth.
  5. Write a three-line runbook for your team: first check, second check, who to call.

Check yourselfQuiz

1A device shows only "Authentication failed". Where is the precise reason?
2The device times out and Authcha's log shows nothing. What is the most likely cause?
3The simulator says accept, but the real login fails. What is it NOT checking?
4A code does not arrive. What do you do first?
5What must you never send to support?

Cheat sheetKeep this

  • Order: Simulator, Live Auth, Auth History and OTP Funnel, System, then shell checks.
  • Did Authcha answer? No reply = client, secret, UDP 1812, timeout (10 s+), source address. Reply with no = read Live Auth.
  • Generic device message by design. Precise reason in the log.
  • Codes: OTP Delivery test, OTP Funnel, docker compose logs otp_service.
  • MAB: enable per device, allowlist, class, Flush cache.
  • Support: version, docker compose ps, 1 h of logs. Never .env, otp.env, backups.
  • Read more: Troubleshooting.