自迁移到V2后,Stackdriver日志不可用于Cloud ML作业 [英] Stackdriver logs not available for Cloud ML jobs since migration to V2

查看:56
本文介绍了自迁移到V2后,Stackdriver日志不可用于Cloud ML作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于从Cloud ML作业迁移到V2日志不再可在Stackdriver日志记录控制台上访问.最后显示的日志是

Since migration to V2 logs from Cloud ML jobs are not accessible on the Stackdriver logging console anymore. The last log displayed is

Waiting for Tensorflow to start.

作业已成功执行并完成,我只是无法访问日志中的输出

The job is executed and completed successfully, I just can't access outputs in the logs

为该项目启用了所有Stackdriver API.

All Stackdriver APIs are enabled for the project.

推荐答案

这个问题还使我花了两个星期的时间来沮丧地在线搜索答案,直到发现这篇文章为止.我没有看到OP提到的向V2迁移",但是我根本无法在StackDriver中获得任何应用程序日志,只有作业的系统日志已启动/完成.遵循杰里米(Jeremy)的答复即可解决问题.

This problem also took me two weeks to search answers online with frustration, until I came across this post. I did not see "migration to V2" as OP mentions but I simply could not get any application logs in StackDriver, only system logs of job started/completed. Following what Jeremy replies solves the problem.

要使Jeremy的回复更容易理解,实质上是添加ML服务帐户

To make Jeremy's reply simpler to follow, essentially you add the ML service account

cloud-ml-service@<project-id>.iam.gserviceaccount.com

至少具有"Logs Writer"角色的项目的IAM成员.

to your project's IAM members, with at least "Logs Writer" role.

您可以通过以下方式获取"project-id":

You can get "project-id" by:

gcloud config list project --format "value(core.project)"

我还分配了Project-> Editor角色以允许存储桶访问.

I also assigned Project->Editor role to allow Bucket access.

这篇关于自迁移到V2后,Stackdriver日志不可用于Cloud ML作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