我正在尝试创建Cloud SQL实例,但无法这样做。
我尝试了许多变体:
gcloud
我有一个最新的结算帐户(其他GCP服务运行正常)。我是项目负责人,因此登录了控制台和gcloud
每次我看到相同的无用的,通用的错误消息“发生未知错误”。另请参见以下错误日志示例。请帮忙!
{
insertId: "XXX"
logName: "projects/XXXX/logs/cloudaudit.googleapis.com%2Factivity"
protoPayload: {
@type: "type.googleapis.com/google.cloud.audit.AuditLog"
authenticationInfo: {
principalEmail: "XXXX"
}
authorizationInfo: [
0: {
granted: true
permission: "cloudsql.instances.create"
resource: "instances/XXXX"
resourceAttributes: {
}
}
]
methodName: "cloudsql.instances.create"
request: {
@type: "type.googleapis.com/cloudsql.admin.InstancesInsertRequest"
clientIp: "XXXX"
resource: {
backendType: "SECOND_GEN"
databaseVersion: "POSTGRES_11"
instanceName: {
fullProjectId: "XXXX"
instanceId: "XXXX"
}
instanceType: "CLOUDSQL_INSTANCE"
region: "us-central1"
settings: {
activationPolicy: "ALWAYS"
availabilityType: "ZONAL"
backupConfig: {
enabled: true
replicationLogArchivingEnabled: false
specification: "every day 07:00"
}
dataDiskSizeGb: "10"
dataDiskType: "PD_SSD"
ipConfiguration: {
enabled: true
}
locationPreference: {
gceZone: "us-central1-a"
}
maintenanceWindow: {
}
pricingPlan: "PER_USAGE"
storageAutoResize: true
storageAutoResizeLimit: "0"
tier: "db-custom-1-3840"
}
}
}
requestMetadata: {
callerIp: "XXXX"
destinationAttributes: {
}
requestAttributes: {
auth: {
}
time: "2019-06-04T05:46:10.255Z"
}
}
resourceName: "instances/XXXX"
response: {
@type: "type.googleapis.com/cloudsql.admin.InstancesInsertResponse"
}
serviceName: "cloudsql.googleapis.com"
status: {
code: 2
message: "UNKNOWN"
}
}
receiveTimestamp: "2019-06-04T05:46:10.297960113Z"
resource: {
labels: {
database_id: "XXXX"
project_id: "XXXX"
region: "us-central"
}
type: "cloudsql_database"
}
severity: "ERROR"
timestamp: "2019-06-04T05:46:10.250Z"
}
答案 0 :(得分:1)
由于您已经说过,错误消息过于笼统,因此我认为适当的措施是通过检查您的项目来更深入地研究问题。
作为GCP支持人员,我建议您通过在以下组件中提供您的项目编号来公开发行私人出版物:
https://issuetracker.google.com/issues/new?component=187202
创建完成后,请告诉我,我将尽快开始进行处理。
答案 1 :(得分:0)
尝试使用Terraform创建SQL实例时遇到了类似的问题。
事实证明,数据库实例名称为can't be reused immediately:
如果删除实例,可以重用实例名称吗?
是,但不是立即。实例名称在长达一周的时间内无法使用,然后才能重新使用。
为解决这个问题,我不得不在创建数据库实例名称时添加一个随机后缀。