似乎grpc正在使用我的CLI客户端中一些相当随机的端口,我没有手动打开它。
对于安全组和防火墙端口,还有其他人在AWS EC2上遇到过Fabric问题吗?如何创建一个相对安全的安全组,其开放性足以允许这些随机的grpc端口?此CLI客户端是否使用特定端口范围?
2018-04-06 13:33:19.399 UTC [grpc] Printf -> DEBU 3a3 transport: http2Server.HandleStreams failed to read frame: read tcp X.X.X.X:7050->X.X.X.X:51502: read: connection reset by peer
2018-04-06 13:33:32.481 UTC [grpc] Printf -> DEBU 3d5 transport: http2Server.HandleStreams failed to read frame: read tcp X.X.X.X:7050->X.X.X.X:51518: read: connection reset by peer
2018-04-06 13:33:44.610 UTC [grpc] Printf -> DEBU 41f transport: http2Server.HandleStreams failed to read frame: read tcp X.X.X.X:7050->X.X.X.X:51522: read: connection reset by peer
以上orderer
日志中提到的端口 51502 , 51518 , 51522 。
这些错误源于CLI客户端发出失败的./peer chaincode instantiate
命令。