Tag: 超标

在docker中testingchaincode_example02.go时出错

我只是按照区块链指南 ( https://github.com/yeasy/blockchain_guide )来testingdocker中的hyperledger项目example02。 但是当我inputpeer chaincode deploy -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 -c '{"Function":"init", "Args": ["a","100", "b", "200"]}' ,我得到以下错误。 错误:非空的JSON链接代码参数必须包含1个键:'参数' 真奇怪。 我GOOGLE了,但没有find答案。 任何人都可以帮助我? 谢谢。 实际上,当我使用pbft模式并inputdocker docker-compose up 。 我得到以下错误,但我忽略了它。 这是原因吗? vp2_1 | 04:27:04.945 [peer] handleChat – > ERRO 88eerror handling消息:对等FSM在处于状态时无法处理消息大小为(0)的消息(DISC_GET_PEERS):created vp2_1 | 04:27:04.953 [peer] handleChat – > ERRO 88ferror handling消息:对等FSM无法处理消息(DISC_GET_PEERS) vp2_1 | 04:27:06.845 [peer] ensureConnected – > WARN […]

为什么将/ var / hyperledger / production安装到主机卷导致错误?

我尝试将/ var / hyperledger / production文件夹挂载到主机(我正在使用Windows 7并通过Docker ToolBox运行Docker),以便在我的hyperledger对等端口容器退出时保留注册证书。 这是我用的命令: docker run –name c_vp0 –rm -it -v /var/run/docker.sock:/var/run/docker.sock -v /c/Users/hyperledger/production:/var/hyperledger/production -e CORE_VM_ENDPOINT=unix:///var/run/docker.sock -e CORE_PEER_ID=vp0 -e CORE_PEER_ADDRESSAUTODETECT=true -e CORE_PEER_VALIDATOR_CONSENSUS_PLUGIN=noop -e CORE_LOGGING_LEVEL=ERROR -e CORE_SECURITY_ENABLED=true -e CORE_SECURITY_PRIVACY=true -e CORE_PEER_PKI_ECA_PADDR=172.17.0.50:7054 -e CORE_PEER_PKI_TCA_PADDR=172.17.0.50:7054 -e CORE_PEER_PKI_TLSCA_PADDR=172.17.0.50:7054 -e CORE_SECURITY_ENROLLID=test_vp0 -e CORE_SECURITY_ENROLLSECRET=MwYpmSRjupbT hyperledger/fabric-peer peer node start 但是,我遇到以下错误: panic: Error opening DB: IO error: directory: […]