Deploying graphrag-accelerator

Gurinder Brar 0 Reputation points
2025-01-29T13:51:29.67+00:00

Following this example https://github.com/Azure-Samples/graphrag-accelerator/blob/main/docs/DEPLOYMENT-GUIDE.md
to deploy graphrag-accelerator.
the command

bash deploy.sh -p deploy.parameters.json

fails with error Registering GraphRAG API with APIM...

Checking for GraphRAG API availability...Backend Swagger URL: https://apim-3aa2hkbnsst76.azure-api.net/manpage/openapi.json

Looking at the logs - it is throwing a 503 error. I am deploying in region UK South.

output of run is below

bash deploy.sh -p deploy.parameters.json

   _____                 _     _____           _____

  / ____|               | |   |  __ \    /\   / ____|

 | |  __ _ __ __ _ _ __ | |__ | |__) |  /  \ | |  __

 | | |_ | '__/ ` | ' | '_ |  _  /  / /\ | | |_ |

 | || | | | (| | |) | | | | | \ \ / ____ | || |

  _||  _,_| ./|| |||  _//_   ______|

     /\           | | | |              | |

    /  \   ___ __||_| | ___ _ __ __ | | ___  _ __

   / /\ \ / __/ / _ | |/ _ | '/ _` | / _ | '|

  / ____ | (| (|  __| |  __| | | (| | || () | |

 //    ______||_||  _,|__/|_|

Checking for required tools... Done.

Checking required parameters... Done.

Checking optional parameters...

setting APIM_TIER=Developer

setting AISEARCH_ENDPOINT_SUFFIX=search.windows.net

setting AISEARCH_AUDIENCE=https://search.azure.com

setting PUBLISHER_NAME=publisher

setting PUBLISHER_EMAIL=publisher@microsoft.com

setting CLOUD_NAME=AzurePublicCloud

setting REPORTERS=blob,console,app_insights

setting GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT=https://cognitiveservices.azure.com/.default

setting GRAPHRAG_IMAGE=graphrag:backend

Done.

Checking cloud region for VM sku availability... Done.

Checking Location for SKU Quota Usage... Done.

Checking if resource group test-resource-group exists... Yes.

Checking if sshkey exists... Yes.

Checking if APIM was soft-deleted... Done.

Deploying Azure resources...

Deployment name: graphrag-deploy-2025-01-28_19-59-16

Assigning 'Cognitive Services OpenAI Contributor' role to managed identity... Done.

Deploying docker image 'graphrag:backend' to container registry 'cr3aa2hkbnsst76.azurecr.io'...

2025/01/28 20:04:08 Downloading source code...

2025/01/28 20:04:09 Finished downloading source code

2025/01/28 20:04:09 Using acb_vol_4cef27f4-66c8-4b86-a80c-e3cbec5ac29a as the home volume

2025/01/28 20:04:09 Setting up Docker configuration...

2025/01/28 20:04:10 Successfully set up Docker configuration

2025/01/28 20:04:10 Logging in to registry: cr3aa2hkbnsst76.azurecr.io

2025/01/28 20:04:11 Successfully logged into cr3aa2hkbnsst76.azurecr.io

2025/01/28 20:04:11 Executing step ID: build. Timeout(sec): 28800, Working directory: '', Network: ''

2025/01/28 20:04:11 Scanning for dependencies...

2025/01/28 20:04:11 Successfully scanned dependencies

2025/01/28 20:04:11 Launching container with name: build

Sending build context to Docker daemon  2.476MB

Step 1/15 : FROM mcr.microsoft.com/devcontainers/python:3.10-bookworm

3.10-bookworm: Pulling from devcontainers/python

fdf894e782a2: Pulling fs layer

5bd71677db44: Pulling fs layer

551df7f94f9c: Pulling fs layer

ce82e98d553d: Pulling fs layer

bd84c4462442: Pulling fs layer

4936f42e964c: Pulling fs layer

5ddbee3ba41e: Pulling fs layer

aade6c7cb9b8: Pulling fs layer

fe3c64d0712f: Pulling fs layer

f7e4e3d3cdd1: Pulling fs layer

b6322ee4ce7d: Pulling fs layer

26acda9a2854: Pulling fs layer

4832f5a2778a: Pulling fs layer

d387782ee9ee: Pulling fs layer

efab6f1438c3: Pulling fs layer

0cd0d4e709b6: Pulling fs layer

3485280c8931: Pulling fs layer

ce82e98d553d: Waiting

bd84c4462442: Waiting

4936f42e964c: Waiting

5ddbee3ba41e: Waiting

aade6c7cb9b8: Waiting

f7e4e3d3cdd1: Waiting

b6322ee4ce7d: Waiting

26acda9a2854: Waiting

4832f5a2778a: Waiting

d387782ee9ee: Waiting

efab6f1438c3: Waiting

0cd0d4e709b6: Waiting

3485280c8931: Waiting

fe3c64d0712f: Waiting

5bd71677db44: Verifying Checksum

5bd71677db44: Download complete

fdf894e782a2: Verifying Checksum

fdf894e782a2: Download complete

551df7f94f9c: Verifying Checksum

551df7f94f9c: Download complete

bd84c4462442: Verifying Checksum

bd84c4462442: Download complete

5ddbee3ba41e: Verifying Checksum

5ddbee3ba41e: Download complete

4936f42e964c: Verifying Checksum

4936f42e964c: Download complete

fe3c64d0712f: Verifying Checksum

fe3c64d0712f: Download complete

aade6c7cb9b8: Verifying Checksum

aade6c7cb9b8: Download complete

f7e4e3d3cdd1: Verifying Checksum

f7e4e3d3cdd1: Download complete

b6322ee4ce7d: Verifying Checksum

b6322ee4ce7d: Download complete

26acda9a2854: Verifying Checksum

26acda9a2854: Download complete

4832f5a2778a: Verifying Checksum

4832f5a2778a: Download complete

d387782ee9ee: Download complete

0cd0d4e709b6: Verifying Checksum

0cd0d4e709b6: Download complete

efab6f1438c3: Verifying Checksum

efab6f1438c3: Download complete

ce82e98d553d: Verifying Checksum

ce82e98d553d: Download complete

3485280c8931: Verifying Checksum

3485280c8931: Download complete

fdf894e782a2: Pull complete

5bd71677db44: Pull complete

551df7f94f9c: Pull complete

ce82e98d553d: Pull complete

bd84c4462442: Pull complete

4936f42e964c: Pull complete

5ddbee3ba41e: Pull complete

aade6c7cb9b8: Pull complete

fe3c64d0712f: Pull complete

f7e4e3d3cdd1: Pull complete

b6322ee4ce7d: Pull complete

26acda9a2854: Pull complete

4832f5a2778a: Pull complete

d387782ee9ee: Pull complete

efab6f1438c3: Pull complete

0cd0d4e709b6: Pull complete

3485280c8931: Pull complete

Digest: sha256:8a3c11850dd304f4345591bc698062248c164e0992c034926057e6bb248f62f9

Status: Downloaded newer image for mcr.microsoft.com/devcontainers/python:3.10-bookworm

 ---> 6abd8f47caa8

Step 2/15 : ARG GRAPHRAG_VERSION=0.0.0

 ---> Running in cd667c3ff616

Removing intermediate container cd667c3ff616

 ---> 76479616a380

Step 3/15 : ENV GRAPHRAG_VERSION=v${GRAPHRAG_VERSION}

 ---> Running in 06be85ebf88e

Removing intermediate container 06be85ebf88e

 ---> 226bdae24aeb

Step 4/15 : ENV PIP_ROOT_USER_ACTION=ignore

 ---> Running in 8aaf55699870

Removing intermediate container 8aaf55699870

 ---> 0c77a9993ab8

Step 5/15 : ENV PIP_DISABLE_PIP_VERSION_CHECK=1

 ---> Running in 636c148166c9

Removing intermediate container 636c148166c9

 ---> 38c461885502

Step 6/15 : ENV SETUPTOOLS_USE_DISTUTILS=stdlib

 ---> Running in b671ff648900

Removing intermediate container b671ff648900

 ---> 9b0a87ba7738

Step 7/15 : ENV PYTHONPATH=/backend

 ---> Running in 527d5df660c2

Removing intermediate container 527d5df660c2

 ---> 8efe3b468dc3

Step 8/15 : ENV TIKTOKEN_CACHE_DIR=/opt/tiktoken_cache/

 ---> Running in 3957aec228e4

Removing intermediate container 3957aec228e4

 ---> 0b52f0f7de38

Step 9/15 : COPY backend /backend

 ---> 7f42c2ad7bef

Step 10/15 : RUN cd backend     && pip install poetry     && poetry config virtualenvs.create false     && poetry install

 ---> Running in 4ebe7c3db706

Collecting poetry

  Downloading poetry-2.0.1-py3-none-any.whl (254 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 254.4/254.4 kB 13.0 MB/s eta 0:00:00

Collecting requests-toolbelt<2.0.0,>=1.0.0

  Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.5/54.5 kB 13.9 MB/s eta 0:00:00

Collecting trove-classifiers>=2022.5.19

  Downloading trove_classifiers-2025.1.15.22-py3-none-any.whl (13 kB)

Collecting cleo<3.0.0,>=2.1.0

  Downloading cleo-2.1.0-py3-none-any.whl (78 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.7/78.7 kB 17.2 MB/s eta 0:00:00

Collecting installer<0.8.0,>=0.7.0

  Downloading installer-0.7.0-py3-none-any.whl (453 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 453.8/453.8 kB 73.7 MB/s eta 0:00:00

Collecting requests<3.0,>=2.26

  Downloading requests-2.32.3-py3-none-any.whl (64 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.9/64.9 kB 13.2 MB/s eta 0:00:00

Collecting dulwich<0.23.0,>=0.22.6

  Downloading dulwich-0.22.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (980 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 980.3/980.3 kB 114.5 MB/s eta 0:00:00

Collecting packaging>=24.0

  Downloading packaging-24.2-py3-none-any.whl (65 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.5/65.5 kB 13.8 MB/s eta 0:00:00

Collecting build<2.0.0,>=1.2.1

  Downloading build-1.2.2.post1-py3-none-any.whl (22 kB)

Collecting tomli<3.0.0,>=2.0.1

  Downloading tomli-2.2.1-py3-none-any.whl (14 kB)

Collecting cachecontrol[filecache]<0.15.0,>=0.14.0

  Downloading cachecontrol-0.14.2-py3-none-any.whl (21 kB)

Collecting pkginfo<2.0,>=1.12

  Downloading pkginfo-1.12.0-py3-none-any.whl (32 kB)

Collecting platformdirs<5,>=3.0.0

  Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)

Collecting keyring<26.0.0,>=25.1.0

  Downloading keyring-25.6.0-py3-none-any.whl (39 kB)

Collecting fastjsonschema<3.0.0,>=2.18.0

  Downloading fastjsonschema-2.21.1-py3-none-any.whl (23 kB)

Collecting tomlkit<1.0.0,>=0.11.4

  Downloading tomlkit-0.13.2-py3-none-any.whl (37 kB)

Collecting pyproject-hooks<2.0.0,>=1.0.0

  Downloading pyproject_hooks-1.2.0-py3-none-any.whl (10 kB)

Collecting virtualenv<21.0.0,>=20.26.6

  Downloading virtualenv-20.29.1-py3-none-any.whl (4.3 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 126.0 MB/s eta 0:00:00

Collecting poetry-core==2.0.1

  Downloading poetry_core-2.0.1-py3-none-any.whl (544 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 544.8/544.8 kB 81.3 MB/s eta 0:00:00

Collecting shellingham<2.0,>=1.5

  Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)

Collecting msgpack<2.0.0,>=0.5.2

  Downloading msgpack-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (378 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 378.0/378.0 kB 56.2 MB/s eta 0:00:00

Collecting filelock>=3.8.0

  Downloading filelock-3.17.0-py3-none-any.whl (16 kB)

Collecting rapidfuzz<4.0.0,>=3.0.0

  Downloading rapidfuzz-3.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 161.4 MB/s eta 0:00:00

Collecting crashtest<0.5.0,>=0.4.1

  Downloading crashtest-0.4.1-py3-none-any.whl (7.6 kB)

Collecting urllib3>=1.25

  Downloading urllib3-2.3.0-py3-none-any.whl (128 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.4/128.4 kB 32.4 MB/s eta 0:00:00

Collecting jaraco.context

  Downloading jaraco.context-6.0.1-py3-none-any.whl (6.8 kB)

Collecting jaraco.classes

  Downloading jaraco.classes-3.4.0-py3-none-any.whl (6.8 kB)

Collecting importlib_metadata>=4.11.4

  Downloading importlib_metadata-8.6.1-py3-none-any.whl (26 kB)

Collecting SecretStorage>=3.2

  Downloading SecretStorage-3.3.3-py3-none-any.whl (15 kB)

Collecting jaraco.functools

  Downloading jaraco.functools-4.1.0-py3-none-any.whl (10 kB)

Collecting jeepney>=0.4.2

  Downloading jeepney-0.8.0-py3-none-any.whl (48 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.4/48.4 kB 11.7 MB/s eta 0:00:00

Collecting charset-normalizer<4,>=2

  Downloading charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (146 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 146.1/146.1 kB 34.8 MB/s eta 0:00:00

Collecting idna<4,>=2.5

  Downloading idna-3.10-py3-none-any.whl (70 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.4/70.4 kB 17.4 MB/s eta 0:00:00

Collecting certifi>=2017.4.17

  Downloading certifi-2024.12.14-py3-none-any.whl (164 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 164.9/164.9 kB 42.4 MB/s eta 0:00:00

Collecting distlib<1,>=0.3.7

  Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 469.0/469.0 kB 81.7 MB/s eta 0:00:00

Collecting zipp>=3.20

  Downloading zipp-3.21.0-py3-none-any.whl (9.6 kB)

Collecting cryptography>=2.0

  Downloading cryptography-44.0.0-cp39-abi3-manylinux_2_28_x86_64.whl (4.2 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 153.6 MB/s eta 0:00:00

Collecting more-itertools

  Downloading more_itertools-10.6.0-py3-none-any.whl (63 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.0/63.0 kB 16.4 MB/s eta 0:00:00

Collecting backports.tarfile

  Downloading backports.tarfile-1.2.0-py3-none-any.whl (30 kB)

Collecting cffi>=1.12

  Downloading cffi-1.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (446 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.2/446.2 kB 81.9 MB/s eta 0:00:00

Collecting pycparser

  Downloading pycparser-2.22-py3-none-any.whl (117 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.6/117.6 kB 28.2 MB/s eta 0:00:00

Installing collected packages: trove-classifiers, fastjsonschema, distlib, zipp, urllib3, tomlkit, tomli, shellingham, rapidfuzz, pyproject-hooks, pycparser, poetry-core, platformdirs, pkginfo, packaging, msgpack, more-itertools, jeepney, installer, idna, filelock, crashtest, charset-normalizer, certifi, backports.tarfile, virtualenv, requests, jaraco.functools, jaraco.context, jaraco.classes, importlib_metadata, dulwich, cleo, cffi, build, requests-toolbelt, cryptography, cachecontrol, SecretStorage, keyring, poetry

Successfully installed SecretStorage-3.3.3 backports.tarfile-1.2.0 build-1.2.2.post1 cachecontrol-0.14.2 certifi-2024.12.14 cffi-1.17.1 charset-normalizer-3.4.1 cleo-2.1.0 crashtest-0.4.1 cryptography-44.0.0 distlib-0.3.9 dulwich-0.22.7 fastjsonschema-2.21.1 filelock-3.17.0 idna-3.10 importlib_metadata-8.6.1 installer-0.7.0 jaraco.classes-3.4.0 jaraco.context-6.0.1 jaraco.functools-4.1.0 jeepney-0.8.0 keyring-25.6.0 more-itertools-10.6.0 msgpack-1.1.0 packaging-24.2 pkginfo-1.12.0 platformdirs-4.3.6 poetry-2.0.1 poetry-core-2.0.1 pycparser-2.22 pyproject-hooks-1.2.0 rapidfuzz-3.11.0 requests-2.32.3 requests-toolbelt-1.0.0 shellingham-1.5.4 tomli-2.2.1 tomlkit-0.13.2 trove-classifiers-2025.1.15.22 urllib3-2.3.0 virtualenv-20.29.1 zipp-3.21.0

Skipping virtualenv creation, as specified in config file.

Installing dependencies from lock file

Package operations: 221 installs, 4 updates, 0 removals

  - Installing attrs (24.3.0)

  - Installing rpds-py (0.22.3)

  - Installing referencing (0.35.1)

  - Installing six (1.17.0)

  - Installing jsonschema-specifications (2024.10.1)

  - Installing python-dateutil (2.9.0.post0)

  - Installing traitlets (5.14.3)

  - Installing types-python-dateutil (2.9.0.20241206)

  - Installing arrow (1.3.0)

  - Installing jsonschema (4.23.0)

  - Installing pyzmq (26.2.0)

  - Installing jupyter-core (5.7.2)

  - Installing tornado (6.4.2)

  - Installing fqdn (1.5.1)

  - Installing isoduration (20.11.0)

  - Installing jsonpointer (3.0.0)

  - Installing jupyter-client (8.6.3)

  - Installing markupsafe (3.0.2)

  - Installing nbformat (5.10.4)

  - Installing ptyprocess (0.7.0)

  - Installing rfc3339-validator (0.1.4)

  - Installing rfc3986-validator (0.1.1)

  - Installing soupsieve (2.6)

  - Installing typing-extensions (4.12.2)

  - Installing uri-template (1.3.0)

  - Installing webcolors (24.11.1)

  - Installing webencodings (0.5.1)

  - Installing argon2-cffi-bindings (21.2.0)

  - Installing asttokens (2.4.1)

  - Installing bleach (6.2.0)

  - Installing beautifulsoup4 (4.12.3)

  - Installing defusedxml (0.7.1)

  - Installing exceptiongroup (1.2.2)

  - Installing executing (2.1.0)

  - Installing jinja2 (3.1.5)

  - Installing jupyterlab-pygments (0.3.0)

  - Installing locket (1.0.0)

  - Installing mistune (3.1.0)

  - Installing nbclient (0.10.2)

  - Installing numpy (1.26.4)

  - Installing pandocfilters (1.5.1)

  - Installing parso (0.8.4)

  - Installing pure-eval (0.2.3)

  - Installing pygments (2.18.0)

  - Installing python-json-logger (3.2.1)

  - Installing pyyaml (6.0.2)

  - Installing sniffio (1.3.1)

  - Installing terminado (0.18.1)

  - Installing tinycss2 (1.4.0)

  - Installing toolz (1.0.0)

  - Installing wcwidth (0.2.13)

  - Installing anyio (4.7.0)

  - Installing argon2-cffi (23.1.0)

  - Installing click (8.1.8)

  - Installing decorator (5.1.1)

  - Installing cloudpickle (3.1.0)

  - Installing fsspec (2024.12.0)

  - Installing h11 (0.14.0)

  - Downgrading importlib-metadata (8.6.1 -> 8.5.0)

  - Installing jedi (0.19.2)

  - Installing joblib (1.4.2)

  - Installing jupyter-events (0.11.0)

  - Installing jupyter-server-terminals (0.5.3)

  - Installing llvmlite (0.43.0)

  - Installing matplotlib-inline (0.1.7)

  - Installing mdurl (0.1.2)

  - Installing nbconvert (7.16.4)

  - Installing overrides (7.7.0)

  - Installing partd (1.4.2)

  - Installing pexpect (4.9.0)

  - Installing prometheus-client (0.21.1)

  - Installing prompt-toolkit (3.0.48)

  - Installing pytz (2024.2)

  - Installing scipy (1.12.0)

  - Installing send2trash (1.8.3)

  - Installing stack-data (0.6.3)

  - Installing threadpoolctl (3.5.0)

  - Installing tzdata (2024.2)

  - Installing websocket-client (1.8.0)

  - Installing wrapt (1.17.0)

  - Installing babel (2.16.0)

  - Installing comm (0.2.2)

  - Installing contourpy (1.3.1)

  - Installing cycler (0.12.1)

  - Installing dask (2024.12.1)

  - Installing debugpy (1.8.11)

  - Installing deprecated (1.2.15)

  - Installing fonttools (4.55.3)

  - Installing httpcore (1.0.7)

  - Installing ipython (8.31.0)

  - Installing json5 (0.10.0)

  - Installing jupyter-server (2.15.0)

  - Installing kiwisolver (1.4.8)

  - Installing markdown-it-py (3.0.0)

  - Installing nest-asyncio (1.6.0)

  - Installing numba (0.60.0)

  - Installing pandas (2.2.3)

  - Installing pillow (11.0.0)

  - Installing psutil (5.9.8)

  - Installing pyarrow (15.0.2)

  - Installing pyjwt (2.10.1)

  - Installing pyparsing (3.2.0)

  - Installing scikit-learn (1.6.0)

  - Installing uc-micro-py (1.0.3)

  - Installing annotated-types (0.7.0)

  - Installing async-lru (2.0.4)

  - Installing dask-expr (1.1.21)

  - Installing autograd (1.7.0)

  - Installing frozenlist (1.5.0)

  - Installing httpx (0.28.1)

  - Installing ipykernel (6.29.5)

  - Installing jupyter-lsp (2.2.5)

  - Installing jupyterlab-server (2.27.3)

  - Installing linkify-it-py (2.0.3)

  - Installing matplotlib (3.10.0)

  - Installing mdit-py-plugins (0.4.2)

  - Installing msal (1.31.1)

  - Installing multidict (6.1.0)

  - Installing notebook-shim (0.2.4)

  - Installing oauthlib (3.2.2)

  - Installing opentelemetry-api (1.29.0)

  - Installing patsy (1.0.1)

  - Installing portalocker (2.10.1)

  - Installing propcache (0.2.1)

  - Installing py (1.11.0)

  - Installing pyasn1 (0.6.1)

  - Installing pydantic-core (2.27.2)

  - Installing pynndescent (0.5.13)

  - Updating setuptools (69.0.3 -> 75.6.0)

  - Installing smart-open (7.1.0)

  - Installing tqdm (4.67.1)

  - Installing aiohappyeyeballs (2.4.4)

  - Installing aiosignal (1.3.2)

  - Installing async-timeout (5.0.1)

  - Installing azure-common (1.1.28)

  - Installing anytree (2.12.1)

  - Installing azure-core (1.32.0)

  - Installing beartype (0.18.5)

  - Installing cachetools (5.5.0)

  - Installing cramjam (2.9.1)

  - Installing deprecation (2.1.0)

  - Installing diskcache (5.6.3)

  - Installing distro (1.9.0)

  - Downgrading filelock (3.17.0 -> 3.16.1)

  - Installing gensim (4.3.3)

  - Installing graspologic-native (1.2.1)

  - Installing hyppo (0.4.0)

  - Installing isodate (0.7.2)

  - Installing jiter (0.8.2)

  - Installing jupyterlab (4.3.4)

  - Installing jupyterlab-widgets (3.0.13)

  - Installing marshmallow (3.23.2)

  - Installing msal-extensions (1.2.0)

  - Installing networkx (3.4.2)

  - Installing opentelemetry-semantic-conventions (0.50b0)

  - Installing pot (0.9.5)

  - Installing pyasn1-modules (0.4.1)

  - Installing pydantic (2.10.4)

  - Installing pylance (0.16.0)

  - Installing python-dotenv (1.0.1)

  - Installing ratelimiter (1.2.0.post0)

  - Installing regex (2024.11.6)

  - Installing requests-oauthlib (2.0.0)

  - Installing retry (0.9.2)

  - Installing rich (13.9.4)

  - Installing rsa (4.9)

  - Installing seaborn (0.13.2)

  - Installing starlette (0.41.3)

  - Installing statsmodels (0.14.4)

  - Installing umap-learn (0.5.7)

  - Installing widgetsnbextension (4.0.13)

  - Installing yarl (1.18.3)

  - Installing aiofiles (24.1.0)

  - Installing aiohttp (3.11.11)

  - Installing aiolimiter (1.2.1)

  - Installing azure-identity (1.19.0)

  - Installing azure-datalake-store (0.0.53)

  - Installing azure-search-documents (11.5.2)

  - Installing azure-storage-blob (12.24.0)

  - Installing cfgv (3.4.0)

  - Installing datashaper (0.0.49)

  - Installing devtools (0.12.2)

  - Installing durationpy (0.9)

  - Installing environs (11.2.1)

  - Installing fastapi (0.115.6)

  - Installing fastparquet (2024.11.0)

  - Installing fixedint (0.1.6)

  - Installing future (1.0.0)

  - Installing google-auth (2.37.0)

  - Installing graspologic (3.4.1)

  - Installing identify (2.6.4)

  - Installing ipywidgets (8.1.5)

  - Installing json-repair (0.28.4)

  - Installing jupyter-console (6.6.3)

  - Installing lancedb (0.12.0)

  - Installing mccabe (0.7.0)

  - Installing msrest (0.7.1)

  - Installing nltk (3.9.1)

  - Installing nodeenv (1.9.1)

  - Installing notebook (7.3.2)

  - Installing openai (1.58.1)

  - Installing opentelemetry-sdk (1.29.0)

  - Installing pyaml-env (1.2.1)

  - Installing pycodestyle (2.12.1)

  - Installing pyflakes (3.2.0)

  - Installing swifter (1.4.0)

  - Installing tenacity (9.0.0)

  - Installing textual (0.78.0)

  - Installing tiktoken (0.7.0)

  - Installing uvloop (0.20.0)

  - Downgrading virtualenv (20.29.1 -> 20.28.0)

  - Installing adlfs (2024.12.0)

  - Installing applicationinsights (0.11.10)

  - Installing azure-cosmos (4.9.0)

  - Installing detect-secrets (1.5.0)

  - Installing fastapi-offline (1.7.3)

  - Installing azure-monitor-opentelemetry-exporter (1.0.0b32)

  - Installing flake8 (7.1.1)

  - Installing graphrag (0.3.3)

  - Installing jupyter (1.1.1)

  - Installing kubernetes (31.0.0)

  - Installing pre-commit (4.0.1)

  - Installing python-multipart (0.0.20)

  - Installing ruff (0.8.4)

  - Installing uvicorn (0.34.0)

Removing intermediate container 4ebe7c3db706

 ---> 995b83a33eae

Step 11/15 : RUN python -c "import nltk;nltk.download(['punkt','averaged_perceptron_tagger','maxent_ne_chunker','words','wordnet'])"

 ---> Running in 2f3740c85c4e

[nltk_data] Downloading package punkt to /root/nltk_data...

[nltk_data]   Unzipping tokenizers/punkt.zip.

[nltk_data] Downloading package averaged_perceptron_tagger to

[nltk_data]     /root/nltk_data...

[nltk_data]   Unzipping taggers/averaged_perceptron_tagger.zip.

[nltk_data] Downloading package maxent_ne_chunker to

[nltk_data]     /root/nltk_data...

[nltk_data]   Unzipping chunkers/maxent_ne_chunker.zip.

[nltk_data] Downloading package words to /root/nltk_data...

[nltk_data]   Unzipping corpora/words.zip.

[nltk_data] Downloading package wordnet to /root/nltk_data...

Removing intermediate container 2f3740c85c4e

 ---> 57d54b485baa

Step 12/15 : RUN python -c "import tiktoken; tiktoken.encoding_for_model('gpt-3.5-turbo'); tiktoken.encoding_for_model('gpt-4'); tiktoken.encoding_for_model('gpt-4o');"

 ---> Running in 76f8084268a9

Removing intermediate container 76f8084268a9

 ---> aed6bc3b1f34

Step 13/15 : WORKDIR /backend

 ---> Running in 8c4538ccc856

Removing intermediate container 8c4538ccc856

 ---> 840456472a0a

Step 14/15 : EXPOSE 80

 ---> Running in 5729c140e2ae

Removing intermediate container 5729c140e2ae

 ---> a028351e5049

Step 15/15 : CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "80"]

 ---> Running in f51e222144e0

Removing intermediate container f51e222144e0

 ---> e988764cd236

Successfully built e988764cd236

Successfully tagged cr3aa2hkbnsst76.azurecr.io/graphrag:backend

2025/01/28 20:06:01 Successfully executed container: build

2025/01/28 20:06:01 Executing step ID: push. Timeout(sec): 3600, Working directory: '', Network: ''

2025/01/28 20:06:01 Pushing image: cr3aa2hkbnsst76.azurecr.io/graphrag:backend, attempt 1

The push refers to repository [cr3aa2hkbnsst76.azurecr.io/graphrag]

a886684e0dac: Preparing

58985acc91e3: Preparing

9f0f77f72aa0: Preparing

99a55617f54f: Preparing

f0426040751d: Preparing

79e39a77ed4e: Preparing

682cf26e76b0: Preparing

bac0f70043e3: Preparing

d99ef6bf1fdb: Preparing

7f2028ea1911: Preparing

dd123ad7aac4: Preparing

fc5f98dc4688: Preparing

0afdc54c48fd: Preparing

44c952ad9f2c: Preparing

5a8facc0bb33: Preparing

bc979ff557a4: Preparing

961b75ccd986: Preparing

0aeeeb7c293d: Preparing

c81d4fdb67fc: Preparing

0e82d78b3ea1: Preparing

301c1bb42cc0: Preparing

79e39a77ed4e: Waiting

682cf26e76b0: Waiting

bac0f70043e3: Waiting

d99ef6bf1fdb: Waiting

7f2028ea1911: Waiting

dd123ad7aac4: Waiting

fc5f98dc4688: Waiting

0afdc54c48fd: Waiting

44c952ad9f2c: Waiting

5a8facc0bb33: Waiting

bc979ff557a4: Waiting

961b75ccd986: Waiting

301c1bb42cc0: Waiting

0aeeeb7c293d: Waiting

c81d4fdb67fc: Waiting

0e82d78b3ea1: Waiting

f0426040751d: Layer already exists

79e39a77ed4e: Layer already exists

682cf26e76b0: Layer already exists

99a55617f54f: Pushed

bac0f70043e3: Layer already exists

d99ef6bf1fdb: Layer already exists

a886684e0dac: Pushed

7f2028ea1911: Layer already exists

dd123ad7aac4: Layer already exists

fc5f98dc4688: Layer already exists

0afdc54c48fd: Layer already exists

44c952ad9f2c: Layer already exists

bc979ff557a4: Layer already exists

961b75ccd986: Layer already exists

c81d4fdb67fc: Layer already exists

0e82d78b3ea1: Layer already exists

5a8facc0bb33: Layer already exists

0aeeeb7c293d: Layer already exists

58985acc91e3: Pushed

301c1bb42cc0: Pushed

9f0f77f72aa0: Pushed

backend: digest: sha256:39ca1a0377e3bcf422d7928a97e4c50a21c5184189e9d5ee35318cd6b76b3791 size: 4742

2025/01/28 20:07:22 Successfully pushed image: cr3aa2hkbnsst76.azurecr.io/graphrag:backend

2025/01/28 20:07:22 Step ID: build marked as successful (elapsed time in seconds: 110.131550)

2025/01/28 20:07:22 Populating digests for step ID: build...

2025/01/28 20:07:23 Successfully populated digests for step ID: build

2025/01/28 20:07:23 Step ID: push marked as successful (elapsed time in seconds: 80.952780)

2025/01/28 20:07:23 The following dependencies were found:

2025/01/28 20:07:23 

  • image:

    registry: cr3aa2hkbnsst76.azurecr.io

    repository: graphrag

    tag: backend

    digest: sha256:39ca1a0377e3bcf422d7928a97e4c50a21c5184189e9d5ee35318cd6b76b3791

  runtime-dependency:

    registry: mcr.microsoft.com

    repository: devcontainers/python

    tag: 3.10-bookworm

    digest: sha256:8a3c11850dd304f4345591bc698062248c164e0992c034926057e6bb248f62f9

  git: {}

Run ID: db6 was successful after 3m15s

Getting AKS credentials... Merged "aks-3aa2hkbnsst76" as current context in /Users/gurinderbrar/.kube/config

RBAC service might reject creating role assignment without --assignee-principal-type in the future. Better to specify --assignee-principal-type manually.

{

  "condition": null,

  "conditionVersion": null,

  "createdBy": "d1de4b50-eb17-4222-bd33-08b9057556a8",

  "createdOn": "2025-01-28T11:46:55.777050+00:00",

  "delegatedManagedIdentityResourceId": null,

  "description": null,

  "id": "/subscriptions/ddf8c2b5-fb13-42c7-a47c-cae1fcc97946/resourcegroups/test-resource-group/providers/Microsoft.ContainerService/managedClusters/aks-3aa2hkbnsst76/providers/Microsoft.Authorization/roleAssignments/d32f7f95-f9ce-434f-b775-c19d7986a134",

  "name": "d32f7f95-f9ce-434f-b775-c19d7986a134",

  "principalId": "d1de4b50-eb17-4222-bd33-08b9057556a8",

  "principalName": "gurinder.brar@kainos.com",

  "principalType": "User",

  "resourceGroup": "test-resource-group",

  "roleDefinitionId": "/subscriptions/ddf8c2b5-fb13-42c7-a47c-cae1fcc97946/providers/Microsoft.Authorization/roleDefinitions/b1ff04bb-8a4e-4dc4-8eb5-8693973ce19b",

  "roleDefinitionName": "Azure Kubernetes Service RBAC Cluster Admin",

  "scope": "/subscriptions/ddf8c2b5-fb13-42c7-a47c-cae1fcc97946/resourcegroups/test-resource-group/providers/Microsoft.ContainerService/managedClusters/aks-3aa2hkbnsst76",

  "type": "Microsoft.Authorization/roleAssignments",

  "updatedBy": "d1de4b50-eb17-4222-bd33-08b9057556a8",

  "updatedOn": "2025-01-28T11:46:55.777050+00:00"

}

Context "aks-3aa2hkbnsst76" modified.

Done

Deploying graphrag helm chart... 

  • helm upgrade -i graphrag ./helm/graphrag -f ./helm/graphrag/values.yaml --namespace graphrag --create-namespace --set serviceAccount.name=graphrag-workload-sa --set 'serviceAccount.annotations.azure.workload.identity/client-id=8af1d873-4686-4430-ae73-9b4458adb95e' --set master.image.repository=cr3aa2hkbnsst76.azurecr.io/graphrag --set master.image.tag=backend --set ingress.host=graphrag.graphrag.io --set 'graphragConfig.APP_INSIGHTS_CONNECTION_STRING=InstrumentationKey=b5ecb097-dde0-48ed-a7b5-723532303076;IngestionEndpoint=https://uksouth-1.in.applicationinsights.azure.com/;LiveEndpoint=https://uksouth.livediagnostics.monitor.azure.com/;ApplicationId=a8f352d0-9e1b-4c14-bb7c-ffb9abb92792' --set graphragConfig.AI_SEARCH_URL=https://srch-3aa2hkbnsst76.search.windows.net --set graphragConfig.AI_SEARCH_AUDIENCE=https://search.azure.com --set graphragConfig.COSMOS_URI_ENDPOINT=https://cosmos-3aa2hkbnsst76.documents.azure.com:443/ --set graphragConfig.GRAPHRAG_API_BASE=https://azure-openai-test-01.openai.azure.com --set graphragConfig.GRAPHRAG_API_VERSION=2023-03-15-preview --set graphragConfig.GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT=https://cognitiveservices.azure.com/.default --set graphragConfig.GRAPHRAG_LLM_MODEL=gpt-4 --set graphragConfig.GRAPHRAG_LLM_DEPLOYMENT_NAME=gpt-4 --set graphragConfig.GRAPHRAG_EMBEDDING_MODEL=text-embedding-ada-002 --set graphragConfig.GRAPHRAG_EMBEDDING_DEPLOYMENT_NAME=text-embedding-ada-002 --set 'graphragConfig.REPORTERS=blob,console,app_insights' --set graphragConfig.STORAGE_ACCOUNT_BLOB_URL=https://st3aa2hkbnsst76.blob.core.windows.net/

Release "graphrag" has been upgraded. Happy Helming!

NAME: graphrag

LAST DEPLOYED: Tue Jan 28 20:07:47 2025

NAMESPACE: graphrag

STATUS: deployed

REVISION: 6

NOTES:

Thank you for installing graphrag.

Your release is named graphrag.

To learn more about the release, try:

  $ helm status graphrag

  $ helm get all graphrag

  • local helmResult=0
  • true
  • set +x

Checking for GraphRAG external IP Available.

Registering GraphRAG API with APIM...

Checking for GraphRAG API availability...Backend Swagger URL: https://apim-3aa2hkbnsst76.azure-api.net/manpage/openapi.json

.................... Failed.

 ________________________________

/  Uh oh, an error has occurred. \

\  Please see message below.     /

 ‾‾‾‾‾‾‾‾‾‾/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾

          /

      __ /

     /  \

    ~    ~

   / \  /_\

   \o/  \o/

    |    |

    ||   |/

    ||   ||

    ||   ||

    | _/ |

    \     /

     ___/

GraphRAG API unavailable, exiting...

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,977 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel FANG 1,060 Reputation points MVP
    2025-02-01T12:08:13.03+00:00

    it seems to indicate the backend service for the api is not yet ready. could be just a timing issue that the container takes longer to start up. try to manually open that url and see if the service is up and running.

    if so, might just increase the maxTries 20 to higher number. check line 492 in the deploy.sh.

    
    waitForGraphragBackend () {
        local backendSwaggerUrl=$1
        local -i maxTries=20
        local available="false"
        printf "Checking for GraphRAG API availability..."
        for ((i=0;i < $maxTries; i++)); do
            az rest --method get --url $backendSwaggerUrl > /dev/null 2>&1
            if [ $? -eq 0 ]; then
                available="true"
                break
            fi
            sleep 20
            printf "."
        done
        if [ $available == "true" ]; then
            printf " Available.\n"
        else
            printf " Failed.\n"
            exitIfValueEmpty "" "GraphRAG API unavailable, exiting..."
        fi
    }
    
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.