Loading

Mule 4 | Standalone/Hybrid Applications are Shown as Failed in ARM

Date de publication: Aug 13, 2026
Description

A Mule Runtime Agent (Standalone or Hybrid deployment) that is registered with Anypoint Platform intermittently loses its WebSocket connection to Runtime Manager. The agent log shows repeated errors such as:

WebSocket connection error: IOException: Invalid Status code=401 text=Unauthorized

The runtime keeps retrying every 30 seconds and continues to fail. Despite this, the application(s) on the runtime keep working normally, and any general keep-alive/heartbeat activity in the log looks healthy — only the connection to Anypoint Platform (used for monitoring, deployment, and management) is affected.

Applications deployed to the runtime are shown as "Failed" in Anypoint Runtime Manager UI

Connected App credentials for the runtime are confirmed correct, and Anypoint Platform reports no outage.

Anypoint Platform allows only one active WebSocket session per registered Mule Runtime (per Connected App identity). If more than one Mule Runtime process is running on the same host using the same Connected App credentials — for example, an older instance that was never fully stopped before a new one was started, or an automated startup script that launched the runtime a second time — the two processes compete for that single session. The instance that loses the race receives repeated 401 Unauthorized responses when it tries to (re)connect, even though its credentials are valid.

Résolution
  1. Check for more than one Mule Runtime process running on the host:
           ps -ef | grep java
    Look for more than one process launched from a Mule installation directory.
  2. If more than one process is found, confirm they are using the same Connected App client ID (check each instance's wrapper.conf).
  3. Stop every Mule Runtime process on the host except the one you intend to keep running. Note that a single service-manager command (e.g. a systemctl stop on a wrapper-managed service) may not stop an instance that was started manually outside that service — verify with another ps -ef | grep java that no Mule processes remain before restarting. Use kill -9 <RUNTIME_PID> if needed.
  4. Start exactly one Mule Runtime instance and confirm in the agent log that the WebSocket connection to Anypoint Platform succeeds with no further 401 errors.
  5. Identify how the second instance was started in the first place (manual restart, monitoring/automation script, etc.) so it doesn't happen again.
Numéro d’article de la base de connaissances

005390959

 
Chargement
Salesforce Help | Article