Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: genjix on April 02, 2011, 04:28:38 PM



Title: bitcoind crash
Post by: genjix on April 02, 2011, 04:28:38 PM
Today bitcoind locked up on my server and wasn't responding to errors.

Apart from saying 'bitcoin shouldn't crash', what kind of backup systems could exist to gracefully recover when Bitcoin locks up?

Not sure what can be done except calling an safety check hook which kills/restarts bitcoind. Ideally it'd be nice to run multiple nodes and switch between them freely (sharing the same wallets or having 'backup' nodes with a BTC store).


Title: Re: bitcoind crash
Post by: Stephen Gornick on April 02, 2011, 06:41:06 PM
Today bitcoind locked up on my server and wasn't responding to errors.

That is likely because of a deadlock issue, see:
  - http://bitcointalk.org/index.php?topic=4904.0

gracefully recover when Bitcoin locks up?

You didn't mention your operating system.


Title: Re: bitcoind crash
Post by: genjix on April 02, 2011, 07:06:20 PM
Ubuntu. Even if there's a patch for this problem, it's good to have a backup for if Bitcoin does crash.


Title: Re: bitcoind crash
Post by: Stephen Gornick on April 03, 2011, 03:33:59 PM
Ubuntu.

I've not used it, but perhaps Monit might be useful.  i.e., configure it to check the bitcoind process' health and then restart it if there's no response:
  http://mmonit.com/monit


Title: Re: bitcoind crash
Post by: gigabytecoin on April 05, 2011, 05:58:14 AM
Today bitcoind locked up on my server and wasn't responding to errors.

Apart from saying 'bitcoin shouldn't crash', what kind of backup systems could exist to gracefully recover when Bitcoin locks up?

Not sure what can be done except calling an safety check hook which kills/restarts bitcoind. Ideally it'd be nice to run multiple nodes and switch between them freely (sharing the same wallets or having 'backup' nodes with a BTC store).

Are you OCing your CPU and/or GPU? If so, by what percentage? And what CPU/GPU?


Title: Re: bitcoind crash
Post by: Stephen Gornick on April 16, 2011, 06:17:05 AM
Ubuntu.

I've not used it, but perhaps Monit might be useful.  i.e., configure it to check the bitcoind process' health and then restart it if there's no response:
  http://mmonit.com/monit

  gjs278 shared a monit script to restart:

  Restart bitcoind automatically if it crashes or dies using Monit:
    http://bitcointalk.org/index.php?topic=5911.0


Title: Re: bitcoind crash
Post by: bitcoinex on April 16, 2011, 09:27:50 AM
Today bitcoind locked up on my server and wasn't responding to errors.

Apart from saying 'bitcoin shouldn't crash', what kind of backup systems could exist to gracefully recover when Bitcoin locks up?

Not sure what can be done except calling an safety check hook which kills/restarts bitcoind. Ideally it'd be nice to run multiple nodes and switch between them freely (sharing the same wallets or having 'backup' nodes with a BTC store).

Also, plz enable core dumps. It is useful for know of the reasons of crash.
It can be done by creating this files:

Code:
$ cat /etc/sysctl.d/coredump_pattern.conf
kernel.core_pattern = /tmp/core.%e.%t.%u.%g.%p

$ cat /etc/security/limits.d/coredump.conf
* - core unlimited