Pages:
Author

Topic: Electrum server discussion thread - page 12. (Read 61507 times)

jr. member
Activity: 41
Merit: 1
September 03, 2013, 05:30:27 AM

And electrum-server is started correctly?

I have no experience with EC2 Sad

I'm starting it and stopping it with the 'start' and 'stop' scripts in ~/src/electrum/server, and seems to run fine and connect when I run a local electrum client. It brings up the transactions and the balances just fine.

What are these two parameters from the electrum.conf server file?

host=localhost (?? Is this correct? Since this is the Electrum server, then isn't this correct?)

password=secret (Huh This bugs me a lot. Do I just make something up for the password, or is this supposed to somehow be used?)

From 'electrum.conf' file:

[server]
host = localhost
#report_host =                                                                                                                                 
native_port=50000
stratum_tcp_port = 50001
stratum_http_port = 8081
stratum_tcp_ssl_port = 50002                                                                                                                   
stratum_http_ssl_port = 8082                                                                                                                   
#report_stratum_tcp_port = 50001                                                                                                               
#report_stratum_http_port = 80                                                                                                                 
#report_stratum_tcp_ssl_port = 50002                                                                                                           
#report_stratum_http_ssl_port = 443                                                                                                             
password = secret

sr. member
Activity: 349
Merit: 250
September 03, 2013, 05:22:02 AM
Firewall? NAT?

I'm running on an Amazon EC2 server. The ports listed above, are the open ports.

My local client that I'm using to test it, is my laptop, and it connects fine to the other electrum servers. I'm using the IP port to specify the name of my server, and this works when I attach locally and use 127.0.0.1. It just doesn't work when I'm connecting from my laptop and using the IP of the Amazon server.

The 'password=secret' is the only thing that bugs me, from the server's electrum.conf file. I don't know understand it. What is it a password to?

It's frustrating because this setup went so well. I had the whole thing ready to download the block chain in about 2 hours, since I already had the bitcoind up and running; only to be stumped by a port issue. Smiley

And electrum-server is started correctly?

I have no experience with EC2 Sad
jr. member
Activity: 41
Merit: 1
September 03, 2013, 05:00:25 AM
Firewall? NAT?

I'm running on an Amazon EC2 server. The ports listed above, are the open ports.

My local client that I'm using to test it, is my laptop, and it connects fine to the other electrum servers. I'm using the IP port to specify the name of my server, and this works when I attach locally and use 127.0.0.1. It just doesn't work when I'm connecting from my laptop and using the IP of the Amazon server.

The 'password=secret' is the only thing that bugs me, from the server's electrum.conf file. I don't know understand it. What is it a password to?

It's frustrating because this setup went so well. I had the whole thing ready to download the block chain in about 2 hours, since I already had the bitcoind up and running; only to be stumped by a port issue. Smiley
sr. member
Activity: 349
Merit: 250
September 03, 2013, 02:27:23 AM
Firewall? NAT?
jr. member
Activity: 41
Merit: 1
September 02, 2013, 10:23:31 PM
It connects locally through tcp, http, ssl, and even https. I just tested that. I just can't connect remotely. I did uncomment stratum_tcp_ssl_port and stratum_http_ssl_port.
jr. member
Activity: 41
Merit: 1
September 02, 2013, 09:28:34 PM
Trying to set up an Electrum Server and am having an issue:

* The client will not connect to it. It returns Errno: 111 Connection Refused.

The block chain is caught up. I am specifically trying to connect the client to the server using TCP, , 50001.

These are my open ports:

22           tcp   0.0.0.0/0   
8081-8082   tcp   0.0.0.0/0   
8333           tcp   0.0.0.0/0   
50001-50002   tcp   0.0.0.0/0   
0-65535   tcp   127.0.0.0/8   
0-65535   udp   127.0.0.0/8   
0           icmp   127.0.0.0/8   

Electrum Server host file is as follows.
** Note that I do not know what the 'password' is supposed to be. I have not been able to find a reference for that.

[server]
host = localhost
#report_host =                                                                                                                                  
native_port=50000
stratum_tcp_port = 50001
stratum_http_port = 8081
#stratum_tcp_ssl_port = 50002                                                                                                                  
#stratum_http_ssl_port = 8082                                                                                                                  
#report_stratum_tcp_port = 50001                                                                                                                
#report_stratum_http_port = 80                                                                                                                  
#report_stratum_tcp_ssl_port = 50002                                                                                                            
#report_stratum_http_ssl_port = 443                                                                                                            
password = secret
banner = Welcome to Electrum!
irc = no
cache=yes
#irc_nick =                                                                                                                      
#ssl_certfile = /path/to/electrum-server.crt                                                                                                    
ssl_certfile = /etc/ssl/electrum.crt
ssl_keyfile = /etc/ssl/electrum.key

# default backend is leveldb (pruning server)                                                                                                  
backend = leveldb

[leveldb]
path = /home/ubuntu/db/electrum-leveldb-100
# for each address, history will be pruned if it is longer than this limit                                                                      
pruning_limit = 100

[bitcoind]
host = localhost
port = 8332
# user and password from bitcoin.conf                                                                                                          
user=bitcoinrpc
password=

Any thoughts?
sr. member
Activity: 275
Merit: 250
August 13, 2013, 08:34:26 AM
To all server ops:

All servers are stuck on block 251526 because of a bug in the deserializer.
Pleae see https://bitcointalksearch.org/topic/electrum-181-stuck-on-block-251526-271761
Please stop your server, git pull to the latest head and restart.

From simple tests it looks as though that's all that is required to get a clean database with 251526 indexed. This isn't final yet, so there's still the chance we need to re-index from a backup... I'll let you know if that's the case but for now it doesn't appear to be necessary.


electrum.pdmc.net patched & restarted.

awesome! Smiley

+1 internets
full member
Activity: 225
Merit: 100
August 12, 2013, 01:32:27 AM
To all server ops:

All servers are stuck on block 251526 because of a bug in the deserializer.
Pleae see https://bitcointalksearch.org/topic/electrum-181-stuck-on-block-251526-271761
Please stop your server, git pull to the latest head and restart.

From simple tests it looks as though that's all that is required to get a clean database with 251526 indexed. This isn't final yet, so there's still the chance we need to re-index from a backup... I'll let you know if that's the case but for now it doesn't appear to be necessary.


electrum.pdmc.net patched & restarted.
newbie
Activity: 46
Merit: 0
August 11, 2013, 06:11:46 PM
To all server ops:

All servers are stuck on block 251526 because of a bug in the deserializer.
Pleae see https://bitcointalksearch.org/topic/electrum-181-stuck-on-block-251526-271761
Please stop your server, git pull to the latest head and restart.

From simple tests it looks as though that's all that is required to get a clean database with 251526 indexed. This isn't final yet, so there's still the chance we need to re-index from a backup... I'll let you know if that's the case but for now it doesn't appear to be necessary.
full member
Activity: 150
Merit: 100
Thank you! Thank you! ...
August 11, 2013, 01:31:38 PM
FYI: Recent electrum servers are reported to have gotten stuck when attempting to parse Block 251526.

https://bitcointalksearch.org/topic/electrum-181-stuck-on-block-251526-271761

This is preventing clients from seeing or processing any new transactions. No workaround reported yet.
hero member
Activity: 938
Merit: 1000
June 15, 2013, 03:19:24 AM
As far as I'm aware it's still possible it's just no longer supported.
legendary
Activity: 1022
Merit: 1033
June 15, 2013, 03:12:31 AM
Is it still possible to use abe as a backend? I've read that it is deprecated, but I kinda want it this way...
full member
Activity: 188
Merit: 100
June 05, 2013, 08:27:31 PM
i constantly use above 1GB of RAM. Don't know if you'll make it...
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
June 05, 2013, 07:53:25 PM
Make sure you installed the electrum-server patch for bitcoind. It changes the way getblock handles multiple params.

patch -p1 <../electrum-server/patch/patch

before you make bitcoind. I checked the patch source and it has code that alters that msg. so I'm guessing it's connected.
newbie
Activity: 29
Merit: 0
June 05, 2013, 07:02:38 PM
bitcoind is using the 43% of my 1GB of RAM x.x

I have a problem lauching the server: (the bitcoin chain is updated)
Code:
[18/04/2013-16:42:33] Starting Electrum server on BlaBla
Traceback (most recent call last):
  File "/home/bitcoin/src/electrum-server/backends/bitcoind/blockchain_processor.py", line 62, in __init__
    hist = self.deserialize(self.db.Get('height'))
KeyError
[18/04/2013-16:42:34] initializing database
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 1082, in run
    self.function(*self.args, **self.kwargs)
  File "/home/bitcoin/src/electrum-server/backends/bitcoind/blockchain_processor.py", line 82, in
    threading.Timer(0, lambda: self.catch_up(sync=False)).start()
  File "/home/bitcoin/src/electrum-server/backends/bitcoind/blockchain_processor.py", line 783, in catch_up
    next_block = self.bitcoind('getblock', [next_block_hash, 1])
  File "/home/bitcoin/src/electrum-server/backends/bitcoind/blockchain_processor.py", line 105, in bitcoind
    raise BaseException(r['error'])
BaseException: {u'message': u'getblock \nReturns details of a block with given block-hash.', u'code': -1}

I'm having the same problem.  I tried monkeying with the code at line 794 (which is where the problem line lives in the current version), and i got it past this error by removing the
Code:
, 1
from the array, but that apparently opened up a host of new problems.  I'm not a python coder, so I could debug it any further..  Using the latest electrum-server code (as of today), and bitcoind-0.8.2.  I was running bitcoind-0.8.1 and also got this error.. Upgrading bitcoind did not help.
sr. member
Activity: 349
Merit: 250
June 03, 2013, 05:38:29 AM
I was not immediately able to find a python leveldb package for CentOS 6... You will probably have to install it from source.

Have a look here: http://code.google.com/p/py-leveldb/source/browse/trunk/README
hero member
Activity: 556
Merit: 501
CryptoTalk.Org - Get Paid for every Post!
June 03, 2013, 04:32:42 AM
oK, and if i install now leveldb electrum server will start? or i have re-install all?
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
June 03, 2013, 04:21:12 AM
Ok i don't install python-leveldb, when try to do that consolle tell me this:

Code:
[root@satoshidiamond ~]# yum install git htop build-essential libssl-dev libboost-all-dev libdb5.1++-dev python-leveldb python-setuptools
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.crazynetwork.it
 * epel: mirror.fraunhofer.de
 * extras: mirror.crazynetwork.it
 * remi: mirror5.layerjet.com
 * remi-test: mirror5.layerjet.com
 * updates: mirror.crazynetwork.it
Setting up Install Process
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package htop-1.0.1-2.el6.x86_64 already installed and latest version
No package build-essential available.
No package libssl-dev available.
No package libboost-all-dev available.
No package libdb5.1++-dev available.
No package python-leveldb available.
Package python-setuptools-0.6.10-3.el6.noarch already installed and latest version
Nothing to do

I have CentOS
They likely have different names on Red Hat variants. You will need to do a search/lookup to match them up, or maybe someone here using yum can give you a specific list.
hero member
Activity: 556
Merit: 501
CryptoTalk.Org - Get Paid for every Post!
June 03, 2013, 04:14:37 AM
Ok i don't install python-leveldb, when try to do that consolle tell me this:

Code:
[root@satoshidiamond ~]# yum install git htop build-essential libssl-dev libboost-all-dev libdb5.1++-dev python-leveldb python-setuptools
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.crazynetwork.it
 * epel: mirror.fraunhofer.de
 * extras: mirror.crazynetwork.it
 * remi: mirror5.layerjet.com
 * remi-test: mirror5.layerjet.com
 * updates: mirror.crazynetwork.it
Setting up Install Process
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package htop-1.0.1-2.el6.x86_64 already installed and latest version
No package build-essential available.
No package libssl-dev available.
No package libboost-all-dev available.
No package libdb5.1++-dev available.
No package python-leveldb available.
Package python-setuptools-0.6.10-3.el6.noarch already installed and latest version
Nothing to do

I have CentOS
hero member
Activity: 556
Merit: 501
CryptoTalk.Org - Get Paid for every Post!
June 03, 2013, 04:01:34 AM
Hi all, i use this guide to start my electrum server: https://github.com/spesmilo/electrum-server/blob/master/HOWTO.md

But when i try to strat with comand electrum-server
consolle give me this error:
Code:
[bitcoin@satoshidiamond ~]$ electrum-server
Traceback (most recent call last):
  File "/home/bitcoin/bin/electrum-server", line 146, in
    from backends.bitcoind import BlockchainProcessor
  File "/home/bitcoin/src/electrum/server/backends/bitcoind/__init__.py", line 1, in
    from blockchain_processor import BlockchainProcessor
  File "/home/bitcoin/src/electrum/server/backends/bitcoind/blockchain_processor.py", line 4, in
    import leveldb
ImportError: No module named leveldb

Someone can help me?

Did you install the python leveldb module?

Yes i install leveldb with root, but electrum server run with another user "bitcoin" i have to install with user bitcoin?
Pages:
Jump to: