-
Notifications
You must be signed in to change notification settings - Fork 12
Hyperledger Fabric Local Network Setup #110
Description
Hi,
I was trying to deploy setup local network for blockchain(fabric 1.0) and ran into the following issue while I was trying to join my channel. The tutorial I am using is
http://fabric-rtd.readthedocs.io/en/latest/getting_started.html#create-join-channel
Error Log---
root@d20d1f8fec34:/opt/gopath/src/github.com/hyperledger/fabric/peer# CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org0MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/cacerts/org1.example.com-cert.pem peer channel join -b vijaygopalchannel.block
2017-05-07 01:04:09.634 UTC [logging] InitFromViper -> DEBU 001 Setting default logging level to DEBUG for command 'channel'
2017-05-07 01:04:09.634 UTC [msp] GetLocalMSP -> DEBU 002 Returning existing local MSP
2017-05-07 01:04:09.634 UTC [msp] GetDefaultSigningIdentity -> DEBU 003 Obtaining default signing identity
2017-05-07 01:04:09.636 UTC [msp] Sign -> DEBU 004 Sign: plaintext: 0A94070A4E08012A4063353039636262...32AEAD52B2E61A080A000A000A000A00
2017-05-07 01:04:09.636 UTC [msp] Sign -> DEBU 005 Sign: digest: D254DCB21A30578F85C170EFB832A22DC3811F318C6345C53A6F5F5553809BCF
Error: proposal failed (err: rpc error: code = 2 desc = Block number should have been 3 but was 0)
Usage:
peer channel join [flags]
Global Flags:
-b, --blockpath string Path to file containing genesis block
--cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint
-c, --chain string In case of a newChain command, the chain ID to create.
-f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer
--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
root@d20d1f8fec34:/opt/gopath/src/github.com/hyperledger/fabric/peer#
Please let me know if I am missing any steps.