litellm - 💡(How to fix) Fix [Bug]: Database connection failed when running in database mode on Windows (v1.83.11) [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#26594Fetched 2026-04-28 06:26:39
View on GitHub
Comments
1
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3commented ×1

Error Message

19:48:29 - LiteLLM:DEBUG: utils.py:5915 - Error getting model info: This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json 19:48:29 - LiteLLM:DEBUG: utils.py:5915 - Error getting model info: This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json 19:48:29 - LiteLLM:DEBUG: utils.py:5915 - Error getting model info: This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json 19:48:29 - LiteLLM:DEBUG: utils.py:5915 - Error getting model info: This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json 19:48:30 - LiteLLM Proxy:ERROR: utils.py:2716 - LiteLLM Prisma Client Exception get_generic_data: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): 19:48:32 - LiteLLM Proxy:ERROR: utils.py:2716 - LiteLLM Prisma Client Exception get_generic_data: All connection attempts failed 19:48:32 - LiteLLM Proxy:ERROR: utils.py:2716 - LiteLLM Prisma Client Exception get_generic_data: All connection attempts failed 19:48:32 - LiteLLM Proxy:ERROR: utils.py:2716 - LiteLLM Prisma Client Exception get_generic_data: All connection attempts failed 19:48:32 - LiteLLM Proxy:ERROR: proxy_server.py:4895 - litellm.proxy.proxy_server.py::ProxyConfig:add_deployment - All connection attempts failed Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): 19:48:35 - LiteLLM Proxy:ERROR: proxy_server.py:5663 - litellm.proxy_server.py::get_credentials() - Error getting credentials from DB - All connection attempts failed Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): 19:48:37 - LiteLLM Proxy:ERROR: cloudzero_endpoints.py:292 - Error checking CloudZero status: All connection attempts failed 19:48:37 - LiteLLM Proxy:ERROR: utils.py:4408 - Error getting LiteLLM_SpendLogs row count: All connection attempts failed

RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

I’m encountering a database connection failure when running the application in database mode on Windows with version 1.83.11.

OS: Windows [e.g., Windows 10 Pro, 64-bit] Version: 1.83.11 Mode: Database mode Expected Behavior: Application should successfully connect to and use the database.

debugpy 正在侦听 127.0.0.1:59,765 19:48:28 - LiteLLM Proxy:DEBUG: litellm_license.py:29 - License Str value - None 19:48:28 - LiteLLM Proxy:DEBUG: litellm_license.py:104 - litellm.proxy.auth.litellm_license.py::is_premium() - ENTERING 'IS_PREMIUM' - LiteLLM License=None 19:48:28 - LiteLLM Proxy:DEBUG: litellm_license.py:114 - litellm.proxy.auth.litellm_license.py::is_premium() - Updated 'self.license_str' - None 19:48:28 - LiteLLM Proxy:INFO: proxy_server.py:1372 - Using packaged UI directory: D:\PycharmProjects\litellm\litellm\proxy_experimental\out 19:48:28 - LiteLLM Proxy:DEBUG: proxy_server.py:1264 - Detected restructured UI via pattern: found 404/index.html 19:48:28 - LiteLLM Proxy:INFO: proxy_server.py:1484 - Skipping UI restructuring: D:\PycharmProjects\litellm\litellm\proxy_experimental\out is already pre-restructured 19:48:28 - LiteLLM:DEBUG: logging_callback_manager.py:336 - Custom logger of type _PROXY_VirtualKeyModelMaxBudgetLimiter, key: _PROXY_VirtualKeyModelMaxBudgetLimiter already exists in [<litellm.proxy.hooks.litellm_skills.main.SkillsInjectionHook object at 0x0000026502C107A0>, <litellm.proxy.hooks.model_max_budget_limiter._PROXY_VirtualKeyModelMaxBudgetLimiter object at 0x0000026520756C60>], not adding again.. INFO: Started server process [15428] INFO: Waiting for application startup. 19:48:29 - LiteLLM Proxy:DEBUG: proxy_server.py:804 - litellm.proxy.proxy_server.py::startup() - CHECKING PREMIUM USER - False 19:48:29 - LiteLLM Proxy:DEBUG: proxy_server.py:817 - worker_config: {"model": null, "alias": null, "api_base": null, "api_version": "2025-02-01-preview", "debug": true, "detailed_debug": true, "temperature": null, "max_tokens": null, "request_timeout": null, "max_budget": null, "telemetry": true, "drop_params": false, "add_function_to_prompt": false, "headers": null, "save": false, "config": "D:\\PycharmProjects\\litellm\\litellm\\proxy\\model_config.yaml", "use_queue": false} 19:48:29 - LiteLLM Proxy:DEBUG: proxy_server.py:3405 - setting litellm.json_logs=False 19:48:29 - LiteLLM Proxy:DEBUG: callback_utils.py:34 - initializing callbacks=['prometheus', 'custom_auto_route.CustomAutoRouter'] on proxy 19:48:29 - LiteLLM Proxy:DEBUG: callback_utils.py:308 - attempting to import custom calback=custom_auto_route.CustomAutoRouter ██╗ ██╗████████╗███████╗██╗ ██╗ ███╗ ███╗ ██║ ██║╚══██╔══╝██╔════╝██║ ██║ ████╗ ████║ ██║ ██║ ██║ █████╗ ██║ ██║ ██╔████╔██║ ██║ ██║ ██║ ██╔══╝ ██║ ██║ ██║╚██╔╝██║ ███████╗██║ ██║ ███████╗███████╗███████╗██║ ╚═╝ ██║ ╚══════╝╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝ #------------------------------------------------------------#

