您当前的位置: 首页 > 
  • 0浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

fisco bcos Caliper部署 错误总结

软件工程小施同学 发布时间:2021-04-30 16:57:13 ,浏览量:0

1. fatal: unable to access 'https://github.com/frozeman/bignumber.js-nolookahead.git/': Failed to connect to github.com port 443: Connection refused

确保能够上github,如果能,则多试几次,我第六次成功了

 

2. Couldn't connect to Docker daemon at http+docker://localhost - is it running?

docker没有起来

https://blog.csdn.net/ljx1528/article/details/86424864

 

3. dial unix /var/run/docker.sock: connect: permission denied.

docker没有起来

https://blog.csdn.net/ljx1528/article/details/86424864

 

4. Depolying error: Error: Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: 982005432c484060b0c89ec0b321ad72

Failed to install smart contract helloworld, path=/home/shijianfeng/fisco/benchmarks/caliper-benchmarks/src/fisco-bcos/helloworld/HelloWorld.sol

需要修改源代码

https://github.com/FISCO-BCOS/FISCO-BCOS/issues/1248

 

5. Depolying error: TypeError: secp256k1.sign is not a function

 

非常抱歉,这是一个愚蠢的bug,指定secp256k1依赖包时版本限制没写对,导致在绑定时时自动安装了4.0版本的secp256k1包,但是最新的4.0的包API全部变了,导致执行出错。

有一个临时的解决方案,进入node_modules/@hyperledger/caliper-fisco-bcos目录,编辑该目录下的package.json文件,在"dependencies"中添加一项"secp256k1": "^3.8.0",随后在该目录下执行npm i,更新完成后测试程序就能启动了。

https://github.com/FISCO-BCOS/FISCO-BCOS/issues/1721

 

 

最后成功的样子

 

https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/tutorial/stress_testing.html

关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.0412s