-
Notifications
You must be signed in to change notification settings - Fork 155
DeployInstantiateChaincode problem #50
Description
i try to create and deploy blockchain network using fabric-java-sdk, but got problems when run " java -cp blockchain-client.jar org.example.network.DeployInstantiateChaincode", and retry to stop and build the network again, but still failure.
any advice are appreciate!!!!
[root@localhost network]# ./build.sh
Stopping the previous network (if any)
Removing peer1.org1.example.com ... done
Removing peer1.org2.example.com ... done
Removing peer0.org1.example.com ... done
Removing peer0.org2.example.com ... done
Removing ca_peerOrg1 ... done
Removing ca_peerOrg2 ... done
Removing orderer.example.com ... done
Removing network network_custom
Setting up the Hyperledger Fabric 1.1 network
Creating network "network_custom" with the default driver
Creating ca_peerOrg1 ... done
Creating ca_peerOrg2 ... done
Creating orderer.example.com ... done
Creating peer0.org2.example.com ... done
Creating peer1.org1.example.com ... done
Creating peer0.org1.example.com ... done
Creating peer1.org2.example.com ... done
Network setup completed!!
[root@localhost network]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9fdc2a834577 hyperledger/fabric-peer:1.4.1 "peer node start" 20 seconds ago Up 18 seconds 0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp peer1.org2.example.com
76c3c0da88b9 hyperledger/fabric-peer:1.4.1 "peer node start" 20 seconds ago Up 18 seconds 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com
c3501becd945 hyperledger/fabric-peer:1.4.1 "peer node start" 20 seconds ago Up 18 seconds 0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp peer1.org1.example.com
42538ad535b0 hyperledger/fabric-peer:1.4.1 "peer node start" 20 seconds ago Up 18 seconds 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer0.org2.example.com
c4030f410fe7 hyperledger/fabric-orderer:1.4.1 "orderer" 21 seconds ago Up 20 seconds 0.0.0.0:7050->7050/tcp orderer.example.com
0dced0a6d00b hyperledger/fabric-ca:1.4.1 "sh -c 'fabric-ca-..." 21 seconds ago Up 20 seconds 0.0.0.0:8054->7054/tcp ca_peerOrg2
ecd36494b32f hyperledger/fabric-ca:1.4.1 "sh -c 'fabric-ca-..." 21 seconds ago Up 20 seconds 0.0.0.0:7054->7054/tcp ca_peerOrg1
[root@localhost network_resources]# java -cp blockchain-client.jar org.example.network.CreateChannel
log4j:WARN No appenders could be found for logger (org.hyperledger.fabric.sdk.helper.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Apr 12, 2021 5:05:35 PM org.example.util.Util deleteDirectory
INFO: Deleting - users
Apr 12, 2021 5:05:38 PM org.example.network.CreateChannel main
INFO: Channel created mychannel
Apr 12, 2021 5:05:38 PM org.example.network.CreateChannel main
INFO: peer0.org2.example.com at grpc://localhost:8051
Apr 12, 2021 5:05:38 PM org.example.network.CreateChannel main
INFO: peer1.org1.example.com at grpc://localhost:7056
Apr 12, 2021 5:05:38 PM org.example.network.CreateChannel main
INFO: peer1.org2.example.com at grpc://localhost:8056
Apr 12, 2021 5:05:38 PM org.example.network.CreateChannel main
INFO: peer0.org1.example.com at grpc://localhost:7051
[root@localhost network_resources]# java -cp blockchain-client.jar org.example.network.DeployInstantiateChaincode
log4j:WARN No appenders could be found for logger (org.hyperledger.fabric.sdk.helper.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Apr 12, 2021 5:05:49 PM org.example.client.FabricClient deployChainCode
INFO: Deploying chaincode fabcar using Fabric client Org1MSP admin
Apr 12, 2021 5:05:50 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment SUCCESS
Apr 12, 2021 5:05:50 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment SUCCESS
Apr 12, 2021 5:05:50 PM org.example.client.FabricClient deployChainCode
INFO: Deploying chaincode fabcar using Fabric client Org2MSP admin
Apr 12, 2021 5:05:50 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment SUCCESS
Apr 12, 2021 5:05:50 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment SUCCESS
Apr 12, 2021 5:05:50 PM org.example.client.ChannelClient instantiateChainCode
INFO: Instantiate proposal request fabcar on channel mychannel with Fabric client Org2MSP admin
Apr 12, 2021 5:05:50 PM org.example.client.ChannelClient instantiateChainCode
INFO: Instantiating Chaincode ID fabcar on channel mychannel
Apr 12, 2021 5:06:08 PM org.example.client.ChannelClient instantiateChainCode
INFO: Chaincode fabcar on channel mychannel instantiation java.util.concurrent.CompletableFuture@4dd6fd0a[Completed exceptionally]
Apr 12, 2021 5:06:08 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Apr 12, 2021 5:06:08 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Apr 12, 2021 5:06:08 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Apr 12, 2021 5:06:08 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE