Ervin (OP)
Newbie
Offline
Activity: 10
Merit: 0
|
|
April 20, 2014, 01:22:26 PM |
|
I have bitcoind installed on a VPS debian server, i started running bitcoind 2 days ago for syncronizing with bitcoin network but i got the following error today. root@vps:~# bitcoind getinfo { "version" : 32400, "balance" : 0.00000000, "blocks" : 258354, "connections" : 9, "proxy" : "", "generate" : false, "genproclimit" : -1, "difficulty" : 112628548.66634709, "hashespersec" : 0, "testnet" : false, "keypoololdest" : 1397553052, "paytxfee" : 0.00000000, "errors" : "EXCEPTION: 11DbException \nDb::put: Cannot allocate memory \nbitcoin in ProcessMessage() \n" }
I have no idea what this error mean, or how can i resolve this kind of error.
|
|
|
|
mriou
Newbie
Offline
Activity: 26
Merit: 0
|
|
April 20, 2014, 04:03:44 PM |
|
Your VPS doesn't have enough memory. You'll need to upgrade.
|
|
|
|
Ervin (OP)
Newbie
Offline
Activity: 10
Merit: 0
|
|
April 20, 2014, 04:16:08 PM |
|
well, i really don't know .. maybe there is another problem. Last week i run bitcoind syncronization on my personal computer(over windows) with lower configuration than my rented VPS, and I did't get such error.
|
|
|
|
cr1776
Legendary
Offline
Activity: 4228
Merit: 1313
|
|
April 20, 2014, 04:48:38 PM |
|
How much RAM does the system have? You may be able to enable swap on the machine and fix the issue if you can allocate a few more GBs in swap space. As mriou says, this is a memory issue. e.g. swapon /var/swap.img once you've created the swap image file. [edit: see https://wiki.debian.org/Swap ] You might also be able to decrease the number of connections which I've heard may decrease memory usage. I haven't tried that, I just make sure the machine has enough memory with some swap space too. This should probably be in the tech support thread too, btw.
|
|
|
|
cr1776
Legendary
Offline
Activity: 4228
Merit: 1313
|
|
April 20, 2014, 04:53:38 PM |
|
The part highlighted also looks odd. You may want to download and build from github because that version looks really old. Did you by any chance do an apt-get for bitcoin? iirc that version is way out of date. ... "version" : 32400, ... I have no idea what this error mean, or how can i resolve this kind of error.
|
|
|
|
Ervin (OP)
Newbie
Offline
Activity: 10
Merit: 0
|
|
April 20, 2014, 05:41:21 PM Last edit: April 20, 2014, 05:53:09 PM by Ervin |
|
VPS configuration Disk 14.65 GB 48.83 GB Inode 50002 25600000 Memory 216 MB 4 GB Backup 0 1 Traffic 28.4 GB 2929.69 GB LTraffic 0 MB - CPU0 speed 0.3GHz - CPU1 speed 0.3GHz - CPU2 speed 0.3GHz - CPU3 speed 0.3GHz - CPU4 speed 0.3GHz - CPU5 speed 0.3GHz - i don't have any swap area on VPS.
|
|
|
|
Ervin (OP)
Newbie
Offline
Activity: 10
Merit: 0
|
|
April 20, 2014, 06:14:26 PM |
|
I tried to create swap area but unfortonetly i haven't right to create. I got the following error "swapon: /swap: swapon failed: Operation not permitted"
Is there any another solution, or i have to discuss this problem via VPS hosting administrators?
|
|
|
|
dserrano5
Legendary
Offline
Activity: 1974
Merit: 1029
|
|
April 20, 2014, 07:33:33 PM |
|
"RAM" isn't enough. I mean, I have an openvz VPS with 4 Gb "RAM" but when examining the file /proc/user_beancounters I find some draconian limits that make it difficult to run bitcoind. You might be in a similar situation. There's more than "RAM" to it.
|
|
|
|
dewdeded
Legendary
Offline
Activity: 1232
Merit: 1011
Monero Evangelist
|
|
April 20, 2014, 08:32:33 PM |
|
Set "maxconnections" to 10 or 8 or 5. The highest number it wont crash with.
|
|
|
|
cr1776
Legendary
Offline
Activity: 4228
Merit: 1313
|
|
April 20, 2014, 09:31:21 PM |
|
I tried to create swap area but unfortonetly i haven't right to create. I got the following error "swapon: /swap: swapon failed: Operation not permitted"
Is there any another solution, or i have to discuss this problem via VPS hosting administrators?
Given that the error is "Cannot allocate memory", it is memory issue. You'd have to ask the admins or switch to a different provider - digital ocean has some nice options, btw. As I, and someone else said above, try limiting the connections. Also, as I said above, check the version - the current is 0.9.1 and your version is showing 32400 which is 0.3.2.4 iirc. The newer versions may handle memory better.
|
|
|
|
Ervin (OP)
Newbie
Offline
Activity: 10
Merit: 0
|
|
April 21, 2014, 04:32:44 AM Last edit: April 21, 2014, 04:49:25 AM by Ervin |
|
Well i must talk with administrator, but before it, i would like to try this solution: Set "maxconnections" to 10 or 8 or 5. The highest number it wont crash with. where can i configure bitcoind's max connections? (maybe in boitcoind.conf ? )
|
|
|
|
somic
Newbie
Offline
Activity: 11
Merit: 0
|
|
April 21, 2014, 07:36:59 AM |
|
Well i must talk with administrator, but before it, i would like to try this solution: Set "maxconnections" to 10 or 8 or 5. The highest number it wont crash with. where can i configure bitcoind's max connections? (maybe in boitcoind.conf ? ) net.cpp
|
|
|
|
|
VossArtesian
Newbie
Offline
Activity: 7
Merit: 0
|
|
May 27, 2014, 04:32:50 PM |
|
The part highlighted also looks odd. You may want to download and build from github because that version looks really old. Did you by any chance do an apt-get for bitcoin? iirc that version is way out of date. ... "version" : 32400, ... I have no idea what this error mean, or how can i resolve this kind of error.
I got this same memory error, get stuck at the same block, and have the same version 32400. That is however, the version installed from the bitcoin ppa:bitcoin/bitcoin
|
|
|
|
kjj
Legendary
Offline
Activity: 1302
Merit: 1026
|
|
May 27, 2014, 04:44:47 PM |
|
The part highlighted also looks odd. You may want to download and build from github because that version looks really old. Did you by any chance do an apt-get for bitcoin? iirc that version is way out of date. ... "version" : 32400, ... I have no idea what this error mean, or how can i resolve this kind of error.
I got this same memory error, get stuck at the same block, and have the same version 32400. That is however, the version installed from the bitcoin ppa:bitcoin/bitcoin Yeah, don't use that. It is ancient.
|
17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8 I routinely ignore posters with paid advertising in their sigs. You should too.
|
|
|
|