Author

Topic: Bitcoind -daemon crashes (Read 3774 times)

full member
Activity: 213
Merit: 100
June 23, 2011, 03: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.
newbie
Activity: 79
Merit: 0
June 23, 2011, 09:31:36 AM
#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!
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
June 23, 2011, 09:06:20 AM
#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]
newbie
Activity: 7
Merit: 0
June 23, 2011, 08:53:39 AM
#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.
hero member
Activity: 700
Merit: 500
June 23, 2011, 07:20:45 AM
#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.
full member
Activity: 213
Merit: 100
June 23, 2011, 03:16:52 AM
#3
You need more RAM.

Are you sure? How many RAM I need you think?
hero member
Activity: 700
Merit: 500
June 23, 2011, 03:07:56 AM
#2
You need more RAM.
full member
Activity: 213
Merit: 100
June 23, 2011, 03:05:06 AM
#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?
Jump to: