question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve UX of graceful shutdown error message

See original GitHub issue

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:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mshaposhnikcommented, Feb 6, 2017

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.

0reactions
benoitfcommented, Feb 13, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing Graceful Shutdown in Go | RudderStack Blog
This post details the implementation of graceful shutdown on Rudder Server. You'll find a number of anti-patterns & learn how to make ...
Read more >
A graceful shutdown #1938 - status-im/nimbus-eth2 - GitHub
When attempting to shutdown using Ctrl+c, Shutting down after having received SIGINT is hanging for long enough that I'm exiting the ...
Read more >
The Last Goodbye: How To Shut Down A Failing Product
You simply tell users that you are not developing the product further and let it run quietly in the background. You hope that...
Read more >
Improved graceful shutdown webserver - Marco Franssen
In a previous blogpost I wrote how to create a Webserver in Go with graceful shutdown. This time I want to show you...
Read more >
Kubernetes best practices: terminating with grace
If your application doesn't gracefully shut down when receiving a SIGTERM you can use this hook to trigger a graceful shutdown. Most programs ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found