Exit code non-zero and unable to see output logs

前端 未结 1 1019
醉梦人生
醉梦人生 2021-01-24 01:23

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 l

相关标签:
1条回答
  • 2021-01-24 01:47

    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.

    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]

    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.

    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

    0 讨论(0)
提交回复
热议问题