Bitcoin Forum
May 24, 2022, 10:21:08 PM *
News: Latest Bitcoin Core release: 23.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind crash  (Read 1684 times)
genjix
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1050


View Profile
April 02, 2011, 04:28:38 PM
 #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).
1653430868
Hero Member
*
Offline Offline

Posts: 1653430868

View Profile Personal Message (Offline)

Ignore
1653430868
Reply with quote  #2

1653430868
Report to moderator
1653430868
Hero Member
*
Offline Offline

Posts: 1653430868

View Profile Personal Message (Offline)

Ignore
1653430868
Reply with quote  #2

1653430868
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1653430868
Hero Member
*
Offline Offline

Posts: 1653430868

View Profile Personal Message (Offline)

Ignore
1653430868
Reply with quote  #2

1653430868
Report to moderator
1653430868
Hero Member
*
Offline Offline

Posts: 1653430868

View Profile Personal Message (Offline)

Ignore
1653430868
Reply with quote  #2

1653430868
Report to moderator
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1004


View Profile
April 02, 2011, 06: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:
  - http://bitcointalk.org/index.php?topic=4904.0

gracefully recover when Bitcoin locks up?

You didn't mention your operating system.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


genjix
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1050


View Profile
April 02, 2011, 07: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.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1004


View Profile
April 03, 2011, 03:33:59 PM
 #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

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


gigabytecoin
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
April 05, 2011, 05: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?
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1004


View Profile
April 16, 2011, 06: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:
    http://bitcointalk.org/index.php?topic=5911.0

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


bitcoinex
Sr. Member
****
Offline Offline

Activity: 350
Merit: 252


probiwon.com


View Profile WWW
April 16, 2011, 09: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

New bitcoin lottery: probiwon.com
- Moжeт, ты eщё и в Heвидимyю Pyкy Pынкa вepyeшь? - Зaчeм жe вepoвaть в тo, чтo мoжнo нaблюдaть нeпocpeдcтвeннo?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!