Skip to content

Troubleshooting ​

Safety reminder: Never hand-edit tokens.env, copy raw tokens between accounts, or disable browser/certificate/permission checks to work around an error. Use Ctrl+L or lazyteams-auth flags so credentials and profile metadata stay valid.

Authentication & Silent Renewal ​

Interaction required (banner or Silent renewal: Interaction required) ​

Symptom: The top bar shows ⚠ Sign-in / MFA required — press [Ctrl+L], or the Ctrl+L popup shows Silent renewal: Interaction required / Credentials: Interaction required (...).

Cause: A headless renewal attempt encountered a Microsoft prompt that cannot be completed without a human — for example MFA, Conditional Access, password re-entry, an ambiguous account picker, or an expired SSO session.

Fix:

  1. Press Ctrl+L inside the TUI.
  2. Select Sign in / Re-authenticate (visible browser) and press Enter.
  3. Complete sign-in and MFA in the browser window that opens.
  4. Once tokens are captured, the interaction block clears automatically and Silent renewal returns to Available.

Repeated MFA or Conditional Access prompts ​

Cause: Your organization's Microsoft Entra ID Conditional Access policy (sign-in frequency, device compliance, IP/VPN change, or per-session MFA) dictates how long a browser session stays valid without re-verification. LazyTeams cannot and does not bypass institutional security policies.

Fix:

  • Complete the prompt via Ctrl+L → Sign in / Re-authenticate (visible browser) whenever requested.
  • Check whether your network/VPN changed between sessions, as many tenants re-trigger MFA on IP changes.
  • Keep using the same engine and browser (chromedp + your primary Chromium browser) so cookies remain in the same isolated profile.

Silent renewal shows Setup required or Unknown ​

  • Setup required: No browser session directory exists yet for the currently active engine (for instance, right after installing or after switching from chromedp to playwright or vice versa, since each engine keeps an independent profile).
    • Fix: Press Ctrl+L → Sign in / Re-authenticate (visible browser) once to initialize that engine's profile.
  • Unknown: LazyTeams could not verify a usable profile for the selected engine/browser combination. Common causes:
    • Incompatible engine and browser pairing (e.g., chromedp with firefox, or playwright with chrome).
    • The browser executable recorded in sessions/chromedp-<browser>.meta.json was moved or uninstalled, or differs from --browser-path / LAZYTEAMS_BROWSER_PATH.
    • A previous first-time login was cancelled before the browser finished initializing its cookie store.
    • Fix: Run lazyteams-auth --list-browsers to inspect the active engine, browser, and detected binaries. If the profile is incomplete or broken, reset only that engine's session (lazyteams-auth --clear-session) and sign in again via Ctrl+L.

Expired SSO session ​

Symptom: Headless renewal fails and redirects to Microsoft's login screen (Interaction required), or lazyteams-auth --headless exits without capturing fresh tokens.

Fix:

  1. Press Ctrl+L → Sign in / Re-authenticate (visible browser) to refresh the browser SSO cookies in the isolated profile.
  2. If you switched Microsoft accounts or the profile still fails after visible sign-in, clear the active engine's session and tokens, then re-authenticate cleanly:
    bash
    lazyteams-auth --clear-session --clear-tokens
    Then launch lazyteams and press Ctrl+L → Sign in / Re-authenticate (visible browser).

Network errors during renewal ​

Symptom: Top bar displays ⚠ Token renewal failed (network error) — retry later.

Cause: Temporary connectivity drop, DNS error, captive portal, VPN reconnect, or timeout reaching Microsoft endpoints. Your saved browser session is usually still valid.

Fix:

  • Verify your internet/VPN connection.
  • Once connectivity is back, press Ctrl+L → Renew tokens silently (headless) (no full visible re-login needed unless your SSO session also expired).

Engines, Browsers & Configuration ​

Incompatible engine or browser ​

Symptom: Error on startup or renewal such as:

  • browser "firefox" requires --engine playwright
  • browser "chrome" requires --engine chromedp
  • no compatible Chromium-family browser (Chrome, Chromium, Edge, or Brave >= 120) found
  • found ... which is older than Chromium 120
  • (Windows) session profile ... is pinned to ... (cannot reopen with ... due to App-Bound Encryption)

