简体   繁体   English

无法访问 mlflow ui

[英]Unable to access to mlflow ui

By following quickstart and tutorial at https://www.mlflow.org/docs/latest/quickstart.html , and https://www.mlflow.org/docs/latest/tutorial.html , the execution of train.py works fine.按照https://www.mlflow.org/docs/latest/quickstart.htmlhttps://www.mlflow.org/docs/latest/tutorial.html 上的快速入门和教程,train.py 的执行有效美好的。

Elasticnet model (alpha=0.500000, l1_ratio=0.500000):
  RMSE: 0.8222428497595403
  MAE: 0.6278761410160693
  R2: 0.12678721972772622

But when launching the ui mlflow ui , and accessing to the web page localhost:5000, the browser complains但是当启动ui mlflow ui ,访问网页localhost:5000时,浏览器报错

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

What went wrong and how to fix this?出了什么问题以及如何解决这个问题?

Thanks谢谢

There's many different issues that may or may not be happening.有许多不同的问题可能会或可能不会发生。 You're best bet is to plain-old troubleshoot.您最好的选择是进行简单的故障排除。 I saw you're comment on GitHub, so let's try a new angle;看到你在GitHub上评论了,换个角度试试吧; it's more than likely a building/debugging file path or directory setting which is incorrect.很可能是构建/调试文件路径或目录设置不正确。

I noticed a file/directory setting named set_tracking_uri .我注意到一个名为set_tracking_uri的文件/目录设置。

def get_tracking_uri():
    """
    Returns the current tracking URI. Note that this may not correspond to the tracking URI of
    the currently active run, since the tracking URI may be updated via `set_tracking_uri`.
    :return: the tracking URI
    """

mlflow/tracking/__init__.py - lines 52-56 mlflow/tracking/__init__.py - 第 52-56 行

You could also check out the package.json for the server file path.您还可以查看package.json以获取服务器文件路径。

 "proxy": "http://localhost:5000",
  "homepage": "/static-files",
  "jest": {
    "collectCoverageFrom": [
      "src/**/*.{js,jsx}",
      "!**/*.test.{js,jsx}",
      "!**/__tests__/*.{js,jsx}"
    ]

mlflow/mlflow/server/js/package.json - lines 37-44 mlflow/mlflow/server/js/package.json - 第 37-44 行

Make sure your files are in the correct directory compared to your settings and I'm sure it will resolve the issue.与您的设置相比,确保您的文件位于正确的目录中,我相信它会解决问题。

Inside docker container, adding the --host 0.0.0.0 solved my issue.在 docker 容器中,添加--host 0.0.0.0解决了我的问题。 Using mlflow 1.17.0使用 mlflow 1.17.0

mlflow ui --host 0.0.0.0

https://github.com/mlflow/mlflow/issues/109#issuecomment-404146077 https://github.com/mlflow/mlflow/issues/109#issuecomment-404146077

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM