使用 Google Cloud SQL 我试图将我的主实例恢复到以前的备份,但首先我想克隆我不想恢复的表和数据库的实例。在等待克隆一个多小时后,我取消了克隆并尝试删除克隆的实例。但是,克隆现在停留在维护状态并尝试删除我收到以下错误。
mycomputer:~ myuser$ gcloud sql instances delete cloned
All of the instance data will be lost when the instance is deleted.
Do you want to continue (Y/n)? y
ERROR: (gcloud.sql.instances.delete) The instance or operation is not in an appropriate state to handle the request.
Run Code Online (Sandbox Code Playgroud)
该实例是使用以下命令创建的,然后在等待太长时间后使用 CTRL+C 退出。
mycomputer:~ myuser$ gcloud sql instances clone main cloned
Cloning Cloud SQL instance.../ERROR: Caught socket error, retrying:[Errno 54] Connection reset by peer
ERROR: Caught socket error, retrying: [Errno 54] Connection reset by peer
Cloning Cloud SQL instance...|
Cloning Cloud SQL instance...\^C
Command killed by keyboard interrupt
Run Code Online (Sandbox Code Playgroud)
我尝试使用 Cloud SQL API Explorer 复制此问题。我在 Google 论坛上发起的另一个线程中发现了此错误消息。当实例使用相同名称时,会出现错误消息“实例或操作未处于处理请求的适当状态”。现在我也明白为什么在 Terraform 的官方文档中,创建一个 random_id 资源作为数据库名称后缀。
| 归档时间: |
|
| 查看次数: |
3015 次 |
| 最近记录: |