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.
ps -ef | grep java005390959

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.