chia-miner icon indicating copy to clipboard operation
chia-miner copied to clipboard

connect fail err="read tcp 192.168.50.163:33994->203.107.53.48:7001: read: connection reset by peer"

Open dimisjim opened this issue 3 years ago • 38 comments

Hey there,

I am using the latest version of hpool miner.

For the past hour or so, the miner keeps on failing to connect with hpool servers with this error:

ERRO[2021-07-09T19:56:33+02:00] connect fail err="read tcp 192.168.50.163:33178->203.107.53.48:7001: read: connection reset by peer" f7="{loggers.go,logging.CPrint,156}" f>8="{server.go,websocket.(Server).connect,89}" f9="{server.go,websocket.(Server).check,65}" tid=2114 ?>url="ws://203.107.53.48:7001/x-proxynode/ws"

Tried to restart it, but still having the same issue. My machine has no internet issues whatsoever.

Anyone experiencing a similar problem?

dimisjim avatar Jul 10 '21 09:07 dimisjim

After the link fails, has it been unsuccessful?

trying2016 avatar Jul 10 '21 09:07 trying2016

I have this issue continuously for the past 2 days. It is outputting this error all the time.

I have tried restarting the process multiple times, but unsuccessfully.

dimisjim avatar Jul 10 '21 09:07 dimisjim

The url it tries to reach is resetting any incoming connections:

http chia-cd1.hpool.com:443                                                                                                                                                                                

http: error: ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) while doing a GET request to URL: http://chia-cd1.hpool.com:443/

Has this changed from HPOOL's side? Should I use another one?

dimisjim avatar Jul 10 '21 10:07 dimisjim

I have exactly the same problem. everything worked fine until yesterday evening. in the logs this is what he writes - time = "2021-07-10T13: 07: 03 + 03: 00" level = error msg = "connect fail" err = "read tcp 192.168.1.101:49715->203.107.53.48:3601: wsarecv: An existing connection was forcibly closed by the remote host. " f7 = "{loggers.go, logging.CPrint, 156}" f8 = "{server.go, websocket. (* Server) .connect, 89}" f9 = "{server.go, websocket. (* Server). check, 65} "tid = 99 url =" ws: //203.107.53.48: 3601 / x-proxynode / ws "

BVVSL9 avatar Jul 10 '21 10:07 BVVSL9

Under normal circumstances, if the link fails, it will switch the line and reconnect after a few minutes. After the link failed, did you link to the new line?

trying2016 avatar Jul 10 '21 10:07 trying2016

I don't understand. What's "the new line"?

Btw more people have this issue: https://www.reddit.com/r/hpoolchia/comments/oh71xt/anybody_know_how_to_resolve_this_error_just/

dimisjim avatar Jul 10 '21 10:07 dimisjim

There are multiple lines in miner, which will automatically switch when the link failsThere are multiple lines in miner, which will automatically switch when the link fails

trying2016 avatar Jul 10 '21 10:07 trying2016

Could you give an example? I don't really understand what you are trying to say. I guess you mean "logs" by "lines in miner".

I just see this when I start thew miner:

image

dimisjim avatar Jul 10 '21 10:07 dimisjim

It seems to be blocked by the firewall, wait a moment we are building a new line.

trying2016 avatar Jul 10 '21 10:07 trying2016

Yes.. Facing terrible issue for the last 2 days.

no connection telnet to 203.107.53.48:7002 is working fine but i get the error and it is frustrating i have rebinded and done all what i can understand can you help me