'I don't like how this works...'

https://github.com/BerriAI/litellm/issues/new

#------------------------------------------------------------# Thank you for using LiteLLM! - Krrish & Ishaan Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new 19:48:29 - LiteLLM Proxy:DEBUG: prometheus.py:3478 - Starting Prometheus Metrics on /metrics (no authentication) 19:48:29 - LiteLLM Proxy:DEBUG: callback_utils.py:333 - Initialized Callbacks - [<litellm.proxy.hooks.litellm_skills.main.SkillsInjectionHook object at 0x0000026502C107A0>, <litellm.proxy.hooks.model_max_budget_limiter._PROXY_VirtualKeyModelMaxBudgetLimiter object at 0x0000026520756C60>, 'prometheus', <custom_auto_route.CustomAutoRouter object at 0x000002652632B950>] 19:48:29 - LiteLLM Proxy:DEBUG: proxy_server.py:3405 - setting litellm.request_timeout=600 19:48:29 - LiteLLM Proxy:DEBUG: proxy_server.py:3877 - _alerting_callbacks: {'forward_client_headers_to_llm_api': True, 'maximum_spend_logs_retention_period': '12m', 'maximum_spend_logs_cleanup_cron': '0 4 * * *', 'disable_prisma_schema_update': True, 'disable_db_check': False, 'database_connection_timeout': 30000, 'database_connection_pool_timeout': 30000, 'database_connection_pool_limit': 10} 19:48:29 - LiteLLM Proxy:CRITICAL: proxy_server.py:3458 - LITELLM_MASTER_KEY is not set! All requests will be treated as INTERNAL_USER with no admin access. Set LITELLM_MASTER_KEY for production use. 19:48:29 - LiteLLM Proxy:INFO: proxy_server.py:3612 - background_health_check_config enabled=False shared=False interval_seconds=300 max_concurrency=None details=True health_check_routing=False LiteLLM: Proxy initialized with Config, Set models: Qwen3-235B-A22B-Instruct-2507 Qwen3-235B-A22B-Instruct-2507 Qwen3-235B-A22B-Instruct-2507 19:48:29 - LiteLLM:DEBUG: utils.py:5620 - checking potential_model_names in litellm.model_cost: {'split_model': '1', 'combined_model_name': '1', 'stripped_model_name': '1', 'combined_stripped_model_name': '1', 'custom_llm_provider': None} 19:48:29 - LiteLLM:DEBUG: utils.py:5915 - Error getting model info: This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json 19:48:29 - LiteLLM:DEBUG: utils.py:2900 - added/updated model=1 in litellm.model_cost: 1 19:48:29 - LiteLLM:DEBUG: utils.py:5620 - checking potential_model_names in litellm.model_cost: {'split_model': 'Qwen3-235B-A22B-Instruct-2507', 'combined_model_name': 'openai/Qwen3-235B-A22B-Instruct-2507', 'stripped_model_name': 'openai/Qwen3-235B-A22B-Instruct-2507', 'combined_stripped_model_name': 'openai/Qwen3-235B-A22B-Instruct-2507', 'custom_llm_provider': 'openai'} 19:48:29 - LiteLLM:DEBUG: utils.py:5915 - Error getting model info: This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json 19:48:29 - LiteLLM:DEBUG: utils.py:2900 - added/updated model=openai/Qwen3-235B-A22B-Instruct-2507 in litellm.model_cost: openai/Qwen3-235B-A22B-Instruct-2507 19:48:29 - LiteLLM:DEBUG: utils.py:5620 - checking potential_model_names in litellm.model_cost: {'split_model': '1', 'combined_model_name': '1', 'stripped_model_name': '1', 'combined_stripped_model_name': '1', 'custom_llm_provider': None} 19:48:29 - LiteLLM:DEBUG: utils.py:2900 - added/updated model=1 in litellm.model_cost: 1 19:48:29 - LiteLLM:DEBUG: utils.py:5620 - checking potential_model_names in litellm.model_cost: {'split_model': 'Qwen3-235B-A22B-Instruct-2507', 'combined_model_name': 'openai/Qwen3-235B-A22B-Instruct-2507', 'stripped_model_name': 'openai/Qwen3-235B-A22B-Instruct-2507', 'combined_stripped_model_name': 'openai/Qwen3-235B-A22B-Instruct-2507', 'custom_llm_provider': 'openai'} 19:48:29 - LiteLLM:DEBUG: utils.py:5725 - model=openai/Qwen3-235B-A22B-Instruct-2507, custom_llm_provider=openai has no input_cost_per_token in model_cost_map. Defaulting to 0. 19:48:29 - LiteLLM:DEBUG: utils.py:5737 - model=openai/Qwen3-235B-A22B-Instruct-2507, custom_llm_provider=openai has no output_cost_per_token in model_cost_map. Defaulting to 0. 19:48:29 - LiteLLM:DEBUG: utils.py:2900 - added/updated model=openai/Qwen3-235B-A22B-Instruct-2507 in litellm.model_cost: openai/Qwen3-235B-A22B-Instruct-2507 19:48:29 - LiteLLM:DEBUG: utils.py:5620 - checking potential_model_names in litellm.model_cost: {'split_model': '3', 'combined_model_name': '3', 'stripped_model_name': '3', 'combined_stripped_model_name': '3', 'custom_llm_provider': None} 19:48:29 - LiteLLM:DEBUG: utils.py:5915 - Error getting model info: This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json 19:48:29 - LiteLLM:DEBUG: utils.py:2900 - added/updated model=3 in litellm.model_cost: 3 19:48:29 - LiteLLM:DEBUG: utils.py:5620 - checking potential_model_names in litellm.model_cost: {'split_model': 'DeepSeek-V3.1', 'combined_model_name': 'openai/DeepSeek-V3.1', 'stripped_model_name': 'openai/DeepSeek-V3.1', 'combined_stripped_model_name': 'openai/DeepSeek-V3.1', 'custom_llm_provider': 'openai'} 19:48:29 - LiteLLM:DEBUG: utils.py:5915 - Error getting model info: This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json 19:48:29 - LiteLLM:DEBUG: utils.py:2900 - added/updated model=openai/DeepSeek-V3.1 in litellm.model_cost: openai/DeepSeek-V3.1 19:48:29 - LiteLLM Router:DEBUG: router.py:7072 - Initialized Model List ['Qwen3-235B-A22B-Instruct-2507', 'Qwen3-235B-A22B-Instruct-2507', 'Qwen3-235B-A22B-Instruct-2507'] 19:48:29 - LiteLLM Router:INFO: router.py:807 - Routing strategy: simple-shuffle 19:48:29 - LiteLLM Proxy:DEBUG: proxy_server.py:3853 - Policy engine: no policies in config, skipping 19:48:29 - LiteLLM Proxy:DEBUG: utils.py:2455 - Creating Prisma Client.. 19:48:29 - LiteLLM Proxy:DEBUG: utils.py:2522 - Success - Created Prisma Client 19:48:29 - LiteLLM Proxy:DEBUG: utils.py:3740 - PrismaClient: connect() called Attempting to Connect to DB 19:48:29 - LiteLLM Proxy:DEBUG: utils.py:3744 - PrismaClient: DB not connected, Attempting to Connect to DB query-engine ac9d7041ed77bcc8a8dbd2ab6616b39013829574 19:48:30 - LiteLLM Proxy:DEBUG: prisma_client.py:247 - IAM token auth not enabled, skipping token refresh task 19:48:30 - LiteLLM Proxy:INFO: utils.py:4302 - Started Prisma DB health watchdog (interval=30s, reconnect_cooldown=15s, probe_timeout=5.0s, reconnect_timeout=30.0s) 19:48:30 - LiteLLM Proxy:INFO: utils.py:4057 - Found prisma-query-engine at PID 41844. 19:48:30 - LiteLLM Proxy:INFO: utils.py:4071 - Watching engine PID 41844 via os.kill polling. 19:48:30 - LiteLLM:DEBUG: logging_callback_manager.py:336 - Custom logger of type SkillsInjectionHook, key: SkillsInjectionHook-max_iterations=10-sandbox_timeout=120-message_logging=True-turn_off_message_logging=False already exists in [<litellm.proxy.hooks.litellm_skills.main.SkillsInjectionHook object at 0x0000026502C107A0>, <litellm.proxy.hooks.model_max_budget_limiter._PROXY_VirtualKeyModelMaxBudgetLimiter object at 0x0000026520756C60>, 'prometheus', <custom_auto_route.CustomAutoRouter object at 0x000002652632B950>, <litellm.proxy.hooks.proxy_track_cost_callback._ProxyDBLogger object at 0x0000026526539490>, <litellm.proxy.hooks.max_budget_limiter._PROXY_MaxBudgetLimiter object at 0x00000265265397F0>, <litellm.proxy.hooks.parallel_request_limiter_v3._PROXY_MaxParallelRequestsHandler_v3 object at 0x0000026524B02720>, <litellm.proxy.hooks.cache_control_check._PROXY_CacheControlCheck object at 0x0000026526539880>, <litellm.proxy.hooks.responses_id_security.ResponsesIDSecurity object at 0x00000265265397C0>], not adding again.. 19:48:30 - LiteLLM Proxy:DEBUG: proxy_server.py:896 - About to initialize semantic tool filter 19:48:30 - LiteLLM Proxy:DEBUG: proxy_server.py:899 - litellm_settings keys = ['json_logs', 'callbacks', 'cache', 'cache_params', 'request_timeout'] 19:48:30 - LiteLLM Proxy:DEBUG: proxy_server.py:6158 - Semantic tool filter not configured or not enabled, skipping initialization 19:48:30 - LiteLLM Proxy:DEBUG: proxy_server.py:906 - After semantic tool filter initialization 19:48:30 - LiteLLM Proxy:DEBUG: proxy_server.py:920 - prisma_client: <litellm.proxy.utils.PrismaClient object at 0x000002652645F590> 19:48:30 - LiteLLM Proxy:INFO: proxy_server.py:6405 - Tag spend update job scheduled at 32s interval (2.3x main job interval) 19:48:30 - LiteLLM Proxy:DEBUG: hanging_request_check.py:148 - Checking for hanging requests.... 19:48:30 - LiteLLM Proxy:INFO: utils.py:5078 - Starting spend logs queue monitor (threshold: 100, poll_interval: 2.0s) 19:48:30 - LiteLLM Proxy:ERROR: utils.py:2716 - LiteLLM Prisma Client Exception get_generic_data: 19:48:30 - LiteLLM Proxy:WARNING: proxy_server.py:4166 - Failed to load config in _update_llm_router: . Proceeding with model loading using cached/empty config. 19:48:30 - LiteLLM Proxy:DEBUG: proxy_server.py:4194 - len new_models: 0 19:48:32 - LiteLLM Proxy:DEBUG: utils.py:156 - Backing off... this was attempt #1 Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 101, in handle_async_request raise exc File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\backoff_async.py", line 151, in retry ret = await target(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm\litellm\proxy\utils.py", line 2612, in check_view_exists ret = await self.db.query_raw( ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 550, in query_raw resp = await self._execute( ^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 654, in _execute return await self._engine.query(builder.build(), tx_id=self._tx_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\query.py", line 244, in query return await self.request( ^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\http.py", line 119, in request resp = await self.session.request(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma_async_http.py", line 28, in request return Response(await self.session.request(method, url, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed 19:48:32 - LiteLLM Proxy:DEBUG: utils.py:156 - Backing off... this was attempt #1 Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 101, in handle_async_request raise exc File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\backoff_async.py", line 151, in retry ret = await target(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm\litellm\proxy\utils.py", line 4402, in _fetch_row_count result = await self.db.query_raw(query=sql_query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 550, in query_raw resp = await self._execute( ^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 654, in _execute return await self._engine.query(builder.build(), tx_id=self._tx_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\query.py", line 244, in query return await self.request( ^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\http.py", line 119, in request resp = await self.session.request(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma_async_http.py", line 28, in request return Response(await self.session.request(method, url, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed 19:48:32 - LiteLLM Proxy:ERROR: utils.py:2716 - LiteLLM Prisma Client Exception get_generic_data: All connection attempts failed 19:48:32 - LiteLLM Proxy:WARNING: proxy_server.py:877 - Password migration skipped: All connection attempts failed 19:48:32 - LiteLLM Proxy:ERROR: utils.py:2716 - LiteLLM Prisma Client Exception get_generic_data: All connection attempts failed 19:48:32 - LiteLLM Proxy:ERROR: utils.py:2716 - LiteLLM Prisma Client Exception get_generic_data: All connection attempts failed 19:48:32 - LiteLLM Proxy:ERROR: proxy_server.py:4895 - litellm.proxy.proxy_server.py::ProxyConfig:add_deployment - All connection attempts failed Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 101, in handle_async_request raise exc File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\PycharmProjects\litellm\litellm\proxy\proxy_server.py", line 4877, in add_deployment await self._update_llm_router( File "D:\PycharmProjects\litellm\litellm\proxy\proxy_server.py", line 4215, in _update_llm_router await self._add_router_settings_from_db_config( File "D:\PycharmProjects\litellm\litellm\proxy\proxy_server.py", line 4428, in _add_router_settings_from_db_config db_router_settings = await prisma_client.db.litellm_config.find_first( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\actions.py", line 21071, in find_first resp = await self._client._execute( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 654, in _execute return await self._engine.query(builder.build(), tx_id=self._tx_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\query.py", line 244, in query return await self.request( ^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\http.py", line 119, in request resp = await self.session.request(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma_async_http.py", line 28, in request return Response(await self.session.request(method, url, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed 19:48:35 - LiteLLM Proxy:ERROR: proxy_server.py:5663 - litellm.proxy_server.py::get_credentials() - Error getting credentials from DB - All connection attempts failed Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 101, in handle_async_request raise exc File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\PycharmProjects\litellm\litellm\proxy\proxy_server.py", line 5654, in get_credentials credentials = await prisma_client.db.litellm_credentialstable.find_many() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\actions.py", line 1501, in find_many resp = await self._client._execute( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 654, in _execute return await self._engine.query(builder.build(), tx_id=self._tx_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\query.py", line 244, in query return await self.request( ^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\http.py", line 119, in request resp = await self.session.request(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma_async_http.py", line 28, in request return Response(await self.session.request(method, url, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed 19:48:35 - LiteLLM Proxy:DEBUG: utils.py:156 - Backing off... this was attempt #2 Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 101, in handle_async_request raise exc File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\backoff_async.py", line 151, in retry ret = await target(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm\litellm\proxy\utils.py", line 4402, in _fetch_row_count result = await self.db.query_raw(query=sql_query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 550, in query_raw resp = await self._execute( ^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 654, in _execute return await self._engine.query(builder.build(), tx_id=self._tx_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\query.py", line 244, in query return await self.request( ^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\http.py", line 119, in request resp = await self.session.request(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma_async_http.py", line 28, in request return Response(await self.session.request(method, url, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed 19:48:35 - LiteLLM Proxy:DEBUG: utils.py:156 - Backing off... this was attempt #2 Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 101, in handle_async_request raise exc File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\backoff_async.py", line 151, in retry ret = await target(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm\litellm\proxy\utils.py", line 2612, in check_view_exists ret = await self.db.query_raw( ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 550, in query_raw resp = await self._execute( ^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 654, in _execute return await self._engine.query(builder.build(), tx_id=self._tx_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\query.py", line 244, in query return await self.request( ^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\http.py", line 119, in request resp = await self.session.request(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma_async_http.py", line 28, in request return Response(await self.session.request(method, url, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed 19:48:37 - LiteLLM Proxy:ERROR: cloudzero_endpoints.py:292 - Error checking CloudZero status: All connection attempts failed 19:48:37 - LiteLLM:DEBUG: focus_logger.py:167 - No Focus export logger registered; skipping scheduler 19:48:37 - LiteLLM Proxy:ERROR: utils.py:4408 - Error getting LiteLLM_SpendLogs row count: All connection attempts failed 19:48:39 - LiteLLM Proxy:ERROR: vantage_endpoints.py:273 - Error checking Vantage status: All connection attempts failed 19:48:39 - LiteLLM Proxy:DEBUG: proxy_server.py:6693 - key_rotation_enabled: False 19:48:39 - LiteLLM Proxy:DEBUG: proxy_server.py:6729 - Key rotation disabled (set LITELLM_KEY_ROTATION_ENABLED=true to enable) 19:48:39 - LiteLLM Proxy:INFO: spend_log_cleanup.py:33 - SpendLogCleanup initialized with batch size: 1000 19:48:39 - LiteLLM Proxy:INFO: proxy_server.py:6511 - Spend log cleanup scheduled with cron: 0 4 * * * 19:48:39 - LiteLLM Proxy:INFO: proxy_server.py:6560 - Batch cost check job scheduled successfully 19:48:39 - LiteLLM Proxy:INFO: proxy_server.py:6591 - Responses cost check job scheduled successfully 19:48:39 - LiteLLM Proxy:INFO: proxy_server.py:6610 - APScheduler started with memory leak prevention settings: removed jitter, increased intervals, misfire_grace_time=3600 Task exception was never retrieved future: <Task finished name='Task-8' coro=<PrismaClient.check_view_exists() done, defined at D:\PycharmProjects\litellm.venv\Lib\site-packages\backoff_async.py:130> exception=ConnectError('All connection attempts failed')> Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions yield File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 256, in handle_async_request raise exc from None File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 101, in handle_async_request raise exc File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_async\connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_backends\anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\backoff_async.py", line 151, in retry ret = await target(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm\litellm\proxy\utils.py", line 2612, in check_view_exists ret = await self.db.query_raw( ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 550, in query_raw resp = await self._execute( ^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\client.py", line 654, in _execute return await self._engine.query(builder.build(), tx_id=self._tx_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\query.py", line 244, in query return await self.request( ^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma\engine\http.py", line 119, in request resp = await self.session.request(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\prisma_async_http.py", line 28, in request return Response(await self.session.request(method, url, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1540, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\contextlib.py", line 158, in exit self.gen.throw(value) File "D:\PycharmProjects\litellm.venv\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed 19:48:42 - LiteLLM Proxy:DEBUG: proxy_server.py:6302 - UI settings sync on startup skipped or failed: All connection attempts failed 19:48:42 - LiteLLM Proxy:DEBUG: proxy_server.py:6895 - LiteLLM: Pyroscope profiling is disabled (set LITELLM_ENABLE_PYROSCOPE=true to enable). 19:48:42 - LiteLLM Proxy:INFO: proxy_server.py:756 - SESSION REUSE: Created shared aiohttp session for connection pooling (ID: 2633463996272, limit=1000, limit_per_host=500) INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:4000 (Press CTRL+C to quit) ERROR: Traceback (most recent call last): File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\base_events.py", line 691, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\runners.py", line 195, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\runners.py", line 123, in run raise KeyboardInterrupt() KeyboardInterrupt During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\PycharmProjects\litellm.venv\Lib\site-packages\starlette\routing.py", line 701, in lifespan await receive() File "D:\PycharmProjects\litellm.venv\Lib\site-packages\uvicorn\lifespan\on.py", line 137, in receive return await self.receive_queue.get() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\liuzhiwen8\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\queues.py", line 158, in get await getter asyncio.exceptions.CancelledError Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x0000026526AF9F70>

