Mempool docker unable to hook up with electrum server

2 views 4:19 pm 0 Comments June 7, 2023


I am having an issue with “connecting” my mempool.area to electrumX server.
My bitcoin core is working effective, electrumX server is okay as effectively and as much as chaintip. I’ve put in docker and docker-compose. All the things works effective, Nevertheless when I attempt to docker-compose up it runs effective I suppose, however on the finish it pops this error and retains repeating it:

docker-api-1 | Jan 6 11:38:12 [98] ERR: Electrum error: {“errno”:-111,”code”:”ECONNREFUSED”,”syscall”:”join”,”tackle”:”0.0.0.0″,”port”:50001}
docker-api-1 | Jan 6 11:38:12 [98] INFO: Disconnected from Electrum Server at 0.0.0.0:50001

My docker-compose.yml file:

model: "3.7"

companies:
  internet:
    surroundings:
      FRONTEND_HTTP_PORT: "8080"
      BACKEND_MAINNET_HTTP_HOST: "api"
    picture: mempool/frontend:newest
    person: "1000:1000"
    restart: at all times
    stop_grace_period: 1m
    command: "./wait-for db:3306 --timeout=720 -- nginx -g 'daemon off;'"
    ports:
      - 4080:8080
  api:
    surroundings:
      ELECTRUM_HOST: "0.0.0.0"
      ELECTRUM_PORT: "50001"
      ELECTRUM_TLS_ENABLED: "true"
      MEMPOOL_BACKEND: "electrum"
      CORE_RPC_HOST: "0.0.0.0"
      CORE_RPC_PORT: "8332"
      CORE_RPC_USERNAME: "####"
      CORE_RPC_PASSWORD: "####"
      DATABASE_ENABLED: "true"
      DATABASE_HOST: "db"
      DATABASE_DATABASE: "mempool"
      DATABASE_USERNAME: "mempool"
      DATABASE_PASSWORD: "mempool"
      STATISTICS_ENABLED: "true"
    picture: mempool/backend:newest
    person: "1000:1000"
    restart: at all times
    stop_grace_period: 1m
    command: "./wait-for-it.sh db:3306 --timeout=720 --strict -- ./begin.sh"
    volumes:
      - ./knowledge:/backend/cache
  db:
    surroundings:
      MYSQL_DATABASE: "mempool"
      MYSQL_USER: "mempool"
      MYSQL_PASSWORD: "mempool"
      MYSQL_ROOT_PASSWORD: "admin"
    picture: mariadb:10.5.8
    person: "1000:1000"
    restart: at all times
    stop_grace_period: 1m
    volumes:
      - ./mysql/knowledge:/var/lib/mysql

My electrumX.conf file:

# default /and so forth/electrumx.conf for systemd

# REQUIRED
DB_DIRECTORY = /house/qbr1ck/electrumx_db
# Bitcoin Node RPC Credentials
DAEMON_URL = ####:####@localhost

COIN = Bitcoin
SERVICES = tcp://0.0.0.0:50001
PEER_DISCOVERY = off
COST_SOFT_LIMIT = 0
COST_HARD_LIMIT = 0

Person and Password are hashed out in each recordsdata, nonetheless they’re the identical.

That is the total output after working docker up, may give some clues

[+] Operating 3/3
⠿ Container docker-db-1 Operating 0.0s
⠿ Container docker-web-1 Operating 0.0s
⠿ Container docker-api-1 Recreated 60.4s
Attaching to docker-api-1, docker-db-1, docker-web-1
docker-api-1 | wait-for-it.sh: ready 720 seconds for db:3306
docker-api-1 | wait-for-it.sh: db:3306 is on the market after 0 seconds
docker-db-1 | 2023-01-08 13:49:36 6 [Warning] Aborted connection 6 to db: ‘unconnected’ person: ‘unauthenticated’ host: ‘172.16.57.2’ (This connection closed usually with out authentication)
docker-api-1 | Jan 8 13:49:37 [97] NOTICE: Beginning Mempool Server… (a210a3f)
docker-api-1 | Jan 8 13:49:37 [97] INFO: Restoring mempool and blocks knowledge from disk cache
docker-api-1 | Jan 8 13:49:37 [97] ERR: Electrum error: {“errno”:-111,”code”:”ECONNREFUSED”,”syscall”:”join”,”tackle”:”127.0.0.1″,”port”:50001}
docker-api-1 | Jan 8 13:49:37 [97] ERR: Error connecting to Electrum Server at localhost:50001
docker-api-1 | Jan 8 13:49:37 [97] INFO: Disconnected from Electrum Server at localhost:50001
docker-api-1 | Jan 8 13:49:37 [97] INFO: Database connection established.
docker-api-1 | Jan 8 13:49:37 [97] INFO: Beginning statistics service
docker-api-1 | Jan 8 13:49:37 [97] INFO: Beginning forex charges service
docker-api-1 | Jan 8 13:49:37 [97] INFO: Foreign money charges service shall be queried over clearnet utilizing https://value.bisq.wiz.biz/getAllMarketPrices
docker-api-1 | Jan 8 13:49:37 [97] NOTICE: Mempool Server is working on port 8999
docker-api-1 | Jan 8 13:49:37 [97] INFO: Updating newest mining swimming pools from https://uncooked.githubusercontent.com/mempool/mining-pools/grasp/swimming pools.json over clearnet
docker-api-1 | Jan 8 13:49:42 [97] WARN: runMainLoop error: join ECONNREFUSED 127.0.0.1:8332. Retrying in 10 sec.
docker-api-1 | Jan 8 13:49:47 [97] ERR: Electrum error: {“errno”:-111,”code”:”ECONNREFUSED”,”syscall”:”join”,”tackle”:”127.0.0.1″,”port”:50001}
docker-api-1 | Jan 8 13:49:47 [97] ERR: Electrum error: {“errno”:-111,”code”:”ECONNREFUSED”,”syscall”:”join”,”tackle”:”127.0.0.1″,”port”:50001}
docker-api-1 | Jan 8 13:49:47 [97] INFO: Disconnected from Electrum Server at localhost:50001
docker-api-1 | Jan 8 13:49:52 [97] WARN: runMainLoop error: join ECONNREFUSED 127.0.0.1:8332. Retrying in 20 sec.
docker-api-1 | Jan 8 13:49:57 [97] ERR: Electrum error: {“errno”:-111,”code”:”ECONNREFUSED”,”syscall”:”join”,”tackle”:”127.0.0.1″,”port”:50001}
docker-api-1 | Jan 8 13:49:57 [97] ERR: Electrum error: {“errno”:-111,”code”:”ECONNREFUSED”,”syscall”:”join”,”tackle”:”127.0.0.1″,”port”:50001}
docker-api-1 | Jan 8 13:49:57 [97] INFO: Disconnected from Electrum Server at localhost:50001

Leave a Reply

Your email address will not be published. Required fields are marked *