openethereum / openethereum

(deprecated) The fast, light, and robust client for the Ethereum mainnet.
GNU General Public License v3.0
1.64k stars 356 forks source link

Error serving connection: Error(BodyWrite, Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }) #556

Open alko89 opened 2 years ago

alko89 commented 2 years ago

About 10 days ago the node started throwing broken pipe errors in the log about every minute. I'm not sure why or what exactly do they mean. I also checked #414 and #401 but don't seem related. The node doesn't crash or restart after the fact and seems to be functioning.

Oct 21 10:12:52 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:12:52 UTC Imported #27854231 0x2644…fe3d (6 txs, 0.99 Mgas, 19 ms, 1.78 KiB)
Oct 21 10:12:54 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:12:54 UTC Error serving connection: Error(BodyWrite, Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
Oct 21 10:12:56 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:12:56 UTC Imported #27854232 0x9f2f…86e5 (2 txs, 0.19 Mgas, 4 ms, 0.91 KiB)
Oct 21 10:13:00 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:00 UTC Imported #27854233 0xdfac…f2b5 (5 txs, 0.29 Mgas, 10 ms, 1.33 KiB)
Oct 21 10:13:02 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:02 UTC Accepted a new tcp connection from 127.0.0.1:19628.
Oct 21 10:13:02 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:02 UTC Accepted a new tcp connection from 127.0.0.1:19634.
Oct 21 10:13:04 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:04 UTC Imported #27854234 0x060d…8ff6 (6 txs, 0.51 Mgas, 19 ms, 4.14 KiB)
Oct 21 10:13:05 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:05 UTC  48/50 peers    896 MiB chain  0 bytes queue  RPC:  2 conn,    3 req/s,   94 µs
Oct 21 10:13:08 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:08 UTC Imported #27854235 0x88c0…0da7 (1 txs, 0.05 Mgas, 2 ms, 0.75 KiB)
Oct 21 10:13:12 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:12 UTC Imported #27854236 0x47af…e209 (6 txs, 0.78 Mgas, 20 ms, 2.33 KiB)
Oct 21 10:13:16 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:16 UTC Imported #27854237 0xf883…cad0 (3 txs, 0.35 Mgas, 23 ms, 1.13 KiB)
Oct 21 10:13:20 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:20 UTC Imported #27854238 0x9ec1…9572 (7 txs, 3.28 Mgas, 15 ms, 14.72 KiB)
Oct 21 10:13:24 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:24 UTC Imported #27854239 0xdd83…36d7 (6 txs, 0.49 Mgas, 14 ms, 1.42 KiB)
Oct 21 10:13:28 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:28 UTC Imported #27854240 0xa0a4…e2ed (2 txs, 0.09 Mgas, 3 ms, 0.88 KiB)
Oct 21 10:13:32 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:32 UTC Imported #27854241 0x796a…747d (3 txs, 1.78 Mgas, 14 ms, 7.53 KiB)
Oct 21 10:13:35 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:35 UTC  48/50 peers    896 MiB chain  0 bytes queue  RPC:  2 conn,    2 req/s,  100 µs
Oct 21 10:13:36 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:36 UTC Imported #27854242 0x069d…78b4 (2 txs, 0.11 Mgas, 6 ms, 1.26 KiB)
Oct 21 10:13:40 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:40 UTC Imported #27854243 0xfce8…f8db (4 txs, 2.70 Mgas, 4 ms, 12.46 KiB)
Oct 21 10:13:44 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:44 UTC Imported #27854244 0x6889…bac9 (2 txs, 0.34 Mgas, 19 ms, 0.99 KiB)
Oct 21 10:13:48 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:48 UTC Imported #27854245 0xbedb…b4df (0 txs, 0.00 Mgas, 2 ms, 0.57 KiB)
Oct 21 10:13:52 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:52 UTC Imported #27854246 0x0b7c…904d (5 txs, 0.43 Mgas, 12 ms, 1.33 KiB)
Oct 21 10:13:55 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:55 UTC Error serving connection: Error(BodyWrite, Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
Oct 21 10:13:56 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:13:56 UTC Imported #27854247 0x4317…aeb3 (5 txs, 0.57 Mgas, 16 ms, 10.52 KiB)
Oct 21 10:14:00 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:00 UTC Imported #27854248 0x7ece…ee63 (1 txs, 0.02 Mgas, 3 ms, 0.68 KiB)
Oct 21 10:14:04 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:04 UTC Imported #27854249 0x48f8…6463 (6 txs, 0.35 Mgas, 20 ms, 1.42 KiB)
Oct 21 10:14:05 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:05 UTC  48/50 peers    896 MiB chain  0 bytes queue  RPC:  2 conn,    3 req/s,   84 µs
Oct 21 10:14:08 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:08 UTC Imported #27854250 0xf0b4…6902 (5 txs, 1.06 Mgas, 86 ms, 1.47 KiB)
Oct 21 10:14:12 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:12 UTC Imported #27854251 0x5f25…496a (2 txs, 0.51 Mgas, 11 ms, 1.75 KiB)
Oct 21 10:14:16 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:16 UTC Imported #27854252 0xb239…2731 (4 txs, 0.58 Mgas, 16 ms, 1.34 KiB)
Oct 21 10:14:20 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:20 UTC Imported #27854253 0x77cf…176a (4 txs, 2.96 Mgas, 4 ms, 13.65 KiB)
Oct 21 10:14:24 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:24 UTC Imported #27854254 0x062e…aa8f (4 txs, 0.45 Mgas, 13 ms, 1.21 KiB)
Oct 21 10:14:25 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:25 UTC Error serving connection: Error(BodyWrite, Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
Oct 21 10:14:28 Kovan-Arch-1 openethereum[19854]: 2021-10-21 10:14:28 UTC Imported #27854255 0xff8d…9899 (3 txs, 0.12 Mgas, 5 ms, 1.04 KiB)

Node params:

openethereum --jsonrpc-no-keep-alive --jsonrpc-hosts all --jsonrpc-cors all --jsonrpc-apis traces,web3,eth,net,parity,rpc --jsonrpc-threads=16 --jsonrpc-server-threads=16 --jsonrpc-interface=all --jsonrpc-port=8545 --tx-queue-size=16384 --tx-queue-mem-limit=0 --ws-hosts=all --ws-apis=traces,web3,eth,net,parity,rpc --ws-interface=all --ws-port=8546 --chain kovan --pruning archive --tracing on --min-peers=20 --cache-size=30000 --ws-max-connections=500

Let me know if there is anything I can check to debug this more.

mtb-pro commented 2 years ago

I had the same problem There is an attack on your ports Restrict access to the rpc port to a specific IP