Steps to Reproduce

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

v1.83.11

Twitter / LinkedIn details

No response

extent analysis

TL;DR

The issue is likely caused by a database connection failure, and checking the database connection settings and Prisma Client configuration may resolve the issue.

Guidance

  1. Verify database connection settings: Ensure that the database connection settings are correct and the database is reachable.
  2. Check Prisma Client configuration: Review the Prisma Client configuration to ensure it is properly set up and configured to connect to the database.
  3. Investigate network connectivity issues: Check for any network connectivity issues that may be preventing the application from connecting to the database.
  4. Review Prisma Query Engine logs: Check the Prisma Query Engine logs for any errors or issues that may be related to the connection failure.
  5. Check for Prisma version compatibility: Ensure that the Prisma version is compatible with the database and the application.

Example

No code example is provided as the issue is related to configuration and connectivity rather than code.

Notes

The issue may be related to a misconfiguration of the Prisma Client or database connection settings. It's also possible that there are network connectivity issues preventing the application from connecting to the database.

Recommendation

Apply a workaround by checking and verifying the database connection settings and Prisma Client configuration to ensure they are correct and properly configured. If the issue persists, consider upgrading to a newer version of Prisma or seeking further assistance from the LiteLLM community.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: Database connection failed when running in database mode on Windows (v1.83.11) [1 comments, 1 participants]