无法删除流,因为存储库中的包元数据表示并非所有版本都已删除
cannot delete a stream because Package Metadata in Repository say not all releases DELETED
我是 Spring Data Cloud Flow 新手,我很难摆脱流。
stream list
显示我有一个名为 ticktock5
的流。
stream undeploy ticktock5
stream destroy ticktock5
导致同样的错误:
Command failed org.springframework.cloud.dataflow.rest.client.DataFlowClientException: Can not delete Package Metadata [ticktock5:1.0.0] in Repository [local]. Not all releases of this package have the status DELETED. Active Releases [ticktock5]
这是
上的 运行
macOS 10.12.6,
java 1.8.0_161,
Docker 2.0.0.0-mac81(29211),
Spring Cloud Data Flow 1.7.2.RELEASE
复制简单:
Create a stream
Deploy it
Wait
After a period of time (5 min or longer), the deployment will fail.
No errors are given in the data flow server log
我最终重新创建了我的 Docker/K8s 环境并解决了问题
我已经通过更改 skipper 数据库中的表来修复。 (在我的例子中 mysql db)
执行的步骤。
- 从 skipper_release
中删除流
delete from skipper_release where name = 'my-stuck-stream-name'
- 从 skipper_app_deployer_data
中删除流
delete from skipper_app_deployer_data where release_name = 'my-stuck-stream-name'
- 从 skipper_package_metadata
中删除流
delete from skipper_package_metadata where name = 'my-stuck-stream-name'
- 如果您在取消部署流时遇到问题,请手动删除资源。 (我使用的是kubernetes平台,所以我已经删除了与该流相关的部署和服务)
我是 Spring Data Cloud Flow 新手,我很难摆脱流。
stream list
显示我有一个名为 ticktock5
的流。
stream undeploy ticktock5
stream destroy ticktock5
导致同样的错误:
Command failed org.springframework.cloud.dataflow.rest.client.DataFlowClientException: Can not delete Package Metadata [ticktock5:1.0.0] in Repository [local]. Not all releases of this package have the status DELETED. Active Releases [ticktock5]
这是
上的 运行macOS 10.12.6,
java 1.8.0_161,
Docker 2.0.0.0-mac81(29211),
Spring Cloud Data Flow 1.7.2.RELEASE
复制简单:
Create a stream
Deploy it
Wait
After a period of time (5 min or longer), the deployment will fail.
No errors are given in the data flow server log
我最终重新创建了我的 Docker/K8s 环境并解决了问题
我已经通过更改 skipper 数据库中的表来修复。 (在我的例子中 mysql db)
执行的步骤。
- 从 skipper_release 中删除流
delete from skipper_release where name = 'my-stuck-stream-name'
- 从 skipper_app_deployer_data 中删除流
delete from skipper_app_deployer_data where release_name = 'my-stuck-stream-name'
- 从 skipper_package_metadata 中删除流
delete from skipper_package_metadata where name = 'my-stuck-stream-name'
- 如果您在取消部署流时遇到问题,请手动删除资源。 (我使用的是kubernetes平台,所以我已经删除了与该流相关的部署和服务)