Search code examples
spring-cloud-dataflowspring-shell

Spring Cloud DataFlow shell command "not currently available"


I sometimes get this error:

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)

At other times it works as expected.

Note that I start the shell with --dataflow.uri=<url> --spring.shell.commandFile=<path>.

Why would the app register command not be available? What can I do to make it available?


Solution

  • This would happen if the last time the server tried to connect to the REST API of the dataflow server, the server was down. This happens at

    1. shell start
    2. everytime you do dataflow config server <url>