hyperledger-fabric

Error in running byfn: failed to endorse chaincode install, rpc error code unavailable

妖精的绣舞 提交于 2020-04-16 20:57:30
问题 I am on CentOS 7, installed all prerequisites, cloned the fabric-samples git repository. I am referring to the tutorial "Building Your First Network", found here. At this point I have successfully run the command ./byfn.sh generate Now I want to execute the Java chaincode, so I run ./byfn.sh up -l java Right after the START sign, I see the following output: Build your first network (BYFN) end-to-end test + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts

Error in running byfn: failed to endorse chaincode install, rpc error code unavailable

僤鯓⒐⒋嵵緔 提交于 2020-04-16 20:54:31
问题 I am on CentOS 7, installed all prerequisites, cloned the fabric-samples git repository. I am referring to the tutorial "Building Your First Network", found here. At this point I have successfully run the command ./byfn.sh generate Now I want to execute the Java chaincode, so I run ./byfn.sh up -l java Right after the START sign, I see the following output: Build your first network (BYFN) end-to-end test + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts

Hyperledger Fabric Chaincode throws MVCC_READ_CONFLICT

无人久伴 提交于 2020-04-16 03:05:29
问题 I'm getting an error when I invoke a chaincode function. I've created two adaptations for the function. One uses a regular key, the other a composite key. I thought that using a composite key would solve any MVCC_READ_CONFLICT's since I'm no longer updating the same key. However I get the error on both functions. Note that both function are contained in the same chaincode. I don't know if that can cause conflicts. Here's the function with a regular key: func (*AddTokenCallFunction) Start(stub

Hyperledger Fabric Chaincode throws MVCC_READ_CONFLICT

我与影子孤独终老i 提交于 2020-04-16 03:04:08
问题 I'm getting an error when I invoke a chaincode function. I've created two adaptations for the function. One uses a regular key, the other a composite key. I thought that using a composite key would solve any MVCC_READ_CONFLICT's since I'm no longer updating the same key. However I get the error on both functions. Note that both function are contained in the same chaincode. I don't know if that can cause conflicts. Here's the function with a regular key: func (*AddTokenCallFunction) Start(stub

Backslash problem in Hyperledger 2.0.1 when orderer/peer look for .pem files

你。 提交于 2020-03-25 17:58:13
问题 I'm trying to deploy a Hyperledger 2.0.1 Network with 3 orgs, 2 peers per org and 5 RAFT orderers. All this in GCP under Container optimized OS. On my orderer nodes I observe the following Warnings: 2020-03-12 09:44:41.684 UTC [msp] loadCertificateAt -> WARN 007 Failed loading OrdererOU certificate at [/var/hyperledger/orderer/msp/cacerts\ca.industrial-cert.pem]: [could not read file /var/hyperledger/orderer/msp/cacerts\ca.industrial-cert.pem: open /var/hyperledger/orderer/msp/cacerts\ca

Backslash problem in Hyperledger 2.0.1 when orderer/peer look for .pem files

一世执手 提交于 2020-03-25 17:58:07
问题 I'm trying to deploy a Hyperledger 2.0.1 Network with 3 orgs, 2 peers per org and 5 RAFT orderers. All this in GCP under Container optimized OS. On my orderer nodes I observe the following Warnings: 2020-03-12 09:44:41.684 UTC [msp] loadCertificateAt -> WARN 007 Failed loading OrdererOU certificate at [/var/hyperledger/orderer/msp/cacerts\ca.industrial-cert.pem]: [could not read file /var/hyperledger/orderer/msp/cacerts\ca.industrial-cert.pem: open /var/hyperledger/orderer/msp/cacerts\ca

Error in running byfn: chaincode installation failed due to gradle issue?

心已入冬 提交于 2020-03-05 06:05:37
问题 This is a continuation of my question found here. It seems like the nature of the error has changed hence I am asking a new question. A kind soul pointed out that the Java version mismatch in my previous run, so I ran docker container ls -a : CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4bb779ce6b71 hyperledger/fabric-javaenv:2.0 "/bin/sh -c ./build.…" 2 minutes ago Up 2 minutes fervent_pare d23e83c3cde5 hyperledger/fabric-javaenv:2.0 "/bin/sh -c ./build.…" 2 days ago Exited (0) 2

Hyperledger Fabric - How can we catch the peer who try to tamper data?

扶醉桌前 提交于 2020-03-05 01:36:10
问题 I ran the Test Network example from Hyperledger Fabric Sample and I update the config to use CouchDB. My goal it's to find a way to catch the peer who try to tamper data. I tampered CAR4 from the CouchDB UI (peer0 from Org1): { "_id": "CAR4", "_rev": "13-4da33a0904fed5919e0bf094a93f2fd9", "colour": "black", "make": "Tesla", "model": "S", "owner": "some illegal update", "~version": "CgMBDwA=" } And I ran the following command (peer0 from Org2): peer chaincode ... '{"function":"changeCarOwner",

Endorsement fails when node.js fabric-client application is run on a separate node

ぐ巨炮叔叔 提交于 2020-03-04 17:42:51
问题 I'm running the fabcar example from fabric samples on a node. My fabric network is first-network (BYFN) run inside docker containers and I would like to invoke chaincode using a node.js fabric-client application on a separate node (Raspberry Pi). In connection-org1.json file, I have replaced the localhost domain names (in the peer urls) with my own domain name (mydomain.com) where the fabric network is running. I execute invoke.js on Raspberry Pi with the following modified gateway settings:

Endorsement fails when node.js fabric-client application is run on a separate node

我的未来我决定 提交于 2020-03-04 17:41:52
问题 I'm running the fabcar example from fabric samples on a node. My fabric network is first-network (BYFN) run inside docker containers and I would like to invoke chaincode using a node.js fabric-client application on a separate node (Raspberry Pi). In connection-org1.json file, I have replaced the localhost domain names (in the peer urls) with my own domain name (mydomain.com) where the fabric network is running. I execute invoke.js on Raspberry Pi with the following modified gateway settings: