Loading
The Trailblazer Community is now read-only Read More

CloudHub Application Continues Activity After Stop/Undeploy Due to Restart Loop

Publish Date: Aug 24, 2026
Description

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.

Resolution

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)

Knowledge Article Number

005393368

 
Loading
Salesforce Help | Article