# Troubleshooting

## Troubleshooting

A catalog error prints as `Error (CODE): message` plus a next step; under `--json` it is `{code, error, next}`. Match CODE to the row. Never retry in a loop.

- `SELF_SERVE_SIGNUP_DISABLED`: Signup is not open yet. Tell the human; try again later.
- `TERMS_NOT_ACCEPTED`: The human has not accepted. Show the Terms and Privacy links and ask again.
- `CLI_SIGNUP_CODE_COOLDOWN`: A code was sent recently (60 seconds), or a locked code needs up to 30 minutes. Wait the stated seconds, then re-run `cofactor signup --email <email> --accept-terms`.
- `CLI_SIGNUP_INVALID_CODE`: Wrong or expired code. After 5 wrong tries it stops working (wrong tries carry over to a new code). Re-run signup for a new code and ask the human to read the newest email. Never guess.
- `CLI_SIGNUP_INVALID_EMAIL`: Ask the human to check the address.
- `VERIFICATION_EMAIL_SEND_FAILED`: Try again in a minute. If it repeats, tell the human the time and error.
- `CLI_SIGNUP_WORKSPACE_REQUIRED`: New account: re-run `signup verify` with `--organization "<name>"` (see `workspace`).
- `CLI_SIGNUP_WORKSPACE_CHOICE_REQUIRED`: Several organizations: ask which, re-run with `--organization <id|slug|name>`.
- `CLI_SIGNUP_MFA_REQUIRED`: This account uses MFA: run `cofactor login` (browser approval).
- (error says to use `cofactor login`): This account must use the browser login: run `cofactor login`.
- `ORGANIZATION_DISABLED`: The organization is disabled. Tell the human to contact support or an organization admin, or sign in to another organization with `--organization <id>`.
- `ORGANIZATION_ACCESS_DENIED`: No access to that organization. Ask an organization admin, or run `cofactor login`.
- `FREE_WORKSPACE_EXISTS`: The account already has a Free organization (each person gets one). Tell the human to upgrade it from Usage & billing, or ask an organization admin for access to another organization.
- `ACCOUNT_DEACTIVATED`: Contact support or an organization admin.
- `CLI_WEB_LINK_INVALID_DESTINATION`: `cofactor open <path>` takes a same-origin app path such as `/applications`, never `/login` or `/auth/`. Or run `cofactor open` with no path.
- (HTTP 429, "Too many requests"): Wait a minute and retry once.
- Not signed in / session ended: `cofactor setup status --json` fails (a 401 means the session is dead; `whoami` is offline and only checks expiry): run `cofactor signup --email <email> --accept-terms` (or `cofactor login`).
- Handoff link expired or used: Links work once, for 5 minutes. Run `cofactor open` or `cofactor github connect` again for a new one.
- "Cross-site" handoff in the browser: The human should paste the link into the address bar.
- Unknown command, a usage error for a command this guide names (`signup`, `setup update`, `setup guide`), or `setup status --json` with no `trackingUrl` or `progress`: The CLI is old: run `cofactor upgrade`, then retry once.
- `signup verify --json` succeeded but has no `trackingUrl`: the CLI is old. Run `cofactor upgrade`, then `cofactor open --no-open` and give the human the link it prints as the tracking link (it lasts 5 minutes).
- Guide shows "bundled" on stderr: The served copy was unreachable; the bundled copy is fine.
- No network or no browser: The CLI alone still works: print links with `--no-open` and hand them to the human.

If the cause is not here, stop and give the human the exact command, the error text and the time. Run `cofactor feedback "<what happened, what would have helped>" --topic instructions` (no secrets, customer data or real names).
