无法删除流,因为存储库中的包元数据说并非所有版本都已删除

时间:2019-01-06 15:49:31

标签: spring-cloud-dataflow spring-cloud-skipper

我是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

2 个答案:

答案 0 :(得分:1)

我已通过更改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 平台,所以我删除了与该流相关的部署和服务)

答案 1 :(得分:0)

我最终重新创建了Docker / K8s环境,并解决了问题