Azure-Samples / graphrag-accelerator

One-click deploy of a Knowledge Graph powered RAG (GraphRAG) in Azure
https://github.com/microsoft/graphrag
MIT License
1.89k stars 311 forks source link

[BUG]Error assigning role to service principal, exiting... #160

Open safdar23 opened 2 months ago

safdar23 commented 2 months ago
Describe the bug After running the deployment for 25 mins, i get the below error message Assigning 'Cognitive Services OpenAI Contributor' role to managed identity... ____ / Uh oh, an error has occurred. \ \ Please see message below. / ‾‾‾‾‾‾‾‾‾‾/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ / _ / / \ ~ ~ / \ /\ \o/ \o/ /
_/
\     /
 \___/

Error assigning role to service principal, exiting...

Error assigning role to service principal, exiting...

To Reproduce Steps to reproduce the behavior:

  1. Go to '.github ..'
  2. Click on '....deploy the deploy.sh'
  3. Scroll down to '....'
  4. See error

Expected behavior successful deployment Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

jgbradley1 commented 2 months ago

Can you describe the environment you were running the deployment script from? A local computer or from Codespaces for example? Some people have reported that running a deployment from Codespaces specifically can interfere with this step in the deployment process.

Also, is the AOAI instance you're using in the same Azure subscription as the resource group that you attempted to deploy the solution accelerator to?

vlad-tsoy commented 2 months ago

I just ran into the same issue. I was running on Mac OSX in a dev container. The AOAI instance is in the same Azure subscription as the resource group.

yan-barta commented 2 months ago

Also running into this issue. Running it in Dev Container in VSCode on MacOS. AOAI is in the same subscription. Assigning 'Cognitive Services OpenAI Contributor' role to managed identity... Unable to parse service principal id from azure outputs, exiting...

jamiexfonesbdo commented 2 months ago

I'm having the exact same issue, even when not running in dev container.

jamiexfonesbdo commented 2 months ago

For me it looks like this error message is not the root cause, it's because the resources aren't getting deployed. I'm getting these error messages in bicep (aswell as many more):

\wsl.localhost\Ubuntu-24.04\home\jamiexfones\graphrag-accelerator\infra\core\acr\acr.bicep(30,81) : Error BCP012: Expected the "for" keyword at this location. \wsl.localhost\Ubuntu-24.04\home\jamiexfones\graphrag-accelerator\infra\core\acr\acr.bicep(31,3) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration. \wsl.localhost\Ubuntu-24.04\home\jamiexfones\graphrag-accelerator\infra\core\acr\acr.bicep(32,5) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.

jamiexfonesbdo commented 2 months ago

Turns out for me the issue was az bicep being out of date!

soon-nl commented 1 month ago

Turns out for me the issue was az bicep being out of date!

How did you resolve this issue? Thanks