C:\Users\Raviteja>kubectl logs -n mendixworld kc2wb1fd-build time="2023-03-10T12:15:29Z" level=info msg="Start building app with registry type dockercfg" time="2023-03-10T12:15:29Z" level=info msg="Updating docker config with registry credentials" time="2023-03-10T12:15:29Z" level=info msg="Docker config has been updated with registry credentials" time="2023-03-10T12:15:30Z" level=info msg="Appending app layer to democontainer01.azurecr.io/democontainer01:kc2wb1fd with base runtime image private-cloud.registry.mendix.com/runtime-base:126.96.36.199427-rhel" time="2023-03-10T12:15:31Z" level=error msg="Failed to build mendix app, failed to append layer to base image pushing image democontainer01.azurecr.io/democontainer01:kc2wb1fd: GET https://democontainer01.azurecr.io/oauth2/token?scope=repository%3Ademocontainer01%3Apush%2Cpull&service=democontainer01.azurecr.io: UNAUTHORIZED: authentication required, visit https://aka.ms/acr/authorization for more information." Even after authentication I'm still getting the same error
how did you ensure that the authentication was successful before. The only reason which i can think of is that the credentials which u are using for the authentication are incorrect or their might be some proxy in front your cluster. Kindly check the two.
If you are using 2 factor authentication, use access token instead of password.
Edit: make sure that your serviceaccount that is used to build image contains dockercfg credentials that you set when setting mendix operator. If you set it to default service account, add that credentials to the builder serviceaccount as well.