Skip to main content

4 posts tagged with "Nginx"

Nginx Web Server and Reverse Proxy Configuration

View All Tags

Fixed: "curl: (52) Empty reply from server" from an MLflow Model Container with DISABLE_NGINX

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

I started an MLflow model container with -e DISABLE_NGINX=true, as the build-docker reference shows, and it never answered: curl: (52) Empty reply from server. Without nginx, the model server inside listens on 127.0.0.1:8000, an address no request from outside the container can reach, and the reference's example publishes port 8080. Setting uvicorn's host with UVICORN_HOST=0.0.0.0 and publishing port 8000 fixed it.

Fixed: An MLflow Model Container Answers 404 for /health and /version

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

A model container built with mlflow models build-docker answered /ping and /invocations, but /health and /version answered HTTP/1.1 404 Not Found with a body of {}. MLflow's guide lists /health as the same as /ping, and both work with mlflow models serve. In the image, nginx sits in front of the model server and forwards only /ping and /invocations. The fix is to health-check the container with /ping.