• Error Creating GRPC server

2019-12-21 19:39:07.769 UTC [nodeCmd] createChaincodeServer -> ERRO 062 Error creating GRPC server: listen tcp: lookup peer1-org1 on 192.168.119.2:53: no such host
2019-12-21 19:39:07.770 UTC [nodeCmd] startChaincodeServer -> PANI 063 Failed to create chaincode server: listen tcp: lookup peer1-org1 on 192.168.119.2:53: no such host
panic: Failed to create chaincode server: listen tcp: lookup peer1-org1 on 192.168.119.2:53: no such host


解决办法:

Try to add the line CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 in the environment of your peer.

I had seen this error as well when network_mode= host was set.


  •  it doesn't contain any IP SANs".

2019-12-22 00:23:59.815 UTC [grpc] createTransport -> DEBU 049 grpc: addrConn.createTransport failed to connect to {192.168.56.131:7051 0  <nil>}. Err :connection error: desc = "transport: authentication handshake failed: x509: cannot validate certificate for 192.168.56.131 because it doesn't contain any IP SANs". Reconnecting...

此错误发生在peer2连接peer1的gossip时,不能验证对于192.168.56.131的证书。原因在于TLS证书颁发时,指定的crs.hosts不包含这个IP。

解决办法:

在enroll TLS证书时,把将要使用到的IP或hostname添加到csr.hosts中。

fabric-ca-client enroll -d -u https://peer1-org1:peer1PW@192.168.56.129:7052 --enrollment.profile tls --csr.hosts peer1-org1,192.168.56.131 --tls.certfiles /root/ca/tlsca/tls-ca-cert.pem


  • 创建channel报错

Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group]  /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied


可能的原因:(https://stackoverflow.com/questions/45726536/peer-channel-creation-fails-in-hyperledger-fabric

没有使用组织的admin MSP;


  • 无法运行peer命令

 Cannot run peer because error when setting up MSP of type bccsp from directory /root/fabric-ca-client-home/org1_admin_msp/msp: administrators must be declared when no admin ou classification is set

原因:

组织的admin MSP内没有admincert文件夹。

解决办法:

在组织admin MSP文件夹下创建admincert,然后将signcerts/cert.pem copy 到admincerts文件夹下。



  • No labels