Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

All Cloud function deployments fail

Hello,

I have been using Cloud functions for a while now. Starting from yesterday around 6pm (UTC+2) all my deployments have been failing with very few logs (see below).

I get the same error wether I try to create a new function or deploy an existing one without making any change in the code.

Has anyone been experiencing the same? 

Thank you for your help

[
{
"protoPayload": {
"@type": "type.googleapis.com/google.cloud.audit.AuditLog",
"status": {
"code": 3,
"message": "Build failed: {\"metrics\":{},\"error\":{\"buildpackId\":\"\",\"buildpackVersion\":\"\",\"errorType\":\"OK\",\"canonicalCode\":\"OK\",\"errorId\":\"\",\"errorMessage\":\"\"},\"stats\":[{\"buildpackId\":\"google.utils.archive-source\",\"buildpackVersion\":\"0.0.1\",\"totalDurationMs\":62,\"userDurationMs\":61},{\"buildpackId\":\"google.python.functions-framework\",\"buildpackVersion\":\"0.9.6\",\"totalDurationMs\":122,\"userDurationMs\":121},{\"buildpackId\":\"google.python.pip\",\"buildpackVersion\":\"0.9.2\",\"totalDurationMs\":17642,\"userDurationMs\":17637},{\"buildpackId\":\"google.utils.label\",\"buildpackVersion\":\"0.0.2\",\"totalDurationMs\":0,\"userDurationMs\":0}],\"warnings\":null,\"customImage\":false}"
},
"authenticationInfo": {
"principalEmail": "xxxx@xxxx.com"
},
"serviceName": "cloudfunctions.googleapis.com",
"methodName": "google.cloud.functions.v1.CloudFunctionsService.UpdateFunction",
"resourceName": "projects/xxxxxxx/locations/europe-west1/functions/xxxxxxxxxxx"
},
"insertId": "-lcqyfwc36m",
"resource": {
"type": "cloud_function",
"labels": {
"function_name": "xxxxxxxxxxx",
"region": "europe-west1",
"project_id": "xxxxxxx"
}
},
"timestamp": "2022-09-02T08:29:41.017293Z",
"severity": "ERROR",
"logName": "projects/xxxxxxx/logs/cloudaudit.googleapis.com%2Factivity",
"operation": {
"id": "operations/Y3V1cmUtMjY1NDE1L2V1cm9wZS13ZXN0MS9HZW5lcmF0ZV9vcmRlci10ZXN0L1QwTE1BUkt2bmMw",
"producer": "cloudfunctions.googleapis.com",
"last": true
},
"receiveTimestamp": "2022-09-02T08:29:41.923022437Z"
}
]
Solved Solved
4 1 2,097
1 ACCEPTED SOLUTION

I found the root of the error. My cloud build service account was missing "Cloud Build Service Account" role.
If anyone experiences the same issue, check your cloud build service account role. 

View solution in original post

1 REPLY 1

I found the root of the error. My cloud build service account was missing "Cloud Build Service Account" role.
If anyone experiences the same issue, check your cloud build service account role. 

Top Solution Authors