Getting started
Troubleshoot a local run
Trace a failure from tools to initialization, API access and browser-dependent output.
Start with the first failing component
Use the Aspire resource list to find the first failure in the dependency chain. The API intentionally waits for database migration, demo seeding and storage initialization. Restarting the web clients will not fix an earlier failed job.
Record the source revision, environment, failing resource and the first relevant exception. Remove credentials and personal data before sharing logs. A short reproducible case is more useful than a screenshot of a final generic browser error.
Resolve tools and build failures
| Symptom | Check first | Next action |
|---|---|---|
| Requested SDK unavailable | global.json, dotnet --list-sdks |
Install the compatible 11.0.1xx SDK patch |
g runs another command |
Shell command resolution | Resolve the alias or use the executable path |
| npm engine or install error | Node version and client lockfile | Use a compatible Node version, then npm ci |
| Container remains unavailable | docker info and image build logs |
Start Linux-container Docker; resolve registry/build access |
| Frontend port already used | Ports 5173 and 5174 | Stop the competing local server or consistently remap the host port |
Do not delete lockfiles to hide a dependency mismatch. If generating a project, distinguish successful file creation from npm warnings reported afterwards.
Resolve migration and data problems
Open the migrator logs before the API logs when startup is blocked. Confirm the target database and role printed by the migrator. A connection failure can come from Docker initialization, an incorrect password, missing access or an incompatible existing volume.
Changing LocalResources__Prefix selects separate named volumes. An empty database under a new prefix is a new dataset, not a migration of the old one. Keep the old volumes and use the migration guide for deliberate data movement. Deleting a volume is a data operation, not a routine troubleshooting step.
Diagnose API and browser access
curl -i https://localhost:7030/health/live
curl -i https://localhost:7030/health/ready
These commands use the API's standalone HTTPS default; replace the origin with the actual Aspire endpoint. Trust the development certificate when required. Readiness can return 503 with entries identifying failed checks while liveness still returns 200.
If sign-in fails, verify the tenant identifier and whether seed-demo completed. If a web request fails after an HTTP redirect, use the HTTPS API endpoint configured by AppHost. In deployed frontends, inspect /config.json; the API URL must be reachable from the user's browser. CORS settings must match the frontend origin exactly.
Diagnose mail, storage and PDF
Development mail goes to Mailpit. A missing external email is expected until a real SMTP provider is configured. For uploads, check the browser-facing S3 URL and CORS settings; a proxy rewriting the signed Host can cause SignatureDoesNotMatch.
For PDF failures, install Chromium with the Playwright script from the same built API revision and verify runtime-account access to its cache. On Linux, check sandbox support and dependencies instead of disabling the sandbox. The complete procedure is in PDF rendering.
Sources and escalation
AppHost graph, migrator implementation, health behavior and deployment settings. For a reproducible defect, follow contributing and include the checks you actually ran.