退出代码非零,无法查看输出日志 [英] Exit code non-zero and unable to see output logs

查看:90
本文介绍了退出代码非零,无法查看输出日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查看Cloud ML的stdout/stderr输出日志?我已经尝试过使用gcloud beta beta日志读取以及gcloud beta ml作业流日志,什么也没有……我所看到的只是系统生成的INFO级别日志,即拆除TensorFlow".

How do I view stdout/stderr output logs for cloud ML? I've tried using gcloud beta logging read and also gcloud beta ml jobs stream-logs and nothing... all I see are the INFO level logs generated by the system i.e. "Tearing down TensorFlow".

同样在我有一个错误,显示以非零代码退出的Docker容器的情况下.它将我链接到一个GUI页面,该页面显示与gcloud beta ml作业流日志相同的内容.没有任何东西可以向我显示我的工作所产生的控制台的实际输出...

Also in the case where I have an error that shows the docker container exited with non zero code. It links me to a GUI page that shows the same stuff as gcloud beta ml jobs stream-logs. Nothing that shows me the actual output from the console of what my job produced...

请帮助??

推荐答案

可能是Cloud ML服务帐户无权写入项目的StackDriver日志,或者项目上未启用Logging API

It may be the case that the Cloud ML service account does not have permissions to write to your project's StackDriver Logs, or the Logging API is not enabled on your project.

首先转到API管理器,以检查是否为该项目启用了Stackdriver Logging API:

First check whether the Stackdriver Logging API is enabled for the project by going to the API manager: https://console.cloud.google.com/apis/api/logging.googleapis.com/overview?project=[YOUR-PROJECT-ID]

然后应将Cloud ML服务帐户作为编辑器自动添加到项目,并因此允许其写入项目日志,但是如果您更改了项目权限,则它可能会丢失.如果是这样,请检查是否已手动授予Cloud ML服务帐户LogWriter权限.

Then Cloud ML service account should be automatically added as an Editor to the project, and therefore allows it to write to the project logs, but if you have changed your project permissions it may have lost it. If so, check that you've manually given the Cloud ML service account LogWriter permissions.

如果不确定Cloud ML使用的服务帐户,则此页面上有如何找到它的说明:

If you are unsure of the service account used by Cloud ML, this page has instructions on how to find it: https://cloud.google.com/ml/docs/how-tos/using-external-buckets

这篇关于退出代码非零,无法查看输出日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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