Hyperledger Fabric跑Chaincode for Developers时错误ERROR: An HTTP request took too long to complete

Hyperledger Fabric跑Chaincode for Developers时,在运行docker-compose -f docker-compose-simple.yaml up
命令时出现错误:

ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.

If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).


解决方法:

docker-compose-simple.yaml文件中,注释或者删除掉tty: true行(有两行),应该就可以了。


如果是在阿里云ECS上跑的话,注意对yaml文件内各个actor的environment下添加GODEBUG=netdns=go,才不会产生signal SIGSEGV: segmentation violation错误。


另如果出现Error handling chaincode support stream: rpc error: code = Canceled desc = context canceled,错误的话呢,记得清理一下channel和container,可以用命令docker stop $(docker ps -q) & docker rm $(docker ps -a -q)


出现错误,google一下,一般StackOverflow或者github或者hyperledger里面能找到原因的。

你可能感兴趣的:(Hyperledger,Fabric)