Bitcoin Forum
May 11, 2024, 04:45:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: electrum-server start problem  (Read 506 times)
gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
February 20, 2017, 01:29:24 PM
 #1

/etc/electrum.conf:
Code:
[bitcoind]
bitcoind_host = localhost
bitcoind_port = 8332
# user and password from bitcoin.conf (not needed for localhost)
# bitcoind_user =
# bitcoind_password =
electrum.log:
Code:
ConfigParser.NoOptionError: No option 'bitcoind_user' in section: 'bitcoind'
electrum-server start localhost.
bitcoind_user don't have password.
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715445927
Hero Member
*
Offline Offline

Posts: 1715445927

View Profile Personal Message (Offline)

Ignore
1715445927
Reply with quote  #2

1715445927
Report to moderator
1715445927
Hero Member
*
Offline Offline

Posts: 1715445927

View Profile Personal Message (Offline)

Ignore
1715445927
Reply with quote  #2

1715445927
Report to moderator
kolloh
Legendary
*
Offline Offline

Activity: 1736
Merit: 1023


View Profile
February 20, 2017, 02:19:44 PM
 #2

/etc/electrum.conf:
Code:
[bitcoind]
bitcoind_host = localhost
bitcoind_port = 8332
# user and password from bitcoin.conf (not needed for localhost)
# bitcoind_user =
# bitcoind_password =
electrum.log:
Code:
ConfigParser.NoOptionError: No option 'bitcoind_user' in section: 'bitcoind'
electrum-server start localhost.
bitcoind_user don't have password.

According to the documentation, you shouldn't need to specify the bitcoind user/password for a localhost connection. Does Electrum server fail to start or is it simply printing those messages as warning/debug information?

You could try uncommenting those lines and leaving the values blank to see if anything changes. Alternatively, you could just try setting up a RPC username/password for bitcoind to see if it will work.
gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
February 20, 2017, 06:23:40 PM
 #3

Code:
[bitcoind]
bitcoind_host = localhost
bitcoind_port = 8332
# user and password from bitcoin.conf (not needed for localhost)
bitcoind_user =
bitcoind_password =
or
Code:
[bitcoind]
bitcoind_host = localhost
bitcoind_port = 8332
# user and password from bitcoin.conf (not needed for localhost)
bitcoind_user = bitcoin
bitcoind_password = pass
Code:
root@serv:~# electrum-server start
Starting server as daemon
root@serv:~# electrum-server status
Server not running
root@serv:~# cat /var/log/electrum.log
Starting Electrum server on localhost
db init
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/electrumserver/storage.py", line 205, in __init__
    self.db_utxo = DB(self.dbpath, 'utxo', config.getint('leveldb', 'utxo_cache'))
  File "build/bdist.linux-x86_64/egg/electrumserver/storage.py", line 154, in __init__
    self.db = plyvel.DB(os.path.join(path, name), create_if_missing=True, compression=None, lru_cache_size=cache_size)
  File "_plyvel.pyx", line 236, in plyvel._plyvel.DB.__init__ (plyvel/_plyvel.cpp:3129)
  File "_plyvel.pyx", line 80, in plyvel._plyvel.raise_for_status (plyvel/_plyvel.cpp:1698)
IOError: IO error: lock /var/electrum-server/utxo/LOCK: Resource temporarily unavailable
Stopping Stratum
Initializing database
Traceback (most recent call last):
  File "/usr/local/bin/run_electrum_server.py", line 4, in <module>
    __import__('pkg_resources').run_script('electrum-server==1.0', 'run_electrum_server.py')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1445, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/electrum_server-1.0-py2.7.egg/EGG-INFO/scripts/run_electrum_server.py", line 307, in <module>

  File "/usr/local/lib/python2.7/dist-packages/electrum_server-1.0-py2.7.egg/EGG-INFO/scripts/run_electrum_server.py", line 254, in start_server

  File "build/bdist.linux-x86_64/egg/electrumserver/blockchain_processor.py", line 80, in __init__
  File "build/bdist.linux-x86_64/egg/electrumserver/storage.py", line 220, in __init__
  File "build/bdist.linux-x86_64/egg/electrumserver/storage.py", line 355, in put_node
AttributeError: 'Storage' object has no attribute 'db_utxo'
cannot reach bitcoind...
cannot reach bitcoind...
cannot reach bitcoind...
cannot reach bitcoind...
cannot reach bitcoind...
cannot reach bitcoind...
gelius (OP)
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


View Profile
February 23, 2017, 01:21:04 PM
Last edit: February 23, 2017, 01:36:58 PM by gelius
 #4

Who can help me?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!