Author

Topic: bitcoind crash (Read 1743 times)

sr. member
Activity: 350
Merit: 252
probiwon.com
April 16, 2011, 04:27:50 AM
#7
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
legendary
Activity: 2506
Merit: 1010
April 16, 2011, 01:17:05 AM
#6
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:
    https://bitcointalksearch.org/topic/guide-restart-bitcoind-automatically-if-it-crashes-or-dies-using-monit-5911
sr. member
Activity: 280
Merit: 252
April 05, 2011, 12:58:14 AM
#5
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?
legendary
Activity: 2506
Merit: 1010
April 03, 2011, 10:33:59 AM
#4
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
legendary
Activity: 1232
Merit: 1076
April 02, 2011, 02:06:20 PM
#3
Ubuntu. Even if there's a patch for this problem, it's good to have a backup for if Bitcoin does crash.
legendary
Activity: 2506
Merit: 1010
April 02, 2011, 01:41:06 PM
#2
Today bitcoind locked up on my server and wasn't responding to errors.

That is likely because of a deadlock issue, see:
  - https://bitcointalksearch.org/topic/bitcoind-stops-responding-to-rpc-requests-4904

gracefully recover when Bitcoin locks up?

You didn't mention your operating system.
legendary
Activity: 1232
Merit: 1076
April 02, 2011, 11:28:38 AM
#1
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).
Jump to: