hyperledger-fabric

Hyperledger fabric on AWS, peers get crash after anchor peer update

亡梦爱人 提交于 2021-02-11 12:47:26
问题 I have deployed hyperledger fabric on aws ec2 instances. peer0.sales.billerxchange.com (ec2 instance 1) peer1.sales.billerxchange.com (ec2 instance 2) peer0.employee.billerxchange.com (ec2 instance 3) peer1.employee.billerxchange.com (ec2 instance 4) ca.sales.billerxchange.com (ec2 instance 5) ca.employee.billerxchange.com (ec2 instance 6) orderer.billerxchange.com (ec2 instance 7) all peers,ca and orderer are deployed on seperate instances and managed by docker swarm and deployed on docker

configure confixtx.yaml file?

限于喜欢 提交于 2021-02-10 14:47:18
问题 I'm trying to build a Hyperledger Fabric network with the following Smartforce[Orderer Org] Falcon.io [ORG1] Frost.io [ORG2] I have generated all cryptographic materials using cryptogen tool. now looking to build gensis block using configtxgen tool. Here is configtx.yaml : Profiles: TwoOrgOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Consortiums: SampleConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: SampleConsortium

configure confixtx.yaml file?

自作多情 提交于 2021-02-10 14:46:03
问题 I'm trying to build a Hyperledger Fabric network with the following Smartforce[Orderer Org] Falcon.io [ORG1] Frost.io [ORG2] I have generated all cryptographic materials using cryptogen tool. now looking to build gensis block using configtxgen tool. Here is configtx.yaml : Profiles: TwoOrgOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *Smartforce Consortiums: SampleConsortium: Organizations: - *BusinessPartner1 - *BusinessPartner2 TwoOrgChannel: Consortium: SampleConsortium

How do I notify the client application when a chaincode is invoked?

前提是你 提交于 2021-02-10 07:53:22
问题 When a chaincode is invoked, is there a way to call a REST API (external) so that the client application can be notified on the new transaction. Apart from REST, is there any other option? 回答1: It's better to use events https://github.com/hyperledger/fabric/blob/master/docs/protocol-spec.md#35-events Validating peers and chaincodes can emit events on the network that applications may listen for and take actions on. There is a set of pre-defined events, and chaincodes can generate custom

in Hyperledger Fabric, What is an Organization and Peer?

岁酱吖の 提交于 2021-02-08 10:09:52
问题 I am new to Hyperledger Fabric and would like to understand these terms with a real-world use case. Let's say we are building a Healthcare Blockchain Network with multiple Hospitals. Each Hospital has its own set of Doctors and Patients. For simplicity lets assume there are two hospitals, Hospital A and Hospital B. So does this mean Hospital A is one organization and Hospital B is another Organization? In this case, what is a peer? Are participants (Doctor, Patient etc) individual peers?

How to solve “Error: endorsement failure during query. response: status:500 message”?

只愿长相守 提交于 2021-02-08 09:23:31
问题 Background: I modified the /examples/e2e_cli/ from Hyperledger-fabric and get this error message when running the end to end script.sh Error: endorsement failure during query. response: status:500 message:"make sure the chaincode mycc has been successfully instantiated and try again: getccdata mychannel/mycc responded with error: could not find chaincode with name 'mycc'" The chaincode is correctly instantiated. What could actually be causing this error? 回答1: This Jira ticket documents the

How to solve “Error: endorsement failure during query. response: status:500 message”?

时间秒杀一切 提交于 2021-02-08 09:22:33
问题 Background: I modified the /examples/e2e_cli/ from Hyperledger-fabric and get this error message when running the end to end script.sh Error: endorsement failure during query. response: status:500 message:"make sure the chaincode mycc has been successfully instantiated and try again: getccdata mychannel/mycc responded with error: could not find chaincode with name 'mycc'" The chaincode is correctly instantiated. What could actually be causing this error? 回答1: This Jira ticket documents the

In Hyperledger Fabric when I try to invoke, I'm getting the following error: chaincode definition for 'fabcar' exists, but chaincode is not installed

无人久伴 提交于 2021-02-07 12:46:20
问题 I've followed 2 different tutorials https://github.com/swetharepakula/Fabric101Workshop and https://hyperledger-fabric.readthedocs.io/en/release-2.0/deploy_chaincode.html. Both times when I query installed it shows fabcar is installed and it commits successfully, but in both when I try to invoke I receive the following: Error: endorsement failure during invoke. response: status:500 message:"make sure the chaincode fabcar has been successfully defined on channel mychannel and try again:

OCI runtime exec failed: container_linux.go:344: starting container process caused “no such file or directory”: unknown

自古美人都是妖i 提交于 2021-02-07 11:14:40
问题 I'm running sample tutorial from https://hyperledger-fabric.readthedocs.io/en/release-1.4.html, trying to run the "Build Your First Network" ./byfn.sh. Network generation works fine, but when I try to up the network, i receive the following error: $cd..../fabric-samples/first-network $./byfn.sh generate $./byfn.sh up Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... LOCAL_VERSION=1.4.1 DOCKER_IMAGE_VERSION=1.4.1

OCI runtime exec failed: container_linux.go:344: starting container process caused “no such file or directory”: unknown

偶尔善良 提交于 2021-02-07 11:10:30
问题 I'm running sample tutorial from https://hyperledger-fabric.readthedocs.io/en/release-1.4.html, trying to run the "Build Your First Network" ./byfn.sh. Network generation works fine, but when I try to up the network, i receive the following error: $cd..../fabric-samples/first-network $./byfn.sh generate $./byfn.sh up Starting for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... LOCAL_VERSION=1.4.1 DOCKER_IMAGE_VERSION=1.4.1