Bitcoin Forum

Bitcoin => Electrum => Topic started by: alomar on November 28, 2019, 07:04:59 PM



Title: ElectrumX install trouble
Post by: alomar on November 28, 2019, 07:04:59 PM
getting this.  any suggestions?:

Code:
user@user:~/src/electrumx$ :file:`setup.py`
setup.py: command not found
:file:: command not found




Title: Re: ElectrumX install trouble
Post by: Rath_ on November 28, 2019, 07:12:15 PM
user@user:~/src/electrumx$ :file:`setup.py`

That's a wrong command. Assuming you have installed python, run python3 setup.py install . You might need to use sudo if it refuses to install due to no permissions.


Title: Re: ElectrumX install trouble
Post by: alomar on November 28, 2019, 07:14:56 PM
user@user:~/src/electrumx$ :file:`setup.py`

That's a wrong command. Assuming you have installed python, run python3 setup.py install . You might need to use sudo if it refuses to install due to no permissions.

thanks.  that did it (not a python user).  now let's see if i can finish the rest.


Title: Re: ElectrumX install trouble
Post by: alomar on January 14, 2020, 02:19:21 AM
anyone have a sample electrumx.conf file for a node and NOT a server?


Title: Re: ElectrumX install trouble
Post by: RapTarX on January 14, 2020, 06:40:27 AM
anyone have a sample electrumx.conf file for a node and NOT a server?
Are you looking for this?- https://github.com/kyuupichan/electrumx/blob/master/contrib/systemd/electrumx.conf


Title: Re: ElectrumX install trouble
Post by: alomar on January 14, 2020, 03:38:19 PM
anyone have a sample electrumx.conf file for a node and NOT a server?
Are you looking for this?- https://github.com/kyuupichan/electrumx/blob/master/contrib/systemd/electrumx.conf

ah, interesting.  what user:password does one use for the daemon URL?


Title: Re: ElectrumX install trouble
Post by: alomar on January 14, 2020, 05:19:55 PM
anyone have a sample electrumx.conf file for a node and NOT a server?
Are you looking for this?- https://github.com/kyuupichan/electrumx/blob/master/contrib/systemd/electrumx.conf

ah, interesting.  what user:password does one use for the daemon URL?

well, using rpcuser and rpcpassword seems to have started the electrumx.service :)

strange that i don't see it running using "top" but do see it running in my ubuntu System Monitor.  is that b/c it's running inside systemd?

how do i know when it's "finished" indexing?


Title: Re: ElectrumX install trouble
Post by: alomar on January 16, 2020, 04:29:26 PM
is the  "DB_DIRECTORY = /home/user/.electrumx" automatically generated upon activation of the server?  i don't see a *.electrumx file having been created.


can anyone see a problem here in my two config files?

here's my electrumx.conf:

Code:

# default /etc/electrumx.conf for systemd

# REQUIRED
USERNAME = user
DB_DIRECTORY = /home/user/.electrumx
# Bitcoin Node RPC Credentials
DAEMON_URL = http://x:x@127.0.0.1:8332/
COIN = BitcoinCash
# See http://electrumx.readthedocs.io/en/latest/environment.html for
# information about other configuration settings you probably want to consider.
DB_ENGINE=leveldb
BANNER_FILE=/etc/electrumx/banner.txt


and service file:

Code:
[Unit]
Description=Electrumx
After=network.target
[Service]
EnvironmentFile=/etc/electrumx.conf
ExecStart=/usr/local/bin/electrumx_server
User=user
LimitNOFILE=8192
TimeoutStopSec=30min
[Install]
WantedBy=multi-user.target