Improve UX of graceful shutdown error message
See original GitHub issueIssue Description
After merging graceful shutdown feature I tried to shutdown codenvy as usual: docker ... codenvy/cli:nightly stop
.
I got next error:
ERROR: (codenvy action/graceful-stop): Call on rest url /api/system/state returned invalid response code (401) with error:User not authorized to call this method.
It was not obvious how to handle that situations since I missed demo of it and its usage. CLI help say nothing about that. Looks like we don’t provide any information about per-action options. And there was no information about graceful shutdown. BTW docs were not shipped yet.
Can we put there additional message on what should be provided and how to skip it, e.g.
Please add -user <admin username> -password <admin password> to gracefully shutdown server or --force to skip graceful shutdown
?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
I have proposal: always skip graceful shutdown call result in development mode, e.g. dev mode = “–force” to make developer life a bit easier. Sometimes we have our api war broken and cannot shutdown then, have to stop all containers manually.
Fixed by https://github.com/eclipse/che/pull/4064