Bitcoin Forum
May 06, 2024, 04:44:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Problem launching electrumx server.  (Read 223 times)
space_head121 (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
July 27, 2020, 12:49:46 PM
Last edit: July 27, 2020, 01:09:08 PM by space_head121
Merited by OmegaStarScream (2)
 #1

Hi i have installed electrumx server (https://github.com/kyuupichan/electrumx), but when i try to launch it with
Code:
 systemctl start electrumx
i doesn't start.

checking the status i got:

Code:
Jul 27 12:35:39 dev-electrumx-ltc systemd[1]: Started Electrumx.
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]: INFO:electrumx:ElectrumX server starting
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]: ERROR:electrumx:ElectrumX server terminated abnormally
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]: Traceback (most recent call last):
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]:   File "/usr/local/lib/python3.7/site-packages/electrumX-1.15.0-py3.7.egg/EGG-INFO/scripts/electrumx_server", line 31, in main
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]:   File "/usr/local/lib/python3.7/site-packages/electrumX-1.15.0-py3.7.egg/electrumx/server/env.py", line 51, in __init__
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]:     self.coin = Coin.lookup_coin_class(coin_name, network)
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]:   File "/usr/local/lib/python3.7/site-packages/electrumX-1.15.0-py3.7.egg/electrumx/lib/coins.py", line 108, in lookup_coin_class
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]:     .format(name, net))
Jul 27 12:35:40 dev-electrumx-ltc electrumx_server[14427]: electrumx.lib.coins.CoinError: unknown coin Litecoin and network mainnet combination

electrumx.conf file:

Code:
DAEMON_URL=http://user:1234@123.123.123.123:1234
DB_DIRECTORY=/home/electrumx/data
DB_ENGINE=leveldb
COIN=Litecoin
NET=mainnet

i checked the lib/coins.py and don't see Litecoin there but i read that electrumx is supporting LTC, i am stucked, thanks for any help!
1715013846
Hero Member
*
Offline Offline

Posts: 1715013846

View Profile Personal Message (Offline)

Ignore
1715013846
Reply with quote  #2

1715013846
Report to moderator
1715013846
Hero Member
*
Offline Offline

Posts: 1715013846

View Profile Personal Message (Offline)

Ignore
1715013846
Reply with quote  #2

1715013846
Report to moderator
1715013846
Hero Member
*
Offline Offline

Posts: 1715013846

View Profile Personal Message (Offline)

Ignore
1715013846
Reply with quote  #2

1715013846
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5588


Self-proclaimed Genius


View Profile
July 27, 2020, 01:50:05 PM
 #2

Too bad, kyuupichan's ElectrumX now only supports Bitcoin SV [BSV].
You can check the code itself: https://github.com/kyuupichan/electrumx/blob/master/electrumx/lib/coins.py#L268, there's only BSV and its testnet/regtest there.

