prysm icon indicating copy to clipboard operation
prysm copied to clipboard

Recv failure: Connection reset by peer

Open duktig666 opened this issue 2 years ago • 2 comments

🐞 Bug Report

Description

beacon-node rpc don't access

🔬 Minimal Reproduction

docker:

docker run -it -v /data/eth2/.eth2:/data -v /data/eth2/eth2-ext/genesis.ssz:/genesis/genesis.ssz -p 3500:3500 -p 4000:4000 -p 13000:13000 -p 12000:12000/udp -d --name beacon-node \
  gcr.io/prysmaticlabs/prysm/beacon-chain:stable \
  --datadir=/data \
  --rpc-host=0.0.0.0 \
  --monitoring-host=0.0.0.0 \
  --http-web3provider= \
  --genesis-state=/genesis/genesis.ssz \
  --prater

You can check the sync status of your node with the following command on most systems:

curl http://localhost:3500/eth/v1alpha1/node/syncing

log:

[2022-06-21 07:03:56]  WARN flags: Running on the Prater Testnet
[2022-06-21 07:03:56]  INFO node: Checking DB database-path=/data/beaconchaindata
[2022-06-21 07:03:56]  INFO db: Opening Bolt DB at /data/beaconchaindata/beaconchain.db
[2022-06-21 07:03:56]  INFO db: Opened Bolt DB elapsed=11.411164ms
[2022-06-21 07:03:56]  INFO db: Creating block cache...
[2022-06-21 07:03:56]  INFO db: Created block cache elapsed=227.284µs
[2022-06-21 07:03:56]  INFO db: Creating validator cache...
[2022-06-21 07:03:56]  INFO db: Created validator cache elapsed=278.32µs
[2022-06-21 07:03:56]  INFO db: Updating DB and creating buckets...
[2022-06-21 07:03:56]  INFO db: Updated db and created buckets elapsed=3.738158ms
[2022-06-21 07:04:00]  INFO node: Deposit contract: 0xff50ed3d0ec03ac01d4c79aad74928bff48a7b2b
[2022-06-21 07:04:00]  INFO p2p: Running node with peer id of 
[2022-06-21 07:04:06]  WARN blockchain: No valid weak subjectivity checkpoint specified, running without weak subjectivity verification
[2022-06-21 07:04:06]  INFO initial-sync: Waiting for state to be initialized
[2022-06-21 07:04:06]  INFO rpc: gRPC server listening on port address=0.0.0.0:4000
[2022-06-21 07:04:06]  WARN rpc: You are using an insecure gRPC server. If you are running your beacon node and validator on the same machines, you can ignore this message. If you want to know how to enable secure connections, see: https://docs.prylabs.network/docs/prysm-usage/secure-grpc
[2022-06-21 07:04:06]  INFO node: Starting beacon node version=Prysm/v2.1.2/e33850bf51e3a6e9bbf93e8ef799bff1d5e33f32. Built at: 2022-05-16 19:24:13+00:00
[2022-06-21 07:04:06]  INFO blockchain: Blockchain data already exists in DB, initializing...
[2022-06-21 07:04:06]  INFO db: Cleaning up dirty states count=1
[2022-06-21 07:04:06]  INFO initial-sync: Starting initial chain sync...
[2022-06-21 07:04:06]  INFO initial-sync: Waiting for enough suitable peers before syncing required=3 suitable=0
[2022-06-21 07:04:06]  INFO gateway: Starting API middleware
[2022-06-21 07:04:06]  INFO gateway: Starting gRPC gateway address=127.0.0.1:3500
[2022-06-21 07:04:06]  INFO p2p: Node started p2p server multiAddr=/ip4/172.17.0.2/tcp/13000/p2p/16Uiu2HAkvXKVJkjomkQrmYWQYRqfGJmtyWxZSb9MYycrVsGFVzQQ
[2022-06-21 07:04:11]  INFO initial-sync: Waiting for enough suitable peers before syncing required=3 suitable=0
[2022-06-21 07:04:16]  INFO initial-sync: Waiting for enough suitable peers before syncing required=3 suitable=1
[2022-06-21 07:04:21]  INFO initial-sync: Waiting for enough suitable peers before syncing required=3 suitable=1
[2022-06-21 07:04:21]  INFO powchain: Connected to new endpoint: 
[2022-06-21 07:04:26]  INFO initial-sync: Waiting for enough suitable peers before syncing required=3 suitable=2
[2022-06-21 07:04:34]  INFO initial-sync: Processing block batch of size 31 starting from  0x5dd8ebe7... 146017/3273922 - estimated time remaining 560h33m23s blocksPerSecond=1.6 peers=3
[2022-06-21 07:04:54]  INFO initial-sync: Processing block batch of size 63 starting from  0x3276947a... 146048/3273924 - estimated time remaining 275h49m36s blocksPerSecond=3.1 peers=4
[2022-06-21 07:05:01]  INFO initial-sync: Processing block batch of size 61 starting from  0xfd7c1b66... 146112/3273925 - estimated time remaining 140h8m5s blocksPerSecond=6.2 peers=5

🔥 Error




curl: (56) Recv failure: Connection reset by peer

🌍 Your Environment

What version of Prysm are you running? (Which release)

  
2.1.2
  

other

I see #3868 #3945. But it doesn't solve the problem.

duktig666 avatar Jun 21 '22 08:06 duktig666

Is it necessary to configure TSL before accessing?

duktig666 avatar Jun 21 '22 09:06 duktig666

@duktig666 please try adding --grpc-gateway-host=0.0.0.0

prestonvanloon avatar Jun 28 '22 11:06 prestonvanloon

@duktig666 please reopen if it still persists

terencechain avatar Sep 12 '22 07:09 terencechain