where do I find the build logs?

1,758 views
Skip to first unread message

Marco Galassi

unread,
Mar 29, 2017, 3:54:59 AM3/29/17
to Google App Engine
I am not able to deploy for some error. At the end of the deployment process i get:

ERROR: (gcloud.app.deploy) Error Response: [2] Build failed; check build logs for details

This is very stupid, but where do I find the build logs?

Nick (Cloud Platform Support)

unread,
Mar 29, 2017, 2:40:58 PM3/29/17
to Google App Engine
Hey Marco,

There are no bad questions! You can check the Cloud Console > "Logs" section and select "Container Builder" as the logs source. You can further select more granularly by build id, which will be given when you run the deployment, in a line like the following:

starting build "a7fccbd5-1d13-4b95-9c2a-3c13c77fc3b2"

Actually, the deploy command should also present a line like the following which will take you directly to the relevant logs:

To see logs in the Cloud Console: https://console.cloud.google.com/logs/viewer?project=wheel-of-time-8&resource.type=build&resource.labels.build_id=a7fccbd5-1d13-4b95-9c2a-3c13c77fc3b2&resource=build%2Fbuild_id%2Fa7fccbd5-1d13-4b95-9c2a-3c13c77fc3b2

You could also run the following gcloud command:

gcloud beta logging read "resource.type=\"build\" AND resource.labels.build_id=\"${YOUR_DEPLOYMENT'S_BUILD_ID}\""

I've highlighted in yellow the filter portion of this command. You can read about the command by running "gcloud beta logging read --help" or in the relevant online documentation. For more information on forming filters (which can also be used in the Console logs viewer), you can read the documentation under "Advanced Logs Filters".

Cheers,

Nick
Cloud Platform Community Support
Reply all
Reply to author
Forward
0 new messages