eos icon indicating copy to clipboard operation
eos copied to clipboard

eosd fails to start after some period of time.

Open pavybez opened this issue 9 years ago • 7 comments

How to replicate:

  1. start eosd.
  2. create some accounts
  3. create some contracts
  4. push some messages
  5. kill eosd
  6. wait for ~30 minutes.
  7. start eosd

Error is as below:

image

pavybez avatar Sep 04 '17 06:09 pavybez

This could be because the process was shutdown inappropriately. But still the process should be able to restart.

pavybez avatar Sep 04 '17 06:09 pavybez

It was caused by an improper shutdown of process.

Eosd need to improve its database consistency.

Use rm -rf data-dir/blockchain/ to walk around this problem.

On 4 Sep 2017, at 2:39 PM, Bezwada Satyapravin [email protected] wrote:

This could be because the process was shutdown inappropriately. But still the process should be able to restart.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/328#issuecomment-326878012, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad6ZPppyuNBuFl7fyqq3XhAo0J_FldOCks5se5sogaJpZM4PLgQ7.

ghost avatar Sep 04 '17 06:09 ghost

How did you kill eosd?

^C should do a clean shutdown.

Will look into other ways of signal clean shutdown.

bytemaster avatar Sep 04 '17 19:09 bytemaster

I killed it using kill -9 <pid>.

pavybez avatar Sep 07 '17 05:09 pavybez

That's a really heavy hammer. When you have multiple instances you can kill them all with pkill eosd and give them some time to shut down cleanly.

pmesnier avatar Sep 07 '17 05:09 pmesnier

The built in signal handler traps SIGINT (2) and SIGTERM (15) to do orderly shutdowns. If you start the eosd with the launcher, you can use launcher -k [signum] to terminate all that it started.

pmesnier avatar Sep 07 '17 05:09 pmesnier

Kill -9 not supported at the moment without a resync or replay. Closing.

heifner avatar Oct 18 '17 17:10 heifner