在hyperledger fabric -1.0

时间:2017-09-06 12:28:42

标签: hyperledger-fabric hyperledger

我已在CentOs系统中下载并设置了超级分层结构网络。我可以使用默认的两个组织(Org1和Org2)启动第一个网络。每个组织也有两个对等体(peer0,peer1)。现在我正在尝试用一个同伴添加一个组织。

我在下面的文件中进行了更改

  1. 第一网络/加密config.yaml
  2. 第一网络/ configtx.yaml
  3. 第一网络/搬运工-构成-cli.yaml
  4. 第一网络/碱/搬运工-撰写-base.yaml
  5. 第一网络/脚本/ script.sh
  6. 现在尝试升级网络。以下例外即将来临

    Having all peers join the channel...
    CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
    CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
    CORE_PEER_LOCALMSPID=Org1MSP
    CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
    CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
    CORE_PEER_TLS_ENABLED=true
    CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
    CORE_PEER_ID=cli
    CORE_LOGGING_LEVEL=DEBUG
    CORE_PEER_ADDRESS=peer0.org1.example.com:7051
    2017-09-06 06:40:53.134 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
    2017-09-06 06:40:53.134 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
    2017-09-06 06:40:53.136 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
    2017-09-06 06:40:53.136 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A89070A5B08011A0B08F5B0BECD0510...742FDE921B171A080A000A000A000A00
    2017-09-06 06:40:53.136 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 152A1C5D481840FB755E98925E0D346271894F15AB69E694C03BEC962E523A50
    Error: proposal failed (err: rpc error: code = Unknown desc = Failed to deserialize creator identity, err Expected MSP ID org1MSP, received Org1MSP)
    Usage:
      peer channel join [flags]
    
    Flags:
      -b, --blockpath string   Path to file containing genesis block
    
    Global Flags:
          --cafile string              Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint
          --logging-level string       Default logging level and overrides, see core.yaml for full syntax
      -o, --orderer string             Ordering service endpoint
          --test.coverprofile string   Done (default "coverage.cov")
          --tls                        Use TLS when communicating with the orderer endpoint
      -v, --version                    Display current version of fabric peer server
    
    PEER0 failed to join the channel, Retry after 2 seconds
    

0 个答案:

没有答案