Cloud Functions deployment fails with "Failed to retrieve function source code"

Viewed 2548

When I deployed Cloud Functions from Cloud Source Repositries, I got a "Failed to retrieve function source code" and the deployment failed.

Some of the Cloud Functions currently running are deployed from Cloud Source Repositries, so I copied and deployed it, but I get the same error.

Deployment is done with GUI and Python 3.8 is used.

I didn't get this error until last week.

I've found information that there is a problem with the GCP payment method, but I haven't changed my payment information recently.

Please tell me what is the cause. I'm sorry if I'm not good at English and it's hard to read. Thank you.

{
protoPayload: {
@type: "type.googleapis.com/google.cloud.audit.AuditLog"
status: {
code: 3
message: "Failed to retrieve function source code"
}
authenticationInfo: {
principalEmail: "xxxxxx@xxxxxx"
}
serviceName: "cloudfunctions.googleapis.com"
methodName: "google.cloud.functions.v1.CloudFunctionsService.CreateFunction"
resourceName: "projects/xxxxxx/locations/asia-northeast1/functions/xxxxxx"
}
insertId: "-xxxxxx"
resource: {
type: "cloud_function"
labels: {
project_id: "xxxxxx"
function_name: "xxxxxx"
region: "asia-northeast1"
}
}
timestamp: "2021-02-03T10:56:30.332588Z"
severity: "ERROR"
logName: "projects/xxxxxx/logs/cloudaudit.googleapis.com%2Factivity"
operation: {
id: "xxxxxxx"
producer: "cloudfunctions.googleapis.com"
last: true
}
receiveTimestamp: "2021-02-03T10:56:30.618763199Z"
}
1 Answers

I deployed it now and it was successful. The procedure is exactly the same as last time.

I think it's a GCP bug, but there was no failure information. https://status.cloud.google.com/

I've solved it, so I'll close it. Thank you very much.

Related