IBM-Blockchain-Archive / ibm-blockchain-issues

Having issues with the IBM Blockchain Bluemix service? Let us know!
13 stars 12 forks source link

Hyperledger Fabric Local Network Setup #110

Open vijaygopal opened 7 years ago

vijaygopal commented 7 years ago

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.

dhyey20 commented 7 years ago

Error: proposal failed (err: rpc error: code = 2 desc = Block number should have been 3 but was 0) Generally I have seen this error when you try to run peer channel join more than once. So probably the peer is already on the channel and thats why on running it again it you see the error.

chawlanikhil24 commented 6 years ago

I am setting up fabric 1.0 locally on Kubernetes and has been able to create a channel successfully, but since then the peer is not joining the channel and prints the same log as mentioned above. My peer hasn't even join the channel for once. Please Help !