time="2021-07-10T13:37:30+03:00" level=info msg="Logger Configuration." fields.level=info file=loggers.go func=logging.Init line=121 path=./log/ time="2021-07-10T13:37:30+03:00" level=info msg="switch line" chain=CHIA file=loggers.go func=logging.CPrint line=168 tid=6 type=ws url="wss://chia-cd2-59c6761be4.hpool.com/x-proxynode/ws" time="2021-07-10T13:37:32+03:00" level=info msg="init server" file=loggers.go func=logging.CPrint line=168 tid=8 type=ws url="wss://chia-cd2-59c6761be4.hpool.com/x-proxynode/ws" time="2021-07-10T13:37:33+03:00" level=error msg="connect fail" err="read tcp 10.0.0.3:49295->203.107.53.48:443: wsarecv: An existing connection was forcibly closed by the remote host." f7="{loggers.go,logging.CPrint,156}" f8="{server.go,websocket.(*Server).connect,89}" f9="{server.go,websocket.NewServer,26}" tid=8 url="wss://chia-cd2-59c6761be4.hpool.com/x-proxynode/ws" time="2021-07-10T13:37:37+03:00" level=error msg="connect fail" err="read tcp 10.0.0.3:49296->203.107.53.48:443: wsarecv: An existing connection was forcibly closed by the remote host." f7="{loggers.go,logging.CPrint,156}" f8="{server.go,websocket.(*Server).connect,89}" f9="{server.go,websocket.(*Server).check,65}" tid=33 url="wss://chia-cd2-59c6761be4.hpool.com/x-proxynode/ws" time="2021-07-10T13:37:44+03:00" level=info msg="pool public key: 98e1ff9541dc9a1e36a99fd3a39cc0365fa1f2f9ffcc164fef51cbc61be3fdaf3bdfe3711c17d5ba6f149f6334e29a55" file=loggers.go func=logging.CPrint line=168 tid=67 time="2021-07-10T13:37:45+03:00" level=warning msg="check file fail" fail=10 file=loggers.go fileName="L:\Elements2\plot-k32-2021-06-28-20-38-67cd9235aac4d682a368d606ee37a5bc1d737600d5b3a5aa6fbe4e1a4ebdb888.plot" func=logging.CPrint line=162 pass=0 tid=85 time="2021-07-10T13:37:45+03:00" level=error msg="add plot file" error="invalid plot file format" f7="{loggers.go,logging.CPrint,156}" f8="{plotterSpace.go,chia.(*PlotterSpace).Load,246}" f9="{asm_amd64.s,runtime.goexit,1371}" file="L:\Elements2\plot-k32-2021-06-28-20-38-67cd9235aac4d682a368d606ee37a5bc1d737600d5b3a5aa6fbe4e1a4ebdb888.plot" tid=85 time="2021-07-10T13:37:48+03:00" level=error msg="connect fail" err="read tcp 10.0.0.3:49297->203.107.53.48:443: wsarecv: An existing connection was forcibly closed by the remote host." f7="{loggers.go,logging.CPrint,156}" f8="{server.go,websocket.(*Server).connect,89}" f9="{server.go,websocket.(*Server).check,65}" tid=33 url="wss://chia-cd2-59c6761be4.hpool.com/x-proxynode/ws" time="2021-07-10T13:37:53+03:00" level=error msg="connect fail" err="read tcp 10.0.0.3:49299->203.107.53.48:443: wsarecv: An existing connection was forcibly closed by the remote host." f7="{loggers.go,logging.CPrint,156}" f8="{server.go,websocket.(*Server).connect,89}" f9="{server.go,websocket.(*Server).check,65}" tid=33 url="wss://chia-cd2-59c6761be4.hpool.com/x-proxynode/ws" time="2021-07-10T13:38:15+03:00" level=info msg="switch line" chain=CHIA file=loggers.go func=logging.CPrint line=168 tid=33 type=ws url="ws://203.107.53.48:7002/x-proxynode/ws"

Detail log added

miner.log-20210710-10.log

Andyaj avatar Jul 10 '21 10:07 Andyaj

I installed VPN, then connected to the Hong Kong server and the miner started working

BVVSL9 avatar Jul 10 '21 11:07 BVVSL9

Having the same issue at exactly the same time period: Logs:

ERRO[2021-07-10T18:23:49+02:00] connect fail err="read tcp 192.168.88.33:43282->203.107.53.48:443: read: connection reset by peer" f7="{loggers.go,logging.CPrint,156}" f8="{server.go,websocket.(*Server).connect,89}" f9="{server.go,websocket.NewServer,26}" tid=10 url="wss://chia-sh3.hpool.com/x-proxynode/ws" ERRO[2021-07-10T18:23:50+02:00] connect fail err="read tcp 192.168.88.33:43286->203.107.53.48:443: read: connection reset by peer" f7="{loggers.go,logging.CPrint,156}" f8="{server.go,websocket.(*Server).connect,89}" f9="{server.go,websocket.(*Server).check,65}" tid=202 url="wss://chia-sh3.hpool.com/x-proxynode/ws" ERRO[2021-07-10T18:23:52+02:00] connect fail err="read tcp 192.168.88.33:43288->203.107.53.48:443: read: connection reset by peer" f7="{loggers.go,logging.CPrint,156}" f8="{server.go,websocket.(*Server).connect,89}" f9="{server.go,websocket.(*Server).check,65}" tid=202 url="wss://chia-sh3.hpool.com/x-proxynode/ws" ERRO[2021-07-10T18:23:53+02:00] connect fail err="read tcp 192.168.88.33:43290->203.107.53.48:443: read: connection reset by peer" f7="{loggers.go,logging.CPrint,156}" f8="{server.go,websocket.(*Server).connect,89}" f9="{server.go,websocket.(*Server).check,65}" tid=202 url="wss://chia-sh3.hpool.com/x-proxynode/ws" INFO[2021-07-10T18:23:55+02:00] switch line chain=CHIA file=loggers.go func=logging.CPrint line=168 tid=202 type=ws url="ws://203.107.53.48:3501/x-proxynode/ws" ERRO[2021-07-10T18:23:55+02:00] connect fail er

