Azure-Samples / openai-aca-lb

Smart load balancing for Azure OpenAI endpoints
MIT License
41 stars 17 forks source link

azd-hooks/postprovision.sh: Permission denied when trying to azd up #14

Closed adp-douglaswross closed 6 months ago

adp-douglaswross commented 6 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. clone the repo
  2. azd up
  3. Most of the infra is created, then running azd-hooks/postprovision.sh - permission denied in the script

Any log messages given by the failure

/bin/sh: azd-hooks/postprovision.sh: Permission denied

ERROR: failed running post hooks: 'postprovision' hook failed with exit code: '126', Path: 'azd-hooks/postprovision.sh'. : exit code: 126

ERROR: error executing step command 'provision': failed running post hooks: 'postprovision' hook failed with exit code: '126', Path: 'azd-hooks/postprovision.sh'. : exit code: 126

Expected/desired behavior

OS and Version?

macOS Sonoma 14.4.1 Found this from azure-search-openai-demo - that installs perfectly, so not sure if I am not setting some permissions appropriately, although I have myself at full access in my subscription, so I am guessing it is not something I have not setup

Versions

Mention any other details that might be useful

Also checking if this is being actively worked on


Thanks! We'll be in touch soon.

v-thepet commented 6 months ago

May 8 2024

Same issue at the same point, for both this demo and https://github.com/Azure-Samples/openai-apim-lb/.

Windows 11, running in GitHub Codespaces (Linux)

Did azd down --purge --force and repro'ed twice. azure-search-open-ai demo installed correctly.

Azure portal deployment page has this message (related?); No registered resource provider found for location 'eastus2' and API version '2024-02-02-preview' for type 'managedEnvironments/dotNetComponents'. The supported api-versions are '2023-11-02-preview'. The supported locations are 'northcentralusstage, westus2, southeastasia, swedencentral, canadacentral, westeurope, northeurope, eastus, eastus2, eastasia, australiaeast, germanywestcentral, japaneast, uksouth, westus, centralus, northcentralus, southcentralus, koreacentral, brazilsouth, westus3, francecentral, southafricanorth, norwayeast, switzerlandnorth, uaenorth, canadaeast, westcentralus, ukwest, centralindia, italynorth, polandcentral'.

diberry commented 6 months ago

@andredewes

The readme needs to say you need to login with az before doing the azd up:

  1. az login --use-device-code
  2. azd auth login --use-device-code
  3. azd up
andredewes commented 6 months ago

Fixed the permission issue and updated the README instructions.