Bitcoin Forum
December 07, 2016, 10:41:46 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoind -daemon crashes  (Read 3293 times)
Soak
Full Member
***
Offline Offline

Activity: 213



View Profile
June 23, 2011, 08: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?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700


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

You need more RAM.
Soak
Full Member
***
Offline Offline

Activity: 213



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


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


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.

F**ken bitcoins... How do they work?
JoelKatz
Legendary
*
Offline Offline

Activity: 1386


Democracy is vulnerable to a 51% attack.


View Profile WWW
June 23, 2011, 02:06:20 PM
 #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.
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
nased0
Newbie
*
Offline Offline

Activity: 20


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!

If my posts are helpful, please send me something to 1AAj2HTautkcbVdHwwQu4rYWRFSUm4pAT7 . Thanks!
Soak
Full Member
***
Offline Offline

Activity: 213



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!