Author

Topic: Problem launching electrumx server. (Read 253 times)

newbie
Activity: 10
Merit: 3
July 29, 2020, 03:25:38 AM
#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!
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
July 28, 2020, 12: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.
newbie
Activity: 10
Merit: 3
July 28, 2020, 10:48:19 AM
#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?
newbie
Activity: 10
Merit: 3
July 28, 2020, 04:41:16 AM
#5
Yeah i run it on VPS. I used alternative from spesimlo but i also got same error..
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
July 27, 2020, 12: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
newbie
Activity: 10
Merit: 3
July 27, 2020, 10:21:16 AM
#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
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
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
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.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
July 27, 2020, 08:50:05 AM
#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
newbie
Activity: 10
Merit: 3
July 27, 2020, 07:49:46 AM
#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:[email protected]: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!
Jump to: