onemorebsmith / kaspa-stratum-bridge

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

no connection #89

Open strannik37 opened 1 year ago

strannik37 commented 1 year ago

Antminer KS3 please help me there is no connection of this miner through the bridge discord for communication for logs and errors strannik38

strannik37 commented 1 year ago

{"level":"info","ts":"2023-09-24T22:55:10+03:00","msg":"hosting prom stats on :2114/metrics","server":"prometheus"} {"level":"info","ts":"2023-09-24T22:55:10+03:00","msg":"checking kaspad sync state","component":"kaspaapi:localhost:16110"} {"level":"info","ts":"2023-09-24T22:55:10+03:00","msg":"kaspad synced, starting server","component":"kaspaapi:localhost:16110"} {"level":"info","ts":"2023-09-24T22:55:52+03:00","msg":"new client connecting - 192.168.0.108","component":"stratum","address":":8051"} {"level":"info","ts":"2023-09-24T22:55:52+03:00","msg":"client subscribed ","component":"stratum","address":":8051","client":"192.168.0.108","client_id":1,"context":"{\"RemoteAddr\":\"192.168.0.108\",\"WalletAddr\":\"\",\"WorkerName\":\"\",\"RemoteApp\":\"GodMiner/2.0.0\",\"Id\":1,\"Logger\":{},\"State\":{\"Jobs\":{},\"JobLock\":{}},\"Extranonce\":\"000000\"}"} {"level":"warn","ts":"2023-09-24T22:56:12+03:00","msg":"client misconfigured, no miner address specified - disconnecting","component":"stratum","address":":8051","client":"192.168.0.108","client_id":1,"client":"{\"RemoteAddr\":\"192.168.0.108\",\"WalletAddr\":\"\",\"WorkerName\":\"\",\"RemoteApp\":\"GodMiner/2.0.0\",\"Id\":1,\"Logger\":{},\"State\":{\"Jobs\":{},\"JobLock\":{}},\"Extranonce\":\"000000\"}"} {"level":"info","ts":"2023-09-24T22:56:12+03:00","msg":"disconnecting","component":"stratum","address":":8051","client":"192.168.0.108","client_id":1} {"level":"info","ts":"2023-09-24T22:56:12+03:00","msg":"client disconnecting - 192.168.0.108","component":"stratum","address":":8051"} {"level":"error","ts":"2023-09-24T22:56:12+03:00","msg":"error reading from socket","component":"stratum","address":":8051","client":"192.168.0.108","client_id":1,"error":"error reading from connection: read tcp 192.168.0.102:8051->192.168.0.108:52314: use of closed network connection","errorVerbose":"read tcp 192.168.0.102:8051->192.168.0.108:52314: use of closed network connection\nerror reading from connection\ngithub.com/onemorebsmith/kaspastratum/src/gostratum.readFromConnection\n\t/tmp/kaspa-stratum-bridge/src/gostratum/stratum_client.go:54\ngithub.com/onemorebsmith/kaspastratum/src/gostratum.spawnClientListener\n\t/tmp/kaspa-stratum-bridge/src/gostratum/stratum_client.go:19\nruntime.goexit\n\t/usr/lib/go-1.18/src/runtime/asm_amd64.s:1571"} {"level":"info","ts":"2023-09-24T22:56:12+03:00","msg":"removing client 1"} {"level":"info","ts":"2023-09-24T22:56:12+03:00","msg":"removed client 1"}

strannik37 commented 1 year ago

logs miner time="2023-09-24 19:55:52" level=error pid=1206 msg="Failed to get extranonce2_size" time="2023-09-24 19:55:52" level=notice pid=1206 msg="no need to parse extranonce" time="2023-09-24 19:56:12" level=error pid=1206 msg="stratum login failed" time="2023-09-24 19:56:12" level=error pid=1206 msg="Sweep error string = N0:1" time="2023-09-24 19:56:20" level=notice pid=1206 msg="set_miner_start_time total_tv_start_sys=3713 total_tv_end_sys=3714" time="2023-09-24 19:56:20" level=error pid=1206 msg="error pool input" time="2023-09-24 19:56:20" level=error pid=1206 msg="pool0, url = stratum+tcp://192.168.0.102:8051, user = kaspa:qz5s28v6mhaxkcdvcqk53f6mfr6llcek2l7hslkmz22u29xvyc5mxpu86jn6k, pass = x" time="2023-09-24 19:56:20" level=error pid=1206 msg="pool1, url = , user = , pass = x" time="2023-09-24 19:56:20" level=error pid=1206 msg="pool2, url = , user = , pass = x"

rdugan commented 11 months ago

@strannik37 try bitmain branch. let me know if it works. kaspa discord is better for feedback

KolbiOne commented 10 months ago

Hello, I have the same problem with Bitmain KS3 9.4TH. When I want to log in to the ks-bridge, the ks bridge says "client misconfigured, no miner address specified - disconnecting" in response. It works with ks0 (there are a few of them) and, as I can see, with all Iceriver devices. Does it work for anyone with Bitmain? Can anyone find a solution to this? Is there another stratum server that works with it and can be used to view statistics? The pools on which Bitmain asics work, what stratum do they use? (I'm on 2miners, for example) Please, if anyone has any information or a solution in this regard, please write. I want to mine my own pool. Thanks! (attached is the error from docker-desktop on Macintosh)

Képernyőkép 2023-11-23 220410