我用docker-compose运行了mlrun。但是当我完成样本训练后,我无法在管理页面上看到结果图。我得到500个错误和详细信息喜欢:
{
"data": {
"detail": "AttributeError("'K8sHelper' object has no attribute 'v1api'")"
},
"status": 500,
"statusText": "Internal Server Error",
"headers": {
"connection": "keep-alive",
"content-length": "76",
"content-type": "application/json",
"date": "Fri, 07 Apr 2023 09:45:51 GMT",
"server": "nginx/1.21.6"
},
"config": {
"url": "projects/quick-tutorial-root/files",
"method": "get",
"headers": {
"Accept": "application/json, text/plain, */*"
},
"params": {
"path": "/auto-trainer-train/0/confusion-matrix.html"
},
"baseURL": "/mlrun/api/v1",
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
}
},
"request": {}
}
这个问题我没有找到任何信息,请帮助我,谢谢!
是的,我已经找到了一个自己解决这个问题的方法。这个问题是由于k8s配置冲突造成的。因此,我可以更改mlrun-api容器中的代码,然后提交一个新映像。现在我在mlrun/api/api/endpoints/files.py中的66行代码后面添加"use_secrets= False"暂时的。