Nvcr.io/nvidia/vllm:26.06-py3 — every OpenAI API request returns HTTP 500 (_IncludedRouter has no attribute 'path') on GB10 / DGX Spark

Hi all!

I’m running the vLLM container on a DGX Spark (GB10) and hit what looks like a error in the nvcr.io/nvidia/vllm:26.06-py3 image.

Every HTTP request to the vLLM OpenAI-compatible API server in nvcr.io/nvidia/vllm:26.06-py3 returns 500 Internal Server Error, including /health. The server starts and loads the model fine, and /docs returns 200, but all functional endpoints fail. The identical setup on nvcr.io/nvidia/vllm:26.02-py3 works perfectly, so this is a regression in the 26.06-py3 image.

The failure is in the image’s Prometheus metrics middleware, which runs on every request and is incompatible with the FastAPI/Starlette version shipped in the same image.

Environment

  • Platform: NVIDIA GB10 (DGX Spark), aarch64
  • OS: Ubuntu 24.04.4 LTS
  • Kernel: 6.17.0-1021-nvidia
  • NVIDIA driver: 580.159.03 (CUDA 13.0)
  • Container runtime: nerdctl 2.1.6 / containerd 2.1.4
  • Broken image: nvcr.io/nvidia/vllm:26.06-py3
  • Working image: nvcr.io/nvidia/vllm:26.02-py3

Reproduction steps

sudo nerdctl run --gpus all -p 8000:8000 -d --name vllm-repro \
  nvcr.io/nvidia/vllm:26.06-py3 \
  python3 -m vllm.entrypoints.openai.api_server --model facebook/opt-125m

# after the server finishes startup:
curl -s http://localhost:8000/health
# -> {"error":{"message":"'_IncludedRouter' object has no attribute 'path'",
#              "type":"InternalServerError","code":500}}

Every endpoint (/health, /v1/models, /v1/completions, /v1/chat/completions, /v1/embeddings) returns the same 500.

Error / traceback:


(APIServer pid=1) INFO:     10.4.0.1:35554 - "GET /docs HTTP/1.1" 200 OK
(APIServer pid=1) DEBUG 06-30 13:59:25 [entrypoints/utils.py:357] create_error_response called with AttributeError: '_IncludedRouter' object has no attribute 'path'
(APIServer pid=1) INFO:     10.4.0.1:35560 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
(APIServer pid=1) ERROR:    Exception in ASGI application
(APIServer pid=1) Traceback (most recent call last):
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 421, in run_asgi
(APIServer pid=1)     result = await app(  # type: ignore[func-returns-value]
(APIServer pid=1)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py", line 62, in __call__
(APIServer pid=1)     return await self.app(scope, receive, send)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/fastapi/applications.py", line 1162, in __call__
(APIServer pid=1)     await super().__call__(scope, receive, send)
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/starlette/applications.py", line 90, in __call__
(APIServer pid=1)     await self.middleware_stack(scope, receive, send)
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py", line 186, in __call__
(APIServer pid=1)     raise exc
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py", line 164, in __call__
(APIServer pid=1)     await self.app(scope, receive, _send)
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/cors.py", line 88, in __call__
(APIServer pid=1)     await self.app(scope, receive, send)
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/prometheus_fastapi_instrumentator/middleware.py", line 131, in __call__
(APIServer pid=1)     handler, is_templated = self._get_handler(request)
(APIServer pid=1)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/prometheus_fastapi_instrumentator/middleware.py", line 240, in _get_handler
(APIServer pid=1)     route_name = routing.get_route_name(request)
(APIServer pid=1)                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/prometheus_fastapi_instrumentator/routing.py", line 75, in get_route_name
(APIServer pid=1)     route_name = _get_route_name(scope, routes)
(APIServer pid=1)                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/prometheus_fastapi_instrumentator/routing.py", line 55, in _get_route_name
(APIServer pid=1)     route_name = route.path
(APIServer pid=1)                  ^^^^^^^^^^
(APIServer pid=1) AttributeError: '_IncludedRouter' object has no attribute 'path'

Analysis

prometheus_fastapi_instrumentator (the metrics middleware vLLM mounts) walks app.routes on every request and reads route.path. In this image one of the routes is an _IncludedRouter object that has no .path, so the middleware raises AttributeError before the request reaches any handler - which is why even /health fails. This looks like a version mismatch between prometheus-fastapi-instrumentator and the FastAPI/Starlette version bundled in 26.06-py3.

Impact

The 26.06-py3 image cannot serve any inference request out of the box. Workaround is to stay on 26.02-py3, or rebuild the image with an updated prometheus-fastapi-instrumentator.

Could you ship the 26.06-py3 image with a compatible prometheus-fastapi-instrumentator / FastAPI combination?

nvidia-bug-report.log.gz log is attached.

nvidia-bug-report.log.gz (570.9 KB)

I am not able to reproduce your error, however I do know that fastapi packages >= 0.137 are currently incompatible with versions for prometheus-fastapi-instrumentator.
Can you check your package versions inside your container? Maybe you are running something to update them?
This is what I get:

nvidia@spark-5e32:~$ docker exec vllm-repro pip show \
  vllm fastapi starlette prometheus-fastapi-instrumentator prometheus-client \
  2>/dev/null | grep -E '^(Name|Version):'
Name: vllm
Version: 0.22.1+7b9cb5b7.nv26.6.55915567
Name: fastapi
Version: 0.136.3
Name: starlette
Version: 1.3.1
Name: prometheus-fastapi-instrumentator
Version: 8.0.2
Name: prometheus_client
Version: 0.25.0

Confirming I am running vllm:26.06-py3

nvidia@spark-5e32:~$ docker ps
CONTAINER ID   IMAGE                           COMMAND                  CREATED          STATUS          PORTS                                         NAMES
d71e74effa3e   nvcr.io/nvidia/vllm:26.06-py3   "/opt/nvidia/nvidia_…"   13 minutes ago   Up 13 minutes   0.0.0.0:8000->8000/tcp, [::]:8000->8000/tcp   vllm-repro