chris-belcher / electrum-personal-server

Maximally lightweight electrum server for a single user
MIT License
599 stars 108 forks source link

Container: Connection refused #285

Open realSConway opened 1 year ago

realSConway commented 1 year ago

Hi experts,

I need some help with running containerized eps.

Both bitcoin and eps are running within same pod (shared internal ip: 10.88.0.0/16) Pod is created exposing port 50002: podman pod create --name bitcoin --publish 127.0.0.1:50002:50002

Bitcoin and eps seem to be running fine:

INFO:2023-01-21 12:01:54,546: Starting Electrum Personal Server 0.2.4
INFO:2023-01-21 12:01:54,546: Logging to /tmp/electrumpersonalserver.log
INFO:2023-01-21 12:01:54,602: Displaying first 3 addresses of each master public key:
INFO:2023-01-21 12:01:54,606: 
wallet =>
        bc1qxxx
        bc1qxxx
        bc1qxxx
INFO:2023-01-21 12:01:54,611: Obtaining bitcoin addresses to monitor . . .
INFO:2023-01-21 12:01:55,614: Obtained list of addresses to monitor in 1.015317440032959sec
INFO:2023-01-21 12:01:55,614: Building history with 2000 addresses . . .
INFO:2023-01-21 12:01:55,799: Found xxx txes. History built in 0.18438148498535156sec
INFO:2023-01-21 12:01:55,848: Synchronizing mempool . . .
INFO:2023-01-21 12:01:56,316: Found 1651 mempool entries. Synchronized mempool in 0.46772050857543945sec
INFO:2023-01-21 12:01:56,316: Listening for Electrum Wallet on ('127.0.0.1', 50002)

Tried with host = 0.0.0.0 and ip_whitelist = 10.88.0.0/16 #* in config.ini without success.

To debug, i'm running https://github.com/nicolaka/netshoot in pod:

lsof -i -P -n | grep LISTEN
# nc -zv 127.0.0.1 50002
nc: connect to 127.0.0.1 port 50002 (tcp) failed: Connection refused

Please help Sam