mgrapiniak avatar Jul 10 '21 16:07 mgrapiniak

@BVVSL9

Indeed, tunneling through a Chinese VPN location seems to be working. Same as from a German VPN location

dimisjim avatar Jul 10 '21 16:07 dimisjim

If Miner is offline or there is no task, the firewall may cause the connection to fail. It is recommended to update to version 1.4.2 and choose the Japanese route https://github.com/hpool-dev/chia-miner/releases/tag/1.4.2

trying2016 avatar Jul 10 '21 17:07 trying2016

@trying2016 thanks

how do you choose the Japanese route?

dimisjim avatar Jul 10 '21 17:07 dimisjim

@trying2016 Thank you for the quick fix. How may I choose the Japanese route? I am using this on linux.

Thanks

naponice avatar Jul 10 '21 18:07 naponice

It resolved automatically after i restarted my router. Please try that else install a VPN client and tunnel through Japan.

On Sat, Jul 10, 2021, 9:50 PM naponice @.***> wrote:

@trying2016 https://github.com/trying2016 Thank you for the quick fix. How may I choose the Japanese route? I am using this on linux.

Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hpool-dev/chia-miner/issues/670#issuecomment-877685927, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMNRVCN4JZWUH32W7NEJHLTXCI65ANCNFSM5AECGRQQ .

Andyaj avatar Jul 10 '21 18:07 Andyaj

This is being ridiculous ... why would I need a VPN to mitigate this issue. HPOOL please fix it at your side.

pakamon avatar Jul 10 '21 21:07 pakamon

@trying2016 Thank you for the quick fix. How may I choose the Japanese route? I am using this on linux.

Thanks

Route options is inside x-proxy config webpage. You have to setup proxy in your YAML file first.

kellenkuo avatar Jul 10 '21 23:07 kellenkuo

Add line: jp in YAML

trying2016 avatar Jul 11 '21 03:07 trying2016

I don't understand how to set up X Proxy and YAML files. I think that not only I can't do it. Dear developers or anyone who succeeded give examples of files or a detailed guide.

BVVSL9 avatar Jul 11 '21 06:07 BVVSL9

I managed to solve the problem everything works.

BVVSL9 avatar Jul 11 '21 07:07 BVVSL9

So would anyone line to share some info on how to get this working? It's great that BVVSL9 got things working, sharing the info would have been good instead of bragging that his system is working.

softants avatar Jul 11 '21 16:07 softants

Download latest hpool miner. In windows OS when starting gui choose line to Japan, in Linux edit config.yaml and at the and set: line: jp

Darkonyks avatar Jul 14 '21 06:07 Darkonyks

Download latest hpool miner. In windows OS when starting gui choose line to Japan, in Linux edit config.yaml and at the and set: line: jp

This worked for me, for anyone confused: There is a line in front under "url:" which already says "line:". Don't edit that line, but instead add a new line at the very end of the file saying line: "jp". Now working for me

ruehri avatar Jul 14 '21 07:07 ruehri

Download latest hpool miner. In windows OS when starting gui choose line to Japan, in Linux edit config.yaml and at the and set: line: jp

This worked for me, for anyone confused: There is a line in front under "url:" which already says "line:". Don't edit that line, but instead add a new line at the very end of the file saying line: "jp". Now working for me

If you have downloaded latest hpool miner v1.4.2-1 that that line is already at the end of yaml. But yes if you are using older version, then need to add a new line. My proposal is to always use latest one.

Darkonyks avatar Jul 14 '21 07:07 Darkonyks

I put that "line: jp" and it started to show a scan time. ALthough, the plots are not being shown in my dashbord and miner is shown as offline. What to do now?

pukelis avatar Jul 14 '21 15:07 pukelis

I put that "line: jp" and it started to show a scan time. ALthough, the plots are not being shown in my dashbord and miner is shown as offline. What to do now?

It usually takes a couple of hours to show all plotes. I think it is normal.

Darkonyks avatar Jul 14 '21 21:07 Darkonyks

I am getting the same errors for last few hours. I am not in Asia. I have tried to add line: jp, but it didn't work. Any suggestion?

prodchia avatar Jul 15 '21 12:07 prodchia

I am getting the same errors for last few hours. I am not in Asia. I have tried to add line: jp, but it didn't work. Any suggestion?

Have you downloaded latest one miner?

Darkonyks avatar Jul 15 '21 12:07 Darkonyks