# Fix mirror.app_not_ready

mirror.app_not_ready
Recorded exits: 1 (failed). [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/mirror.app_not_ready, build/local-development-with-agc-up, build/env-mirror-and-shell-environment, reference/error-code-catalog, reference/app-runtime-contract, reference/limits-and-quotas

## Steps

Cause: No answer on `health` within 60 s; `data.not_ready` says why
Next action: Listen on the port in `PORT`; the message names it
[2]

Cause: `up`
Next action: The mirror cannot start: port ‹ready.portInUse› is held by another process. / The mirror's database is ready, but the app crashed while starting on :‹state.webPort›. / The mirror's database is ready, but the app did not answer on :‹state.webPort›‹state.health… | Run agc down, then agc up to choose free ports. If the app ignores PORT, make it listen on the injected PORT instead. / ‹toolchainFix› / ‹mismatch.fix› / Make the app listen on the port the PORT environment variable names, not a fixed ‹elsewhere›: agc gives a… | commands/mirror.ts:919
[4]

Cause: 60 s
Next action: `mirror.app_not_ready` | cli/src/mirror.ts:1229
[6]

## Errors

See the cited canonical pages for errors.

## Not available yet

Availability follows the cited sources; this answer does not establish additional capabilities.

## Sources

[1] [fix/mirror.app_not_ready — Reference](/docs/fix/mirror.app_not_ready.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [build/local-development-with-agc-up — Errors](/docs/build/local-development-with-agc-up.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [build/env-mirror-and-shell-environment — Dependencies and install scripts](/docs/build/env-mirror-and-shell-environment.md#dependencies-and-install-scripts) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[5] [reference/app-runtime-contract — Agent notes](/docs/reference/app-runtime-contract.md#agent-notes) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[6] [reference/limits-and-quotas — Reference](/docs/reference/limits-and-quotas.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [build/local-development-with-agc-up](/docs/build/local-development-with-agc-up/known-issues.md)
- [build/env-mirror-and-shell-environment](/docs/build/env-mirror-and-shell-environment/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)
- [reference/app-runtime-contract](/docs/reference/app-runtime-contract/known-issues.md)
- [reference/limits-and-quotas](/docs/reference/limits-and-quotas/known-issues.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "fix/mirror.app_not_ready: <what is wrong>; error mirror.app_not_ready" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
