10 peer chaincode instantiate报错

执行命令如下:

peer chaincode instantiate -o orderer.qklszzn.com:7050 -C roberttestchannel -n roberttestchannel -v 1.0 -c '{"Args":["init", "a","100", "b","200"]}' -P "OR ('Org1MSP.member', 'Org2MSP.member')"


返回信息:

2019-05-15 09:34:54.936 CST [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc

2019-05-15 09:34:54.936 CST [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc

Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:amd64-1.4.2: API error (404): manifest for hyperledger/fabric-ccenv:amd64-1.4.2 not found


peer节点日志信息:

2019-05-15 09:46:42.741 CST [chaincode.platform] func1 -> ERRO 031 Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:amd64-1.4.2: API error (404): manifest for hyperledger/fabric-ccenv:amd64-1.4.2 not found

2019-05-15 09:46:42.741 CST [dockercontroller] deployImage -> ERRO 032 Error building image: Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:amd64-1.4.2: API error (404): manifest for hyperledger/fabric-ccenv:amd64-1.4.2 not found

2019-05-15 09:46:42.741 CST [dockercontroller] deployImage -> ERRO 033 Build Output:

********************

********************

2019-05-15 09:46:42.764 CST [endorser] callChaincode -> INFO 034 [roberttestchannel][7b263722] Exit chaincode: name:"lscc"  (3088ms)

2019-05-15 09:46:42.764 CST [endorser] SimulateProposal -> ERRO 035 [roberttestchannel][7b263722] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Failed to pull hyperledger/fabric-ccenv:amd64-1.4.2: API error (404): manifest for hyperledger/fabric-ccenv:amd64-1.4.2 not found

error starting container

error starting container

请先 登录 后评论

2 个回答

冯翔 - 高级系统架构师

你测试下docker是否顺利启动,可以用下面的命令


curl -XPOST --unix-socket /var/run/docker.sock -d ‘{“Image”:”nginx”}’ -H ‘Content-Type: application/json’ http://localhost/containers/create

请先 登录 后评论
ooojerryooo

这个问题我碰到过,是你编译源码的时候选择的版本应该release1.4,默认生成的二进制文件是1.4.2版本的,所以实例化链码的时候回去下载1.4.2的相关镜像,然并软,官方并没有1.4.2的镜像文件。从docker仓库可以看下,并没有1.4.2的镜像 https://hub.docker.com/r/hyperledger/fabric-ccenv/

到fabric目录,切换分支 git checkout v1.4.1,然后make release,再然后测试下。peer version 看看结果是不是1.4.1版本,在跑就不会报这错了。

请先 登录 后评论