[tcp-tunnel] Forwarding localhost:18443 → awmg-cli-proxy:18443
[cli-proxy] DIFC proxy probe failed (attempt 1/10, diagnosis=not-yet-ready (ECONNREFUSED)), retrying in 1s...
[cli-proxy] DIFC proxy probe failed (attempt 2..5/10, diagnosis=unknown), retrying...
[tcp-tunnel] Upstream error (::1:48576): getaddrinfo EAI_AGAIN awmg-cli-proxy
[ERROR] Fatal error: Error: AWF firewall failed to start: awf-cli-proxy could not connect to the external DIFC proxy (or exited before establishing a connection). Failing fast to avoid repeated in-agent retries. The agent was never invoked.
Process exiting with code: 1
Problem statement
tcp-tunnelcannot resolve the managed-gateway sidecar hostnameawmg-cli-proxy(getaddrinfo EAI_AGAIN— temporary DNS failure).awf-cli-proxyDIFC probe then fails fast after 10 attempts (~31s) and the run aborts at theExecute <engine> CLIstep. The agent is never invoked, so 100% of the affected runs are lost.agentic-workflowsissue.Affected workflows & runs (6h window)
Evidence (representative §28172712935)
Firewall startup log tail
Probable root cause
awmg-cli-proxyreturnsEAI_AGAINwhen thetcp-tunnel/cli-proxybegins probing — the awmg container/DNS record is not yet resolvable at that instant.Relationship to existing issues
DIFC proxy probe failed diagnosis=unknown on *.ghe.com). AWF cli-proxy DIFC proxy probe failed (diagnosis=unknown) on GitHub Enterprise Cloud data residency (*.ghe.com) #41225 is a data-residency tenant where the proxy is reachable but the forwardedgh apireturns unexpected results. These failures occur on standard github.com runners and fail one step earlier: the upstream hostawmg-cli-proxyis not resolvable at all (EAI_AGAIN). Same firewall-fails-to-start surface, different root cause.Proposed remediation
awmg-cli-proxyDNS resolvability — retry name resolution with backoff before counting probe attempts — so a transientEAI_AGAINduring managed-gateway startup is absorbed rather than fatal.EAI_AGAIN/ DNS-resolution failures as a distinct probediagnosis(e.g.dns-not-resolvable) instead of the genericunknown(also addresses AWF cli-proxy DIFC proxy probe failed (diagnosis=unknown) on GitHub Enterprise Cloud data residency (*.ghe.com) #41225 question 3).Success criteria / verification
successacross consecutive cycles with noAWF firewall failed to starterrors.EAI_AGAINonawmg-cli-proxyno longer aborts startup (absorbed by the DNS-readiness gate).References: §28172712935 · §28172034582 · §28171956092
Related to #41225
Related to #39884