at-gmbh / docker-mlflow-server Goto Github PK
View Code? Open in Web Editor NEWa docker image of the MLflow server component
License: Apache License 2.0
a docker image of the MLflow server component
License: Apache License 2.0
Description
I wanted to use the mlflow docker image and ran into the below protobuf error.
Steps to reproduce:
$ docker run --rm -it -p 5000:5000 atcommons/mlflow-server:latest
Traceback (most recent call last):
File "/usr/local/bin/mlflow", line 5, in <module>
from mlflow.cli import cli
File "/usr/local/lib/python3.10/site-packages/mlflow/__init__.py", line 32, in <module>
import mlflow.tracking._model_registry.fluent
File "/usr/local/lib/python3.10/site-packages/mlflow/tracking/__init__.py", line 8, in <module>
from mlflow.tracking.client import MlflowClient
File "/usr/local/lib/python3.10/site-packages/mlflow/tracking/client.py", line 16, in <module>
from mlflow.entities import Experiment, Run, RunInfo, Param, Metric, RunTag, FileInfo, ViewType
File "/usr/local/lib/python3.10/site-packages/mlflow/entities/__init__.py", line 6, in <module>
from mlflow.entities.experiment import Experiment
File "/usr/local/lib/python3.10/site-packages/mlflow/entities/experiment.py", line 2, in <module>
from mlflow.entities.experiment_tag import ExperimentTag
File "/usr/local/lib/python3.10/site-packages/mlflow/entities/experiment_tag.py", line 2, in <module>
from mlflow.protos.service_pb2 import ExperimentTag as ProtoExperimentTag
File "/usr/local/lib/python3.10/site-packages/mlflow/protos/service_pb2.py", line 18, in <module>
from .scalapb import scalapb_pb2 as scalapb_dot_scalapb__pb2
File "/usr/local/lib/python3.10/site-packages/mlflow/protos/scalapb/scalapb_pb2.py", line 29, in <module>
options = _descriptor.FieldDescriptor(
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 560, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Additional Information
I found the bug being discussed in mlflow issues - mlflow/mlflow#5949
Possible Fix
I didn't try much, upgrading the mlflow version from 1.20
to 1.27
fixed the problem for me.
Add a Folder that contains multiple different deployment examples for the atcommons/mlflow-server
image.
Deployment examples would be described by docker compose YAMLs. A system architecture can be found here.
Each example will be heavily documented by the folder's README.
The following structure is inspired by nextcloud/docker
docker-mlflow-server/
├─ .deployment_examples/
│ ├─ insecure/
│ │ ├─ postgres_minio/
│ │ │ ├─ docker-compose.yaml
│ ├─ with_proxy/
│ │ ├─ postgres_minio_traefik/
│ │ │ ├─ docker-compose.yaml
│ ├─ README.md
Make examples easy to explore by using play with docker in the documentation.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
docker-compose.yml
Dockerfile
python 3-slim
.github/workflows/build_and_push_docker_image.yaml
actions/checkout v2
docker/setup-buildx-action v1
docker/login-action v1
docker/build-push-action v2
peter-evans/dockerhub-description v2
requirements.txt
mlflow ==1.20.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.