graphrag-accelerator icon indicating copy to clipboard operation
graphrag-accelerator copied to clipboard

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

Open safdar23 opened this issue 1 year ago • 8 comments

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):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

safdar23 avatar Aug 28 '24 17:08 safdar23

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?

jgbradley1 avatar Sep 06 '24 16:09 jgbradley1

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.

vlad-tsoy avatar Sep 06 '24 22:09 vlad-tsoy

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...

yan-barta avatar Sep 11 '24 14:09 yan-barta

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

jamiexfonesbdo avatar Sep 13 '24 20:09 jamiexfonesbdo

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 avatar Sep 15 '24 17:09 jamiexfonesbdo

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

jamiexfonesbdo avatar Sep 17 '24 16:09 jamiexfonesbdo

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

How did you resolve this issue? Thanks

soon-nl avatar Oct 08 '24 18:10 soon-nl

is this bug still open? is there any fix available? please mention what has worked, i get the same problem too.

jpalepu avatar Feb 21 '25 16:02 jpalepu