microsoft / PubSec-Info-Assistant

Information Assistant, built with Azure OpenAI Service, Industry Accelerator
MIT License
321 stars 680 forks source link

Enrichment Web App Failing #869

Open KevinDMack opened 12 hours ago

KevinDMack commented 12 hours ago

Bug Details

Currently am trying to deploy a new instance of the PubSec-Info-Assist and the enrichment web app doesn't come online, and deployment gets stuck in an infinite loop.

Steps To Reproduce

Running make deploy or run the following steps to isolate.

  1. fork repo
  2. git clone locally
  3. start devcontainer
  4. perform az login
  5. Run make build to build applications, which completes successfully.
  6. Run make infrastructure, which completes successfully.
  7. Run make extract-env, which completes successfully.
  8. Run make deploy-enrichments, then it deploys but when it starts making http calls to get health points, the deployment script is stuck deploying and continues on an infinite loop.

If I go and pull the log stream from the app, I get the following: container infoasst has exited, failing site start.
container infoasst didn't respond to http pings on port 8000, failing site start. See container logs for debugging.

The container logs show the following: 2024-09-30T18:34:57.851859282Z File "", line 1027, in _find_and_load 2024-09-30T18:34:57.851877182Z File "", line 992, in _find_and_load_unlocked 2024-09-30T18:34:57.851882482Z File "", line 241, in _call_with_frames_removed 2024-09-30T18:34:57.851886882Z File "", line 1050, in _gcd_import 2024-09-30T18:34:57.851891082Z File "", line 1027, in _find_and_load 2024-09-30T18:34:57.851895582Z File "", line 1004, in _find_and_load_unlocked 2024-09-30T18:34:57.851900482Z ModuleNotFoundError: No module named 'uvicorn' 2024-09-30T18:34:57.851904882Z ]

What is the expected behavior? That the deployment would finish successfully without failing.

Information Assistant details

Please provide the following details. You can simply include a screenshot of your Info panel as well.

GitHub branch: main Version or Latest commit: b6c3a3b82ca2b08b66f1a5d7dab78cca0f119188 author dayland, Date: 9/3/20:13:38 2024 +0100 What region is your Azure Open AI Service in? azure government , usgov arizona What ChatGPT model are you using? gpt-4o model name: (i.e. gpt-3.5-turbo, gpt-4)

model version: (i.e. 0613) 2024-05-13 What embeddings model are you using? text-embedding-ada-002 Additional context N/A

If the bug is confirmed, would you be willing to submit a PR?

KevinDMack commented 12 hours ago

Further note, I am seeing the same behavior when running the :

make deploy-webapp

The logs are returning the same: 2024-09-30T18:59:57.470792969Z File "", line 1027, in _find_and_load 2024-09-30T18:59:57.470808869Z File "", line 992, in _find_and_load_unlocked 2024-09-30T18:59:57.470813169Z File "", line 241, in _call_with_frames_removed 2024-09-30T18:59:57.470816469Z File "", line 1050, in _gcd_import 2024-09-30T18:59:57.470819869Z File "", line 1027, in _find_and_load 2024-09-30T18:59:57.470823169Z File "", line 1004, in _find_and_load_unlocked 2024-09-30T18:59:57.470826569Z ModuleNotFoundError: No module named 'uvicorn' 2024-09-30T18:59:57.470829769Z ]