prysm icon indicating copy to clipboard operation
prysm copied to clipboard

There is something wrong with the documentation, can't access curl http://localhost:3500/eth/v1alpha1/node/syncing

Open hanzhenlong1314 opened this issue 2 years ago • 5 comments

💎 Issue

Background

Context and background information on the discussion...

Description

I build a beacon chain test node according to this documentation (https://docs.prylabs.network/docs/install/install-with-docker), but execute curl http://localhost:3500/eth/v1alpha1/node/syncing Nothing came back, so I just used curl http://localhost:13000/eth/v1/node/syncing but the value returned was /multistream/1.0.0, I used (docker run -dit -v /data/ node_eth2/prysm:/data -v /data/node_eth2/genesis.ssz:/genesis/genesis.ssz -p 4000:4000 -p 13000:13000 -p 12000:12000/udp --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=https://goerli.infura.io/v3/XXX
--genesis-state=/genesis/genesis.ssz
--prater) to run the node, I did not find the mapping of port 3500 in the document, is there a problem with the document?

image image image

hanzhenlong1314 avatar Aug 17 '22 08:08 hanzhenlong1314

@hanzhenlong1314 You need to use port 3500 , not 13000. That is our p2p port. 3500 is the default api endpoint

nisdas avatar Aug 17 '22 08:08 nisdas

@hanzhenlong1314 You need to use port 3500 , not 13000. That is our p2p port. 3500 is the default api endpoint

So how should I modify this command, docker run -dit -v /data/ node_eth2/prysm:/data -v /data/node_eth2/genesis.ssz:/genesis/genesis.ssz -p 4000:4000 -p 13000:13000 -p 12000:12000/udp --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=https://goerli.infura.io/v3/XXX
--genesis-state=/genesis/genesis.ssz --prater ,

ocker run -dit -v /data/ node_eth2/prysm:/data -v /data/node_eth2/genesis.ssz:/genesis/genesis.ssz -p 4000:4000 -p 3500:3500 -p 12000:12000/udp - -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=https://goerli.infura.io/v3/XXX
--genesis-state=/genesis/genesis.ssz --prater Is this right?

hanzhenlong1314 avatar Aug 17 '22 08:08 hanzhenlong1314

Add -p 3500:3500 to your docker command . That is correct

nisdas avatar Aug 17 '22 08:08 nisdas

Add -p 3500:3500 to your docker command . That is correct

ok,thanks,iwill try it

hanzhenlong1314 avatar Aug 17 '22 08:08 hanzhenlong1314

Add -p 3500:3500 to your docker command . That is correct image image docker run -dit -v /data/node_eth2/prysm:/data -v /data/node_eth2/genesis.ssz:/genesis/genesis.ssz -p 4000:4000 -p 13000:13000 -p 3500:3500 -p 12000:12000/udp --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=https://goerli.infura.io/v3/xxx
--genesis-state=/genesis/genesis.ssz
--prater Still not working image

hanzhenlong1314 avatar Aug 17 '22 09:08 hanzhenlong1314

hi @hanzhenlong1314 I think you issue is you need to provide --grpc-gateway-host=0.0.0.0 as well. Let me know if that fixes it

rauljordan avatar Aug 25 '22 13:08 rauljordan

@hanzhenlong1314 please reopen if it still exists after adding gateway host

terencechain avatar Sep 12 '22 07:09 terencechain

@hanzhenlong1314 please reopen if it still exists after adding gateway host

it work

hanzhenlong1314 avatar Sep 12 '22 13:09 hanzhenlong1314