Hyperledger Explorer error in channel discovery - hyperledger-explorer

Hyperledger Explorer error in channel discovery:access denied
Channel:ehtchannel received discovery error:access denied-This is the exact error prompt.

I faced the same issue.
Solution : Try to run the Hyperledger Explorer once the channel is created and all the peers are joined to the channel

Related

hyperledger fabric some problem in deploying on kubernetes

i have some question.
while deploying fabric-ca 1.4.9, orderer 2.2.1 and peer 2.2.1 in kubernetes with tls configure is enable, i cannot excute command peer channel create following this error.
Error: failed to create deliver client for orderer: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded
i executed configtxgen and crypto-gen command before create channel with configtx.yaml and crypto-config.yaml.
Current problems and questions are not specified. To solve this problem, information about the parameter options in the peer channel create command is required.
Then, check whether the MSP (crypto) specified in the created configtx.yaml and the policy match well.
In addition to the above information, it is good to give the topology information of the currently established blockchain network.

List all channel in Hyperledger Fabric network

How can I list all the channels within a fabric network? Is it possible to do it with using peer cli?
It's possible to know the "List of channels peer has joined", with peer cli, but not possible for the whole network.
The command is:
peer channel list [flags]
Link:
https://hyperledger-fabric.readthedocs.io/en/release-2.2/commands/peerchannel.html#

Getting error - No peers available to register a listener and No peers available to query

I have set up hyperledger fabric, and installed and instantiate chaincode for peer0.org1 and peer0.org2 .
I am able to do all transaction for one org. When I tried to do adding peer0.org2 and tried to do transaction through docker cli; I'm able to do all transaction and querying for both org1 and org2.
When I am trying to do these transactions with gateway nodeJS code, I am able to create data from both org, but in org2 creation part getting error: [AbstractEventListener]: No peers available to register a listener
and in querying I am getting error: [SingleQueryHandler]: evaluate: message=No peers available to query
I am able to do all transactions from docker cli for both org. Docker Logs are as well fine.
Please help to resolve the issue. Thanks in advance.
https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html

Hyperledger Fabric - crash restore strategies

Yesterday faced with a nice problem: Nothing happens in case of chaincode container crash or someone manual stopping it.
Sample network (using v1.2.0 images):
2 ORGs
2 CA's
2 peers ORG1 (using LevelDB as a storage)
2 peers ORG2 (using LevelDB as a storage)
1 solo orderer
1 shared channel with consorcium of 2 org's
this network is launched under the control of Docker Swarm on 4 VM's (2 manager's, 2 worker's nodes)
There are many elements that can break down:
chaincode container crashes (!)
one/two peer's of ORG1 crashes
orderer crashes
So. The fabric's default behavior:
chaincode container crashes (!)
Stop processing sdk request's. no restart
UPD_1: With the next request (invoke/query) cc-container will be recreated
one/two peer's of ORG1 crashes
stop processing requests's due to lost connection to channel
after auto-restart/start on failure: lost connection to channel
if chaincode was instantiated on this peer: crash chaincode container
So. What are the strategies/best practice to restore the Hyperledger Fabric network after crashes?

Not able to register and instantiate Chaincode - Hyperledger Fabric - Blockchain

I am working upon a basic Blockchain POC and I have been able to do following:
Installed and started the Hyperledger fabric v1.0 successfully
I have list of Docker images running on Fabric
hyperledger/fabric-ca, hyperledger/fabric-orderer, hyperledger/fabric-peer, hyperledger/fabric-ccenv , hyperledger/fabric-couchdb
I have written Chaincode in go to read and update the ledger and compiled successfully
Next - What do I need to do and not able to do and Where I am confused?
Register my Chaincode to a peer – How do I find which Peer I need to register
I tried to follow this video but it uses YAML and I do not have it and it gives error-
https://www.youtube.com/watch?v=76WIJjKNekY&list=PLz3iwtnWFin-yUUgn-zP7KJp0iW0IFas9&index=2
Also followed few more tutorials but still confused what to do
https://hyperledger-fabric.readthedocs.io/en/release-1.2/build_network.html
Instantiate my Chaincode
Query my Chaincode - I will be able to do it once Chaincode is registered and deployed
Invoke my Chaincode to update the ledger - Same as above
Please help in above step or let me know if there is any good source of clear steps to perform registration and instantiation of chaincode.

Resources