Bitcoin Forum
April 20, 2024, 02:26:40 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind -daemon crashes  (Read 3760 times)
Soak (OP)
Full Member
***
Offline Offline

Activity: 213
Merit: 100



View Profile
June 23, 2011, 08:05:06 AM
Last edit: June 23, 2011, 08:41:44 AM by Soak
 #1

Hello,

Sorry for post in this forum but I haven't access to the "Technical Support" forum.

When I launch ./bitcoind -daemon on my server, it runs a few minutes (~5/10 minutes) and crashes.

Log:

Quote
[...]
ProcessBlock: ACCEPTED
sending: inv (253 bytes)
sending: inv (253 bytes)
received: addr (61 bytes)
AddAddress(188.163.2.213:8333)
AddAddress(78.149.171.255:8333)
received: inv (109 bytes)
  got inventory: block 0000000001f4f06c6dbe  have
  got inventory: block 000000000867d8f71262  have
  got inventory: block 000000000a33c33d8994  have
sending: inv (253 bytes)
received: getdata (36003 bytes)
received getdata for: block 0000000006c0240f5bd6
sending: block (aborted)


************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessage()

ProcessMessage(getdata, 36003 bytes) FAILED
received: getdata (36003 bytes)
received getdata for: block 00000000061f7b758f52
sending: block (aborted)


************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessage()

ProcessMessage(getdata, 36003 bytes) FAILED
received: getdata (36003 bytes)
received getdata for: block 000000000d7489d709ae
sending: block (aborted)


************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessage()

ProcessMessage(getdata, 36003 bytes) FAILED
received: getdata (36003 bytes)
received getdata for: block 00000000048507026a75
sending: block (aborted)


************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessage()

ProcessMessage(getdata, 36003 bytes) FAILED
received: getdata (36003 bytes)
received getdata for: block 000000000a99031e3fca
sending: block (aborted)


************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessage()

ProcessMessage(getdata, 36003 bytes) FAILED
received: getdata (36003 bytes)
received getdata for: block 000000000ce5f84a1a6f
sending: block (aborted)


************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessage()

ProcessMessage(getdata, 36003 bytes) FAILED
received: getdata (36003 bytes)
received getdata for: block 000000000782264a9c71
sending: block (aborted)


************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessage()

ProcessMessage(getdata, 36003 bytes) FAILED
sending: inv (aborted)


************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ThreadMessageHandler()

Configuration:

OS: Ubuntu 10.09 LTS (virtual server)
Mem: 256 mb
SWAP: 256 mb


I can't add memory without pay more to my host. I have test 0.3.21, 0.3.23 and try to delete chinese locale folder.

Anyone can help me please?
1713580000
Hero Member
*
Offline Offline

Posts: 1713580000

View Profile Personal Message (Offline)

Ignore
1713580000
Reply with quote  #2

1713580000
Report to moderator
1713580000
Hero Member
*
Offline Offline

Posts: 1713580000

View Profile Personal Message (Offline)

Ignore
1713580000
Reply with quote  #2

1713580000
Report to moderator
1713580000
Hero Member
*
Offline Offline

Posts: 1713580000

View Profile Personal Message (Offline)

Ignore
1713580000
Reply with quote  #2

1713580000
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713580000
Hero Member
*
Offline Offline

Posts: 1713580000

View Profile Personal Message (Offline)

Ignore
1713580000
Reply with quote  #2

1713580000
Report to moderator
1713580000
Hero Member
*
Offline Offline

Posts: 1713580000

View Profile Personal Message (Offline)

Ignore
1713580000
Reply with quote  #2

1713580000
Report to moderator
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile
June 23, 2011, 08:07:56 AM
 #2

You need more RAM.
Soak (OP)
Full Member
***
Offline Offline

Activity: 213
Merit: 100



View Profile
June 23, 2011, 08:16:52 AM
 #3

You need more RAM.

Are you sure? How many RAM I need you think?
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile
June 23, 2011, 12:20:45 PM
 #4

You need more RAM.

Are you sure? How many RAM I need you think?

tbh I'm not sure, it depends on how big your pools going to be. go for at least 1gb.
Member123
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 23, 2011, 01:53:39 PM
 #5

When I launch ./bitcoind -daemon on my server, it runs a few minutes (~5/10 minutes) and crashes.

I don't know why it's crashing, but I do know that you don't need the -daemon switch if you're running bitcoind.

It's either bitcoin -daemon or just bitcoind, but not bitcoind -daemon.
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
June 23, 2011, 02:06:20 PM
Last edit: June 23, 2011, 02:21:42 PM by JoelKatz
 #6

Fixes in approximate order of preference:
1) Remove or adjust any resources limits (RSS/VM) on the bitcoind process.
2) Add more physical RAM.
3) Add more swap space.
4) Turn on memory overcommit.

On my 64-bit Linux box, bitcoind needs about 1GB of virtual memory and about 256MB of physical memory.


I don't know why it's crashing, but I do know that you don't need the -daemon switch if you're running bitcoind.
It's either bitcoin -daemon or just bitcoind, but not bitcoind -daemon.

If you want to run bitcoind as a daemon, you have to give it the -daemon flag.

$ ./bitcoind -daemon
bitcoin server starting
$

$ ./bitcoind
[wait forever, bitcoind is running]

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
nased0
Newbie
*
Offline Offline

Activity: 79
Merit: 0


View Profile
June 23, 2011, 02:31:36 PM
 #7

I have created a script for running bitcoind as a system service.
http://forum.bitcoin.org/index.php?topic=16823.msg260914#msg260914

Now I have my wallet.dat file stored on a secure root account in a Linux server.
I'm normally working on an unprivileged account, and bitcoind starts with Linux and works unattended.
It beats storing bitcoins on an unsecure Windows box for sure!
Soak (OP)
Full Member
***
Offline Offline

Activity: 213
Merit: 100



View Profile
June 23, 2011, 08:04:16 PM
 #8

It's either bitcoin -daemon or just bitcoind, but not bitcoind -daemon.

Yes, but it's the same: it crashes with only bitcoind too. I have buy a dedicated server with 2Gb memory and still running since a few hours.

I think the problem was really the quantity of RAM.
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!