# TTL_006: Smart lock has no usable backup code

- Module: TTL. TTLock smart-lock provisioning and gateway health
- Severity: Error
- Impact: Customers. End customers are affected (e.g. a missing e-mail, payment or order).
- Retry: Automatic. The platform retries or self-heals on its own.
- Reference: https://docs.bizkithub.com/en/system-codes/TTL_006

## What happened

The lock has no valid backup code, so reservations made while its gateway is offline get no entry code. A new backup is created automatically once the gateway is online; until then, link a valid code manually.

## Likely causes

- The lock's backup code is missing, expired, or about to expire.
- The gateway is offline, so a new backup code could not be created.

## How to resolve

1. Check the lock's gateway status under IoT locks.
2. Link a valid backup code to the lock manually if the gateway stays offline.
3. A new backup is created automatically once the gateway is online.

## Related codes

- TTL_003: TTLock gateway is offline
- TTL_001: TTLock passcode provisioning failed
- TTL_002: Unable to generate a unique passcode
- TTL_007: Access code not moved with the reservation
- TTL_QUEUE_DEAD: TTLock queued operation abandoned
- TTL_004: TTLock gateway reconnected
