在Developer composer playground中部署示例脚本时出现部署错误

时间:2017-07-05 11:03:44

标签: hyperledger-composer

我正在尝试按照本教程中的步骤设置composer的开发环境。我能够成功生成.bna文件并在在线游乐场中使用它。但是当我尝试将.bna文件部署到在本地运行的结构V1.0时,我得到以下错误。

ubuntu@ip-172-31-8-83:~/fabric-tools/my-network$ cd dist
ubuntu@ip-172-31-8-83:~/fabric-tools/my-network/dist$ composer network 
deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString

Deploying business network from archive: my-network.bna
Business network definition:
    Identifier: my-network@0.0.1
    Description: The Hello World of Hyperledger Composer samples

events.js:160
  throw er; // Unhandled 'error' event
  ^

Error: event message must be properly signed by an identity from the same organization as the peer: [failed deserializing event creator: [Expected MSP ID Org1MSP, received ]]
at ClientDuplexStream._emitStatusIfDone (/home/ubuntu/.nvm/versions/node/v6.11.0/lib/node_modules/composer-cli/node_modules/grpc/src/node/src/client.js:189:19)
at ClientDuplexStream._receiveStatus (/home/ubuntu/.nvm/versions/node/v6.11.0/lib/node_modules/composer-cli/node_modules/grpc/src/node/src/client.js:169:8)
at /home/ubuntu/.nvm/versions/node/v6.11.0/lib/node_modules/composer-cli/node_modules/grpc/src/node/src/client.js:634:14

我的码头图片如下:

ubuntu@ip-172-31-8-83:~/fabric-tools/my-network/dist$ docker ps -a
CONTAINER ID        IMAGE                                          COMMAND                  
CREATED             STATUS              PORTS                                            
NAMES
80c9949edf73        hyperledger/fabric-peer:x86_64-1.0.0-beta      "peer 
node start -..."   19 minutes ago      Up 19 minutes       0.0.0.0:7051-
>7051/tcp, 0.0.0.0:7053->7053/tcp   peer0.org1.example.com
126f6381cc90        hyperledger/fabric-couchdb:x86_64-1.0.0-beta   "tini -- 
/docker-e..."   19 minutes ago      Up 19 minutes       4369/tcp, 9100/tcp, 
0.0.0.0:5984->5984/tcp       couchdb
924081546fa1        hyperledger/fabric-ca:x86_64-1.0.0-beta        "sh -c 
'fabric-ca-..."   19 minutes ago      Up 19 minutes       0.0.0.0:7054-
>7054/tcp                           ca.example.com
d13f2c8e8421        hyperledger/fabric-orderer:x86_64-1.0.0-beta   "orderer"                
19 minutes ago      Up 19 minutes       0.0.0.0:7050->7050/tcp                           
orderer.example.com

节点版本是:4.2.6 npm版本是:3.5.2 Docker版本17.06.0-ce,build 02c1d87

有人可以告诉我如何解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

您需要处于最新的节点级别 - 您目前处于4.2.6 - 您需要处于节点版本6.x https://hyperledger.github.io/composer/unstable/installing/development-tools.html

我假设您正在使用Ubuntu 14.04或16.0x LTS ..