Fix:

  1. Inspect what LazyTeams detects on your system:
    bash
    lazyteams-auth --list-browsers
  2. For chromedp (default): install or upgrade Google Chrome, Chromium, Microsoft Edge, or Brave to version 120+, or point to a valid binary with --browser-path / LAZYTEAMS_BROWSER_PATH.
  3. Make sure you are not mixing --browser firefox with chromedp, or --browser chrome/edge/brave/chromium with playwright.
  4. (Windows App-Bound Encryption mismatch): either launch with the original browser binary pinned to that profile, or run lazyteams-auth --clear-session before switching to a different Chromium executable.
  5. If you prefer Playwright Firefox instead, switch via Ctrl+L → Use Playwright engine (opt-in) (and clear any conflicting LAZYTEAMS_AUTH_BROWSER variable).

Playwright Firefox not available ​

Symptom: lazyteams-auth --list-browsers reports Playwright Firefox cache present: false, or switching to playwright fails to launch Firefox.

Cause: The playwright engine is opt-in and depends on Playwright's Firefox browser cache (~/.cache/ms-playwright on Linux, ~/Library/Caches/ms-playwright on macOS, %LOCALAPPDATA%\ms-playwright on Windows, or PLAYWRIGHT_BROWSERS_PATH).

Fix:

  • Recommended: Return to the default chromedp engine via Ctrl+L → Use chromedp engine (default) (uses your system Chrome/Chromium/Edge/Brave with no Playwright download).
  • If you specifically need Playwright: ensure Playwright's Firefox cache is installed in the expected cache directory (or set PLAYWRIGHT_BROWSERS_PATH to the directory containing firefox-*), then verify with lazyteams-auth --engine playwright --list-browsers.

Invalid configuration (prefs.json, CLI flags, or environment variables) ​

Symptom:

  • lazyteams or lazyteams-auth exits immediately with unsupported auth engine ... or unsupported browser ....
  • stderr prints warning: ignoring invalid auth_engine ... in prefs.json; using default "chromedp".
  • Selecting an engine in Ctrl+L prints Saved <chosen> preference. Session uses <effective> (override).

Cause & Fix:

  • Invalid CLI flag or env var: Valid values are --engine chromedp|playwright and --browser auto|chrome|chromium|edge|brave|firefox. Fix the flag or unset/correct LAZYTEAMS_AUTH_ENGINE and LAZYTEAMS_AUTH_BROWSER.
  • Invalid value in prefs.json: LazyTeams intentionally ignores invalid auth_engine / auth_browser values in prefs.json and falls back to chromedp / auto without silently overwriting your file. Select an engine in Ctrl+L (which saves a valid auth_engine) or fix the typo in ~/.config/lazyteams/prefs.json.
  • Override masking prefs.json: Remember precedence is CLI > Environment > prefs.json > Default. Check env | grep LAZYTEAMS_ and your shell/launcher command if an override is taking precedence over your Ctrl+L selection.

Capture, Partial Failures & Locks ​

Tokens are not recovered or capture is incomplete ​

Symptom: You completed sign-in in the visible browser, but one or more workspaces remain empty or Credentials does not become Ready.

Fix:

  1. Give the first-time visible login enough time (typically 30–90 seconds) after Microsoft redirects back to Teams so Teams, Assignments, and Graph Explorer finish their requests.
  2. Run a diagnostic visible capture in a terminal to see exactly where capture stopped:
    bash
    lazyteams-auth --show --debug
  3. Confirm you are signed into the same organizational account in both Teams and Graph Explorer — LazyTeams rejects Graph tokens whose (oid, tid) account or tenant does not match the active Teams session.

Partial provider failures (Credentials: Partial (...)) ​

Symptom: Teams chats work, but Assignments (edu), Activity (notif), or Graph-backed views (graph) show unavailable or Credentials: Partial (<provider> unavailable).

