Bitcoin Forum

Bitcoin => Electrum => Topic started by: thisisbitduck on July 25, 2017, 10:51:20 AM



Title: ElectrumX configuration error
Post by: thisisbitduck on July 25, 2017, 10:51:20 AM
Code:
"Invalid URL: host is required for abolute urls.")

Is the error I am getting

Code:
DB_DIRECTORY = [Bitcoin data directory] 
DAEMON_URL = http://[username]:[password]@localhost:8332/
ELECTRUMX = /usr/local/bin/electrumx_server.py
USERNAME = bitcoind
COIN = Bitcoin
NET = mainnet
DB_ENGINE = leveldb
REORG_LIMIT = 200
DONATION_ADDRESS = [BTC address]
BANNER_FILE = /etc/electrumx.banner
HOST = [IP address of server]
TCP_PORT = 50001
SSL_PORT = 50002
SSL_CERTFILE = /etc/server.crt
SSL_KEYFILE = /etc/server.key
IRC = 1
REPORT_HOST =  [FQDN of server (using a free redirect service)]


Things in [ have been censored ] .


Title: Re: ElectrumX configuration error
Post by: kolloh on July 25, 2017, 02:53:26 PM
Sounds like it could be an issue with localhost not resolving or possibly using IPv6 or something along those lines.

Try setting the DAEMON_URL to the following and see if you still get the same error.
Code:
DAEMON_URL = http://[username]:[password]@127.0.0.1:8332/


Title: Re: ElectrumX configuration error
Post by: thisisbitduck on July 26, 2017, 01:45:34 AM
IPV4 if that matters. I'll try that.


Title: Re: ElectrumX configuration error
Post by: thisisbitduck on July 26, 2017, 04:56:49 AM
No dice. Still throwing it.


Title: Re: ElectrumX configuration error
Post by: thisisbitduck on July 26, 2017, 05:32:36 AM
Simple mistake. Always double check your config file. A few characters off of a login. Derp.