Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to provision revision for container app 'api' - ACR issue #7797

Open
1 task done
KSemenenko opened this issue Feb 26, 2025 · 4 comments
Open
1 task done

Failed to provision revision for container app 'api' - ACR issue #7797

KSemenenko opened this issue Feb 26, 2025 · 4 comments

Comments

@KSemenenko
Copy link

KSemenenko commented Feb 26, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Im doing azd up in asure devops pipline, and I have this error. But I see this image in ACR.

X-Content-Type-Options: REDACTED
   X-Ms-Correlation-Request-Id: 83533f0006430679fb5067ee4997320d
   X-Ms-Ratelimit-Remaining-Subscription-Global-Reads: REDACTED
   X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
   X-Ms-Request-Id: d17eaeec-45c3-4015-ab09-a3e96d6e449a
   X-Ms-Routing-Request-Id: REDACTED
   X-Msedge-Ref: REDACTED
   X-Powered-By: REDACTED

2025/02/26 22:38:48 main.go:50: Retry: response 200
2025/02/26 22:38:48 main.go:50: Retry: exit due to non-retriable status code
2025/02/26 22:38:48 main.go:50: LongRunningOperation: State Failed
2025/02/26 22:38:48 main.go:50: LongRunningOperation: END PollUntilDone() for *async.Poller[github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3.ContainerAppsClientCreateOrUpdateResponse]: succeeded, total time: 15.344185082s

2025/02/26 22:38:48 main.go:50: ResponseError: GET https://management.azure.com/subscriptions/[111111](https://management.azure.com/subscriptions/4019bbed-0152-43aa-b7f4-a57b85f6dd22/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/a975b396-1d5e-4708-a6f6-8e4ff1ae753e)1-0152-43aa-b7f4-a57b85f6dd22/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/a975b396-1d5e-4708-a6f6-8e4ff1ae753e
--------------------------------------------------------------------------------


RESPONSE 200: 200 OK
ERROR CODE: ContainerAppOperationError
--------------------------------------------------------------------------------
{
  "id": "/subscriptions/1111111-0152-43aa-b7f4-a57b85f6dd22/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/a975b396-1d5e-4708-a6f6-8e4ff1ae753e",
  "name": "a975b396-1d5e-4708-a6f6-8e4ff1ae753e",
  "status": "Failed",
  "error": {
    "code": "ContainerAppOperationError",
    "message": "Failed to provision revision for container app 'api'. Error details: The following field(s) are either invalid or missing. Field 'template.containers.api.image' is invalid with details: 'Invalid value: \"acrrqgzmzy45tn7q.azurecr.io/s/api-devops6:azd-deploy-1740609475\": GET https:: MANIFEST_UNKNOWN: manifest tagged by \"azd-deploy-1740609475\" is not found; map[Tag:azd-deploy-1740609475]';.."
  },
  "startTime": "2025-02-26T22:38:32.1712264"
}
--------------------------------------------------------------------------------

  (x) Failed: Deploying service api

ERROR: error executing step command 'deploy --all': failed deploying service 'api': updating container app service: polling for container app update completion: GET https://management.azure.com/subscriptions/[11111](https://management.azure.com/subscriptions/4019bbed-0152-43aa-b7f4-a57b85f6dd22/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/a975b396-1d5e-4708-a6f6-8e4ff1ae753e)1-0152-43aa-b7f4-a57b85f6dd22/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/a975b396-1d5e-4708-a6f6-8e4ff1ae753e

--------------------------------------------------------------------------------

RESPONSE 200: 200 OK
ERROR CODE: ContainerAppOperationError
--------------------------------------------------------------------------------
{
  "id": "/subscriptions/4111111-0152-43aa-b7f4-a57b85f6dd22/providers/Microsoft.App/locations/eastus/containerappOperationStatuses/a975b396-1d5e-4708-a6f6-8e4ff1ae753e",
  "name": "a975b396-1d5e-4708-a6f6-8e4ff1ae753e",
  "status": "Failed",
  "error": {
    "code": "ContainerAppOperationError",
    "message": "Failed to provision revision for container app 'api'. Error details: The following field(s) are either invalid or missing. Field 'template.containers.api.image' is invalid with details: 'Invalid value: \"acrrqgzmzy45tn7q.azurecr.io/s/api-devops6:azd-deploy-1740609475\": GET https:: MANIFEST_UNKNOWN: manifest tagged by \"azd-deploy-1740609475\" is not found; map[Tag:azd-deploy-1740609475]';.."
  },
  "startTime": "2025-02-26T22:38:32.1712264"
}

Expected Behavior

ACR whoud works fine

Steps To Reproduce

run azd init and then azd up in azure devops

Exceptions (if any)

No response

.NET Version info

dotnet9. aspire 9 and 9.1

Anything else?

No response

@davidfowl
Copy link
Member

Can you share the application?

@KSemenenko
Copy link
Author

I can't share this projct, but I disable all DI, and now it's empy webapi + health check.

interesting part here, there are two projects, like api and admin (blazor app) and admin panel is working.

but for api, in container app I see error like

Failed to load ACR Registries:Cannot perform credential operations for /subscriptions/4019bbed-0152-43aa-b7f4-a57b85f6dd22/resourceGroups/rg-devops6/providers/Microsoft.ContainerRegistry/registries/acrrqgzmzy45tn7q as admin user is disabled. Kindly enable admin user as per docs: https://docs.microsoft.com/en-us/azure/container-registry/container-registry-authentication#admin-account

@davidfowl
Copy link
Member

cc @vhvb1989 ?

@KSemenenko
Copy link
Author

KSemenenko commented Feb 27, 2025

@davidfowl we found the issue, this is kind of interested one!

<PropertyGroup>
 <ContainerImageName>myapp-api</ContainerImageName>
</PropertyGroup>

for some reason we define ContainerImageName and this is the issue with publishing, becase container name is differnet.

how cool is it?

p.s.
@vhvb1989 thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants