Troubleshooting
Safety reminder: Never hand-edit
tokens.env, copy raw tokens between accounts, or disable browser/certificate/permission checks to work around an error. UseCtrl+Lorlazyteams-authflags 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:
- Press
Ctrl+Linside the TUI. - Select
Sign in / Re-authenticate (visible browser)and pressEnter. - Complete sign-in and MFA in the browser window that opens.
- Once tokens are captured, the interaction block clears automatically and
Silent renewalreturns toAvailable.
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 fromchromedptoplaywrightor 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.
- Fix: Press
Unknown: LazyTeams could not verify a usable profile for the selected engine/browser combination. Common causes:- Incompatible engine and browser pairing (e.g.,
chromedpwithfirefox, orplaywrightwithchrome). - The browser executable recorded in
sessions/chromedp-<browser>.meta.jsonwas 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-browsersto 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 viaCtrl+L.
- Incompatible engine and browser pairing (e.g.,
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:
- Press
Ctrl+L→Sign in / Re-authenticate (visible browser)to refresh the browser SSO cookies in the isolated profile. - 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:bashThen launch
lazyteams-auth --clear-session --clear-tokenslazyteamsand pressCtrl+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 playwrightbrowser "chrome" requires --engine chromedpno compatible Chromium-family browser (Chrome, Chromium, Edge, or Brave >= 120) foundfound ... which is older than Chromium 120- (Windows)
session profile ... is pinned to ... (cannot reopen with ... due to App-Bound Encryption)
Fix:
- Inspect what LazyTeams detects on your system:bash
lazyteams-auth --list-browsers - 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. - Make sure you are not mixing
--browser firefoxwithchromedp, or--browser chrome/edge/brave/chromiumwithplaywright. - (Windows App-Bound Encryption mismatch): either launch with the original browser binary pinned to that profile, or run
lazyteams-auth --clear-sessionbefore switching to a different Chromium executable. - If you prefer Playwright Firefox instead, switch via
Ctrl+L→Use Playwright engine (opt-in)(and clear any conflictingLAZYTEAMS_AUTH_BROWSERvariable).
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
chromedpengine viaCtrl+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_PATHto the directory containingfirefox-*), then verify withlazyteams-auth --engine playwright --list-browsers.
Invalid configuration (prefs.json, CLI flags, or environment variables)
Symptom:
lazyteamsorlazyteams-authexits immediately withunsupported auth engine ...orunsupported browser ....stderrprintswarning: ignoring invalid auth_engine ... in prefs.json; using default "chromedp".- Selecting an engine in
Ctrl+LprintsSaved <chosen> preference. Session uses <effective> (override).
Cause & Fix:
- Invalid CLI flag or env var: Valid values are
--engine chromedp|playwrightand--browser auto|chrome|chromium|edge|brave|firefox. Fix the flag or unset/correctLAZYTEAMS_AUTH_ENGINEandLAZYTEAMS_AUTH_BROWSER. - Invalid value in
prefs.json: LazyTeams intentionally ignores invalidauth_engine/auth_browservalues inprefs.jsonand falls back tochromedp/autowithout silently overwriting your file. Select an engine inCtrl+L(which saves a validauth_engine) or fix the typo in~/.config/lazyteams/prefs.json. - Override masking
prefs.json: Remember precedence isCLI > Environment > prefs.json > Default. Checkenv | grep LAZYTEAMS_and your shell/launcher command if an override is taking precedence over yourCtrl+Lselection.
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:
- 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.
- Run a diagnostic visible capture in a terminal to see exactly where capture stopped:bash
lazyteams-auth --show --debug - 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)) orlazyteams-auth --renew edu --show --debugif 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. OpenCtrl+L→Sign in / Re-authenticate (visible browser)to complete Graph Explorer sign-in. - Fabric (
TEAMS_FABRIC_TOKEN): Disabled by design inv0.2.0(Stage 7B closed). Runninglazyteams-auth --renew fabricintentionally 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:
- Wait a few seconds for the active authentication or background renewal to finish.
- Check whether another
lazyteams/lazyteams-authprocess is still running and close it normally. - 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:
chmod 600 ~/.config/lazyteams/tokens.envDisplay 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 togh apiwhen 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
lazyteamsandlazyteams-authlive in a user-writable directory (such as~/.local/bin), not a root-owned system directory like/usr/bin/. - Rollback in action: If
lazyteams-authfails verification or replacement, the updater restores the previouslazyteamsbinary automatically so the two binaries never drift out of sync.
Debugging & Reporting
Where are the logs?
lazyteams --debugenables diagnostic mode in the TUI and passes--debugto backgroundlazyteams-authprocesses.- 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, andlazyteams-auth --list-browsers. - The exact error message or top-bar status.
- Your OS, terminal emulator, and active auth engine (
chromedporplaywright). - 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).