When deploying an application, the deployment failed. The following error message is reported in the application log:
Readiness probe failed: 409: API <API_ID>: Not Ready. Awaiting for successful API tracking.
This error occurs when the Mule runtime is unable to peer API instance in MuleSoft API Manager. Common causes include:
Missing or incorrect Client ID / Client Secret — An application tries to communicate the API Instance defined in an Environment in an Organization by given cleint_id and client_secret. If the ID and Secret does not match for the Environment or Organization, the application fails to communicate the target API instance in MuleSoft API Manager.
Incorrect API AutoDiscovery configuration — The API ID specified in <api-gateway:autodiscovery apiId="..."> does not match the API instance ID in MuleSoft API Manager.
To resolve the error: Readiness probe failed: 409: API <API_ID>: Not Ready. Awaiting for successful API tracking. , please review following points.
Verify Client ID and Client Secret
Ensure that the client_id and client_secret you provided are correct. The credentials must match the organization or environment of the API instance in MuleSoft API Manager that the application is attempting to peer with. Please see documentation link [1][2] to configure the correct credential.
If the above solutions do not work, please issue a customer case with application logs. In case of you are using Runtime fabric, please upload RTF Lite Report (see documentation link [3] about how to capture RTF Lite Report)
[1] Configuring Mule Gateway API Autodiscovery in a Mule 4 Application
https://docs.mulesoft.com/mule-gateway/mule-gateway-config-autodiscovery-mule4
[2] Configuring Organization Credentials in Mule Runtime 4
https://docs.mulesoft.com/mule-gateway/mule-gateway-org-credentials-mule4
[3] What Information to Collect for a MuleSoft Runtime Fabric (RTF) Support Case
https://help.salesforce.com/s/articleView?id=001116887&type=1
Similar Knowledge Article:
005318641

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.