SatoshiTop icon indicating copy to clipboard operation
SatoshiTop copied to clipboard

Error: socket hang up

Open attilhacks opened this issue 9 months ago • 7 comments

Hello

the application is very nice but for some reason it only runs for a few seconds then throws these errors (on 2 different debian nodes same behaviour):

Error: socket hang up
    at connResetException (node:internal/errors:720:14)
    at Socket.socketCloseListener (node:_http_client:474:25)
    at Socket.emit (node:events:529:35)
    at TCP.<anonymous> (node:net:351:12)
node:internal/errors:720
  const ex = new Error(msg);
             ^

Error: socket hang up
    at connResetException (node:internal/errors:720:14)
    at Socket.socketCloseListener (node:_http_client:474:25)
    at Socket.emit (node:events:529:35)
    at TCP.<anonymous> (node:net:351:12) {
  code: 'ECONNRESET'
}

any hints?

thanks

attilhacks avatar Feb 18 '25 05:02 attilhacks

Can I suppose this similar to https://github.com/st3b1t/SatoshiTop/issues/23

I have not been able to replicate the problem yet, try monitoring the bitcoin core logs (RPC API) and share that Maybe that way we can resolve any bugs

st3b1t avatar Feb 19 '25 13:02 st3b1t

hello

these are the errors from the debug log

`2025-02-19T16:40:14Z [rpc] ThreadRPCServer method=getmempoolinfo user=cookie 2025-02-19T16:40:14Z [rpc] ThreadRPCServer method=getblockchaininfo user=cookie 2025-02-19T16:40:14Z [rpc] ThreadRPCServer method=getblockchaininfo user=cookie

2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=getnetworkinfo user=cookie 2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=getpeerinfo user=cookie 2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=estimatesmartfee user=cookie 2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=getblockstats user=cookie 2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=getnetworkinfo user=cookie 2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=uptime user=cookie 2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=estimatesmartfee user=cookie 2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=estimatesmartfee user=cookie 2025-02-19T16:40:17Z [rpc] ThreadRPCServer method=getblockstats user=cookie 2025-02-19T16:40:19Z [rpc] ThreadRPCServer method=getmempoolinfo user=cookie 2025-02-19T16:40:19Z [rpc] ThreadRPCServer method=getblockchaininfo user=cookie 2025-02-19T16:40:19Z [rpc] ThreadRPCServer method=getblockchaininfo user=cookie

2025-02-19T16:40:28Z [rpc] ThreadRPCServer method=getblockchaininfo user=cookie 2025-02-19T16:40:28Z [rpc] ThreadRPCServer method=getpeerinfo user=cookie 2025-02-19T16:40:28Z [rpc] ThreadRPCServer method=getnetworkinfo user=cookie

I have 2 nodes and I notice the one synced has no problem, the other one still syncyng 2024 crashes

`rror: socket hang up at connResetException (node:internal/errors:720:14) at Socket.socketCloseListener (node:_http_client:474:25) at Socket.emit (node:events:529:35) at TCP. (node:net:351:12) node:internal/errors:720 const ex = new Error(msg); ^

Error: socket hang up at connResetException (node:internal/errors:720:14) at Socket.socketCloseListener (node:_http_client:474:25) at Socket.emit (node:events:529:35) at TCP. (node:net:351:12) { code: 'ECONNRESET' }

attilhacks avatar Feb 19 '25 16:02 attilhacks

I managed to override the error using rpcuser/passwd instead of the cookie :-)

attilhacks avatar Feb 21 '25 05:02 attilhacks

@attilhacks if you want on X: https://x.com/BlockChainCaffe/status/1892914112188850477

st3b1t avatar Feb 21 '25 12:02 st3b1t

I managed to override the error using rpcuser/passwd instead of the cookie :-)

strange I use always cookie file... Then you want to say that this issue appear only with user/pass mode?

st3b1t avatar Feb 21 '25 12:02 st3b1t

no, the issue triggers only with cookie, with user/pass works :-)

attilhacks avatar Feb 21 '25 13:02 attilhacks

@attilhacks may be this problem with cookie appear when Bitcoin Core is restarted?

st3b1t avatar Feb 22 '25 13:02 st3b1t