Error occurred: Failed to push image

0
I am trying to deploy an app on my Mendix on Kubernetes, but the app is not deploying and I am getting the following error: “Error occurred: Failed to push image.” If this has happened to you, could you give me some guidance on what the problem might be?Azure Kubernetes servicesEnvironment OKAssigned role OKAKS and Azure ACR Connected.
asked
2 answers
0

From the screenshot, Network, Storage and Database are all OK, which means the Kubernetes cluster and the Mendix environment itself are working properly. So the problem is most likely not related to the cluster infrastructure. The issue usually happens during the deployment step when the application image is pushed to the container registry.


In Mendix on Kubernetes, the error “Failed to push image” typically means the platform successfully built the application image but could not upload it to the configured registry. This usually points to a problem with the registry configuration, authentication, or permissions.


One common reason is that the registry credentials used by the build pod do not have push permissions. The account or token must allow pushing images to the registry. If it only has pull access or limited permissions, the image upload will fail.


Another possible cause is incorrect registry credentials. The Kubernetes secret used for the registry may have the wrong server address, username, or password/token. If authentication fails, the builder pod cannot connect to the registry and the push operation stops.


If you are using Azure Kubernetes Service, it is also worth checking the connection between the cluster and Azure Container Registry (ACR). The AKS cluster usually needs to be attached to the registry to allow pushing images. If that connection is missing or misconfigured, the image push step can fail.


In short, the environment looks healthy, but the builder pod cannot push the image to the registry. Checking the registry credentials, permissions, and the AKS–registry connection is usually the first place to start when troubleshooting this error.


If this resolves the issue, please close the topic.


answered
-5

Hi,


If AKS, roles, and the AKS–ACR connection are already showing OK, then the “Failed to push image” error usually occurs when Mendix tries to push the container image to Azure Container Registry (ACR).

In most cases, this happens due to missing ACR permissions. Make sure the identity or service principal used for deployment has the AcrPush role on the ACR. Without this permission, the image build may succeed but the push will fail.


Also check the Build & Deploy logs in Mendix, as they usually show the exact step where the push is failing.


Thanks

answered