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.

Unable to shutdown after bootstrap errors

See original GitHub issue

Running in “JVM mode” the demo rest-http-crud at

This demo requires PostgreSQL to run. If you start it w/o the RDBMS being up, then the demo boots by printing appropriate exceptions about not being able to connect to the database - but then doesn’t respond to CTRL+C signals (nor kill -3), requiring a kill -9 to stop the demo.

If instead the RDBMS is available, then CTRL+C works as expected so I assume this relates with order of setup.

Let’s make sure the signal handlers are registered consistently as very first thing?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
dmlloydcommented, Dec 5, 2018

Ah, great; can you use jstack to capture the stack of the “hung” process in JVM mode?

0reactions
dmlloydcommented, Dec 5, 2018

Well, I couldn’t get your demo to start, but I do have a fix (I think - well, at least it doesn’t break anything that isn’t already broken). Here comes the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Let It Crash: Best Practices for Handling Node.js Errors on ...
Some strategies to gracefully shutdown the Node.js process and quickly restart your application after a catastrophic error terminates your ...
Read more >
Bootstrap failed and Connection refused errors occur ... - IBM
At a DB2 command prompt, run the following command: db2set DB2COMM=tcpip · Stop and restart the database with the following commands: db2stop
Read more >
Kafka 1.0 stops with FATAL SHUTDOWN error. Logs directory ...
If I try to restart, the same error occurs. Deleting log files helps to start Kafka, but it fails again after the short...
Read more >
First node fails to restart after bootstrap - Percona Forum
failed ! This is the log: root@pxc-node-1:~# cat /var/log/mysql/error.
Read more >
Resolve the "bootstrap action returned a non-zero return code ...
The cluster fails to launch, and the bootstrap action returns an error similar to the following: "bootstrap action 1 returned a non-zero ...
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