Causes & Fixes:

  • EDU (edu) unavailable: Non-education tenants (corporate accounts without Teams for Education) do not have Assignments enabled. On education tenants, trigger a headless renewal (Ctrl+L → Renew tokens silently (headless)) or lazyteams-auth --renew edu --show --debug if Assignments did not finish loading.
  • Graph (graph) unavailable: Often caused by missing Graph Explorer permissions (see HTTP 403 below) or an unconsented Graph Explorer session. Open Ctrl+L → Sign in / Re-authenticate (visible browser) to complete Graph Explorer sign-in.
  • Fabric (TEAMS_FABRIC_TOKEN): Disabled by design in v0.2.0 (Stage 7B closed). Running lazyteams-auth --renew fabric intentionally exits without capturing or writing credentials.

Profile lock issues (profile_in_use) ​

Symptom: Renewal fails with profile_in_use: another authentication helper owns the browser session.

Cause: Another lazyteams-auth process (for example, a second terminal window or a manual CLI run) is currently holding the single-owner profile lock (sessions/chromedp-<browser>.lock or browser-session.lock).

Fix:

  1. Wait a few seconds for the active authentication or background renewal to finish.
  2. Check whether another lazyteams / lazyteams-auth process is still running and close it normally.
  3. LazyTeams automatically cleans up stale locks left by crashed processes when no live process owns them; if a stuck browser process remains from an interrupted run, terminate that orphaned process before retrying via Ctrl+L.

Permissions & API Errors ​

HTTP 403: Missing scope permissions on Chat. API requires one of 'Chat.ReadBasic, Chat.Read, Chat.ReadWrite' ​

You (or your tenant) have not consented to the required Microsoft Graph permission. Re-check the permission list in Getting Started, open Graph Explorer, sign in with your account, and enable the missing permission.

If a permission shows "Need admin approval", your organization restricts self-service consent — contact your IT administrator.

tokens.env is readable by other users (mode …) ​

A non-fatal security warning printed when tokens.env has permissions broader than 0600 (common after restoring from a backup). Fix permissions immediately with:

bash
chmod 600 ~/.config/lazyteams/tokens.env

Display Issues ​

Odd glyphs or emoji as empty boxes on Windows ​

Standard Windows Command Prompt and PowerShell have limited Unicode/font support. Windows Terminal is strongly recommended. See Platform Support.

The UI renders strangely or colors are wrong ​

Make sure your terminal supports ANSI truecolor and is a modern emulator. Inside tmux or screen, verify TERM is configured appropriately (e.g. tmux-256color or xterm-256color).

Updating ​

GitHub API rate limit exceeded or 403 during update check ​

GitHub enforces rate limits on anonymous API calls:

  • LazyTeams automatically checks for an authenticated GitHub CLI (gh) and falls back to gh api when available.
  • Otherwise, wait for the anonymous rate limit window to reset or download the release manually from Releases.

The updater aborts or rolls back ​

  • Permissions: Ensure both lazyteams and lazyteams-auth live in a user-writable directory (such as ~/.local/bin), not a root-owned system directory like /usr/bin/.
  • Rollback in action: If lazyteams-auth fails verification or replacement, the updater restores the previous lazyteams binary automatically so the two binaries never drift out of sync.

Debugging & Reporting ​

Where are the logs? ​

  • lazyteams --debug enables diagnostic mode in the TUI and passes --debug to background lazyteams-auth processes.
  • Diagnostic output is written to ~/.config/lazyteams/auth-helper.log (or <LAZYTEAMS_CONFIG_DIR>/auth-helper.log).

How to report a bug ​

Open an issue on GitHub with:

  • Output of lazyteams --version, lazyteams-auth --version, and lazyteams-auth --list-browsers.
  • The exact error message or top-bar status.
  • Your OS, terminal emulator, and active auth engine (chromedp or playwright).
  • Relevant excerpts from auth-helper.log (always redact any tokens, cookies, emails, or personal identifiers first).

For security issues, do not open a public issue — report privately via a GitHub Security Advisory (see Security).