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

Deployment fails with indexer - UNAUTHORIZED: authentication required #194

Closed
zaccariafra opened this issue Mar 19, 2024 · 1 comment
Closed

Comments

@zaccariafra
Copy link

zaccariafra commented Mar 19, 2024

Cloned today and ran in local Mac M1 Pro, deploying from scratch.

My Azure account has Owner permissions.

AZD auth login
AZD up

Select an Azure location to use: 34. (Europe) West Europe (westeurope)

Packaging services (azd package)

  (✓) Done: Packaging service indexer
  - Image Hash: sha256:b9adecfdbdd309f454dda14b8b4447cf5a6ba280ebe5e058ee64682529ece0e0
  - Target Image: azure-search-openai-javascript/indexer-test-openai-js:azd-deploy-1710782941


  (✓) Done: Packaging service search
  - Image Hash: sha256:acbc918898f5e53b59e2558f1716d15f99e0a11cb4707ecbcba4caf0acff858f
  - Target Image: azure-search-openai-javascript/search-test-openai-js:azd-deploy-1710782942


  (✓) Done: Packaging service webapp
  - Package Output: dist

SUCCESS: Your application was packaged for Azure in less than a second.

Provisioning Azure resources (azd provision)
Provisioning Azure resources can take some time.

Subscription: Azure subscription 1 (8b8dd26b-933a-4588-9b6e-7927cb9196bf)
Location: West Europe

  You can view detailed progress in the Azure Portal:
  https://portal.azure.com/#view/HubsExtension/DeploymentDetailsBlade/~/overview/id/%2Fsubscriptions%2F8b8dd26b-933a-4588-9b6e-7927cb9196bf%2Fproviders%2FMicrosoft.Resources%2Fdeployments%2Ftest-openai-js-1710782951

  (✓) Done: Resource group: rg-test-openai-js
  (✓) Done: Log Analytics workspace: log-6bicosdj5pee6
  (✓) Done: Static Web App: webapp
  (✓) Done: Storage account: st6bicosdj5pee6
  (✓) Done: Application Insights: appi-6bicosdj5pee6
  (✓) Done: Azure OpenAI: cog-6bicosdj5pee6
  (✓) Done: Portal dashboard: dash-6bicosdj5pee6
  (✓) Done: Container Registry: cr6bicosdj5pee6
  (✓) Done: Container Apps Environment: cae-6bicosdj5pee6
  (✓) Done: Search service: gptkb-6bicosdj5pee6
  (✓) Done: Container App: indexer
  (✓) Done: Container App: search

SUCCESS: Your application was provisioned in Azure in 8 minutes 43 seconds.
You can view the resources created under the resource group rg-test-openai-js in Azure Portal:
https://portal.azure.com/#@/resource/subscriptions/8b8dd26b-933a-4588-9b6e-7927cb9196bf/resourceGroups/rg-test-openai-js/overview

Deploying services (azd deploy)

  (x) Failed: Deploying service indexer

ERROR: failed deploying service 'indexer': failing invoking action 'deploy', updating container app service: updating container app revision: begin updating ingress traffic: PATCH https://management.azure.com/subscriptions/8b8dd26b-933a-4588-9b6e-7927cb9196bf/resourceGroups/rg-test-openai-js/providers/Microsoft.App/containerApps/indexer
--------------------------------------------------------------------------------
RESPONSE 400: 400 Bad Request
ERROR CODE: InvalidParameterValueInContainerTemplate
--------------------------------------------------------------------------------
{
  "error": {
    "code": "InvalidParameterValueInContainerTemplate",
    "message": "The following field(s) are either invalid or missing. Field 'template.containers.main.image' is invalid with details: 'Invalid value: \"cr6bicosdj5pee6.azurecr.io/azure-search-openai-javascript/indexer-test-openai-js:azd-deploy-1710782941\": GET https:?scope=repository%3Aazure-search-openai-javascript%2Findexer-test-openai-js%3Apull&service=cr6bicosdj5pee6.azurecr.io: UNAUTHORIZED: authentication required, visit https://aka.ms/acr/authorization for more information.';."
  }
}
--------------------------------------------------------------------------------

TraceID: 5b01f6783f45a9d1726b7e0cbe606366

ERROR: error executing step command 'deploy --all': failed deploying service 'indexer': failing invoking action 'deploy', updating container app service: updating container app revision: begin updating ingress traffic: PATCH https://management.azure.com/subscriptions/8b8dd26b-933a-4588-9b6e-7927cb9196bf/resourceGroups/rg-test-openai-js/providers/Microsoft.App/containerApps/indexer
--------------------------------------------------------------------------------
RESPONSE 400: 400 Bad Request
ERROR CODE: InvalidParameterValueInContainerTemplate
--------------------------------------------------------------------------------
{
  "error": {
    "code": "InvalidParameterValueInContainerTemplate",
    "message": "The following field(s) are either invalid or missing. Field 'template.containers.main.image' is invalid with details: 'Invalid value: \"cr6bicosdj5pee6.azurecr.io/azure-search-openai-javascript/indexer-test-openai-js:azd-deploy-1710782941\": GET https:?scope=repository%3Aazure-search-openai-javascript%2Findexer-test-openai-js%3Apull&service=cr6bicosdj5pee6.azurecr.io: UNAUTHORIZED: authentication required, visit https://aka.ms/acr/authorization for more information.';."
  }
}
--------------------------------------------------------------------------------

TraceID: 5b01f6783f45a9d1726b7e0cbe606366
@sinedied sinedied added bug Something isn't working infra Issues related to infrastructure duplicate and removed bug Something isn't working infra Issues related to infrastructure labels Mar 21, 2024
@sinedied
Copy link
Contributor

Thanks for reporting! This issue is already logged here: #161
I'm closing this one as a duplicate, please follow the updates on the issue linked above as we're working to fix it.

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