onemorebsmith / kaspa-stratum-bridge

Bridge/Adapter between the stratum-based miners and a kaspad node
MIT License
66 stars 101 forks source link

Error running ks_bridge in Docker Windows: error connecting to host.docker.internal:16110: context deadline exceeded #79

Closed dongryphon closed 1 year ago

dongryphon commented 1 year ago

I downloaded release 1.1.6:

    https://github.com/onemorebsmith/kaspa-stratum-bridge/archive/refs/tags/v1.1.6.zip

The ran:

    docker compose -f docker-compose-all.yml up -d

In Docker Desktop / Logs, I see this in a loop:

2023-04-08 13:59:20 2023/04/08 18:59:20 loading config @ `/config.yaml`
2023-04-08 13:59:20 2023/04/08 18:59:20 ----------------------------------
2023-04-08 13:59:20 2023/04/08 18:59:20 initializing bridge
2023-04-08 13:59:20 2023/04/08 18:59:20         kaspad:          host.docker.internal:16110
2023-04-08 13:59:20 2023/04/08 18:59:20         stratum:         :5555
2023-04-08 13:59:20 2023/04/08 18:59:20         prom:            :2114
2023-04-08 13:59:20 2023/04/08 18:59:20         stats:           false
2023-04-08 13:59:20 2023/04/08 18:59:20         log:             true
2023-04-08 13:59:20 2023/04/08 18:59:20         min diff:        4
2023-04-08 13:59:20 2023/04/08 18:59:20         block wait:      5s
2023-04-08 13:59:20 2023/04/08 18:59:20         extranonce size: 0
2023-04-08 13:59:20 2023/04/08 18:59:20         health check:    
2023-04-08 13:59:20 2023/04/08 18:59:20 ----------------------------------
2023-04-08 13:59:25 2023/04/08 18:59:25 error connecting to address host.docker.internal:16110: error connecting to host.docker.internal:16110: context deadline exceeded

I am using WSL2 backend for Docker.

I've tried various solutions. Some claim WSL2 DNS is the issue. I've disabled the Windows Firewall and that did not help.

image

In a Terminal for ks_grafana, I tried this:

/usr/share/grafana # ping host.docker.internal
PING host.docker.internal (192.168.65.2): 56 data bytes
64 bytes from 192.168.65.2: seq=0 ttl=36 time=1.477 ms
64 bytes from 192.168.65.2: seq=1 ttl=36 time=1.166 ms
64 bytes from 192.168.65.2: seq=2 ttl=36 time=1.852 ms
64 bytes from 192.168.65.2: seq=3 ttl=36 time=1.226 ms

I tried to telnet to 16110 to see if the port may be the issue but telnet is not installed in the container and I'm not sure how to get it in there for testing:

/usr/share/grafana # telnet host.docker.internal 16110
/bin/sh: telnet: not found

Any clues?

dongryphon commented 1 year ago

I guess I just needed to post this ... it seems my kaspa node had crashed

a PICNIC problem ... Problem In Chair Not In Computer