From 028e84f1f55df96dd1b74492189fb2dc5e2e2c7f Mon Sep 17 00:00:00 2001 From: "helpcode.ai" <340500827+helpcodeai@users.noreply.github.com> Date: Tue, 13 Oct 2026 14:50:39 +0200 Subject: [PATCH] Write a Node diagnostic report when the backend dies of a fatal V8 error On 13 Oct the Cloud backend died with "Zone Allocation failed - process out of memory" with the heap at a third of its cap, and the log had no stack. start.sh now passes --report-on-fatalerror so the next such crash leaves a report (native stack, heap spaces, resource usage, JS stack when available) in HEAP_SNAPSHOT_DIR, which is a volume on Cloud. Environment variables are excluded; on a Node without --report-exclude-env the report stays off rather than writing secrets to disk or failing to start. --- docs/operations/observability.md | 4 ++++ start.sh | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/operations/observability.md b/docs/operations/observability.md index fbfb44c91..8d87b4746 100644 --- a/docs/operations/observability.md +++ b/docs/operations/observability.md @@ -176,6 +176,10 @@ Use the *raw* request body, not a re-serialized JSON object, since re-serializin The webhook URL is validated with the same guard (`SSRF_GUARD`, private/loopback/metadata-address blocking) used for every other outbound call this app makes on a user's behalf, both when it's saved and again on every dispatch, and redirects are not followed. On AnythingMCP Cloud the URL must use `https`, and it ignores both the env (`SSRF_ALLOWED_HOSTS`) and the admin-editable SSRF allowlist, which name hosts only the platform may reach. On a self-hosted instance the operator's allowlist applies, so an internal Mattermost or Slack proxy can receive alerts. +## Fatal crash reports (always on in the Docker image) + +A fatal V8 error, such as an out-of-memory abort, ends the backend before any JavaScript handler runs, so the log has no stack. `start.sh` therefore starts the backend with `--report-on-fatalerror`: on such a crash Node writes a diagnostic report (`report..