X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=README.leveldb;h=b8120137efac3da84b6996903a9239a7aa4a4ec8;hb=ac6403ee0964644e1afe3f5df2daaf668a0ef261;hp=e57b3a771ba41d0107aa12e9a7a7e7a769d9d0fa;hpb=23130156749a156ac71322c1d1a1fb8aae460c1d;p=electrum-server.git diff --git a/README.leveldb b/README.leveldb index e57b3a7..b812013 100644 --- a/README.leveldb +++ b/README.leveldb @@ -9,6 +9,7 @@ __________________________________________________________ 1. patch and compile bitcoind. Install version 0.8 or equivalent. +Patch it with the patch distributed with Electrum. Note: Even though Electrum's database uses pruning, you cannot use it with a pruning bitcoind. A full bitcoin node is required in order to @@ -21,6 +22,12 @@ __________________________________________________________ sudo apt-get install python-leveldb +alternatively build yourself, see +http://code.google.com/p/py-leveldb/ +and +http://peter-hoffmann.com/2011/installation-leveldb-ubuntu-python.html +make sure you have libtool, automake and pkg-config + __________________________________________________________ 3. edit /etc/electrum.conf : @@ -29,7 +36,8 @@ __________________________________________________________ backend = leveldb [leveldb] -dbpath = /path/to/your/database +path = /path/to/your/database +pruning_limit = 10 ______________________________________________________________ @@ -38,7 +46,7 @@ ______________________________________________________________ In order to speed up the initial catch_up phase, it is recommended to locate your database in shared memory: - dbpath = /run/shm/electrum_db + path = /run/shm/electrum_db Once your server has finished catching up, copy your database to disk and update the path in /etc/electrum.conf @@ -59,4 +67,13 @@ Other commands are available: ./server load : view the size of the queue +______________________ +Troubleshooting: + +* if your server or bitcoind is killed because is uses too much +memory, configure bitcoind to limit the number of connections + +* if you see "Too many open files" errors, you may need to increase +your user's File Descriptors limit. For this, see +http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/