Bitcoin Forum
September 27, 2018, 10:49:23 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoind daemon synchronizing error on VPS(debian)  (Read 1054 times)
Ervin
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
April 20, 2014, 01:22:26 PM
 #1

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.

Code:
        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.
1538088563
Hero Member
*
Offline Offline

Posts: 1538088563

View Profile Personal Message (Offline)

Ignore
1538088563
Reply with quote  #2

1538088563
Report to moderator
1538088563
Hero Member
*
Offline Offline

Posts: 1538088563

View Profile Personal Message (Offline)

Ignore
1538088563
Reply with quote  #2

1538088563
Report to moderator
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
mriou
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
April 20, 2014, 04:03:44 PM
 #2

Your VPS doesn't have enough memory. You'll need to upgrade.
Ervin
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
April 20, 2014, 04:16:08 PM
 #3

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 Offline

Activity: 2016
Merit: 1007


View Profile
April 20, 2014, 04:48:38 PM
 #4

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 Offline

Activity: 2016
Merit: 1007


View Profile
April 20, 2014, 04:53:38 PM
 #5

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
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
April 20, 2014, 05:41:21 PM
 #6

VPS configuration

Code:
	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
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
April 20, 2014, 06:14:26 PM
 #7

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 Offline

Activity: 1848
Merit: 1000



View Profile
April 20, 2014, 07:33:33 PM
 #8

"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 Offline

Activity: 1190
Merit: 1011


Monero Evangelist


View Profile WWW
April 20, 2014, 08:32:33 PM
 #9

Set "maxconnections" to 10 or 8 or 5. The highest number it wont crash with.
cr1776
Legendary
*
Offline Offline

Activity: 2016
Merit: 1007


View Profile
April 20, 2014, 09:31:21 PM
 #10

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
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
April 21, 2014, 04:32:44 AM
 #11

Well i must talk with administrator, but before it, i would like to try this solution:

Quote
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 Offline

Activity: 11
Merit: 0


View Profile
April 21, 2014, 07:36:59 AM
 #12

Well i must talk with administrator, but before it, i would like to try this solution:

Quote
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
dewdeded
Legendary
*
Offline Offline

Activity: 1190
Merit: 1011


Monero Evangelist


View Profile WWW
April 21, 2014, 07:46:34 AM
 #13

where can i  configure bitcoind's max connections? (maybe in boitcoind.conf ? )
yeah, see https://en.bitcoin.it/wiki/Running_Bitcoin
VossArtesian
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 27, 2014, 04:32:50 PM
 #14

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 Offline

Activity: 1302
Merit: 1001



View Profile
May 27, 2014, 04:44:47 PM
 #15

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.
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!