-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
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 want to enable the chat record function of cosmos db. I have set the environment variables in the terminal. However, after the app is deployed, the message AZURE_COSMOSDB_ACCOUNT must be set when USE_CHAT_HISTORY_COSMOS is true will still appear, causing the app to fail to start normally.
Any log messages given by the failure
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/quart/app.py", line 1700, in startup
await self.ensure_async(func)()
File "/app/chat_history/cosmosdb.py", line 173, in setup_clients
raise ValueError("AZURE_COSMOSDB_ACCOUNT must be set when USE_CHAT_HISTORY_COSMOS is true")
ValueError: AZURE_COSMOSDB_ACCOUNT must be set when USE_CHAT_HISTORY_COSMOS is true
2024-11-29 07:03:45,086 - ERROR - AZURE_COSMOSDB_ACCOUNT must be set when USE_CHAT_HISTORY_COSMOS is true
2024-11-29 07:03:45,087 - ERROR - Application startup failed. Exiting.
2024-11-29 07:03:45,087 - INFO - Worker exiting (pid: 9)
2024-11-29 07:03:45,401 - ERROR - Worker (pid:18) exited with code 3
2024-11-29 07:03:45,498 - ERROR - Worker (pid:9) was sent SIGTERM!
2024-11-29 07:03:45,510 - ERROR - Worker (pid:12) was sent SIGTERM!
2024-11-29 07:03:45,591 - ERROR - Worker (pid:8) was sent SIGTERM!
2024-11-29 07:03:45,599 - ERROR - Worker (pid:11) was sent SIGTERM!
2024-11-29 07:03:45,599 - ERROR - Worker (pid:15) was sent SIGTERM!
2024-11-29 07:03:45,602 - ERROR - Worker (pid:7) was sent SIGTERM!
2024-11-29 07:03:45,604 - ERROR - Worker (pid:13) was sent SIGTERM!
2024-11-29 07:03:45,605 - ERROR - Worker (pid:16) was sent SIGTERM!
2024-11-29 07:03:45,705 - ERROR - Shutting down: Master
2024-11-29 07:03:45,705 - ERROR - Reason: Worker failed to boot.
Expected/desired behavior
Able to use the chat history function normally
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
azd version?
run
azd version
and copy paste here.
Versions
azd version 1.11.0 (commit 5b92e0687e1fa96dfc8292f4b900c0c58610b6a5)
Mention any other details that might be useful
Thanks! We'll be in touch soon.