You can use the older versions (1.14.0 and below) though: kyuupichan/electrumx/releases or the Altcoin branch: https://github.com/kyuupichan/electrumx/tree/altcoin

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
space_head121 (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
July 27, 2020, 03:21:16 PM
 #3

Thanks for pointing that out that was for sure main problem. So  i took your advice and installed server with altcoin support. Unfourtounatly now i get this:

Code:
Jul 27 14:59:58 dev-electrumx-ltc electrumx_server[17384]: Traceback (most recent call last):
Jul 27 14:59:58 dev-electrumx-ltc electrumx_server[17384]:   File "/home/jan-kwiatkowski/electrumx/electrumx-altcoin/electrumx_server", line 16, in <module>
Jul 27 14:59:58 dev-electrumx-ltc electrumx_server[17384]:     from electrumx import Controller, Env
Jul 27 14:59:58 dev-electrumx-ltc electrumx_server[17384]:   File "/home/jan-kwiatkowski/electrumx/electrumx-altcoin/electrumx/__init__.py", line 4, in <module>
Jul 27 14:59:58 dev-electrumx-ltc electrumx_server[17384]:     from electrumx.server.controller import Controller
Jul 27 14:59:58 dev-electrumx-ltc electrumx_server[17384]:   File "/home/jan-kwiatkowski/electrumx/electrumx-altcoin/electrumx/server/controller.py", line 10, in <module>
Jul 27 14:59:58 dev-electrumx-ltc electrumx_server[17384]:     from aiorpcx import _version as aiorpcx_version, TaskGroup
Jul 27 14:59:58 dev-electrumx-ltc electrumx_server[17384]: ModuleNotFoundError: No module named 'aiorpcx'
Jul 27 14:59:58 dev-electrumx-ltc systemd[1]: electrumx.service: Main process exited, code=exited, status=1/FAILURE
Jul 27 14:59:58 dev-electrumx-ltc systemd[1]: electrumx.service: Failed with result 'exit-code'.


but aiorpcx is installed:

$pip3.7 install aiorpcx

Code:
Requirements already satisfied: aiorpcx in /usr/local/lib/python3.7/site-packages/aiorpcX-0.18.4-py3.7.egg (0.18.4)

 I saw some github issues related to this topic but could't found anything resolving mine.
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
July 27, 2020, 05:57:29 PM
 #4

Why not use the alternative ElectrumX which is developed by spesmilo of Electrum?

You can get the ElectrumX from their Github page here https://github.com/spesmilo/electrumx

Did you run this on VPS server/raspberry pi or you are running it with your own PC/laptop?



Look at this below
- More developers abandon work on BTC—this week it’s ElectrumX

This might be the reason why they remove the Bitcoin on ElectrumX

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
space_head121 (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
July 28, 2020, 09:41:16 AM
 #5

Yeah i run it on VPS. I used alternative from spesimlo but i also got same error..
space_head121 (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
July 28, 2020, 03:48:19 PM
 #6

Thanks, i finally ended up with setting it with docker. But i still have other problems..

For me server looks like it synced, i saw that it caught with most recent block and it's displaying logs:

Code:
INFO:BlockProcessor:processed 1 block size 0.01 MB in 0.4s
INFO:MemPool:25 txs 0.01 MB touching 88 addresses
INFO:SessionManager:ID     Flags            Client Proto    Cost   XCost  Reqs   Txs    Subs    Recv Recv KB    Sent Sent KB      Time                  Peer
INFO:SessionManager:{"coin": "Litecoin", "daemon": "12.3.34.45:1332/", "daemon height": 1884963, "db height": 1884963, "db_flush_count": 90, "groups": 0, "history cache": "0 lookups 0 hits 0 entries", "merkle cache": "0 lookups 0 hits 0 entries", "pid": 1, "peers": {"bad": 0, "good": 7, "never": 0, "stale": 0, "total": 7}, "request counts": {}, "request total": 0, "sessions": {"count": 0, "count with subs": 0, "errors": 0, "logged": 0, "pending requests": 0, "subs": 0}, "tx hashes cache": "0 lookups 0 hits 0 entries", "txs sent": 0, "uptime": "05h 28m 18s", "version": "ElectrumX 1.15.0"}
INFO:PeerManager:trying to detect proxy on "localhost" ports [9050, 9150, 1080]

Launching electrum wallet in realized it probably is connected with SSL certification failure but i have no idea what caused it and how to resolve it.

Code:
I/n | network | connecting to XX.X.XX.XX:50002>:s as new interface
I/i | interface.[XX.X.XX.XX:50002] | disconnecting due to: ConnectError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),)
I/n | network | couldn't launch iface XX.X.XX.XX:50002:s -- CancelledError()

I have set electrumx server in docker on this machine previously (it worked properly) but than i wanted to have it locally (but after unsuccesful attemps)  i made loop back to docker. Maybe the fact that it had other cert assigned previosly has to do with this?
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
July 28, 2020, 05:47:47 PM
 #7


~snip~

Launching electrum wallet in realized it probably is connected with SSL certification failure but i have no idea what caused it and how to resolve it.

Code:
I/n | network | connecting to XX.X.XX.XX:50002>:s as new interface
I/i | interface.[XX.X.XX.XX:50002] | disconnecting due to: ConnectError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),)
I/n | network | couldn't launch iface XX.X.XX.XX:50002:s -- CancelledError()

I have set electrumx server in docker on this machine previously (it worked properly) but than i wanted to have it locally (but after unsuccesful attemps)  i made loop back to docker. Maybe the fact that it had other cert assigned previosly has to do with this?

Can you try to remove the pinned certificate from this location %appdata%/Electrum/certs

I just got the solution from Electrum GitHub page here "Error SSL Certificate verify failed"
He solves the issue by removing the certificate from the Electrum cert directory.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
space_head121 (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
July 29, 2020, 08:25:38 AM
Last edit: July 29, 2020, 09:47:46 AM by space_head121
 #8


~snip~

Launching electrum wallet in realized it probably is connected with SSL certification failure but i have no idea what caused it and how to resolve it.

Code:
I/n | network | connecting to XX.X.XX.XX:50002>:s as new interface
I/i | interface.[XX.X.XX.XX:50002] | disconnecting due to: ConnectError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),)
I/n | network | couldn't launch iface XX.X.XX.XX:50002:s -- CancelledError()

I have set electrumx server in docker on this machine previously (it worked properly) but than i wanted to have it locally (but after unsuccesful attemps)  i made loop back to docker. Maybe the fact that it had other cert assigned previosly has to do with this?

Can you try to remove the pinned certificate from this location %appdata%/Electrum/certs

I just got the solution from Electrum GitHub page here "Error SSL Certificate verify failed"
He solves the issue by removing the certificate from the Electrum cert directory.

Thanks, but you mean on client side right? Would you know where to look for it on linux? I was browsing /etc/ssl/certs but didn't find anything with electrumx.

EDIT: i manage to found this cert it was in my home directory but shadowed. For me it was in /home/user/.electrum-ltc/certs

Thanks for help!
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!