Skip to content

Troubleshooting

Start with the symptom, then use the narrowest diagnostic that can separate configuration, authentication, transport, and Microsoft 365 provisioning problems.

Choose the matching topic

Symptom Go to
Setup fails, sign-in loops, token exchange names a hop, or the runtime is unauthenticated Setup and authentication
Teams messages do not send or arrive, email is missing, or Graph returns 401/403/404/429 Teams and email
Windows setup stops, the sign-in window is missing, Claude Code blocks edits, a certificate expired, or a sponsor is ignored Windows
macOS or Linux setup stops, the keychain or keyring cannot be used, sign-in is refused, a certificate expired, or teardown did not do what you expected macOS and Linux
Blob selection, storage consent, RBAC, migration, or cursor-concurrency problem Storage
MCP server will not start, disconnects, or channel push is missing MCP connectivity
An upgrade changed state, credentials, cursors, or local paths Migrations and upgrades
A recipient is refused, a send is refused because the audit log can't be written, or telemetry doesn't appear in Agent 365 Outbound controls and telemetry

Run the right identity check

Two diagnostics answer different questions:

  • Status and health commands use the Provisioner application's certificate to inspect the Blueprint, Agent Identity, Agent User, grants, licenses, certificates, and storage configuration. They do not prove that the running MCP process has an Agent User token.
  • whoami is an MCP tool. It uses the runtime session and reports the active identity state, authentication mode, attribution type, and Graph identity. Use it to verify the process that is serving tools.

Run status and health:

=== "macOS or Linux"

```bash
./status.sh --health-only --strict
./scripts/setup.sh --diagnose
```

=== "Windows"

```bat
scripts\setup-windows.cmd -Diagnose
```

Then call whoami from the connected MCP host. A healthy Provisioner status with a failing whoami points to runtime authentication or MCP configuration, not necessarily a broken Entra resource chain.

Collect safe diagnostics

  1. Record the command, exit code, HTTP status, and named token-exchange hop.
  2. Check entrabot.log under ENTRABOT_LOG_DIR or its platform default.
  3. Confirm paths and non-secret identifiers in .mcp.json, .env, and .entrabot-state.json.
  4. Do not paste access tokens, client assertions, private keys, device codes, or complete credential files into an issue.

See Configuration Reference, Token Flows, and Scripts Reference for exact interfaces.