0

再会,

我们在 HSM Luna 6.3 和 Hyperledger Fabric 之间进行了集成,我们使用 Luna 来存储对等节点和排序节点的私钥。集成工作正常,但运行一段时间后,我们在同行中收到此错误:

[34m2021-04-26 19:33:04.544 UTC [endorser] callChaincode -> INFO f80a [0m [mychannel][a3eb7ef5] Exit chaincode: name:"mycontract"  (21ms)
[34m2021-04-26 19:33:04.614 UTC [comm.grpc.server] 1 -> INFO f80b [0m unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=X.X.X.X:48698 grpc.peer_subject="CN=user@company.com.tls,OU=client" grpc.code=OK grpc.call_duration=92.644ms
[33m2021-04-26 20:30:18.831 UTC [gossip.gossip] Gossip -> WARN f80c [0m Failed signing message: Failed generating signature [P11: sign failed [pkcs11: 0x30: CKR_DEVICE_ERROR]]
github.com/hyperledger/fabric/gossip/gossip.(*gossipServiceImpl).Gossip
/opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/gossip_impl.go:683
github.com/hyperledger/fabric/gossip/election.(*adapterImpl).Gossip
/opt/gopath/src/github.com/hyperledger/fabric/gossip/election/adapter.go:99
github.com/hyperledger/fabric/gossip/election.(*leaderElectionSvcImpl).leader
/opt/gopath/src/github.com/hyperledger/fabric/gossip/election/election.go:350
github.com/hyperledger/fabric/gossip/election.(*leaderElectionSvcImpl).run
/opt/gopath/src/github.com/hyperledger/fabric/gossip/election/election.go:282
runtime.goexit

尽管错误以runtime.goexit程序结束并没有杀死运行它的 pod 并且无法与 HSM 建立新连接,但它只是不断重复相同的错误。

重新启动 pod 后,连接再次正常工作,对等点正常运行,从 HSM 中窥探私钥。

知道为什么会这样吗?有没有办法强制程序结束,以便 pod 可以重新建立连接?或者有什么方法可以防止将来发生这种情况?

任何帮助,将不胜感激。

谢谢,

4

0 回答 0