Skip to main content

Version/Environment (if relevant):

4.x, 5.x

Issue:

When deploying a Model API the build is very slow and the build logs list repeating network related errors like:
The model eventually deploys, but the build process is slow.

Root Cause:

Model API initialization code tries to install the python package prometheus-client 0.11.0 (among others), a client for metrics & monitoring tools. If your system is air-gapped or public/internet access is tightly controlled your system might not be able to fetch that python package from https://pypi.org, resulting in the error above.

Resolution:

Install prometheus-client in your project’s Compute Environment via a dockerfile instruction: RUN pip install prometheus-client==0.11.0 If this isn’t possible another idea is to modify pip’s config files to make it not retry and “fail fast”, like:

Notes/Information:

If the above isn’t possible please reach out to Domino Technical Support referencing DOM #36045 and DOM #41738
Last modified on October 12, 2026