Resolve HTTP 502 errors after Dispatcher disconnection in AEM Managed Services

Adobe Experience Manager (AEM) Managed Services may return HTTP 502 Bad Gateway errors when Dispatcher loses its connection to the application gateway after automated OS patching and the recovery automation doesn’t restore connectivity. To resolve the issue, verify gateway-to-Dispatcher connectivity, restore the connection if necessary, and confirm that requests are processed successfully.

Description description

Environment

Adobe Experience Manager (AEM) Managed Services (all versions)

Issue/Symptoms

  • Requests routed through the application gateway return HTTP 502 Bad Gateway errors.

  • Dispatcher doesn’t receive incoming requests from the gateway after automated OS patching.

  • The NginX log contains entries similar to: {“time_local”: “2026-08-31T07:20:13-07:00”,“request_host”: “example-host.domain.com”,“request_method”: “GET”,“status”: 502, … ,“upstream”: {“upstream_status”: “502”,“upstream_addr”: “”}}

  • Dispatcher logs show no requests received from the gateway. Example:
    [ Mon Aug 31 13:52:13 2026] [ W] [ pid …] No farm matches host ‘flush’, selected last farm ‘publishfarm’

    [ Mon Aug 31 13:52:13 2026] [ I] [ pid …] Activation detected: action=Test [ /content]

    [ Mon Aug 31 13:52:13 2026] [ I] [ pid …] “GET /dispatcher/invalidate.cache” 200 purge [ publishfarm/-] 0ms

Root cause

Dispatcher loses its connection to the application gateway after automated OS patching. The recovery automation doesn’t successfully reconnect Dispatcher, resulting in HTTP 502 errors at the gateway and service disruption.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Verify connectivity between the application gateway and Dispatcher after OS patching. Use network diagnostic tools such as curl or telnet from the gateway host to the Dispatcher endpoint to confirm reachability.
  2. Check that the Dispatcher process is running and listening on the expected ports.
  3. Review the Dispatcher logs for errors or warnings that indicate connectivity issues.
  4. If Dispatcher isn’t connected, restart the Dispatcher service or re-establish the connection according to the environment’s standard operating procedures.
  5. Send test requests through the gateway and confirm that Dispatcher receives and processes them. Monitor both gateway and Dispatcher logs for successful request handling.
  6. Review and update automated patching or maintenance scripts to ensure that they validate and, if necessary, re-establish Dispatcher-to-gateway connectivity after maintenance.
  7. Consider implementing automated health checks or alerts for Dispatcher connectivity after maintenance.
  8. Verify that requests routed through the gateway are processed successfully by Dispatcher and that HTTP 502errors no longer occur.
recommendation-more-help
experience-cloud-kcs-help-kbarticles