2017-11-15 9 views
0

Hyperledger 패브릭에 대한 "처음 네트워크 구축"자습서를 따라 CA를 추가했습니다.Hyperledger Composer BNA 배포 결과에서 'TCP write failed'가 발생합니다.

~/network-setup$ composer network deploy -a ~/maintenance- 
network/dist/maintenance-network.bna -p maint 
enance -i PeerAdmin -s randomString -A admin -S 
Deploying business network from archive: /home/vagrant/maintenance- 
network/dist/maintenance-network.bna 
Business network definition: 
    Identifier: [email protected] 
    Description: Maintenance-network 

✖ Deploying business network definition. This may take a minute... 

Error: Error trying deploy. Error: Error trying install composer runtime. 
Error: TCP Write failed 
Command failed 

사람이 문제가 무엇인지 알고 있습니까 : composer network deploy -a maintenance-network.bna -p maintenance -i PeerAdmin -s randomString -A admin -S를 사용하여, 작곡가와 BNA를 배포하려고 할 때 지금, 난 오류가 발생?

composer identity import -p maintenance -u PeerAdmin -c crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected] -k crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/*_sk 
An identity was imported with name 'PeerAdmin' successfully 
:

{ 
"type": "hlfv1", 
"orderers": [ 
    { "url" : "grpc://localhost:7050" } 
], 
"ca": { "url": "http://localhost:7054", 
     "name": "ca-org1" 
}, 
"peers": [ 
     { 
      "requestURL": "grpc://localhost:7051", 
      "eventURL": "grpc://localhost:7053" 
     }, 
     { 
      "requestURL": "grpc://localhost:8051", 
      "eventURL": "grpc://localhost:8053" 
     }, 
     { 
      "requestURL": "grpc://localhost:9051", 
      "eventURL": "grpc://localhost:9053" 
     }, 
     { 
      "requestURL": "grpc://localhost:10051", 
      "eventURL": "grpc://localhost:10053" 
     }   
], 
"keyValStore": "/home/vagrant/.composer-credentials", 
"channel": "mychannel", 
"mspID": "Org1MSP", 
"timeout": "300" 
} 

keyValStore 함께 가져온 정체성을 포함

IMAGE      COMMAND     CREATED    STATUS    PORTS            NAMES 
2a4710a6805c  hyperledger/fabric-orderer "orderer"    50 seconds ago  Up 48 seconds  0.0.0.0:7050->7050/tcp        orderer.example.com 
81b8cab17323  hyperledger/fabric-peer  "peer node start"  50 seconds ago  Up 47 seconds  0.0.0.0:8051->8051/tcp, 0.0.0.0:8053->8053/tcp  peer1.org1.example.com 
ed8f0148a402  hyperledger/fabric-peer  "peer node start"  50 seconds ago  Up 48 seconds  0.0.0.0:9051->9051/tcp, 0.0.0.0:9053->9053/tcp  peer0.org2.example.com 
9de5f3918f1d  hyperledger/fabric-ca  "sh -c 'fabric-ca-..." 50 seconds ago  Up 47 seconds  0.0.0.0:7054->7054/tcp        ca_peerOrg1 
d2d95dc6f20a  hyperledger/fabric-ca  "sh -c 'fabric-ca-..." 50 seconds ago  Up 48 seconds  7054/tcp, 0.0.0.0:8054->8054/tcp      ca_peerOrg2 
8396f528dc75  hyperledger/fabric-peer  "peer node start"  50 seconds ago  Up 48 seconds  0.0.0.0:10051->10051/tcp, 0.0.0.0:10053->10053/tcp peer1.org2.example.com 
6b1185ea529a  hyperledger/fabric-peer  "peer node start"  50 seconds ago  Up 48 seconds  0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp  peer0.org1.example.com 

이 내가 사용하고있어 connection.json은 다음과 같습니다

docker ps의 출력

도커 컨테이너가 다음으로 시작됩니다 docker-compose-cli.yaml : 나는 우분투 16.04 및 작곡자 v0.14.2를 사용하고

| ____ _____  _  ____ _____ 
|/___| |_ _| /\ | _ \ |_ _| 
| \___ \ | | /_ \ | |_) | | | 
| ___) | | | /___ \ | _ < | | 
| |____/ |_| /_/ \_\ |_| \_\ |_| 
| 
| Starting the network 
| 
| Channel name : mychannel 
| Creating 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=false 
| CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp 
| CORE_PEER_ID=cli 
| CORE_LOGGING_LEVEL=DEBUG 
| CORE_PEER_ADDRESS=peer0.org1.example.com:7051 
| 2017-11-15 09:31:36.011 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 
| 2017-11-15 09:31:36.012 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 
| 2017-11-15 09:31:36.017 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 
| 2017-11-15 09:31:36.018 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP 
| 2017-11-15 09:31:36.019 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity 
| 2017-11-15 09:31:36.019 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP 
| 2017-11-15 09:31:36.019 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity 
| 2017-11-15 09:31:36.019 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0AC6060A074F7267314D535012BA062D...53616D706C65436F6E736F727469756D 
| 2017-11-15 09:31:36.019 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: D6E8392380793B24537309F14EA1C0D9CF3F18FF8292A65D09CF3AA92EA2094D 
| 2017-11-15 09:31:36.019 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP 
| 2017-11-15 09:31:36.019 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity 
| 2017-11-15 09:31:36.019 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP 
| 2017-11-15 09:31:36.019 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity 
| 2017-11-15 09:31:36.019 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AFD060A1508021A0608F892B0D00522...628AB20AD0563C9EA2A482A301EA32D8 
| 2017-11-15 09:31:36.019 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 5A58E17C75478098A108CFCFA1E909639C7830022602D225A61C4D0BE9E8C5AD 
| 2017-11-15 09:31:36.060 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP 
| 2017-11-15 09:31:36.060 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity 
| 2017-11-15 09:31:36.060 UTC [msp] GetLocalMSP -> DEBU 012 Returning existing local MSP 
| 2017-11-15 09:31:36.060 UTC [msp] GetDefaultSigningIdentity -> DEBU 013 Obtaining default signing identity 
| 2017-11-15 09:31:36.060 UTC [msp/identity] Sign -> DEBU 014 Sign: plaintext: 0AFD060A1508021A0608F892B0D00522...5B18D1838ED112080A021A0012021A00 
| 2017-11-15 09:31:36.060 UTC [msp/identity] Sign -> DEBU 015 Sign: digest: 4309C46AA7BBA47AD146AA77CB1ABAC79114C9C3D66D41B833F82ED7F882E326 
| 2017-11-15 09:31:36.082 UTC [channelCmd] readBlock -> DEBU 016 Received block: 0 
| 2017-11-15 09:31:36.083 UTC [main] main -> INFO 017 Exiting..... 
| ===================== Channel "mychannel" is created successfully ===================== 
| 
| 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=false 
| CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp 
| CORE_PEER_ID=cli 
| CORE_LOGGING_LEVEL=DEBUG 
| CORE_PEER_ADDRESS=peer0.org1.example.com:7051 
| 2017-11-15 09:31:36.121 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 
| 2017-11-15 09:31:36.121 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 
| 2017-11-15 09:31:36.123 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 
| 2017-11-15 09:31:36.123 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0AC3070A5B08011A0B08F892B0D00510...A1A603DD33A31A080A000A000A000A00 
| 2017-11-15 09:31:36.123 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 5D870839DD3A368A48E2CED8314E3817CA48001BACBF74B36380408D851769AE 
| 2017-11-15 09:31:36.158 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel! 
| 2017-11-15 09:31:36.158 UTC [main] main -> INFO 007 Exiting..... 
| ===================== PEER0 joined on the channel "mychannel" ===================== 
| sleep: missing operand 
| Try 'sleep --help' for more information. 
| 
| 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=false 
| CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp 
| CORE_PEER_ID=cli 
| CORE_LOGGING_LEVEL=DEBUG 
| CORE_PEER_ADDRESS=peer1.org1.example.com:7051 
| 2017-11-15 09:31:36.194 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 
| 2017-11-15 09:31:36.194 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 
| 2017-11-15 09:31:36.196 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 
| 2017-11-15 09:31:36.196 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0AC3070A5B08011A0B08F892B0D00510...A1A603DD33A31A080A000A000A000A00 
| 2017-11-15 09:31:36.196 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 0B0C3F308D78AC2FDD6FC89A71FED2DCB889038AE993980A6E4B540BB4D3C51A 
| 2017-11-15 09:31:36.248 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel! 
| 2017-11-15 09:31:36.248 UTC [main] main -> INFO 007 Exiting..... 
| ===================== PEER1 joined on the channel "mychannel" ===================== 
| sleep: missing operand 
| Try 'sleep --help' for more information. 
| 
| CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.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=Org2MSP 
| 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=false 
| CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp 
| CORE_PEER_ID=cli 
| CORE_LOGGING_LEVEL=DEBUG 
| CORE_PEER_ADDRESS=peer0.org2.example.com:7051 
| 2017-11-15 09:31:36.288 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 
| 2017-11-15 09:31:36.288 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 
| 2017-11-15 09:31:36.289 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 
| 2017-11-15 09:31:36.290 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0AC4070A5C08011A0C08F892B0D00510...A1A603DD33A31A080A000A000A000A00 
| 2017-11-15 09:31:36.290 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 992F4939F777DD575F2753ADF6936A7E6FB9CC8548C188B31E25B06F9ECEA7E7 
| 2017-11-15 09:31:36.335 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel! 
| 2017-11-15 09:31:36.335 UTC [main] main -> INFO 007 Exiting..... 
| ===================== PEER2 joined on the channel "mychannel" ===================== 
| sleep: missing operand 
| Try 'sleep --help' for more information. 
| 
| CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.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=Org2MSP 
| 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=false 
| CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp 
| CORE_PEER_ID=cli 
| CORE_LOGGING_LEVEL=DEBUG 
| CORE_PEER_ADDRESS=peer1.org2.example.com:7051 
| 2017-11-15 09:31:36.372 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 
| 2017-11-15 09:31:36.372 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 
| 2017-11-15 09:31:36.373 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized 
| 2017-11-15 09:31:36.374 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0AC4070A5C08011A0C08F892B0D00510...A1A603DD33A31A080A000A000A000A00 
| 2017-11-15 09:31:36.374 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 6776D313E8DD88880918868C6BA2C93ECEB05425FE93A7E385762918FA2AF556 
| 2017-11-15 09:31:36.419 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel! 
| 2017-11-15 09:31:36.419 UTC [main] main -> INFO 007 Exiting..... 
| ===================== PEER3 joined on the channel "mychannel" ===================== 
| sleep: missing operand 
| Try 'sleep --help' for more information. 
| 
| 
| ========= All GOOD, BYFN execution completed =========== 

:

version: '2' 

networks: 
    byfn: 
services: 
    ca0: 
    image: hyperledger/fabric-ca 
    environment: 
     - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server 
     - FABRIC_CA_SERVER_CA_NAME=ca-org1 
     - FABRIC_CA_SERVER_TLS_ENABLED=false 
     - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem 
     - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CA1_PRIVATE_KEY 
    ports: 
     - "7054:7054" 
    command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/CA1_PRIVATE_KEY -b admin:adminpw -d' 
    volumes: 
     - ./crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config 
    container_name: ca_peerOrg1 
    networks: 
     - byfn 

    ca1: 
    image: hyperledger/fabric-ca 
    environment: 
     - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server 
     - FABRIC_CA_SERVER_CA_NAME=ca-org2 
     - FABRIC_CA_SERVER_TLS_ENABLED=false 
     - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem 
     - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CA2_PRIVATE_KEY 
    ports: 
     - "8054:8054" 
    command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/CA2_PRIVATE_KEY -b admin:adminpw -d' 
    volumes: 
     - ./crypto-config/peerOrganizations/org2.example.com/ca/:/etc/hyperledger/fabric-ca-server-config 
    container_name: ca_peerOrg2 
    networks: 
     - byfn 

    orderer.example.com: 
    extends: 
     file: base/docker-compose-base.yaml 
     service: orderer.example.com 
    container_name: orderer.example.com 
    networks: 
     - byfn 

    peer0.org1.example.com: 
    container_name: peer0.org1.example.com 
    extends: 
     file: base/docker-compose-base.yaml 
     service: peer0.org1.example.com 
    networks: 
     - byfn 

    peer1.org1.example.com: 
    container_name: peer1.org1.example.com 
    extends: 
     file: base/docker-compose-base.yaml 
     service: peer1.org1.example.com 
    networks: 
     - byfn 

    peer0.org2.example.com: 
    container_name: peer0.org2.example.com 
    extends: 
     file: base/docker-compose-base.yaml 
     service: peer0.org2.example.com 
    networks: 
     - byfn 

    peer1.org2.example.com: 
    container_name: peer1.org2.example.com 
    extends: 
     file: base/docker-compose-base.yaml 
     service: peer1.org2.example.com 
    networks: 
     - byfn 

    cli: 
    container_name: cli 
    image: hyperledger/fabric-tools 
    tty: true 
    environment: 
     - GOPATH=/opt/gopath 
     - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock 
     - CORE_LOGGING_LEVEL=DEBUG 
     - CORE_PEER_ID=cli 
     - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 
     - CORE_PEER_LOCALMSPID=Org1MSP 
     - CORE_PEER_TLS_ENABLED=false 
     - 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_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_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_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp 
    working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer 
    command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME} ${DELAY}; sleep $TIMEOUT' 
    volumes: 
     - /var/run/:/host/var/run/ 
     - ./../chaincode/:/opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/go 
     - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ 
     - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ 
     - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts 
    depends_on: 
     - ca0 
     - ca1 
     - orderer.example.com 
     - peer0.org1.example.com 
     - peer1.org1.example.com 
     - peer0.org2.example.com 
     - peer1.org2.example.com 
    networks: 
     - byfn 

는 그리고이 CHANNEL_NAME=mychannel docker-compose -f docker-compose-cli.yaml up -d를 실행하는 출력됩니다.

+0

안녕하세요 Eric -TCP 쓰기가 실패 했습니까? 어떤 OS를 실행 중인지, 어떤 버전입니까? 이것은 도움이 될 것입니다. 또한 어떤 버전의 Composer를 사용하고 있습니까? v0.14.x와 비슷합니다. https://hyperledger.github.io/composer/installing/development-tools.html에서 사전 요구 사항을 준수 했습니까? 바로 최근에 작곡가 v0.15.0을 발표했습니다. 비즈니스 네트워크 카드를 사용하기 때문에이 최신 수준의 코드로 다시 설치하는 것이 좋습니다. –

+0

하이 폴. 우분투 16.04와 작곡가 v0.14.2를 사용하고 있습니다. 나는 prereqs를 따라, 나는 "hlfv1"체인에 문제없이 내 bna를 배포 할 수 있어요. 이제는 자체 빌드 네트워크로 시험해보고 싶었습니다. v0.15.0으로 업데이트 할 계획입니다. 자동화 스크립트가 손상 될 수 있으므로 지금까지 수행하지 않았습니다. –

답변

0

그럼 누구나 같은 문제가있는 경우 : 도커 포트 매핑에 오류가있었습니다. 피어 고정 컨테이너의 포트는 호스트 컴퓨터의 다른 포트 (예 : 8051, 9051 등)에 매핑 된 70517053이어야합니다.

다른 오류 발견 : 70518051의 동료가 MSP로 Org1MSP를 가지고 있습니다 그래서 connection.json에서 모든 동료를 동시에 입력 할 수는 없습니다. 이 MSP에 연결된 피어와 함께 각 MSP에 대한 connection.json을 만들어야합니다.