You observe that a CloudHub application, despite being stopped or undeployed, continues to generate activity such as database connection attempts or log entries. This occurs when the application fails immediately upon startup, and the "Automatically restart application when not responding" setting is enabled.
CAUSE
When a CloudHub application is configured with "Automatically restart application when not responding" enabled, and it encounters an immediate, critical failure during startup (e.g., invalid database credentials, misconfigured external resource connections), CloudHub's runtime manager continuously attempts to redeploy and restart the application. This creates a persistent restart loop. Even if you attempt to stop or undeploy the application, the rapid restart attempts can sometimes override these actions, leading to the application appearing to be in a stopped or undeployed state while still generating background activity (like connection attempts) or logs from its brief, repeated startup attempts.
SOLUTION
To resolve this issue and fully stop the application's activity:
1. **Disable Automatic Restart:**
* Navigate to your application in Runtime Manager.
* Go to the "Settings" tab.
* Locate the "Automatically restart application when not responding" option and ensure it is **unchecked**.
* Click "Apply Changes".
2. **Undeploy or Delete the Application:**
* After disabling automatic restarts, proceed to undeploy or delete the application from Runtime Manager. This will ensure all active worker instances are terminated without immediate re-provisioning attempts.
3. **Resolve Underlying Configuration Issues:**
* Identify and correct the root cause of the application's startup failure. This commonly includes:
* Invalid credentials for external systems (e.g., databases, APIs).
* Incorrect connection strings or endpoint URLs.
* Missing or misconfigured environment variables.
* Issues with external resource availability or network connectivity.
* Verify that any external resources (e.g., your database, `your-external-service`) that were being impacted by the connection storm are now stable and unlocked.
4. **Redeploy the Application:**
* Once the underlying issues are resolved and verified, redeploy your application with the corrected configuration.
* Monitor the application logs closely during startup to confirm successful deployment and operation.
5. **Re-enable Automatic Restart (Optional):**
* After confirming the application is stable and running as expected, you may choose to re-enable "Automatically restart application when not responding" in the application settings. This setting is generally recommended for production applications to ensure high availability.
APPLIES TO
MuleSoft CloudHub (CloudHub 1.0, CloudHub 2.0)
005393368

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.