vllm - 💡(How to fix) Fix [Bug]: failed with AssertionError when using mooncakeconnector [1 pull requests]

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…

Error Message

(APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] AsyncLLM output_handler failed. (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] Traceback (most recent call last): (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/async_llm.py", line 697, in output_handler (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] logger_ref[0].record( (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ~~~~~~~~~~~~~~~~~~~~^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/metrics/loggers.py", line 1342, in record (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] stat_logger.record( (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ~~~~~~~~~~~~~~~~~~^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/metrics/loggers.py", line 1104, in record (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] self.kv_connector_prom_observe( (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/kv_transfer/kv_connector/v1/metrics.py", line 175, in observe (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] self.prom_metrics.observe(transfer_stats_data, engine_idx) (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py", line 121, in observe (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] assert connector_id in self._prom_metrics, ( (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] AssertionError: MooncakeConnector is not contained in the list of registered connectors with Prometheus metrics support: dict_keys([]) INFO: 127.0.0.1:45592 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error INFO: 127.0.0.1:45596 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error INFO: 127.0.0.1:45600 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error INFO: 127.0.0.1:45604 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Your current environment

v0.21.0

🐛 Describe the bug

(APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] AsyncLLM output_handler failed. (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] Traceback (most recent call last): (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/async_llm.py", line 697, in output_handler (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] logger_ref[0].record( (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ~~~~~~~~~~~~~~~~~~~~^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/metrics/loggers.py", line 1342, in record (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] stat_logger.record( (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ~~~~~~~~~~~~~~~~~~^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/v1/metrics/loggers.py", line 1104, in record (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] self.kv_connector_prom_observe( (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/kv_transfer/kv_connector/v1/metrics.py", line 175, in observe (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] self.prom_metrics.observe(transfer_stats_data, engine_idx) (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] File "/usr/local/lib/python3.12/dist-packages/vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py", line 121, in observe (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] assert connector_id in self._prom_metrics, ( (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (APIServer pid=52555) ERROR 05-27 13:26:09 [async_llm.py:704] AssertionError: MooncakeConnector is not contained in the list of registered connectors with Prometheus metrics support: dict_keys([]) INFO: 127.0.0.1:45592 - "POST /v1/chat/completions HTTP/1.1" 200 OK INFO 05-27 13:26:09.036274 53376 rdma_endpoint.cpp:351] Received same peer QP numbers, reusing connection. INFO 05-27 13:26:09.036274 53373 rdma_endpoint.cpp:351] Received same peer QP numbers, reusing connection. INFO: 127.0.0.1:45592 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error INFO: 127.0.0.1:45596 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error INFO: 127.0.0.1:45600 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error INFO: 127.0.0.1:45604 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

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