Google Cloud App Engine Flex 部署错误

Google Cloud App Engine Flex deployment error

我在将 flex 版本 .net 核心应用程序部署到 GCP 时收到错误消息。 我还通过 gcloud app deploy 进行了测试并得到了完全相同的问题。在日志中,有多个错误都带有 audit_log, method: "google.appengine.v1.Versions.CreateVersion",下面添加了 status { code: 13 }。 似乎没有任何其他日志可以帮助调查。 有什么建议吗?

{
  "protoPayload": {
    "@type": "type.googleapis.com/google.cloud.audit.AuditLog",
    "status": {
      "code": 13
    },
    "authenticationInfo": {
      "principalEmail": "xxxx.iam.gserviceaccount.com",
      "serviceAccountKeyName": "//iam.googleapis.com/projects/xxxxxx/serviceAccounts/xxxx.iam.gserviceaccount.com/keys/xxxxxxxxxxxx"
    },
    "requestMetadata": {
      "callerIp": "xx.xx.xx.xx",
      "requestAttributes": {
        "time": "2021-01-21T15:32:15.695398Z",
        "auth": {}
      },
      "destinationAttributes": {}
    },
    "serviceName": "appengine.googleapis.com",
    "methodName": "google.appengine.v1.Versions.CreateVersion",
    "authorizationInfo": [
      {
        "resource": "apps/xxxxxxxx/services/default/versions/XYZ",
        "permission": "appengine.versions.create",
        "granted": true,
        "resourceAttributes": {}
      }
    ],
    "resourceName": "apps/xxxxxxxx/services/default/versions/XYZ",
    "serviceData": {
      "@type": "type.googleapis.com/google.appengine.v1.AuditData",
      "createVersion": {
        "request": {
          "parent": "apps/xxxxxxxx/services/default",
          "version": {
            "id": "XYZ",
            "automaticScaling": {
              ....
            },
            "resources": {
              ....
            },
            "runtime": "aspnetcore",
            "env": "flex",
            "servingStatus": "SERVING",
            "envVariables": {
              "GCLOUD_PROJECT_NUMBER": "xxxxxxx"
            },
            "readinessCheck": {
              ....
            },
            "livenessCheck": {
              ....
            }
          }
        }
      }
    },
    "resourceLocation": {
      "currentLocations": [
        ....
      ]
    }
  },
  "insertId": "crndlud361i",
  "resource": {
    "type": "gae_app",
    "labels": {
      ....
    }
  },
  "timestamp": "2021-01-21T15:32:15.695398Z",
  "severity": "ERROR",
  "logName": "projects/xxxxxxxx/logs/cloudaudit.googleapis.com%2Factivity",
  "receiveTimestamp": "2021-01-21T15:32:15.683297004Z"
}

向 Google 提出了问题,以就此问题提出建议。我不确定这些人到底有没有深究,但最终解决的是这个建议:

Can you try to disable and enable again App Engine Admin API in Console->Api & Services section and try to deploy again? If it doesn't help try to also disable/enable Google App Engine Flexible Environment API and try again.

更新:G 伙计们已经查清楚了。这是为 App Engine Flexible Environment Service Agent 角色删除的权限。 Google 工程师确认他们将研究改进错误详细信息。