无法删除版本 - gcloud app versions stop [id]
Cannot delete a version - gcloud app versions stop [id]
我无法使用 "gcloud app versions stop",我不知道如何退出自动模式。
它抛出以下错误:
ERROR: (gcloud.app.versions.stop) INVALID_ARGUMENT: serving status cannot be changed for Automatic Scaling versions
如文档所述here:
This command stops serving the specified versions. It may only be used
if the scaling module for your service has been set to manual.
您的应用程序的缩放模式在 app.yaml file(或 Java 中的 appengine-web.xml 文件)中定义,例如:
manual_scaling:
instances: 5
请注意,如果您没有在该文件中指定缩放策略,它默认为自动缩放,因此您会收到错误消息。
可能会出现您遇到上述错误但无法更改 中提到的 yaml 文件的情况,因为您在尝试更改时也会遇到此错误部署:
INVALID_ARGUMENT: Your app may not have more than 15 versions. Please delete one of the existing versions before trying to create a new version.
在那种情况下,我无法从终端找到解决方案,但很容易转到控制台的 "versions" 页面手动删除版本,可在此处获得:
我无法使用 "gcloud app versions stop",我不知道如何退出自动模式。
它抛出以下错误:
ERROR: (gcloud.app.versions.stop) INVALID_ARGUMENT: serving status cannot be changed for Automatic Scaling versions
如文档所述here:
This command stops serving the specified versions. It may only be used if the scaling module for your service has been set to manual.
您的应用程序的缩放模式在 app.yaml file(或 Java 中的 appengine-web.xml 文件)中定义,例如:
manual_scaling:
instances: 5
请注意,如果您没有在该文件中指定缩放策略,它默认为自动缩放,因此您会收到错误消息。
可能会出现您遇到上述错误但无法更改
INVALID_ARGUMENT: Your app may not have more than 15 versions. Please delete one of the existing versions before trying to create a new version.
在那种情况下,我无法从终端找到解决方案,但很容易转到控制台的 "versions" 页面手动删除版本,可在此处获得: