使用 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 …Run Code Online (Sandbox Code Playgroud)