filecoin-shipyard / 2019-filecoin-network-stats

(Deprecated) Dashboard by Kyokan for tracking network state of go-filecoin devnets in 2019.
Other
34 stars 12 forks source link

can not collect statistics on node #27

Closed yangjian102621 closed 5 years ago

yangjian102621 commented 5 years ago

I am not sure if it is wrong with my configuration. I did it according to the READM.md

go-filecoin config heartbeat.nickname '"Pizzanode"'
go-filecoin config heartbeat.beatTarget "/dns4/<your-backend-domain-name>/tcp/8080/ipfs/<your-peer-id>"

i replace the <your-backend-domain-name> to 127.0.0.1 and replace the <your-peer-id> to the Peer ID of the FULL_NODE.

Well, i got an error in go-filecoin deamon after configured the heartbeat.beatTarget

11:24:07.005 DEBUG    metrics: Heartbeat service failed to connect for 16m49.995175956s: protocol not supported heartbeat.go:148
11:24:17.004 DEBUG    metrics: Heartbeat service attempting to connect, targetAddress: /dns4/127.0.0.1/tcp/8080/ipfs/QmbUAMCS9bknw5tG4BTpDRsGxFSnvbCqgA6uo8Hvx1wcHc heartbeat.go:213
11:24:17.005 DEBUG    metrics: failed to open stream, peerID: <peer.ID Qm*x1wcHc>, targetAddr: /dns4/127.0.0.1/tcp/8080 protocol not supported heartbeat.

here is my .env

export DB_URL=postgresql://test:test111@localhost:5432
export FULL_NODE_URL=http://127.0.0.1:3453
export IS_MASTER=true
export PEER_INFO_FILE=./peerId.json
export HEARTBEAT_PORT=8080
export API_PORT=8081
export LOG_LEVEL=silly
mslipper commented 5 years ago

Hi there,

Your beatTarget is specifying dns4, which requires a domain name. Change it to /ip4/127.0.0.1/tcp/8080/ipfs/QmbUAMCS9bknw5tG4BTpDRsGxFSnvbCqgA6uo8Hvx1wcHc and it should work.

mslipper commented 5 years ago

Also, the peer ID needs to be the peer ID of the dashboard server, not the full node.

yangjian102621 commented 5 years ago

@mslipper I modify the beatTarget as you suggestion and it works.

Thanks.