bee版本0.5.3无法启动,以太坊swarm新建bzz节点用自定义节点握手启动

由于官方的升级0.60版本bug,导致0.53全新搭建的节点无法与启动节点握手连接,频繁提示启动节点问题。

DEBU[2021-05-30T06:55:20Z] connect fail /ip4/54.210.29.30/tcp/31308/p2p/16Uiu2HAmRHY7h1cdpmB6S48MGfwecG3kfhLT9cXpE8SokS9o1Cck: connect new stream: incompatible stream: protocol not supported
WARN[2021-05-30T06:55:20Z] connect to bootnode /ip4/54.210.29.30/tcp/31308/p2p/16Uiu2HAmRHY7h1cdpmB6S48MGfwecG3kfhLT9cXpE8SokS9o1Cck
DEBU[2021-05-30T06:55:20Z] discover fail /dnsaddr/bootnode.ethswarm.org: discover /dnsaddr/swarm-3.bootnode.ethswarm.org: discover /dnsaddr/bee-8.bootnode.ethswarm.org: discover /ip4/54.210.29.30/tcp/31308/p2p/16Uiu2HAmRHY7h1cdpmB6S48MGfwecG3kfhLT9cXpE8SokS9o1Cck: connect new stream: incompatible stream: protocol not supported
WARN[2021-05-30T06:55:20Z] discover to bootnode /dnsaddr/bootnode.ethswarm.org
1.png

那么,这个时候,可以指定一个已经正常在跑的节点,找到他的ip4节点地址,在启动的时候指定节点启动。

linux:

curl localhost:1635/addresses | jq

使用以上命令查出正在正常跑的节点地址

2.png

复制这段地址,把里面的内网IP,更换为该节点的公网ip,在启动参数中指定:

bee start –verbosity 5 –swap-endpoint https://你申请的swap地址 –debug-api-enable –clef-signer-enable –clef-signer-endpoint /var/lib/bee-clef/clef.ipc –bootnode /ip4/172.96.203.143/tcp/1640/p2p/16Uiu2HAmQXEfeDoBm4eTFSYJcQ8BBCJzccxSvjAyY3XaiHtYrHEp
3.png

windows:

直接新开一个cmd窗口,复制一行节点执行curl命令,(如果无法执行curl,请先安装curl,见本文末尾)

12个连接节点如下:

curl -X POST localhost:1635/connect/ip4/172.16.16.4/tcp/1634/p2p/16Uiu2HAmFADD3y5CuCkGaYhPAqCLr4s5wxWvMJgDq81iidde3pcq
curl -X POST localhost:1635/connect/ip4/172.105.208.202/tcp/1634/p2p/16Uiu2HAmVQdBWSS11s3m3PtGVi92Ts2m7UvxnJmVLJQVdfaxu63z
curl -X POST localhost:1635/connect/ip4/66.181.45.134/tcp/50254/p2p/16Uiu2HAkzyGEtXiqx77A4JJ1hA5ojsCfRD5XPM2jWNsTiiX6wvAi
curl -X POST localhost:1635/connect/ip4/172.105.238.165/tcp/1634/p2p/16Uiu2HAmSU1qU83tJZAh1z6ZhGshQ9gfeU558iNGZZrpkDdi47rB
curl -X POST localhost:1635/connect/ip4/154.215.142.136/tcp/1634/p2p/16Uiu2HAmUFKWHjk9bY7HRx2eeUoMPUPCoADp21UBhgpsF8dWQ6YE
curl -X POST localhost:1635/connect/ip4/51.79.68.121/tcp/1634/p2p/16Uiu2HAm5KXkSSg1uk3KdvJYWNGuVwMA1ASurcunELrhFV9sadtV
curl -X POST localhost:1635/connect/ip4/172.105.208.202/tcp/1634/p2p/16Uiu2HAmVQdBWSS11s3m3PtGVi92Ts2m7UvxnJmVLJQVdfaxu63z
curl -X POST localhost:1635/connect/ip4/172.104.83.228/tcp/1634/p2p/16Uiu2HAmGTv2AqBCEmZy8PGpNXj6a2TjTzjvmht1hha1Sg88ALqk
curl -X POST localhost:1635/connect/ip4/107.182.177.94/tcp/1640/p2p/16Uiu2HAkvu5g73Q5MpFooLPNHvbyaocHH4bZdLCnVHuZkK4wFc5Z
curl -X POST localhost:1635/connect/ip4/51.79.68.121/tcp/1634/p2p/16Uiu2HAm5KXkSSg1uk3KdvJYWNGuVwMA1ASurcunELrhFV9sadtV
curl -X POST localhost:1635/connect/ip4/23.224.227.34/tcp/50144/p2p/16Uiu2HAmLEjmegMaV8D8JLVJWGZXFq4MfPrc37TVfhDMQPxaUvRY
curl -X POST localhost:1635/connect/ip4/172.96.203.143/tcp/1640/p2p/16Uiu2HAmQXEfeDoBm4eTFSYJcQ8BBCJzccxSvjAyY3XaiHtYrHEp
4.png

一个不行,多换几个,直到节点连接提示上线。

5.png

安装CURL:

https://curl.se/windows/dl-7.77.0_1/curl-7.77.0_1-win64-mingw.zip  下载安装文件,解压后放到指定位置,如d:\curl 目录

解压到目录,添加环境变量(计算机 – 属性 – 高级 – 环境变量 – 编辑 将 curl 下的 bin 目录的绝对路径追加到环境变量 Path 的变量值中)

重新打开 cmd 窗口,输入 curl -V,提示 curl 的版本信息即安装成功。

原创文章,作者:Zhu, Yuanyuan,如若转载,请注明出处:https://www.yidc.net/archives/17307