azure-search-openai-demo
azure-search-openai-demo copied to clipboard
Starting backend issue
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
I am trying to start the application via my organization pipeline, but the app is failing.
Any log messages given by the failure
2024-02-05T14:40:40.195581854Z Using packages from virtual environment antenv located at /tmp/8dc242dc1a41a05/antenv. 2024-02-05T14:40:40.195615454Z Updated PYTHONPATH to '/opt/startup/app_logs:/tmp/8dc242dc1a41a05/antenv/lib/python3.11/site-packages' 2024-02-05T14:40:41.736616295Z [2024-02-05 14:40:41 +0000] [72] [INFO] Starting gunicorn 20.1.0 2024-02-05T14:40:41.742489741Z [2024-02-05 14:40:41 +0000] [72] [INFO] Listening at: http://0.0.0.0:8000/ (72) 2024-02-05T14:40:41.742881445Z [2024-02-05 14:40:41 +0000] [72] [INFO] Using worker: uvicorn.workers.UvicornWorker 2024-02-05T14:40:41.755249243Z [2024-02-05 14:40:41 +0000] [73] [INFO] Booting worker with pid: 73 2024-02-05T14:40:41.793667548Z [2024-02-05 14:40:41 +0000] [74] [INFO] Booting worker with pid: 74 2024-02-05T14:40:41.892852135Z [2024-02-05 14:40:41 +0000] [75] [INFO] Booting worker with pid: 75 2024-02-05T14:41:25.279428784Z [2024-02-05 14:41:25 +0000] [75] [INFO] Started server process [75] 2024-02-05T14:41:25.279827487Z [2024-02-05 14:41:25 +0000] [75] [INFO] Waiting for application startup. 2024-02-05T14:41:25.291846579Z [2024-02-05 14:41:25 +0000] [73] [INFO] Started server process [73] 2024-02-05T14:41:25.299144435Z [2024-02-05 14:41:25 +0000] [73] [INFO] Waiting for application startup. 2024-02-05T14:41:25.348731716Z [2024-02-05 14:41:25 +0000] [74] [INFO] Started server process [74] 2024-02-05T14:41:25.357403282Z [2024-02-05 14:41:25 +0000] [74] [INFO] Waiting for application startup. 2024-02-05T14:41:30.665380585Z [2024-02-05 14:41:30 +0000] [75] [ERROR] () Authorization failed. 2024-02-05T14:41:30.665834589Z Code: 2024-02-05T14:41:30.672456043Z Message: Authorization failed. 2024-02-05T14:41:30.674601260Z [2024-02-05 14:41:30 +0000] [75] [ERROR] Application startup failed. Exiting. 2024-02-05T14:41:30.705315911Z [2024-02-05 14:41:30 +0000] [73] [ERROR] () Authorization failed. 2024-02-05T14:41:30.705338811Z Code: 2024-02-05T14:41:30.705345211Z Message: Authorization failed. 2024-02-05T14:41:30.733045337Z [2024-02-05 14:41:30 +0000] [73] [ERROR] Application startup failed. Exiting. 2024-02-05T14:41:30.753442803Z [2024-02-05 14:41:30 +0000] [75] [INFO] Worker exiting (pid: 75) 2024-02-05T14:41:30.789702699Z [2024-02-05 14:41:30 +0000] [73] [INFO] Worker exiting (pid: 73) 2024-02-05T14:41:30.829946227Z [2024-02-05 14:41:30 +0000] [74] [ERROR] () Authorization failed. 2024-02-05T14:41:30.829967727Z Code: 2024-02-05T14:41:30.829973427Z Message: Authorization failed. 2024-02-05T14:41:30.839999409Z [2024-02-05 14:41:30 +0000] [74] [ERROR] Application startup failed. Exiting. 2024-02-05T14:41:30.878850826Z [2024-02-05 14:41:30 +0000] [74] [INFO] Worker exiting (pid: 74) 2024-02-05T14:41:37.296063919Z [2024-02-05 14:41:37 +0000] [72] [WARNING] Worker with pid 73 was terminated due to signal 15 2024-02-05T14:41:37.307332306Z [2024-02-05 14:41:37 +0000] [72] [WARNING] Worker with pid 74 was terminated due to signal 15 2024-02-05T14:41:37.343480786Z [2024-02-05 14:41:37 +0000] [72] [INFO] Shutting down: Master 2024-02-05T14:41:37.343500386Z [2024-02-05 14:41:37 +0000] [72] [INFO] Reason: Worker failed to boot.
Expected/desired behavior
I want the app to start and take in value the authentification for security purposes.
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) MacOS
azd version?
run
azd versionand copy paste here.
Versions
Mention any other details that might be useful
Thanks! We'll be in touch soon.
Thanks for reporting this. Did you run azd auth login before starting the project?
Our team found the solution. We use a managed identity to deploy the project. We needed to add in the Azure search OpenAI Chat Client / Server, the cloud application admin rights over the managed identity used to deploy the infrastructure.
It solved the issue :)