尝试使用 Spring Cloud Data Flow 部署 Java Spring Boot 应用程序/任务。但它因以下异常而失败
CF-UnprocessableEntity(10008):请求在语义上无效:任务必须有一个 droplet。指定 droplet 或将当前 droplet 分配给应用程序。
通过 SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_API-TIMEOUT 到 720 和 SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_TASK_TASK_TIMEOUT 到 360 尝试了以下解决方案,但没有奏效。
TaskLauncher cloudfoundry 任务启动问题
在此处查找日志 -
2017-07-13T14:19:42.326+05:30 [RTR/0] [OUT] data-flow-server.apps.titan.lab.emc.com - [2017-07-13T08:49:42.285+0000] "GET /tasks/definitions?page=0&size=10&sort=DEFINITION_NAME,DEFINITION,ASC HTTP/1.0" 200 0 682 " https://data-flow-server.apps.titan.lab.emc.com/dashboard/index. htmlonNext(FluxSwitchIfEmpty.java:67) ~[reactor-core-3.0.7.RELEASE.jar!/:3.0.7.RELEASE] 2017-07-13T14:19:42.956+05:30 [APP/PROC/WEB/ 0] [OUT] 在 reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108) ~[reactor-core-3.0.7.RELEASE.jar!/:3.0.7.RELEASE] 2017-07- 13T14:19:42.956+05:30 [APP/PROC/WEB/0] [OUT] org.cloudfoundry.client.v3.ClientV3Exception: CF-UnprocessableEntity(10008): 请求在语义上无效:任务必须有一个 droplet。指定 droplet 或将当前 droplet 分配给应用程序。2017-07-13T14:19:42.956+05:30 [APP/PROC/WEB/0] [OUT] at org.cloudfoundry.reactor.util.ErrorPayloadMapper.lambda$null$3(ErrorPayloadMapper.java:65) ~[cloudfoundry -client-reactor-2.14.0.RELEASE.jar!/:2.14.0.RELEASE] 2017-07-13T14:19:42.956+05:30 [APP/PROC/WEB/0] [OUT] at org.cloudfoundry .reactor.util.ErrorPayloadMapper.lambda$null$10(ErrorPayloadMapper. 30 [APP/PROC/WEB/0] [OUT] 2017-07-13 08:49:42.969 错误 14 --- [nio-8080-exec-8] oscdscRestControllerAdvice:处理请求时捕获异常 2017-07-13T14 :19:42.971+05:30 [APP/PROC/WEB/0] [OUT] org.cloudfoundry.client.v3.ClientV3Exception: CF-UnprocessableEntity(10008): 请求在语义上无效:任务必须有一个 droplet。指定 droplet 或将当前 droplet 分配给应用程序。2017-07-13T14:19:42.971+05:30 [APP/PROC/WEB/0] [OUT] at org.cloudfoundry.reactor.util.ErrorPayloadMapper.lambda$null$3(ErrorPayloadMapper.java:65) ~[cloudfoundry -client-reactor-2.14.0.RELEASE.jar!/:2.14.0.RELEASE] 2017-07-13T14:19:42.971+05:30 [APP/PROC/WEB/0] [OUT] at org.cloudfoundry .reactor.util.ErrorPayloadMapper.lambda$null$10(ErrorPayloadMapper.java:108) ~[cloudfoundry-client-reactor-2.14.0.RELEASE.jar!/:2.14.0.RELEASE] 2017-07-13T14:19: 42.971+05: