Spring 云数据流 shell 命令 "not currently available"

Spring Cloud DataFlow shell command "not currently available"

有时得到这个错误:

2016-10-20T15:38:24+0200 WARN main o.s.s.c.SimpleParser:131 - Command 'app register --name email --type source --uri <uriToMyDockerImage>' was found but is not currently available (type 'help' then ENTER to learn about this command)

在其他时候它按预期工作。

请注意,我用 --dataflow.uri=<url> --spring.shell.commandFile=<path> 开始 shell。

为什么 app register 命令不可用?我该怎么做才能让它可用?

如果服务器最后一次尝试连接到数据流服务器的 REST API,服务器已关闭,就会发生这种情况。 这发生在

  1. shell开始
  2. 每次你做 dataflow config server <url>